text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I currently have a `Gridview`, And I want to use client-side validation to ensure that a row has been selected (ie: `SelectedIndex > -1`). At the moment I'm using `<asp:CustomValidator>` but want to move away from server-side validation. Here is what I'm currently doing: ``` <asp:GridView ID="GridView1" runat="serv...
[ -0.054833002388477325, 0.07584960013628006, 0.8509086966514587, -0.3545933663845062, 0.04657105356454849, 0.0627475380897522, -0.048210643231868744, -0.27048107981681824, -0.17424406111240387, -1.0598900318145752, -0.049113500863313675, 0.5973765254020691, 0.17290882766246796, 0.3386517167...
args.IsValid = (GridView1.SelectedIndex > -1) End Sub ``` That seems OK to me. Client-side validation in this specific case sounds a little fuzzy, like maybe checking for some element you expect to have part of a server-generated ID. Very fragile. Usually I will go one extra step and actually create my own validator ...
[ 0.07468866556882858, -0.0434073843061924, 0.6482164859771729, 0.09343945980072021, -0.03836875408887863, -0.1303333342075348, 0.10005179047584534, -0.552857518196106, -0.11376294493675232, -0.4188939929008484, -0.01980898529291153, 0.3112921714782715, -0.05737704783678055, 0.02411753684282...
I have a weird requirement where I need to take some xml and re-write it so that the text nodes are wrapped in CDATA (this is for a client that won't allow normal escaping). It doesn't seem like any of the normal XML libraries dom4j, jdom, java xml, have any built in support for this. Any ideas? Can I use XSLT for thi...
[ 0.019666355103254318, 0.07441658526659012, 0.24922621250152588, 0.06618381291627884, -0.1269332468509674, -0.3401769995689392, 0.21129952371120453, -0.1675756871700287, -0.10391251742839813, -0.5379472374916077, -0.13857315480709076, 0.665454626083374, -0.49997347593307495, -0.075281359255...
of the text you need to output is in elements, b) you only care about text nodes, c) you know the names of all the elements that contain text, and d) it's okay to emit any text in all of those output elements as CDATA. If all of those cases are true, then you could write an identity transform and add this element to it...
[ 0.35170823335647583, 0.04609440639615059, 0.21227172017097473, -0.006037303712219, -0.1031765341758728, -0.46062394976615906, 0.4243216812610626, -0.22218510508537292, 0.1172984316945076, -0.38787102699279785, -0.3787758946418762, 0.7760995030403137, -0.39954137802124023, -0.52542960643768...
Last few days i have been working on building an application to hide folders(thanks to the paid versions of such softwares). After a heavy googling I zeroed into some shell script that would first create a folder and then rename the folder to "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}". It would then hide th...
[ 0.2186255156993866, -0.1892174631357193, 0.04877891764044762, 0.06290453672409058, -0.013096249662339687, -0.2046392410993576, 0.40463945269584656, 0.2771744430065155, -0.16112852096557617, -0.6431586742401123, -0.042128197848796844, 0.3830825090408325, -0.28877007961273193, 0.016847997903...
as how the other folder protecting softwares do. Can somebody throw some more light on this? Thanks a ton... First of all I think that you have to understand how JavaScript object orientation works, JavaScript OO is [Prototype-based](http://en.wikipedia.org/wiki/Prototype-based_programming), in which *classes* are no...
[ 0.35592904686927795, 0.1793452799320221, -0.2967766523361206, 0.07949449121952057, -0.48800069093704224, -0.06755120307207108, 0.35819464921951294, -0.19404888153076172, -0.27238014340400696, -0.6420906186103821, -0.1407732516527176, 0.7432152628898621, -0.31065621972084045, 0.206790998578...
I want to know What should be default value for build configuration ? [Debug,Private,or Release] at the time of 1) Running application locally on simulator 2) Generating cod file while actually deploying on device/phone. Configuration doesn't affect the generated code for BlackBerry projects - it only affects which pr...
[ 0.42984992265701294, 0.08934154361486435, 0.20992511510849, -0.1723141223192215, 0.26009610295295715, -0.062273234128952026, 0.34383058547973633, 0.20678697526454926, -0.027583157643675804, -0.5430750250816345, -0.034640174359083176, 0.5187508463859558, -0.1122967004776001, -0.409728497266...
`No` * The JIT compiler may "transform" the bytecode into something completely different anyway. * It will lead you to do premature optimization. `Yes` * You do not know which method will be compiled by the JIT, so it is better if you optimize them all. * It will make you a better Java programmer. I am asking witho...
[ 0.6199347972869873, 0.49370306730270386, -0.11206858605146408, 0.1694413125514984, -0.2774178385734558, -0.22639580070972443, 0.41082966327667236, 0.14987167716026306, 0.046922121196985245, -0.47570914030075073, -0.0468326061964035, 0.5956606268882751, -0.06659792363643646, 0.0516190268099...
the bytecode may help in understanding how the Java source code will be compiled into Java bytecode. Also, it may give some ideas about what kind of optimizations will be performed by the compiler, and perhaps some limitations to the amount of optimization the compiler can perform. For example, if a string concatenati...
[ 0.09200843423604965, -0.021448349580168724, 0.01880446821451187, -0.05048917979001999, -0.10971284657716751, -0.026157507672905922, 0.22762157022953033, -0.23736974596977234, -0.005793779622763395, -0.5188843011856079, -0.29589587450027466, 0.3262200951576233, -0.41376715898513794, -0.0560...
outside the loop and only performing `append`s inside the loop. On the issue of the JIT. The just-in-time compilation is going to be JVM implementation specific, so it's not very easy to find out what is actually happening to the bytecode when it is being converted to the native code, and furthermore, we can't tell wh...
[ 0.5204707384109497, 0.05997543781995773, -0.2170831561088562, 0.01920042745769024, -0.266239732503891, -0.1989888697862625, 0.3801302909851074, 0.024955328553915024, -0.29619941115379333, -0.13679274916648865, -0.0018849208718165755, 0.5345908999443054, -0.13505008816719055, 0.085648961365...
the way it is being executed is more or less opaque to the developer, and again, JVM-specific. There may be some performance tricks that one JVM performs while another doesn't. When it comes down to the issue of looking at the bytecode generated, it comes down to learning what is actually happening to the source code ...
[ 0.6074659824371338, 0.1730210930109024, -0.1671985536813736, 0.17621731758117676, -0.12826944887638092, -0.3432113528251648, 0.2818162441253662, 0.1034235879778862, -0.17487260699272156, -0.4357505142688751, -0.08920615166425705, 0.6943459510803223, -0.20902398228645325, -0.279533267021179...
obsessive about the bytecode generation and trying to write programs that will emit the most optimized bytecode. What's more important is to write Java source code that is readable and maintainable by others.
[ 0.23007674515247345, 0.4339519441127777, -0.048524219542741776, 0.12985816597938538, -0.08658687025308609, -0.17360720038414001, 0.5169651508331299, 0.11061328649520874, 0.1214599534869194, -0.6437920928001404, 0.11170680820941925, 0.39814090728759766, -0.21646025776863098, -0.029458669945...
I just started programming in C# and was reading about dividing your application / website into the three different layers was the best practice but I am having a hard time understanding exactly how. Im working on a pet project to lean more about C# but I dont want to start on any bad habits. Can you look at what I hav...
[ 0.6635532975196838, 0.16289754211902618, 0.26605096459388733, -0.006817142479121685, -0.1592511385679245, -0.33194050192832947, 0.16192686557769775, -0.2509377896785736, -0.2562185823917389, -0.8532873392105103, -0.001590354135259986, 0.6786642670631409, 0.02496103011071682, -0.22296047210...
xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Project: Ruth</title> <link href="CSS/StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div class="Body"> <div class="Header"> <div class="Nav"> <img src="images/Header...
[ -0.038056764751672745, -0.10620378702878952, 0.6272221207618713, -0.18509674072265625, -0.46465864777565, -0.01529598981142044, -0.2149430513381958, -0.37268945574760437, -0.4563819169998169, -0.6176553964614868, -0.4201638102531433, 0.07240456342697144, -0.0707157701253891, 0.244734629988...
<a href="Default.aspx"> <img src="images/Header_About-Off.gif" alt="" /></a> <a href="Register.aspx"> <img src="images/Header_Register-Off.gif" alt="" /></a> <a href="Default.aspx"> <img src="images/Header_Credits-Off.gif" alt="" /></a> </div> ...
[ 0.10294583439826965, 0.2412136197090149, 0.4785667359828949, -0.12123898416757584, 0.02778826281428337, 0.32232266664505005, -0.1802806258201599, -0.576636552810669, -0.3087611794471741, -0.2880394458770752, -0.33551082015037537, 0.6185640096664429, -0.12390988320112228, 0.2932456433773041...
</div> <div class="Content"> <div class="CurrentlyListening"> <asp:Label ID="lblCurrentListen" runat="server" Text="(Nothing Now)" CssClass="Txt"></asp:Label> </div> <asp:GridView ID="gvLibrary" runat="server" AutoGenerateColumns="False" DataKeyNames="lib_id" DataSourceID="sdsLib...
[ -0.10692193359136581, -0.21001145243644714, 0.5327865481376648, -0.19505254924297333, -0.19132111966609955, 0.053107209503650665, 0.11632053554058075, -0.06269747018814087, -0.42805933952331543, -0.5434419512748718, -0.3063640296459198, 0.32211068272590637, -0.21737152338027954, 0.22032773...
<HeaderStyle CssClass="HeaderStyle" /> <Columns> <asp:BoundField DataField="artist_name" HeaderText="Artist" SortExpression="artist_name" HeaderStyle-Width="200" /> <asp:BoundField DataField="album_title" HeaderText="Album" SortExpression="album_title" HeaderStyle-Width="200" /> ...
[ 0.11603239178657532, 0.02181006222963333, 0.20200887322425842, -0.0390302874147892, -0.1987314075231552, 0.002299674553796649, -0.23423567414283752, -0.5716539025306702, -0.43526801466941833, -0.4285898208618164, -0.31628406047821045, 0.4393114149570465, 0.09955299645662308, -0.22497425973...
<a href="http://####/Proj_Ruth/Data/<%# Eval("file_path") %>" class="lnk">Link</a> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <asp:SqlDataSource ID="sdsLibrary" runat="server" ConnectionString="<%$ ConnectionStrings:MusicLibraryConnectionString %>...
[ -0.3214217722415924, 0.0629185289144516, 0.4305163621902466, -0.009741363115608692, -0.06883423030376434, 0.19048000872135162, -0.17428624629974365, -0.6807384490966797, -0.1675245463848114, -0.33007681369781494, -0.4815400540828705, 0.507653534412384, -0.014452881179749966, 0.187948688864...
[artist_name], [album_title]" UpdateCommand="UPDATE [Library] SET [artist_name] = @artist_name, [album_title] = @album_title, [song_title] = @song_title, [file_path] = @file_path WHERE [lib_id] = @lib_id"> <DeleteParameters> <asp:Parameter Name="lib_id" Type="Int32" /> </DeleteParameters...
[ 0.04889402911067009, -0.139680877327919, 0.6906043887138367, 0.24165977537631989, -0.10450273752212524, 0.3200896084308624, -0.16078254580497742, -0.6526155471801758, -0.41011014580726624, -0.6784847974777222, -0.01603887602686882, 0.8149470686912537, -0.10621555894613266, -0.1669653505086...
<asp:Parameter Name="song_title" Type="String" /> <asp:Parameter Name="file_path" Type="String" /> </InsertParameters> <UpdateParameters> <asp:Parameter Name="artist_name" Type="String" /> <asp:Parameter Name="album_title" Type="String" /> <asp:Paramet...
[ -0.08580035716295242, 0.15384656190872192, 0.5447326898574829, 0.16682873666286469, 0.08349389582872391, 0.2929799556732178, -0.23889382183551788, -0.5138520002365112, -0.3681040108203888, -0.3400270640850067, -0.02496153675019741, 0.8120723962783813, 0.15218789875507355, -0.15360130369663...
<asp:Parameter Name="file_path" Type="String" /> <asp:Parameter Name="lib_id" Type="Int32" /> </UpdateParameters> </asp:SqlDataSource> </div> </div> </form> </body> </html> ``` **Business Layer** ``` using System; using System.Collections.Generic; using System.Linq; using Sy...
[ -0.27011075615882874, -0.2778532803058624, 0.5038544535636902, -0.04172729700803757, 0.018496382981538773, 0.2962092459201813, 0.07285937666893005, -0.40582576394081116, -0.05240439251065254, -0.9467246532440186, -0.32250311970710754, 0.47270891070365906, -0.21578523516654968, -0.068672992...
{ get; set; } public User(string firstName, string lastName, string emailAddress, string password, string accessCode) { FirstName = firstName; LastName = lastName; EmailAddress = emailAddress; Password = password; AccessCode = accessCode; } public void CreateUser(User newUser) { if (...
[ -0.21703730523586273, -0.28210878372192383, 0.3985675871372223, -0.04606234282255173, -0.009893354959785938, 0.1046883687376976, 0.13926325738430023, -0.19352896511554718, -0.1345662921667099, -0.926270067691803, -0.5146500468254089, 0.29649075865745544, -0.19475676119327545, 0.41187414526...
bool IsValidAccessCode(string accessCode) { bool isValid = false; int count = 0; using (SqlConnection sqlCnn = new SqlConnection(ConfigurationManager.ConnectionStrings["MusicLibraryConnectionString"].ConnectionString)) { sqlCnn.Open(); using (SqlCommand sqlCmd = new SqlCommand(String.Form...
[ -0.24790211021900177, -0.04923742637038231, 0.5728473663330078, -0.3777118921279907, 0.18647481501102448, -0.039113931357860565, 0.5028483867645264, -0.6636520028114319, -0.1606406420469284, -0.30443426966667175, -0.37981799244880676, 0.6137499213218689, -0.36887237429618835, 0.27140694856...
isValid = true; } } } return isValid; } public void CreateUser(User newUser) { using (SqlConnection sqlCnn = new SqlConnection(ConfigurationManager.ConnectionStrings["MusicLibraryConnectionString"].ConnectionString)) { sqlCnn.Open(); using (SqlCommand sqlCmd = new SqlCom...
[ -0.34026363492012024, -0.05917389690876007, 0.6821712255477905, -0.24903428554534912, 0.5577901601791382, 0.2109207659959793, 0.24719977378845215, -0.40494608879089355, -0.11016398668289185, -0.7281018495559692, -0.2744550406932831, 0.6672985553741455, -0.17562365531921387, 0.3501236438751...
} } DeleteAccessCode(newUser.AccessCode); } public void DeleteAccessCode(string accessCode) { using (SqlConnection sqlCnn = new SqlConnection(ConfigurationManager.ConnectionStrings["MusicLibraryConnectionString"].ConnectionString)) { sqlCnn.Open(); using (SqlCommand sqlCmd = new SqlCo...
[ -0.10922793298959732, -0.10516975075006485, 0.45276209712028503, -0.1621791571378708, 0.3689200282096863, 0.0459660105407238, 0.4314708411693573, -0.10572294145822525, -0.5185904502868652, -0.45129141211509705, -0.3458235561847687, 0.6774525046348572, -0.28923019766807556, 0.61034852266311...
layer-based applications, then you should not be storing SQL statements directly within ASPX pages (as the `SqlDataSource` requires). The `SqlDataSource` control was built to demonstrate how easy it is to bind and update an application with database data and is not intended to be used in real world applications, becaus...
[ 0.1258435696363449, -0.0941539853811264, 0.5007582306861877, 0.2676103711128235, -0.12427445501089096, -0.29400503635406494, -0.05179473012685776, -0.039222076535224915, -0.027822915464639664, -0.6563351154327393, -0.3042890429496765, 0.24154141545295715, -0.35678520798683167, 0.0012563801...
other layers and knows nothing about their internal implementation. The viable alternative, therefore, is to use the `ObjectDataSource` control. This control allows you to bind directly to a DataLayer or to a Biz logic layer which in turn can call the Datalayer. Binding to a Datalayer directly has the drawback that yo...
[ 0.15871433913707733, -0.4490726888179779, 0.47240158915519714, 0.2912254333496094, -0.2497904747724533, -0.24852195382118225, 0.008966072462499142, -0.24811892211437225, -0.04452843219041824, -0.5655964016914368, -0.27521398663520813, 0.39750638604164124, -0.42366400361061096, 0.0794387534...
InsertData` (with any required overloads) and these functions return strongly typed objects or collections that the `ObjectDataSource` can work with and display. Each public function in the BL class internally calls into the DataLayer to select/update/delete/insert data to/from the database. An excellent introduction ...
[ 0.07207418233156204, -0.523115336894989, 0.25396090745925903, 0.10211239755153656, -0.03426623344421387, -0.1656840592622757, -0.08933544903993607, 0.029891634359955788, -0.09268376231193542, -0.42690080404281616, -0.40704503655433655, 0.5850476622581482, -0.5670482516288757, -0.0714407041...
I was trying to erase a range of elements from map based on particular condition. How do I do it using STL algorithms? Initially I thought of using `remove_if` but it is not possible as remove\_if does not work for associative container. Is there any "remove\_if" equivalent algorithm which works for map ? As a simpl...
[ -0.19265978038311005, -0.21794909238815308, 0.04118909686803818, -0.2904166877269745, -0.09849287569522858, -0.025746110826730728, 0.4835909903049469, -0.2577841579914093, -0.1572277843952179, -0.6317667961120605, -0.3461728096008301, 0.3903234004974365, -0.6064319014549255, 0.287825167179...
aMap[2] = "two"; aMap[3] = "three"; aMap[4] = "four"; aMap[5] = "five"; aMap[6] = "six"; // does not work, an error // std::remove_if(aMap.begin(), aMap.end(), predicate); std::map<int, std::string>::iterator iter = aMap.begin(); std::map<int, std::string>::iterator endIter = aMap.end();...
[ -0.09652336686849594, -0.26655086874961853, 0.3089151978492737, -0.26767319440841675, 0.39090657234191895, 0.3736317455768585, 0.2690700888633728, -0.945621907711029, -0.31257957220077515, -0.49259424209594727, -0.4686376750469208, 0.8250061869621277, -0.43423861265182495, -0.2281241863965...
// is it safe ? aMap.erase(iter++); } } return 0; } ``` Almost. ``` for(; iter != endIter; ) { if (Some Condition) { iter = aMap.erase(iter); } else {
[ 0.16484729945659637, -0.25643855333328247, 0.2511792480945587, -0.20200708508491516, 0.5885944366455078, -0.20843011140823364, 0.5334119200706482, -0.32086846232414246, 0.13047759234905243, -0.2609090805053711, -0.32838690280914307, 0.685957133769989, -0.34148430824279785, -0.0879974663257...
++iter; } } ``` What you had originally would increment the iterator *twice* if you did erase an element from it; you could potentially skip over elements that needed to be erased. This is a common algorithm I've seen used and documented in many places. [EDIT] You are correct that iterators are invalidated aft...
[ 0.00340359378606081, 0.08387868851423264, 0.13100139796733856, -0.2302512526512146, 0.09621328860521317, -0.11685103178024292, 0.30289894342422485, -0.34486645460128784, -0.2174452543258667, -0.41676390171051025, -0.3329850733280182, 0.6812978386878967, -0.48848703503608704, -0.00056051433...
What needs to be done to be able to step-into (F11) the reflected code. I am creating the object using reflection: myObject.GetType().GetConstructor().Invoke(myParams) and I want to go into the constructor's code. If I press F11 it just skips the constructor's code ;( but at the same time if I put a breakpoint at ...
[ 0.2316635549068451, 0.02952416054904461, 0.40004870295524597, -0.1906997561454773, -0.23306134343147278, 0.12292224168777466, 0.3059055805206299, -0.3554498255252838, -0.18068352341651917, -0.7150280475616455, -0.031721074134111404, 0.7271718978881836, -0.3057778477668762, -0.4780199527740...
guarantee that is what is causing the problem - but it is my best bet.
[ 0.22581075131893158, 0.33694660663604736, 0.24192124605178833, 0.014475693926215172, 0.5468999743461609, -0.3943593204021454, 0.42544642090797424, 0.21699711680412292, 0.021540137007832527, -0.22924767434597015, 0.1031154990196228, 0.42543119192123413, 0.1363341510295868, -0.13307221233844...
I want to create a method that takes in an `Enum` type, and returns all it's members in an array, How to create such a function? Take for example, I have these two enums: ``` public enum Family { Brother, Sister, Father } public enum CarType { Volkswagen, Ferrari, BMW } ``` How to create a func...
[ 0.48210379481315613, 0.17994076013565063, 0.16121847927570343, 0.11261223256587982, 0.1349812150001526, 0.493551105260849, -0.012855064123868942, -0.38990315794944763, -0.036467473953962326, -0.18669509887695312, -0.17468158900737762, 0.4796409010887146, -0.20844414830207825, 0.36436107754...
return enumList; } ``` But I got an `InvalidOperationException`: > System.InvalidOperationException : Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true. > at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException() > at System.Reflection.RuntimeMethodInfo...
[ -0.1209423765540123, -0.10064467787742615, 0.4882430136203766, 0.09235499054193497, -0.08042547851800919, 0.15212982892990112, 0.4098937213420868, -0.3693788945674896, -0.3109707236289978, -0.6821211576461792, -0.19957363605499268, 0.44030502438545227, -0.1799834817647934, 0.11139041930437...
: Enum => ((TEnum[])Enum.GetValues(typeof(TEnum))).ToList(); ```
[ 0.19662588834762573, -0.0823577344417572, 0.42206165194511414, -0.139709010720253, 0.27150803804397583, 0.04053740203380585, 0.1887056529521942, -0.4819474220275879, -0.1807602196931839, -0.5804159045219421, -0.646602213382721, 0.2879873812198639, -0.3220677375793457, 0.00548850791528821, ...
Why is `null` considered an `object` in JavaScript? Is checking ``` if ( object == null ) Do something ``` the same as ``` if ( !object ) Do something ``` ? And also: What is the difference between `null` and `undefined`? ``` (name is undefined) ``` **You:** What is `name`? (\*) **JavaScript...
[ 0.2093469202518463, 0.14616559445858002, -0.31818142533302307, -0.07128916680812836, -0.21630609035491943, -0.36363911628723145, 0.3434927761554718, 0.185646653175354, -0.32789286971092224, -0.3286660313606262, -0.12609542906284332, 0.13855743408203125, -0.32429713010787964, 0.166944190859...
has no type, and it's never been referenced before in that scope; `null` is where the thing is known to exist, but it's not known what the value is. One thing to remember is that `null` is not, conceptually, the same as `false` or `""` or such, even if they equate after type casting, i.e. ``` name = false; ``` **Yo...
[ 0.1837378293275833, 0.2599271833896637, -0.18220028281211853, -0.09207594394683838, -0.0632876455783844, -0.46645987033843994, 0.3778918385505676, 0.022505907341837883, -0.15883439779281616, -0.3759195804595947, -0.18973249197006226, 0.2492280900478363, -0.30289965867996216, 0.181420296430...
any HTML form element. It goes way, way back and was instituted well before id. It is useful because ids must be unique but names do not have to be.
[ 0.39387011528015137, -0.07845953851938248, 0.561347484588623, -0.025493962690234184, -0.47998496890068054, -0.7910041809082031, 0.18146593868732452, 0.09429981559515, -0.15945079922676086, -0.6340910792350769, -0.13647420704364777, -0.15877081453800201, -0.32832908630371094, -0.05942694097...
Duplicate: [Run .NET exe in linux](https://stackoverflow.com/questions/800999/run-net-exe-in-linux) Hello, Is it possible to make my existing Windows Forms Application made using Visual Studio 2008 and .Net framework 2.0 run on Linux by recompiling in Linux with less/No code changes? Thanks very possible, however, d...
[ 0.3382943868637085, 0.1959385871887207, -0.010102637112140656, 0.2756684720516205, 0.31099438667297363, -0.08418386429548264, 0.23422181606292725, 0.4146812856197357, -0.45136240124702454, -0.6578441858291626, 0.13357491791248322, 0.32355445623397827, -0.2582899332046509, 0.408801376819610...
How do I automate the process of getting an instance created and its function executed dynamically? Thanks Edit: Need an option to pass parameters too. Thanks Do you just want to call a parameterless constructor to create the instance? Is the type specified as a string as well, or can you make it a generic method? Fo...
[ 0.12822744250297546, -0.006293945480138063, 0.23205986618995667, 0.22011344134807587, -0.12526297569274902, -0.28149035573005676, 0.2073698788881302, -0.21809953451156616, -0.3415834903717041, -0.49767497181892395, -0.021908044815063477, 0.6068955063819885, -0.3777884840965271, -0.04481816...
no parameters. (Use BindingFlags with GetMethod // to change this.) public void Invoke(string typeName, string methodName) { Type type = Type.GetType(typeName); object instance = Activator.CreateInstance(type); MethodInfo method = type.GetMethod(methodName); method.Invoke(instance, null); } ``` or ``...
[ 0.07362973690032959, -0.2431379109621048, 0.23019768297672272, -0.049508195370435715, 0.03433406725525856, 0.10172275453805923, 0.3244151771068573, -0.43364423513412476, 0.06899691373109818, -0.44021859765052795, -0.36854419112205505, 0.6031083464622498, -0.5665808916091919, 0.190878584980...
It turns out that in order to do this one has to bind the NSSlider's Value to IKImageBrowserView's zoomValue. My question is why it only works in this way? It seems more natural (to me) to bind IKImageBrowserView's zoomValue to NSSlider.intValue Thanks! The documentation for IKImageBrowserView states: > **setZoomVal...
[ -0.05008001625537872, -0.29202497005462646, 0.5458914041519165, 0.09318635612726212, -0.1512291580438614, 0.19662724435329437, 0.23985442519187927, -0.23551759123802185, -0.016138998791575432, -0.7044558525085449, 0.11534909904003143, 0.5735799670219421, -0.3874490559101105, -0.19172047078...
means images fits the browser bounds. Other values are interpolated. If all you pass in is the integer value, you'll only ever get '0' and '1', which correspond to the minimum size, and 'fit the browser bounds, respectively. You also need to make sure to configure the slider to have a minimum value of 0 and a maximum ...
[ 0.35180673003196716, -0.33226799964904785, 0.9864224791526794, 0.2371281534433365, 0.09825246781110764, -0.2662409543991089, 0.2861706614494324, -0.21461722254753113, -0.1369304060935974, -0.9143729209899902, -0.13994331657886505, 0.2924530804157257, -0.2751142978668213, -0.142930909991264...
C# 2008 I am using this code to test for an internet connection. As my application will have to login to a web server. However, if the user internet connection was to fail or cable pulled out. I will have to notify the user. ``` // Ping www.google.com to check if the user has a internet connection. public bool P...
[ -0.3475446105003357, 0.16289515793323517, 0.8333945274353027, -0.031096652150154114, 0.00626022182404995, -0.082196444272995, 0.44989123940467834, -0.1531897336244583, -0.3169695734977722, -0.5555084943771362, 0.000318895501550287, 0.4682173728942871, -0.4251531660556793, -0.18587040901184...
{ return true; } else { return false; } } ``` The only way I think I can test for an Internet connection is to ping www.google.com. So I have a used a server timer which I have set for 500 milliseconds and
[ 0.3896557688713074, 0.29059430956840515, 0.7147521376609802, 0.0062120272777974606, 0.11273814737796783, -0.21618887782096863, 0.568785548210144, 0.09728340804576874, 0.085535429418087, -0.8847322463989258, 0.22066549956798553, 0.2897537648677826, -0.1430983692407608, 0.12195142358541489, ...
in the lapsed event it will call this ping function. If the ping returns false. Then my app will take appropriate action. Do you think using google as a way to test an Internet connect is a good thing. If google was to fail, then my app would not function. Is polling 1/2 second to much or too little? Just wondering ab...
[ 0.44324254989624023, 0.04356173798441887, 0.5321536064147949, 0.402200311422348, -0.16539506614208221, -0.18879017233848572, 0.378380686044693, -0.07857449352741241, -0.040799230337142944, -0.48123878240585327, 0.4274170994758606, 0.5119314193725586, -0.0873260423541069, -0.129783868789672...
user if anything is wrong between them and the web server - that's the only thing that matters. If something goes wrong with the internet which means that the user can only do anything within their own town, you may not be able to reach Google but if you can still reach the web server you're interested in, why report ...
[ 0.30308055877685547, 0.13418501615524292, 0.4777545928955078, 0.28414323925971985, -0.008456848561763763, -0.25290387868881226, 0.4520624577999115, 0.011701108887791634, -0.5198602080345154, -0.47845569252967834, 0.0015584776410833001, 0.3620815873146057, -0.5026393532752991, 0.14052006602...
URL on the web server? After all, if the network is up but the web server process itself is down, surely that's just as bad as the user's network going down. EDIT: I hadn't noticed in the question that you were repeating this every half second. That's really not pleasant for anyone. Surely once a minute is often enoug...
[ 0.37871983647346497, 0.07902000844478607, 0.32532328367233276, 0.07863490283489227, -0.42438027262687683, -0.3554140627384186, 0.3888457715511322, 0.43865931034088135, -0.42990121245384216, -0.16260427236557007, 0.03451705724000931, 0.13571354746818542, -0.10643322020769119, 0.364064246416...
I need to support Chinese in one of my application on Windows, the problem is that I need to support for **Chinese Mandarin** and I did not find any locale code for it, can you clarify whether Windows support Mandarin chinese or is there any alternate?? Since the question is tagged C# and .NET 3.5 I'm assuming the foll...
[ 0.30915266275405884, 0.49988195300102234, -0.006616116501390934, 0.002521814312785864, 0.03550451248884201, -0.24803581833839417, 0.11077051609754562, 0.5070967078208923, -0.019372733309864998, -0.33568075299263, -0.29326748847961426, 0.5613376498222351, 0.059564296156167984, -0.0373166762...
(0x0004 or 0x7C04)** And from [W3 I18N FAQ](http://www.w3.org/International/questions/qa-css-lang) > "zh-Hant" and "zh-Hans". These language codes do not represent specific languages. "zh-Hant" would indicate Chinese written in Traditional Chinese *script*. Similarly "zh-Hans" represents Chinese written in Simplified...
[ 0.09714125096797943, 0.1924397200345993, 0.014996583573520184, -0.07229061424732208, -0.2313571274280548, 0.21104209125041962, 0.17187105119228363, 0.20236775279045105, -0.17933103442192078, -0.4654217064380646, -0.4162827134132385, 0.08213610202074051, -0.05786273255944252, -0.25899446010...
**Chinese (Traditional)**. If your application was going to Taiwan or Hong Kong you might use LocaleId [0x7C04](http://msdn.microsoft.com/en-us/goglobal/bb896001.aspx). * NOTE: I'm not meaning 'character set' in the computerese/ASCII sense above ~ just distinguishing between the spoken and written representations. The...
[ 0.43355637788772583, 0.005065129138529301, 0.12501877546310425, 0.009122115559875965, -0.05173540115356445, 0.11392343789339066, 0.32258081436157227, 0.6684721112251282, -0.33196958899497986, -0.49703264236450195, -0.35757774114608765, -0.22395990788936615, 0.05050868168473244, -0.24074612...
I want to write a program that analyzes your fantasy baseball team and notifies you of recommended actions, possibly multiple times per day. The problem is, you aren't playing fantasy baseball on my site, you're playing on yahoo, or cbs, or espn, etc. On the majority of these sites, fantasy teams and leagues are not p...
[ 0.5744718313217163, 0.08070025593042374, -0.1271856129169464, 0.3287373185157776, 0.05835549160838127, -0.5242629051208496, 0.04063796624541283, 0.43254899978637695, -0.13918337225914001, -0.7012660503387451, 0.20180311799049377, 0.5389833450317383, -0.21639396250247955, -0.091890260577201...
parse and analyze the file and send user notifications. The problem is that I need username/password combinations to easily get this data to my server *when* I need it, and I think there will be a lot of people who wouldn't want to entrust their yahoo/espn/cbs password to me. I have come up with several possible ways...
[ 0.6021426320075989, 0.23479026556015015, 0.05679677426815033, 0.06601276993751526, 0.24272102117538452, -0.4085393249988556, 0.16785399615764618, -0.002448782091960311, -0.034348152577877045, -0.6370947957038879, 0.10500764101743698, 0.4053714871406555, -0.12761056423187256, -0.06716325879...
giving me their credentials, and a number of them not so much. 2. Write a desktop client, which the user then downloads. The client would require their credentials, but it could then basically do exactly the same thing that the server based version would do, log in, request the page, and send the page back to my server...
[ 0.32533448934555054, 0.315729558467865, 0.507637083530426, 0.1620125025510788, 0.0072998530231416225, -0.1756715029478073, 0.033463191241025925, -0.14956410229206085, -0.023678157478570938, -0.6478589773178101, 0.021605506539344788, 0.5631505846977234, 0.06496593356132507, 0.03970120847225...
is saved from a previous login to login to the site, and send the page back to my server. This doesn't require my software to ever ask for their password, but if the cookie expires I am hosed, and I don't know much about browser add-ons besides. I'm sure there are other options, but these are what I've come up with so...
[ 0.1908964067697525, 0.08176290988922119, 0.33380165696144104, -0.05945313721895218, -0.10467454046010971, 0.06069739907979965, 0.3416512906551361, 0.08872385323047638, -0.35405734181404114, -0.5494440197944641, 0.007354802917689085, 0.34676381945610046, -0.03445672243833542, -0.15908892452...
that I try yahoo pipes, and that looked like a promising suggestion so I explored it a bit. Having looked now at [this](https://stackoverflow.com/questions/526006/post-forms-with-yahoo-pipes), I don't think that is an option. So, it looks like I'll be going with option 1. This is a problem I grappled with a couple of y...
[ 0.47422000765800476, -0.09717840701341629, 0.14552965760231018, -0.1231527253985405, 0.06100985407829285, -0.10397380590438843, 0.12347107380628586, -0.1674938052892685, -0.039855848997831345, -0.7509629130363464, 0.5422272682189941, 0.7315670251846313, -0.04790743812918663, -0.41659525036...
of the various terms of service, this would definitely be violating the terms of service. On top of this, Yahoo! was definitely one of the sites we were considering and their users have email (where we could get access to sensitive data), and Yahoo! wallet. In addition, it would be pretty trivial for Yahoo/ESPN/CBS to ...
[ 0.5759913325309753, -0.009507833048701286, 0.44372257590293884, 0.22818849980831146, -0.022053204476833344, -0.4928410053253174, 0.16763858497142792, 0.1553589105606079, 0.008409489877521992, -0.3896792232990265, 0.13937795162200928, 0.1623505800962448, -0.19354604184627533, -0.06124649196...
could parse the data and load our database. If they were still logged into their Yahoo/ESPN/CBS account, we would direct them directly to the pages, otherwise, those sites would prompt for authentication. Clicking the bookmarklet once more, would post the page to our servers. The pros of this approach was that we neve...
[ 0.5394073128700256, 0.11905348300933838, 0.3312106430530548, 0.29940250515937805, 0.011745428666472435, -0.39661675691604614, 0.081948421895504, -0.18635308742523193, 0.06954796612262726, -0.3344695270061493, 0.11097381263971329, 0.14011433720588684, -0.14199204742908478, 0.139668941497802...
browser to our server. The problems with this is that it takes 2 clicks to post a page to our site. For head to head leagues, we needed 3-4 pages so it would take our user 6-8 clicks to sync their league to our servers. We're still looking at options for this. One important note is that I ran into the product manager...
[ 0.42773985862731934, 0.052866432815790176, 0.5644499063491821, 0.24964173138141632, 0.045726075768470764, -0.4046143591403961, 0.42709317803382874, 0.2503167986869812, -0.11357969045639038, -0.9929357171058655, 0.4851994514465332, 0.18658126890659332, -0.2409597933292389, 0.049244582653045...
don't think they would have, it would have made it hard to invest time and energy to develop this only to have them block our site and pissing of users by closing their accounts.
[ 0.7579203248023987, 0.4669269025325775, 0.11878245323896408, 0.14348924160003662, 0.23741993308067322, -0.16946016252040863, 0.5357992649078369, 0.27634698152542114, 0.047973960638046265, -0.15496890246868134, 0.4123711585998535, 0.33981582522392273, 0.03638449311256409, 0.1139620393514633...
What is the difference between a single precision floating point operation and double precision floating operation? I'm especially interested in practical terms in relation to video game consoles. For example, does the Nintendo 64 have a 64 bit processor and if it does then would that mean it was capable of double pre...
[ -0.006917765364050865, 0.010682066902518272, 0.040673501789569855, 0.4209648668766022, -0.02122456021606922, -0.0628054067492485, -0.4356459379196167, -0.09735656529664993, -0.2828041911125183, -0.023498088121414185, 0.16905605792999268, 0.3742032051086426, -0.17831571400165558, -0.1300812...
of the chip's 32-bit processing mode as the greater data precision available with 64-bit data types is not typically required by 3D games, as well as the fact that processing 64-bit data uses twice as much RAM, cache, and bandwidth, thereby reducing the overall system performance. From [Webopedia](http://www.webopedia...
[ 0.47721755504608154, 0.12624885141849518, 0.05814144387841225, -0.05060487985610962, -0.11777166277170181, 0.13016341626644135, 0.0055378940887749195, -0.3961937129497528, -0.30443012714385986, -0.1868029087781906, -0.24975642561912537, 0.11029373854398727, -0.41844823956489563, 0.01996854...
bits, its double-precision counterpart will be 64 bits long. > > > The extra bits increase not only the precision but also the range of magnitudes that can be represented. > > The exact amount by which the precision and range of magnitudes are increased depends on what format the program is using to represent flo...
[ 0.22165019810199738, 0.10433425009250641, 0.4285772144794464, 0.29465198516845703, -0.18893587589263916, 0.19844025373458862, -0.018621113151311874, -0.24138160049915314, -0.20728518068790436, -0.3099234104156494, -0.13659240305423737, 0.23127344250679016, 0.019732551649212837, 0.046452809...
standard for floating point arithmetic](https://web.archive.org/web/20120325162206/http://www.psc.edu/general/software/packages/ieee/ieee.php) **Single Precision** The IEEE single precision floating point standard representation requires a 32 bit word, which may be represented as numbered from 0 to 31, left to right....
[ 0.03464825823903084, 0.29885444045066833, 0.539689838886261, 0.14099858701229095, -0.3041079044342041, 0.3331950604915619, -0.09775353968143463, -0.44013163447380066, -0.28748568892478943, -0.020405257120728493, -0.03740208223462105, -0.004849827848374844, 0.016358908265829086, 0.013193472...
E=255 and F is nonzero, then V=NaN ("Not a number") * If E=255 and F is zero and S is 1, then V=-Infinity * If E=255 and F is zero and S is 0, then V=Infinity * If `0<E<255` then `V=(-1)**S * 2 ** (E-127) * (1.F)` where "1.F" is intended to represent the binary number created by prefixing F with an implicit leading 1 a...
[ -0.044260766357183456, -0.2181403934955597, 0.3004992604255676, -0.09775623679161072, -0.034617260098457336, 0.27491462230682373, 0.023936450481414795, -0.3885665535926819, -0.0365707129240036, -0.228840172290802, -0.4949456751346588, 0.539801836013794, -0.14522665739059448, 0.056130312383...
S is 0, then V=0 In particular, ``` 0 00000000 00000000000000000000000 = 0 1 00000000 00000000000000000000000 = -0 0 11111111 00000000000000000000000 = Infinity 1 11111111 00000000000000000000000 = -Infinity 0 11111111 00000100000000000000000 = NaN 1 11111111 00100010001001010101010 = NaN 0 10000000 00000000000000...
[ -0.03285270556807518, 0.1445636749267578, 0.23412570357322693, -0.12927395105361938, -0.3576006591320038, 0.3425323963165283, 0.1782180815935135, -0.5112779140472412, -0.28335657715797424, -0.7210818529129028, -0.08198654651641846, 0.27671605348587036, -0.13555850088596344, 0.1091322973370...
0.00000000000000000000001 = 2**(-149) (Smallest positive value) ``` **Double Precision** The IEEE double precision floating point standard representation requires a 64 bit word, which may be represented as numbered from 0 to 63, left to right. * The first bit is
[ 0.1786784678697586, 0.4054616093635559, 0.44204309582710266, 0.006502721458673477, 0.007963274605572224, 0.3857104182243347, -0.08363565057516098, -0.22242572903633118, -0.1473296731710434, -0.09575966745615005, -0.02594764158129692, -0.15847274661064148, -0.030044255778193474, 0.315763831...
the **sign** bit, S, * the next eleven bits are the **exponent** bits, 'E', and * the final 52 bits are the **fraction** 'F': ``` S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0 1 11 12 63 ``` The value V represented by the word may be determ...
[ 0.14978072047233582, 0.04442491754889488, 0.7380169034004211, -0.31131890416145325, 0.12769155204296112, 0.4388462007045746, 0.4651229977607727, -0.3202589750289917, 0.08416306227445602, -0.3326493203639984, -0.4972098767757416, 0.547697901725769, -0.010389921255409718, 0.09286852926015854...
V=NaN ("Not a number") * If E=2047 and F is zero and S is 1, then V=-Infinity * If E=2047 and F is zero and S is 0, then V=Infinity * If `0<E<2047` then `V=(-1)**S * 2 ** (E-1023) * (1.F)` where "1.F" is intended to represent the binary number created by prefixing F with an implicit leading 1 and a binary point. * If E...
[ 0.20298713445663452, -0.14418615400791168, 0.688299834728241, -0.13571865856647491, 0.14745524525642395, 0.33711567521095276, 0.05996887758374214, -0.40839049220085144, -0.1702757328748703, -0.28876689076423645, -0.22053837776184082, 0.5456655025482178, -0.036523714661598206, 0.32560133934...
ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic.
[ -0.4232350289821625, 0.28523027896881104, 0.015552038326859474, -0.08109589666128159, -0.20688533782958984, 0.43390482664108276, -0.33530354499816895, 0.11491513252258301, -0.3703514337539673, 0.4055802822113037, -0.006601250264793634, 0.04966636747121811, -0.12867553532123566, -0.01657767...
i've been reading through the linq to xml documentation in msdn and some other tutorials and yet i failed to find the right way to do this query as of now :( Basically, i want to loop through each student in the class, for each question, keep a counter of individual skill, i.e. for student 123, the tally should be 001...
[ 0.5530499815940857, 0.446961373090744, 0.28417107462882996, 0.19175885617733002, -0.13123396039009094, 0.11341477185487747, 0.2915390729904175, -0.33597531914711, -0.26626989245414734, -0.3018971383571625, -0.3362569212913513, 0.16248765587806702, 0.21709983050823212, -0.2054472118616104, ...
<question id="101" correct="1"> <skill id="001.101.033.002.001" topicId="033" subtopicId="002" subtopicdesc="Launching a browser" topicdesc="Point and Click">Able to recognize and use desktop icon</skill> <skill id="001.101.035.002.001" topicId="035" topicDesc="Typing" subtopicId="002" subtopic...
[ -0.4418983459472656, -0.00878437701612711, 0.5255035161972046, 0.3075644373893738, -0.2234801948070526, -0.01935376226902008, 0.43291541934013367, -0.1257891058921814, -0.271209716796875, -0.974924623966217, -0.5442648530006409, 0.3369249701499939, 0.12037236243486404, -0.4524410367012024,...
to recognize and use the mouse</skill> <skill id="001.101.035.002.001" topicId="035" topicDesc="Typing" subtopicId="002" subtopicDesc="Using Words">Able to write on screen</skill> </question> </student> <student id="124" name="Tim Robbins"> <question id="103" correct="1"> ...
[ -0.17426733672618866, 0.26952511072158813, 0.28487077355384827, 0.25250717997550964, -0.01711258850991726, 0.06066872924566269, 0.4915924072265625, 0.0028270867187529802, -0.16696007549762726, -0.856176495552063, -0.39906737208366394, 0.38975992798805237, 0.2512418329715729, -0.58497017621...
<skill id="001.101.035.002.001" topicId="035" topicDesc="Typing" subtopicId="002" subtopicDesc="Using Words">Able to write on screen</skill> </question> <dtasResult> <skill id="001.101.033.002.002" result="weak" /> <skill id="001.101.033.002.002" result="strong" /> <...
[ -0.08213607966899872, 0.11942020803689957, 0.43598487973213196, -0.047085367143154144, -0.08852384239435196, 0.026791255921125412, 0.4471149444580078, -0.11994192749261856, 0.17721448838710785, -1.0247619152069092, -0.2689301669597626, 0.43940091133117676, 0.5121932625770569, -0.3347163498...
XElement root = XElement.Load(fileLocation); IEnumerable<XElement> students = root.Elements("class").Elements("student"); string currentStudentId = ""; foreach (XElement student in students)
[ -0.05712289363145828, -0.16526323556900024, 0.17965611815452576, 0.049470894038677216, 0.4090884029865265, 0.22859349846839905, 0.1397562175989151, -0.0448351688683033, -0.03591719642281532, -0.5172346234321594, -0.44850558042526245, -0.16961784660816193, -0.09633643925189972, 0.1814690530...
{ currentStudentId = student.Attribute("id").ToString(); //this code chunk below doesn't work! XElement questions = root.Descendants("question")
[ 0.059019070118665695, -0.4777495861053467, 0.40900149941444397, 0.281838983297348, 0.5078341364860535, 0.06125178933143616, 0.322579950094223, -0.21820800006389618, 0.020291823893785477, -0.4704834818840027, -0.030631717294454575, 0.15068210661411285, -0.12812116742134094, 0.13997367024421...
.Where(question => question.Attribute("")); Console.WriteLine(student.DescendantsAndSelf("question"));
[ -0.2966853380203247, -0.2735622227191925, 0.5188804268836975, 0.11748180538415909, 0.5003843903541565, 0.1803068220615387, 0.10481929033994675, -0.15760686993598938, 0.12751589715480804, -0.5551442503929138, -0.5351617336273193, 0.027957120910286903, 0.24804218113422394, 0.3004746735095978...
Console.WriteLine(); Console.WriteLine(); } ``` i have yet to figure out how to do the looping for each question per student.. and the code in the middle of the foraech doesn't work!! Updates: -------- if i wanted to calculate the total question per student, how would i b...
[ 0.032112687826156616, 0.17371053993701935, 0.43801069259643555, 0.1976042240858078, 0.03832434490323067, -0.002179168164730072, 0.30554720759391785, -0.08091575652360916, 0.06860142946243286, -0.5239590406417847, -0.22988322377204895, 0.5216203331947327, -0.022919422015547752, -0.067959055...
your query above to do so? i try grp.Count(z => z.Correct) and other method but i can't get it right thanks :) Second edit re comment; I think this does what you want... ``` var qry = from cls in doc.Root.Elements("class") from student in cls.Elements("student") from question in student.Elements("q...
[ 0.009429991245269775, -0.07959285378456116, 0.3349291980266571, 0.13290239870548248, 0.25223657488822937, 0.09991186112165451, 0.1696912795305252, -0.3539296090602875, 0.030408602207899094, -0.5832972526550293, -0.11953585594892502, 0.4674132466316223, 0.07489984482526779, 0.04444091394543...
Student = (int)student.Attribute("id"), Skill = (string)skill.Attribute("id"), Correct = (int)question.Attribute("correct") } into denorm group denorm by new { denorm.Student, denorm.Skill } into grp
[ -0.39663851261138916, -0.028053173795342445, 0.19765718281269073, 0.015496857464313507, 0.13696390390396118, 0.6039365530014038, -0.06091110780835152, -0.646051824092865, -0.04858817905187607, -0.3839164972305298, -0.6114274859428406, 0.10781620442867279, 0.12374544143676758, 0.14503672719...
orderby grp.Key.Student, grp.Key.Skill select new { grp.Key.Student, grp.Key.Skill, Tally = grp.Sum(x => x.Correct) }; foreach (var row in qry) { Console.WriteLine("{0}\t{1}\t{2}", row.Student, row.Skill, row.Tally); } ```
[ -0.4149352014064789, -0.06512979418039322, 0.5968825817108154, -0.23178210854530334, 0.36385178565979004, 0.3924599587917328, 0.2240612953901291, -0.4578428864479065, -0.05290738865733147, -0.48015594482421875, -0.5401724576950073, 0.25713294744491577, -0.04814430698752403, 0.3396632075309...
In NUnit 2.5 you can do this: ``` [TestCase(1,5,7)] public void TestRowTest(int i, int j, int k) { Assert.AreEqual(13, i+j+k); } ``` You can do parametric test. But I wonder whether you can do this or not, parametric test with generic test method? I.e.: ``` [TestCase <int>("Message")] public void TestRowTestGene...
[ 0.025789083912968636, -0.22753509879112244, 0.36824890971183777, 0.07158630341291428, -0.5563945174217224, -0.17764702439308167, 0.640938401222229, -0.39220547676086426, 0.17656461894512177, -0.2905527949333191, -0.181939035654068, 0.42919474840164185, -0.15574531257152557, 0.0947188138961...
possible to have generic test method in non-generic class. How? I don't quite understand Jeff's comment. In .net generics is both compile-time and run-time. We can use the reflection to find out the test case attribute associated with a method, find out the generic parameter, and again use reflection to call the gener...
[ 0.2999672293663025, -0.2173512876033783, 0.2296237349510193, 0.2529296875, -0.09817878156900406, -0.36996889114379883, 0.6213558912277222, -0.3120838701725006, 0.07729044556617737, -0.6964605450630188, 0.04884030297398567, 0.6029397249221802, -0.27434685826301575, 0.2795174717903137, -0....
I migth have another question about SSL. I have a Smart Client and I deploy it using ClickOnce. In this Smart Client application, I call a HTTPS Web Service. I need so to install a Trusted Root Certification Authorities to give access to this HTTPS Web Service. Let's say that I want to keep it fully "ClickOnce", mean...
[ 0.6288357973098755, 0.13358010351657867, 0.38049501180648804, -0.04103079438209534, -0.08863304555416107, -0.5779708623886108, 0.2131415605545044, 0.21092535555362701, -0.3675464391708374, -0.8601517677307129, -0.21577250957489014, 0.5867457985877991, -0.2599586546421051, 0.014064914546906...
to the Smart Client. I would include it in the package and will be the first thing to be installed. My problem is : As I read on the Internet, there is no way I could install a "Trusted Root Certification Authorities" without having Admin Rights on the client machine is it right? if it's right, do you see another ...
[ 0.5847032070159912, 0.0454341359436512, 0.3324006497859955, 0.31379881501197815, 0.3324495851993561, -0.3427766263484955, 0.15142673254013062, -0.006536772940307856, -0.028490770608186722, -0.4284771680831909, -0.015283666551113129, 0.7284736037254333, -0.09472975879907608, -0.135837689042...
concept. Untrusted certificates can't magically become trusted without explicit action from the user. > I guess, If I get a CA from one of the > Root Certification Authorities which > are already in the Trusted Root > Certification Authorities (Thawte,...) > , it should work ? I'm assuming by "CA" you actually me...
[ 0.7607592344284058, 0.21448807418346405, 0.2888295650482178, 0.3459359109401703, 0.16524435579776764, -0.4331390857696533, 0.38733971118927, -0.12999646365642548, -0.0637592226266861, -0.09578023850917816, -0.06468290835618973, 0.470978319644928, 0.27504685521125793, 0.10924398899078369, ...
The two functions in openCV cvLoadImage and cvSaveImage accept file path's as arguments. For example, when saving a image it's **cvSaveImage("/tmp/output.jpg", dstIpl)** and it writes on the disk. Is there any way to feed this a buffer already in memory? So instead of a disk write, the output image will be in memory...
[ 0.10191811621189117, -0.26493510603904724, 0.5303044319152832, -0.04879488795995712, -0.3913063406944275, -0.06442678719758987, -0.05286640673875809, 0.005689558107405901, -0.10610590875148773, -0.6807466745376587, -0.05359886214137077, 0.8969871997833252, -0.2644111216068268, 0.0730170607...
IplImage format. There are a couple of undocumented functions in the SVN version of the libary: ``` CV_IMPL CvMat* cvEncodeImage( const char* ext, const CvArr* arr, const int* _params ) CV_IMPL IplImage* cvDecodeImage( const CvMat* _buf, int iscolor ) ``` Latest check in message state...
[ -0.021528210490942, -0.10916905105113983, 0.7246490120887756, 0.12619219720363617, -0.21227340400218964, 0.09082526713609695, 0.0194313395768404, -0.19087202847003937, -0.23044787347316742, -0.5828427672386169, -0.20269465446472168, 0.438058465719223, -0.3953383266925812, 0.021135399118065...
to match the input structure of the encoding library.
[ -0.00707923574373126, -0.045109596103429794, -0.01633130945265293, 0.0345032773911953, 0.09742937982082367, 0.4708883762359619, -0.2148742824792862, -0.12124869227409363, 0.12921756505966187, -0.6322581768035889, -0.3448421061038971, 0.37568098306655884, -0.2004949301481247, -0.25221964716...
Have written all the code in a silverlight class library (dll) and linked this same library to my web app and silverlight app, is there a way to avoid the "Compiler Error Message: CS0433" or do I have to create a separate dll for the web app? Error mostly occurs when XElement is called... Well I don't know how exactly...
[ 0.5508792400360107, 0.472195565700531, -0.14737626910209656, 0.18092744052410126, -0.34557318687438965, -0.06777490675449371, 0.31475305557250977, 0.1715889722108841, -0.24754545092582703, -0.599149227142334, 0.17348507046699524, 0.5690056681632996, -0.25902822613716125, 0.0420470535755157...
it would be nicer to just link to the correct URL. There might be other effects, and the URL might not work in the future.
[ 0.5591842532157898, -0.15739373862743378, 0.24540309607982635, 0.5447841286659241, -0.23442134261131287, -0.2037009447813034, 0.08660416305065155, 0.3219415247440338, -0.0731668770313263, -0.24277009069919586, 0.10085724294185638, 0.14668568968772888, -0.09446023404598236, 0.46700844168663...
In PHP, I would do this to get `name` as an array. ``` <input type"text" name="name[]" /> <input type"text" name="name[]" /> ``` Or if I wanted to get `name` as an associative array: ``` <input type"text" name="name[first]" /> <input type"text" name="name[last]" /> ``` What is the Django equivalent for such thing...
[ -0.0018580512842163444, 0.25326788425445557, 0.6368259787559509, -0.3211041986942291, -0.8384755849838257, -0.10109703987836838, 0.0398729108273983, -0.3245694637298584, -0.07593993842601776, -0.3045283854007721, -0.13382463157176971, 0.39497533440589905, -0.354093462228775, -0.09192172437...
Say we have two aggregate roots in a domain model: Group and User. Now, Users can be added to or removed from groups. Using the repository pattern, I only modelled the following two interfaces so far: ``` interface IGroupRepository { Group FindById(int groupId); } interface IUserRepository { User FindById(int...
[ -0.14058472216129303, 0.02049330249428749, 0.37420159578323364, 0.08952543139457703, -0.23817229270935059, 0.09120161086320877, 0.07054514437913895, -0.14692433178424835, -0.10469572991132736, -0.7816051244735718, 0.1182246059179306, 0.314512699842453, -0.39621150493621826, 0.2914243936538...
the above? **EDIT:** The root question here seems to be, is it OK with DDD's guidelines to treat User as a 'sub-object' while it at the same time is an aggregate root as well? As I understood DDD, it states that aggregate roots must only be retrieved and stored from one place (the repository) so that's why I get a bit...
[ 0.11939090490341187, 0.01074276678264141, 0.030625425279140472, -0.14391355216503143, -0.3007540702819824, -0.0936659574508667, 0.33501988649368286, -0.2571541666984558, -0.25652220845222473, -0.3434939682483673, 0.10717330127954483, 0.25565481185913086, -0.36859530210494995, 0.31330093741...
members.Add(user); } void Leave(User user) { members.Remove(user); } } ``` A decent ORM will track the changes to the members list and persist those to the database. This would enable your interfaces to be simplified to: ``` interface IGroupRepository { Group FindById(int groupId); } i...
[ -0.28142064809799194, -0.09578385949134827, 0.6199573874473572, -0.22983546555042267, -0.26213136315345764, -0.2403022199869156, 0.3358476161956787, -0.32543841004371643, -0.3112383484840393, -0.7703215479850769, 0.007556228898465633, 0.3572648763656616, -0.5024505853652954, 0.145112395286...
I know that using SharePoint internally is free, but what if I create an application that will provide some of the data stored in SharePoint externally? Is it legal way to do things or do I have to pay for full SP licence to do that? The cheapest option in your case may be to install WSS + Sql Server 2008 Express on Wi...
[ 0.29830148816108704, 0.30197587609291077, 0.438918799161911, 0.16803081333637238, -0.0798705667257309, -0.19863919913768768, 0.2983282506465912, -0.06912477314472198, -0.13238339126110077, -0.3092848062515259, 0.25052785873413086, 0.5633283257484436, 0.0064423829317092896, 0.13439212739467...
> Duplicate > --------- > > > [How do I adjust the brightness of a color?](https://stackoverflow.com/questions/737217/how-do-i-adjust-the-brightness-of-a-color) > > [How do I determine darker or lighter color variant of a given color?](https://stackoverflow.com/questions/97646/how-do-i-determine-darker-or-lighter-...
[ -0.011634944938123226, 0.08532717078924179, 0.6317078471183777, -0.1902422308921814, 0.23471222817897797, 0.04099501669406891, -0.00010750916408142075, -0.32934123277664185, -0.37966102361679077, -0.6656837463378906, -0.3368150293827057, 0.5503653287887573, -0.2738412022590637, -0.03854950...
I have a ASP.net application that is referencing a external assembly that I need to dynamically load and discover any types implementing a known interface. The problem I am having is that the type I reflect does not match the same interface that is running and so I cannot cast it. Example: This code is run in ASP.net...
[ 0.44013532996177673, 0.2624723017215729, 0.5647836923599243, -0.430044025182724, -0.27491214871406555, 0.20598918199539185, 0.4863741397857666, -0.5753888487815857, -0.023026391863822937, -0.7408741116523743, 0.1971428394317627, 0.36504390835762024, -0.231966033577919, 0.24942386150360107,...