text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm just wondering how other developers tackle this issue of getting 2 or 3 answers from a method. 1) return a object[] 2) return a custom class 3) use an out or ref keyword on multiple variables 4) write or borrow (F#) a simple Tuple<> generic class <http://slideguitarist.blogspot.com/2008/02/whats-f-tupl...
[ 0.10632149875164032, -0.04494621604681015, 0.685325562953949, 0.10781845450401306, -0.3695002794265747, 0.07620660960674286, 0.23473738133907318, -0.04205206409096718, -0.40556806325912476, -0.43027839064598083, 0.09352965652942657, 0.5552117824554443, -0.1542425900697708, -0.1117526069283...
from open source .NET projects on this topic? Your question points to the possibility that you'll be returning more data in the future, so I would recommend implementing your own class to contain the data. What this means is that your method signature will remain the same even if the inner representation of the object...
[ 0.6271992921829224, -0.10303537547588348, -0.10317563265562057, 0.21253752708435059, -0.02553504705429077, -0.35035064816474915, 0.11452823132276535, -0.06699521839618683, -0.3434322774410248, -0.5989519357681274, 0.09969166666269302, 0.4954836368560791, 0.08253087848424911, 0.193464860320...
I'm using the Belltown theme in a sharepoint portal and there are some styles that I want to change change in the Belltown stylesheet. I thought that I could just edit the theme.css file located at: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\THEMES\BELLTOWN and restart the web se...
[ 0.7592528462409973, 0.09343718737363815, 0.596581757068634, 0.07801970839500427, -0.09983757138252258, -0.11805102974176407, 0.24917875230312347, 0.039195332676172256, -0.3016831874847412, -0.6524186730384827, 0.1544812172651291, 0.17048804461956024, -0.027693264186382294, 0.55116599798202...
the TEMPLATE\THEMES\ *THEME FOLDER* to the site. The other option would have been to point Sharepoint Designer at the site and modify the styles there which would apply them direct.
[ 0.3430604040622711, -0.24575592577457428, 0.3443618416786194, 0.16141286492347717, 0.025181476026773453, -0.34481081366539, 0.02890964224934578, -0.2222488522529602, -0.14815296232700348, -0.6313387751579285, -0.2668030560016632, 0.35902705788612366, -0.47017380595207214, 0.268727511167526...
I am using SubSonic 2.1 Final but having problems running "Version" with the SubCommander. I think this problem began when I installed SQL Server 2008 on my local machine and removed 2005. This is the error I get: ``` ERROR: Trying to execute Version Error Message: System.IO.FileNotFoundException: Could not load file...
[ -0.03024047613143921, 0.21326206624507904, 0.6545283198356628, -0.13867005705833435, -0.4052625000476837, -0.2406919300556183, 0.7880234718322754, -0.17906294763088226, 0.06925936043262482, -0.30842116475105286, -0.04481610655784607, 0.338408887386322, -0.2984273433685303, 0.11414396017789...
key) at Microsoft.SqlServer.Management.Smo.DatabaseCollection.get_Item(String name) at SubSonic.SubCommander.DBScripter.ScriptSchema(String connectionString) in C:\svn\subsonicproject\trunk\SubCommander\DBScripter.cs:line 51 at SubSonic.SubCommander.Program.ScriptSchema() in C:\svn\subsonicproject\trunk\SubCom...
[ -0.146541029214859, -0.08861108124256134, 0.5295003056526184, 0.16772978007793427, 0.14258646965026855, -0.23833654820919037, 0.4194459915161133, -0.08265193551778793, -0.11634793132543564, -0.8336103558540344, -0.24310453236103058, 0.6357539892196655, -0.09334981441497803, 0.1594179272651...
I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications reference it, right? After the resource as...
[ 0.3367275595664978, 0.3326590061187744, 0.37238380312919617, -0.12450915575027466, 0.14933037757873535, 0.13768017292022705, 0.06091303750872612, -0.1433817595243454, -0.2614084482192993, -0.9798746109008789, -0.024831095710396767, 0.4283280074596405, -0.35881927609443665, 0.02078607678413...
What is the optimum number of projects in a Visual Studio 2008 solution? We have one Visual Studio 2008 solution that is around 50 projects right now. It will likely continue to grow as the bulk of the projects within the solution consist of plugin assemblies for the main application. If it seems like "too many proje...
[ 0.06918347626924515, 0.08050842583179474, 0.09383198618888855, 0.23385882377624512, -0.09969855099916458, 0.2885567545890808, 0.1346791386604309, -0.2083609402179718, -0.41100719571113586, -0.41217952966690063, 0.1325606107711792, 0.44608137011528015, -0.3563604950904846, -0.17999468743801...
grow, how should solutions be structured? Should all of the plugins be placed in their own solution? How should the organization change when the number of plugins in the plugins solution hits the magic number of "too many"? We don't have any issues with this many projects in the solution ... it loads quickly, it build...
[ 0.3739917576313019, 0.08956526964902878, 0.25088924169540405, 0.3957163691520691, 0.29870250821113586, -0.11590374261140823, 0.28262650966644287, -0.10495152324438095, -0.485927015542984, -0.6386746168136597, 0.03721655160188675, 0.4497569799423218, -0.038848210126161575, 0.205857068300247...
"place all projects in a single solution." Both extremes seem to be absurd. I'm looking for some reasonable guidance in the middle. There have been other questions on Stackoverflow related to the [maximum](https://stackoverflow.com/questions/18871/what-is-the-biggest-vs-solution-youve-ever-seen) you've seen. That's no...
[ 0.019073911011219025, -0.18700455129146576, 0.04606671631336212, 0.19462302327156067, -0.06743357330560684, 0.1822153478860855, -0.10325145721435547, -0.09876954555511475, -0.6048746705055237, -0.793550968170166, -0.03090793453156948, 0.22577005624771118, -0.0442732609808445, 0.25285598635...
make your life easier, and to allow you (and your team) to break the overall project into managable conceptual chunks. If VS2008 isn't complaining, and you and your developers have no problem with 50 projects in one solution then I would not worry about it. That said, it does sound like a rather large number - but th...
[ 0.4363235533237457, -0.04470543935894966, -0.10236742347478867, 0.34384045004844666, -0.18448616564273834, -0.12952068448066711, 0.3470185697078705, 0.14000575244426727, -0.5071333050727844, -0.46087977290153503, 0.055028896778821945, 0.4370381534099579, 0.19694232940673828, -0.12336244434...
Why would the following query return "Error converting data type varchar to bigint"? Doesn't IsNumeric make the CAST safe? I've tried every numeric datatype in the cast and get the same "Error converting..." error. I don't believe the size of the resulting number is a problem because overflow is a different error. The...
[ -0.11755924671888351, 0.09262953698635101, 0.09841746091842651, -0.04120834916830063, -0.3079504072666168, 0.0759926587343216, 0.31245651841163635, -0.4057653546333313, 0.08211226016283035, -0.5000929832458496, -0.04418541491031647, 0.6473464369773865, -0.29545262455940247, 0.1777658164501...
the varchar value can be converted to ANY number type. This includes int, bigint, decimal, numeric, real & float. Scientific notation could be causing you a problem. For example: ``` Declare @Temp Table(Data VarChar(20)) Insert Into @Temp Values(NULL) Insert Into @Temp Values('1') Insert Into @Temp Values('1e4') Ins...
[ 0.09757731109857559, -0.2248401790857315, 0.7004235982894897, -0.13336221873760223, -0.40821656584739685, 0.2301318496465683, 0.23215661942958832, -0.4468046724796295, 0.12370579689741135, -0.41136181354522705, 0.29094088077545166, 0.7028252482414246, -0.17108263075351715, 0.04179693013429...
'.0e0') = 1 AND myVarcharColumn IS NOT NULL GROUP BY myVarcharColumn ```
[ -0.30156317353248596, 0.3417007327079773, 0.44443514943122864, -0.3563987910747528, -0.35625240206718445, -0.05733267962932587, 0.217048779129982, -0.5853380560874939, 0.25165271759033203, -0.23690423369407654, -0.31539419293403625, 0.1780887395143509, -0.26279860734939575, 0.5707184076309...
Taking advice from [this post](http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read), I purchased a copy of 'The C Programming Language' and am happily reading my way through. However, all the stuff I've written in the past has been interpreted, and I have no i...
[ 0.5801001787185669, 0.2892007827758789, -0.07922586053609848, 0.07063563913106918, -0.30854934453964233, -0.5376168489456177, 0.03444049879908562, 0.1808490753173828, -0.22530749440193176, -0.29078999161720276, -0.01103582140058279, 0.4523060917854309, 0.18816544115543365, -0.1616581827402...
pretty much *the* IDE for PHP), or at least one that is generally considered to be a good quality product. Well, Visual Studio is the standard on Windows, and there are free versions available. However it does have a bunch of Microsoft specific extensions. For learning though, developing console apps are pretty easy an...
[ 0.39907127618789673, 0.16908395290374756, 0.27229854464530945, 0.24757492542266846, -0.3160850703716278, -0.5160031914710999, 0.07933446019887924, 0.3906997740268707, -0.18123245239257812, -0.5277560949325562, 0.1521415412425995, 0.7340956926345825, -0.08535083383321762, -0.103461764752864...
for free these days at <http://www.openwatcom.org/index.php/Main_Page> I'd probably recommend starting with that, if your main O/S is Windows. Edit: [new live url](http://www.openwatcom.org/)
[ 0.9430516362190247, -0.20018239319324493, 0.07137306034564972, 0.03177696838974953, -0.2351604849100113, -0.35647767782211304, 0.6813822984695435, 0.2980031371116638, -0.38282495737075806, -0.6601235866546631, -0.31438782811164856, 0.38480788469314575, -0.2503468096256256, 0.26991057395935...
According to *Cocoa Programming for Mac OS X, 3rd Edition,* on page 202 (chapter 13): > You will be registering, reading, and > setting defaults in several classes in > your application. To make sure that > you always use the same name, you > should declare those strings in a > single file and then simply #import...
[ 0.04018444940447807, 0.23808042705059052, 0.020099958404898643, -0.08157823234796524, 0.03383814916014671, -0.13683539628982544, 0.1889529675245285, 0.055367887020111084, -0.44344401359558105, -0.664696991443634, -0.4999091327190399, 0.40372028946876526, -0.5247982740402222, -0.02842795290...
purpose. Is this really the correct best practice? Global variables? That seems insane to me – counter to everything I’ve ever been taught. Would a better design be a simple Singleton class with these defined? Or is it really the correct best practice to go global? Is there a better pattern than either, given that ma...
[ 0.2397187203168869, 0.16456107795238495, -0.20957539975643158, 0.13762804865837097, -0.11362224817276001, -0.02100054919719696, 0.3487916886806488, -0.042201679199934006, -0.47919270396232605, -0.3726619780063629, -0.06694723665714264, 0.6411710977554321, -0.15196041762828827, -0.000313278...
purpose. Global variables are a bit easier though seeing as it requires less typing. Instead of doing this: ``` [myArray setObject:theObject forKey:MyGlobalVariableKeyName]; ``` You'd have to do something along the lines of: ``` [myArray setObject:theObject forKey:[[MySingletonVariableClass getInstanc...
[ -0.2795794606208801, -0.15511605143547058, 0.3395550847053528, 0.09338347613811493, -0.3797926902770996, -0.3556671440601349, 0.4050844609737396, 0.1590908318758011, -0.4239450991153717, -0.6063222289085388, -0.16397126019001007, 0.6354139447212219, -0.48651501536369324, -0.048140686005353...
To me at least, the Pair class is a very multi-purpose class. So why did Microsoft put it into the System.Web.UI namespace? Is there a reason that my tiny brain cannot comprehend? Thanks. I don't think you're going to find a great reason. It seems as though it was first created by the web team, so they made it in the...
[ 0.31304696202278137, -0.4427962005138397, 0.2688201367855072, 0.16191516816616058, -0.39118459820747375, -0.05382956564426422, 0.17551545798778534, -0.1082257553935051, -0.10203935205936432, -0.9661247134208679, -0.17492137849330902, -0.021396338939666748, -0.4801027476787567, 0.2557618916...
configuration section handlers. > > ... > > The **Pair** class can be used in several ways in page state persistence implementations. The most common use is as a container for both the [ViewState](http://msdn.microsoft.com/en-us/library/system.web.ui.control.viewstate.aspx) and [ControlState](http://msdn.micros...
[ -0.020724529400467873, -0.499573677778244, 0.2523229122161865, 0.19305026531219482, 0.07883217185735703, 0.24901308119297028, -0.2670888304710388, -0.2774544656276703, -0.31909310817718506, -0.9020664691925049, -0.1773957908153534, 0.26781314611434937, -0.5656598806381226, 0.46732455492019...
I have a `TextCtrl` in my wxPython program and I'd like to set its width to exactly 3 characters. However, the only way to set its size manually accepts only numbers of pixels. Is there any way to specify characters instead of pixels? Realize that most fonts are proportional, which means that each character may take a ...
[ 0.16905935108661652, -0.14537157118320465, 0.7290083169937134, -0.0077672190964221954, -0.3009716272354126, 0.2641175091266632, 0.19727325439453125, -0.12038972973823547, -0.20403017103672028, -0.8544206023216248, 0.06745515763759613, 0.4423690438270569, -0.17993472516536713, -0.0863036364...
which font is selected in the text box. If you still want to try this, the key is to get the width of a character in pixels, multiply it by the number of characters, then add some padding for the borders around the characters. You may find this to be a good starting point: <http://docs.wxwidgets.org/stable/wx_wxdc.ht...
[ 0.02719307318329811, -0.3428155779838562, 0.7390483021736145, -0.06643100827932358, -0.13083329796791077, 0.25366654992103577, -0.005647829733788967, -0.4212131202220917, -0.21975085139274597, -0.7816401124000549, 0.002284380840137601, 0.35211530327796936, -0.07776366919279099, -0.14400365...
everybody; I have this problem in asp.net, I have a page where I insert and modify data, before saving I make a validation if it passes I save the data but if not I raise an exception and show it, the function goes like this; ``` protected void btnSave_Click(object sender, EventArgs e) { try { ... if(ValidData()) //...
[ 0.32964402437210083, 0.017586911097168922, 0.345824658870697, -0.2332286685705185, 0.06630906462669373, -0.29675936698913574, 0.4702073335647583, -0.17207156121730804, -0.42713385820388794, -0.5739480257034302, -0.366940438747406, 0.7268806099891663, -0.5344998836517334, -0.065200269222259...
message and its annoying. Even when the data is saved I click again and it shows the message from the exception again. Do you know the answer for this issue? If JSLiteral is a server side control and it's using view state. Then you'd need to clear the state of the control, when the save is succesful. You could disab...
[ 0.035035647451877594, -0.24264323711395264, 0.4849241077899933, 0.0050687226466834545, 0.0126707274466753, -0.0739704966545105, 0.6198265552520752, 0.18658651411533356, -0.10278064757585526, -0.7394656538963318, -0.07444583624601364, 0.6320250630378723, -0.5995542407035828, 0.0514598041772...
I'd like to store a simple key/value string dictionary in my web config file. Visual Studio makes it easy to store a string collection(see sample below) but I'm not sure how to do it with a dictionary collection. ``` <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3....
[ 0.14439381659030914, 0.2633700370788574, 0.26123058795928955, -0.09439373761415482, -0.1880301982164383, 0.08528700470924377, -0.022683430463075638, -0.4458734095096588, -0.07560007274150848, -0.5261471271514893, 0.3666609227657318, 0.5655145049095154, -0.09288288652896881, 0.0384521335363...
dictionary-like data in your config file. If you don't want to put too much data in your AppSettings section, you can group your related values into their own section as follows: ``` <configuration> <configSections> <section name="MyDictionary" type="System.Configuration.NameValueFileSectionHandle...
[ -0.12520349025726318, 0.23514771461486816, 0.6418577432632446, 0.18301668763160706, 0.16122102737426758, 0.24933242797851562, 0.12105442583560944, 0.005930457264184952, -0.014336710795760155, -0.8606972694396973, -0.17201843857765198, 0.19191023707389832, -0.26571783423423767, 0.0499522611...
System.Configuration; public string GetName1() { NameValueCollection section = (NameValueCollection)ConfigurationManager.GetSection("MyDictionary"); return section["name1"]; } ```
[ -0.016212444752454758, -0.4898901581764221, 0.262846976518631, 0.012141535989940166, 0.4718615412712097, -0.004213463980704546, 0.2556120455265045, -0.01925305277109146, -0.27257925271987915, -0.7110392451286316, -0.39520663022994995, 0.39605504274368286, -0.3436092436313629, 0.66107261180...
I am trying to port some data over from my production database to my sandbox using a query like this: ``` INSERT `dbsandbox`.`SomeTable`(Field1, Field2, Field3) SELECT t.Field1, t.Field2, t.Field3 FROM `dbprod`.`SomeTable` t; ``` When I attempt this cross-database join I get the following error: ERROR 1142 (42000):...
[ -0.008866418153047562, 0.30783823132514954, 0.26560571789741516, -0.27791061997413635, -0.1972220093011856, 0.07949066907167435, 0.15827709436416626, 0.09102760255336761, -0.1384647786617279, -0.5964073538780212, 0.09454146772623062, 0.41803011298179626, -0.3035946786403656, 0.519514322280...
the username I was using in order to access any tables. The target only required the username be on the localhost. Even though I launch the MySQL client using a password every time within the context of a cross-database query another connection is attempted. This connection does not remember that I originally authent...
[ 0.17957285046577454, 0.1918429285287857, 0.42860710620880127, -0.01357736624777317, -0.3284974694252014, -0.08946171402931213, 0.007221513893455267, 0.18122650682926178, -0.08088605850934982, -0.6796182990074158, 0.09244372695684433, 0.28004875779151917, -0.4061773121356964, 0.480462133884...
the local tables without the database qualifier, then insert across to the sandbox database tables. This time it worked: USE dbprod INSERT `dbsandbox`.`SomeTable`(Field1, Field2, Field3) SELECT t.Field1, t.Field2, t.Field3 FROM `SomeTable` t;
[ -0.16113534569740295, -0.16105729341506958, 0.06914228945970535, -0.20032325387001038, -0.11602143943309784, -0.16617479920387268, 0.03181580454111099, -0.137046217918396, 0.2363077700138092, -0.4100568890571594, -0.22903086245059967, 0.4807173013687134, -0.34605875611305237, -0.0920004397...
I'm getting this worthless error in my code. it's very consistant and restarting the compiler hasn't done anything. Has anyone else ever solved this? ``` while( int CharPos = _Message.Pos(_What) ) { _Message.Insert( _With, CharPos); _Message.Delete(CharPos + 1, 1); } ``` Well... apparently the compiler break...
[ -0.10308296978473663, 0.2908189296722412, 0.07741180062294006, -0.21780095994472504, 0.314715713262558, -0.16513843834400177, 0.7487059831619263, 0.1817418485879898, -0.24800997972488403, -0.2966756224632263, -0.09256281703710556, 0.574260950088501, -0.26540613174438477, 0.2930231094360351...
I've got two sizing issue regarding a Window I've got. The basic layout is like this ``` <Window MaxHeight="{DynamicResource {x:Static SystemParameters.VirtualScreenHeight}}" MaxWidth="{DynamicResource {x:Static SystemParameters.VirtualScreenWidth}}" > <StackPanel> <DockPanel LastChildFill...
[ 0.08824028074741364, -0.17136599123477936, 0.7749097347259521, -0.11933358013629913, 0.1104956641793251, 0.33794474601745605, 0.05571621283888817, 0.04755870997905731, -0.3973953425884247, -0.8349376916885376, 0.005752413999289274, 0.6310060024261475, 0.12323231250047684, -0.05022158101201...
<!--Some buttons--> </StackPanel> <StackPanel DockPanel.Dock="Right" Orientation="Horizontal"> <!--Some buttons--> </StackPanel> </DockPanel> <ScrollViewer>
[ -0.2235659658908844, -0.03702645003795624, 0.6048204302787781, -0.2109227031469345, 0.1023317202925682, 0.5896316766738892, -0.2912970185279846, -0.2845645844936371, -0.6337291598320007, -0.6388664841651917, -0.001401109853759408, 0.6798161864280701, 0.030653007328510284, -0.33028534054756...
<WrapPanel x:Name="Container"> </WrapPanel> </ScrollViewer> </StackPanel> </Window> ``` 1) How do I made the Window not get smaller horizontally than the DockPanel's width? 2) How do I make the ScrollViewer be restricted to the limits of the Window? It is sizing itself to its contents, extend...
[ -0.11804157495498657, 0.024638524278998375, 0.6976277828216553, -0.34617605805397034, 0.030339635908603668, 0.09687525779008865, -0.245818629860878, -0.25873419642448425, -0.5081906914710999, -0.7258817553520203, 0.24207273125648499, 0.19164468348026276, -0.13093359768390656, 0.16374436020...
the current form, it is even forcing the Window to break its MaxHeight. I would recommend you to use Grid with \* Lenght instead of DockPanel and StackPanel.
[ 0.31156525015830994, -0.2016759216785431, 0.5277723670005798, 0.11463466286659241, 0.004004508722573519, -0.07664237171411514, -0.10932666808366776, 0.00657677324488759, -0.3730146884918213, -0.7572473287582397, 0.017720025032758713, 0.6817638278007507, -0.1354452222585678, -0.004037304781...
Today I discovered something that makes me sad: objects of type System.Generic.Collections.List don't have a number of the useful extension methods I've come to love, such as Find, FindAll, FindIndex, Exists, RemoveAll, etc. The object browser in VS2008 shows that those methods exist in the mscorlib version I'm using...
[ 0.11566910892724991, -0.13656996190547943, 0.4044983685016632, 0.09455559402704239, -0.23225368559360504, -0.2033962607383728, 0.2954693138599396, 0.07518970966339111, -0.6302428245544434, -0.7705519795417786, 0.10372668504714966, 0.36162978410720825, -0.19401293992996216, 0.28598240017890...
here is that Object Browser is resolving to the normal 2.0 mscorlib instead of the version that is used for silverlight. I don't find it suprising that the Find extension method is missing for a SilverLight app. The .Net framework for SilverLight is stripped down pretty far in order to make it small enough to be a spe...
[ 0.19735294580459595, -0.23463009297847748, 0.30053821206092834, 0.10000066459178925, -0.11865587532520294, -0.23801743984222412, 0.15318076312541962, 0.03027494065463543, -0.3861232399940491, -0.6065831780433655, 0.1171855479478836, 0.5336438417434692, -0.3471750020980835, 0.00729758804664...
around this issue.
[ 0.19923532009124756, 0.15359891951084137, 0.2907947599887848, 0.05341038852930069, -0.10591062903404236, -0.1850879043340683, -0.21576924622058868, 0.21920374035835266, -0.10599902272224426, -0.28075486421585083, -0.029267150908708572, 0.22402989864349365, -0.09515615552663803, -0.05271083...
My cygwin xterm is not responding to the keyboard. I am able to run rxvt, but when I start other X applications I have the same problem. From the rxvt command prompt, I get the following: ``` $ xterm xterm Xt error: Can't open display: :0 ``` The contents of my XWin.0.log are: ``` $ cat XWin.0.log Welcome to the...
[ -0.10742291063070297, 0.2818208634853363, 0.7040311098098755, -0.011402337811887264, -0.4039152264595032, -0.35820862650871277, 0.4229792654514313, 0.35311195254325867, 0.22523219883441925, -0.9716687202453613, -0.1585676372051239, 0.7951761484146118, -0.5128766894340515, 0.186421111226081...
is no longer running, remove /tmp/.X0-lock and start again. GetWindowProp - pWin or name was NULL GetWindowProp - pWin or name was NULL GetWindowProp - pWin or name was NULL GetWindowProp - pWin or name was NULL GetWindowProp - pWin or name was NULL GetWindowProp - pWin or name was NULL GetWindowProp - pWin or...
[ -0.16439495980739594, -0.09421093761920929, 0.6196238994598389, -0.09010805934667587, -0.10478655993938446, -0.4857669770717621, 0.7060292363166809, 0.20413585007190704, -0.2086574137210846, -0.6643893122673035, -0.5253349542617798, 0.6466085314750671, -0.5311422348022461, 0.20612782239913...
Ok, I have the following structure. Basically a plugin architecture ``` // assembly 1 - Base Class which contains the contract public class BaseEntity { public string MyName() { // figure out the name of the deriving class // perhaps via reflection } } // assembly 2 - contains plugins based on the Base Cl...
[ 0.25899940729141235, 0.12335481494665146, 0.42203739285469055, -0.3188164532184601, 0.2705952525138855, 0.44434139132499695, -0.14190560579299927, -0.002561068395152688, -0.051891110837459564, -0.6414427161216736, -0.25972869992256165, 0.5498802661895752, -0.29589879512786865, 0.1939275413...
important thing is that the MyName property should be in the base class, because I don't want to reimplement the property in every plugin. Is this possible in C#? I think you can do it through GetType: ``` public class BaseEntity { public string MyName() { return this.GetType().Name } } ```
[ 0.29332754015922546, 0.03265516459941864, 0.12327080219984055, -0.17787547409534454, 0.15082263946533203, -0.37058553099632263, 0.12654243409633636, 0.06769874691963196, 0.2348310947418213, -0.43359652161598206, -0.006075787357985973, 0.8125126957893372, -0.18589207530021667, 0.18175582587...
I am interested in using some kind of a command-line utility for SQL Server similar to Oracle's SQL\*Plus. SQL Server seems to have several options: osql, isql, and sqlcmd. However, I am not quite certain which one to use. Do they all essentially do the same thing? Are there any situations where it is preferable to us...
[ 0.24038666486740112, 0.04025551676750183, 0.43416285514831543, 0.33833441138267517, -0.23068980872631073, -0.13713769614696503, -0.08693604916334152, 0.3249155879020691, -0.06064499169588089, -0.7294334769248962, 0.16687411069869995, 0.36006996035575867, -0.28164446353912354, 0.20375490188...
communication with SQL Server. **EDIT:** Times have changed since I replied on this a couple of years ago. Nowadays, you can also use the [invoke-sqlcmd](http://technet.microsoft.com/en-us/library/cc281720.aspx) cmdlet in PowerShell. If you're used to PowerShell or plan to do any scripting of any sophistication, use t...
[ 0.28805962204933167, 0.06130819395184517, 0.38927486538887024, 0.5146806240081787, -0.08184394240379333, -0.4375089108943939, 0.03237232565879822, 0.6356931924819946, -0.11978737264871597, -0.804783046245575, 0.04860815405845642, 0.4226412773132324, -0.1299784928560257, 0.16368210315704346...
Every now and then, I bump into syntax that I've seen before, but never used. This is one of those times. Can someone explain the purpose of ":this" or ":base" following a C# constructor method? For example: ``` public MyClass(SomeArg arg) : this(new SomethingElse(), arg) { } ``` My gut feeling is that it is used ...
[ 0.2324649542570114, 0.027450362220406532, -0.10460902005434036, -0.17671237885951996, -0.0065673538483679295, -0.3706721365451813, 0.2991578280925751, 0.33655279874801636, -0.1410311460494995, -0.7668653130531311, -0.05679450184106827, 0.48854053020477295, -0.32831060886383057, 0.358924984...
Is there a way to query against exchange 2007 to distinguish who is either an active sync or blackberry user using powershell exchange addin? BBES typically uses a service account that has access to ALL mailboxes in order to do it's thing. you will want to look at the BBES server itself to find out which users are acti...
[ 0.500511646270752, 0.11446525156497955, 0.20078271627426147, 0.018486879765987396, -0.23442628979682922, -0.09955539554357529, -0.015272719785571098, 0.08598153293132782, -0.16694912314414978, -0.17348021268844604, 0.2503186762332916, 0.10117994993925095, -0.516793966293335, 0.224281668663...
I am trying to implement the python logging handler `TimedRotatingFileHandler`. When it rolls over to midnight it appends the current day in the form `YYYY-MM-DD`. ``` LOGGING_MSG_FORMAT = '%(name)-14s > [%(levelname)s] [%(asctime)s] : %(message)s' LOGGING_DATE_FORMAT = '%Y-%m-%d %H:%M:%S' logging.basicConfig( ...
[ 0.4459364116191864, 0.06013929843902588, 0.8456565141677856, -0.17780956625938416, 0.07134399563074112, -0.09171052277088165, 0.5715860724449158, 0.018347982317209244, -0.15908139944076538, -0.5716629028320312, -0.009317773394286633, 0.18458117544651031, -0.15444520115852356, 0.30864039063...
time.sleep(60) ``` The first log file created is named `Rotate_Test`, then once it rolls over to the next day it changes the file name to `Rotate_Test.YYYY-MM-DD` where `YYYY-MM-DD` is the current day. How can I change how it alters the filename? "How can i change how it alters the filename?" Since it isn't documen...
[ 0.6931147575378418, -0.21416474878787994, 0.4615880250930786, -0.14302240312099457, 0.3866766393184662, 0.08611813187599182, -0.08633226156234741, -0.2272297441959381, -0.08448415994644165, -0.9271718859672546, -0.12420151382684708, 0.56232088804245, -0.272674560546875, 0.36165639758110046...
What tool (preferably free) can be used with Visual C++ 2008 Express Edition to create Win32 GUI applications? As you know the Express Edition does not include a GUI resource editor. It doesn't, but that doesn't stop you from creating a Win32 GUI app; you can still do this in code. If that's unappealing for you, just ...
[ 0.07936299592256546, 0.02188408374786377, -0.001641554874368012, 0.37435194849967957, -0.3304611146450043, -0.25464656949043274, 0.040114790201187134, -0.04714459180831909, -0.25910985469818115, -0.28838011622428894, 0.22171257436275482, 0.8602948188781738, -0.39104163646698, 0.02715594880...
... say I check out some code, do a little dev or refactoring or whatever .. do I only check it back in when I'm completely happy? ... what if I change my mind about stuff while i'm coding? can I go back to a previous local version? is there a history of my local development? Is version control about deployment histor...
[ 0.5426310300827026, -0.22252869606018066, -0.10104741901159286, 0.5393417477607727, 0.2962348461151123, 0.02380373887717724, 0.48315760493278503, 0.4597586989402771, -0.6438000798225403, -0.29849985241889954, 0.07980067282915115, 0.34805482625961304, -0.022741101682186127, 0.09143568575382...
for the code; the primary timeline (the trunk) chugs along and is always working; the branches can be any state at all without impacting the trunk. This allows you to commit early and often without having to worry whether you've messed up someone else, and guarantees you never have a I've-gone-too-far-and-can't-revers...
[ 0.0652366429567337, -0.18179230391979218, 0.12875516712665558, 0.5902537703514099, 0.35698777437210083, -0.015536598861217499, 0.354636549949646, 0.2973536252975464, -0.38070085644721985, -0.4799705445766449, -0.2849866449832916, 0.4106415808200836, 0.16744346916675568, 0.27691367268562317...
new branches from the trunk now have all of the working-up-to-now code. This is the huge appeal of git to many: it's really easy to branch and merge, making it very easy to just toss off a new branch, or even branches of branches, whenever they're needed. Even CVS can do branching and merging, though it is considerab...
[ 0.329988032579422, -0.4546118676662445, 0.27089521288871765, 0.3711460530757904, 0.15203887224197388, -0.30777236819267273, 0.28000408411026, 0.3776813745498657, -0.33518433570861816, -0.36067718267440796, -0.33837568759918213, 0.31197845935821533, 0.13007549941539764, 0.10085780173540115,...
I have a list box control: ``` <asp:ListBox runat="server" id="lbox" autoPostBack="true" /> ``` The code behind resembles: ``` private void Page_Load(object sender, System.EventArgs e) { lbox.SelectedIndexChanged+=new EventHandler(lbox_SelectedIndexChanged); if(!Page.IsPostBack) { LoadData(); ...
[ -0.04445356875658035, -0.2788896858692169, 0.49063974618911743, -0.16740398108959198, -0.07241570949554443, 0.017971806228160858, 0.17363572120666504, -0.5395067930221558, -0.0995560735464096, -0.6984721422195435, -0.18213102221488953, 0.12829284369945526, -0.5197010636329651, 0.3146511614...
in the listbox, so that the index variable in my callback function is always 0. Seems like this may be a viewstate problem? How can I fix it so that the selection index remains through the postback? There is no ajax going on, this is .NET 1.0. Thanks. **EDIT 1** JohnIdol has gotten me a step closer, If I switch the...
[ 0.14617709815502167, -0.1316099911928177, 0.42733991146087646, -0.049357928335666656, -0.21232381463050842, -0.14936909079551697, 0.43724656105041504, -0.00836306344717741, -0.5194978713989258, -0.7537909150123596, 0.14031104743480682, 0.599506139755249, -0.24467353522777557, 0.06761968880...
same value...thanks to those who helped! What's the output of the foo() function call? Populating manually the list box you can set indexes to whatever you want (all 0 for example) - so the same thing can happen setting a given dataSource under certain circumstances (one that specifies indexes I suppose). If all the i...
[ 0.08543320745229721, -0.16624321043491364, 0.34155651926994324, 0.08856109529733658, -0.0600658617913723, -0.0033007333986461163, 0.08258208632469177, -0.24024653434753418, -0.443027138710022, -0.3512563705444336, 0.16178014874458313, 0.6864334940910339, -0.40357837080955505, 0.12919208407...
is working fine for me on .NET 2.0 I am using an ArrayList with strings to populate the listBox. The only way I can reproduce your issue is setting all indexes to 0. I'd say add a watch to the ListBox and check the indexes at runtime to make sure they're not all zeroes.
[ 0.30641400814056396, -0.0851677656173706, 0.3852565884590149, 0.09542398899793625, 0.016719020903110504, -0.2570788264274597, 0.37944963574409485, 0.17139564454555511, -0.22596949338912964, -0.6956626176834106, 0.33431440591812134, 0.6661199927330017, -0.3896508514881134, 0.087031885981559...
I'm on Windows Vista and IE7. Here's what I'd like to do: 1. I have two flash files: `page1.swf` and `page2.swf`. They are just page from a magazine. 2. Display `page1.swf` 3. Have a button that says "Change page" 4. When I click the button; display `page2.swf` instead of `page1.swf` (only `page2.swf`, not both pages...
[ 0.34143128991127014, 0.03910091146826744, 0.8873451352119446, -0.20072954893112183, 0.07062610983848572, -0.28990086913108826, 0.39766108989715576, 0.2505783438682556, -0.22855815291404724, -1.0285049676895142, -0.1490665078163147, 0.39749372005462646, -0.04892435669898987, 0.1681656539440...
Australian server. 1. Use a geolocation service (e.g MaxMind.com) as suggested by @balabaster, to get the zone matching their IP (Global.Session\_Start is best). This is a good match for local ISPs, but not so good for AOL. Store the offset from this in a session cookie. 2. Or use JavaScript to get the time zone offse...
[ 0.40677788853645325, -0.1970238834619522, 0.16116918623447418, -0.1115582287311554, -0.2626335322856903, -0.04181830957531929, 0.4218466579914093, 0.07318978756666183, -0.44559144973754883, -0.6475467085838318, -0.08353611081838608, 0.056558847427368164, -0.26363903284072876, 0.07342422753...
+ offset.getTimezoneOffset() + '"/>'); </script> ``` 3. Allow the visitor to update the zone via a persistent cookie (for anonymous users) and a field in their account profile (if authenticated). The persistent value #3 from overrides the session values. You can also store the same persistent cookie for authenticated...
[ 0.3848189115524292, -0.286895751953125, 0.67909836769104, -0.03397234529256821, 0.2126971334218979, -0.3129274249076843, 0.29216504096984863, -0.09243975579738617, -0.30555441975593567, -0.7136498689651489, -0.3276717960834503, 0.3937927186489105, -0.25628769397735596, -0.18293866515159607...
I want to build a toolchain from gnuarm.org from sources. I don't want to use binary version because i'm running x64 linux. Can you point me to some kind of tutorial? You need to install *libx11-dev* to compile Insight. ``` sudo apt-get install libx11-dev ``` Besides that, your own answer works just fine. Edit: Oh,...
[ 0.25817224383354187, 0.12478159368038177, 0.27330300211906433, -0.01031444687396288, -0.1834053099155426, -0.20328699052333832, 0.31592726707458496, -0.19163642823696136, 0.09552153944969177, -0.791439950466156, 0.1036987453699112, 0.8637431263923645, -0.22164568305015564, -0.0231336988508...
I have X interfaces to Y computers that communicate over a public network (Think colleges and libraries). I am researching common industry standard techniques for encrypting the data that goes between us. I know there is SSL, but I'd rather find a simple technique that is a "purchase once, install infinite" (trying to...
[ 0.7515447735786438, 0.15650025010108948, 0.16490958631038666, 0.39119571447372437, 0.1885606199502945, -0.09747858345508575, -0.011482098139822483, 0.3830816149711609, 0.06248541548848152, -0.9731891751289368, 0.08437672257423401, 0.5397652983665466, 0.0494673028588295, 0.1463002860546112,...
out there? What's being used? How hard is it to implement these solutions in code? What are people currently using to encrypt simple Socket to Socket communication? **Edit:** I currently use RAD Studio 2009. However, my vendors can use anything from Java, VS2008 to others like 4D. Whatever I find I need to be able to ...
[ 0.5176411271095276, 0.2641741633415222, -0.1531171202659607, -0.06271499395370483, -0.2832788825035095, 0.033292222768068314, 0.3670729398727417, 0.1890079528093338, -0.20305994153022766, -0.7139288783073425, -0.042722783982753754, 0.45800572633743286, -0.22814412415027618, 0.0804805979132...
Queue](http://www.microsoft.com/windowsserver2003/technologies/msmq/default.mspx)) There are quite a few resources on the web about that. Basically it turns around the KeyPairGenerator class. See <http://www.informit.com/articles/article.aspx?p=170967&seqNum=4> for an example program.
[ -0.10662958025932312, -0.5473470091819763, 0.672559380531311, -0.06846051663160324, 0.2952604293823242, 0.13020136952400208, -0.10795700550079346, 0.18646275997161865, -0.6653093695640564, -0.13317573070526123, -0.016060739755630493, 0.3197774589061737, -0.39807796478271484, 0.353820890188...
I am making an HTTP connection to an IIS web server and sending a POST request with the data encoded using Transfer-Encoding: chunked. When I do this, IIS simply closes the connection, with no error message or status code. According to the [HTTP 1.1 spec](https://www.rfc-editor.org/rfc/rfc2616#section-3.6.1), > All HT...
[ 0.07803557813167572, 0.019104868173599243, 0.3404978811740875, -0.13989640772342682, -0.21971067786216736, -0.20721325278282166, 0.293963223695755, -0.10735927522182465, -0.07971948385238647, -0.7744726538658142, -0.37945303320884705, 0.1814529448747635, -0.3135805130004883, 0.352198302745...
same thing against Apache, I get a "411 Length required" status and a message saying "chunked Transfer-Encoding forbidden". Why do these servers not support this encoding? My understanding is that chunked encoding can only be used in a HTTP response. A chunked request body would have the property of being incompatible...
[ 0.26678550243377686, 0.1496375948190689, -0.12638968229293823, 0.13657447695732117, -0.30560651421546936, -0.3973998427391052, 0.5102788209915161, 0.0056048971600830555, -0.26978054642677307, -0.26449719071388245, -0.10890127718448639, 0.3094407916069031, -0.41245386004447937, 0.3455953598...
I'm trying to write a TCustomDBGrid descendant that's designed to feel like a TListBox. One of the things I want to change is the Options property's defaults. TCustomDBGrid defines Options as: ``` property Options: TDBGridOptions read FOptions write SetOptions default [dgEditing, dgTitles, dgIndicator, dgColumnResiz...
[ 0.11985617876052856, -0.041515786200761795, 0.3044166564941406, -0.12109299004077911, 0.19714094698429108, -0.14335626363754272, 0.46018150448799133, -0.1904401183128357, 0.05629054829478264, -0.517828106880188, -0.1269979178905487, 0.6865529417991638, -0.3125012516975403, 0.14995196461677...
my own get and set methods that invoke "**inherited** Options", or is there a simpler way to do this? Don't specify the type. Then you can change the default. And remember that you also have to set the Options property to this default in the constructor. The code below does not actually set the default, it just lets it...
[ 0.2547638416290283, -0.2727188169956207, 0.3115360140800476, 0.11251450330018997, 0.16516220569610596, -0.0646832138299942, 0.19068916141986847, 0.07383621484041214, -0.11052882671356201, -0.7793542742729187, -0.14642658829689026, 0.8100358843803406, -0.019227160140872, 0.14543896913528442...
I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with. I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it all client side with ...
[ 0.142923504114151, 0.11407303810119629, 0.27893906831741333, -0.15169784426689148, -0.25832974910736084, 0.05783035606145859, 0.05056101828813553, 0.13484911620616913, -0.3981908857822418, -0.6441556811332703, -0.04072898253798485, 0.20237261056900024, -0.14216388761997223, -0.190161675214...
to do for the UI is just indicate sort direction with the caret character ( `^` ) and ... what? Is there a special character that is the direct opposite of a caret? The letter `v` won't quite cut it. Alternatively, is there another character pairing I can use? There's ▲: [&#9650;](http://www.fileformat.info/info/unicod...
[ 0.058017000555992126, -0.052220266312360764, 1.0267360210418701, 0.016564127057790756, -0.21353301405906677, 0.29209446907043457, -0.058679431676864624, -0.3099271357059479, -0.09981834888458252, -0.6131224632263184, -0.1861920952796936, 0.1339336335659027, -0.030062705278396606, -0.180569...
I have a strange, sporadic issue. I have stored procedure that returns back 5 small tables (e.g. IDs and Text Descriptions for Status drop down lists and such). The code calls this and places the returning dataset into ASP.Net cache. Separate methods are called to retrieve individual tables from the dataset to databi...
[ 0.25271859765052795, 0.13735106587409973, 0.28462591767311096, 0.1934177577495575, 0.0960574746131897, 0.09711679071187973, 0.4162706732749939, 0.003016670234501362, -0.3767417371273041, -0.6138368844985962, 0.0011070111067965627, -0.12588593363761902, -0.11766316741704941, 0.5316478610038...
#4 of 5 to be precise). If the ASP.Net WP needs memory, can it remove an individual table from a cached dataset while keeping the data set's indexes in place? Below is the caching code: ``` public static DataSet GetDropDownLists() { DataSet ds = (DataSet)HttpContext.Current.Cache["DropDownListData"]; if (nu...
[ -0.006916655693203211, -0.39773938059806824, 0.6470616459846497, 0.06124145910143852, 0.19558818638324738, 0.033696237951517105, 0.389812707901001, -0.44923874735832214, -0.5393515229225159, -0.5234185457229614, -0.683472216129303, 0.364055335521698, -0.3425944447517395, 0.1961186826229095...
ds; } ``` Here's an example of the method that returns the null table: ``` public static DataTable GetStatusList() { return GetDropDownLists().Tables[3]; } ``` Again, this only happens on my QA Server and not when my local code is wired up to the QA database or anything on a separate server for my own develop...
[ 0.044971998780965805, -0.3575077950954437, 0.3429015874862671, 0.14438903331756592, -0.21805331110954285, -0.21783758699893951, 0.5779737234115601, -0.3227637708187103, -0.24752837419509888, -0.7937777042388916, -0.3443361520767212, 0.39480307698249817, -0.4251452088356018, 0.2302060425281...
and remove single items from it. The same should be valid for tables in a dataset. Something else must be messing up your dataset. Are you sure the table #4 is properly loaded on your QA server in the first place (ie. it's not empty to begin with ? )
[ 0.39074787497520447, 0.10583297908306122, 0.17705072462558746, 0.26103976368904114, 0.16054405272006989, -0.25953054428100586, 0.17482717335224152, -0.036027517169713974, -0.5363916158676147, -0.26021865010261536, -0.11799565702676773, 0.38669830560684204, -0.18270321190357208, -0.05665233...
What's the best way to use Bazaar (bzr) as the version control system in Visual Studio 2008? The best I found is [TortoiseBZR](http://bazaar-vcs.org/TortoiseBzr) and the command-line - nothing integrated with VS.
[ -0.05475775524973869, -0.19235295057296753, 0.39897000789642334, -0.03887617215514183, -0.43608641624450684, 0.003492895048111677, 0.1431301385164261, -0.02873750776052475, -0.47239819169044495, -0.07901688665151596, 0.08391296118497849, 0.7381457686424255, -0.36894547939300537, -0.0591684...
Currently I have the function CreateLog() for creating a a log4net Log with name after the constructing instance's class. Typically used as in: ``` class MessageReceiver { protected ILog Log = Util.CreateLog(); ... } ``` If we remove lots of error handling the implementation boils down to: [EDIT: Please r...
[ 0.18414194881916046, 0.06615433096885681, 0.5608066320419312, -0.3221728205680847, 0.011278743855655193, -0.13581351935863495, 0.0005269129760563374, -0.22655369341373444, -0.06944216042757034, -0.8739451169967651, -0.05727962777018547, 0.46829694509506226, -0.3827868700027466, 0.331620275...
MessageReceiver into sub classes the log will still take its name from MessageReceiver since this is the declaring class of the method (constructor) which calls CreateLog. ``` class IMReceiver : MessageReceiver { ... } class EmailReceiver : MessageReceiver { ... } ``` Instances of both these classes would get Logs ...
[ 0.24933934211730957, 0.10178795456886292, 0.20099012553691864, -0.11803122609853745, -0.09610898047685623, -0.03090493567287922, 0.038209933787584305, -0.005546571221202612, -0.2121010422706604, -0.6763456463813782, -0.051802050322294235, 0.355525404214859, -0.4129377603530884, 0.511278569...
personally I feel disturbed by not finding a solution with no extra argument. Is there anyone who can show me how to implement a zero argument CreateLog() that gets the name from the subclass and not the declaring class? EDIT: The CreateLog function does more than mentioned above. The reason for having one log per i...
[ 0.4933842420578003, 0.3022964894771576, 0.1827622950077057, -0.1506943553686142, -0.013738187029957771, 0.05936345085501671, 0.20808976888656616, -0.15833133459091187, -0.12665365636348724, -0.8253529667854309, 0.16047163307666779, 0.48483046889305115, -0.39520785212516785, 0.1083135604858...
System.Reflection.MethodBase method = stackFrame.GetMethod(); Type type = method.DeclaringType; if (method.IsStatic) { return CreateLogWithName(type.FullName); } else { return CreateLogWithName(type.FullName + "-" + GetAndInstanceCountFor(type)); ...
[ 0.20010799169540405, -0.26109778881073, 0.5409529209136963, -0.21469031274318695, 0.007152240723371506, 0.1014656350016594, 0.33802250027656555, -0.24048836529254913, -0.15974068641662598, -0.6117340922355652, -0.11316674947738647, 0.5589383840560913, -0.3453808128833771, -0.04363403469324...
Log = Util.CreateLog(); rather than copying in some long cryptic line from an other file whenever I write a new class. I am aware that the reflection used in Util.CreateLog is not guaranteed to work though - is System.Reflection.MethodBase.GetCurrentMethod() guaranteed to work? > Is there anyone who can show me how to ...
[ 0.4838854670524597, 0.002395718591287732, 0.17145441472530365, 0.0033825163263827562, 0.10239074379205704, -0.28533607721328735, 0.3835882246494293, 0.04938974604010582, -0.11117014288902283, -0.5645168423652649, 0.02566501870751381, 0.43455740809440613, -0.5004041790962219, 0.123895935714...
must tell you where the method is being called from, or it wouldn't be any use, so it's always going to say `MessageReceiver` If you called `CreateLog` explicitly in your `IMReceiver` and other classes, then it works, as the stack frame shows the method being called in the derived class (because it actually is). Here...
[ 0.18155337870121002, -0.15038347244262695, 0.2495933324098587, -0.004006720148026943, 0.19101907312870026, -0.1397547870874405, 0.2644886076450348, 0.10612355172634125, -0.31955936551094055, -0.5281248092651367, -0.11392191797494888, 0.354640394449234, -0.42913195490837097, 0.0478992275893...
for BaseClass # Log created for DerivedClass ``` The second 'log created for derived class' overwrites the instance variable, so your code will behave correctly, you'll just be creating a BaseClass log which immediately gets thrown away. This seems hacky and bad to me, I'd just go with specifying the type parameter i...
[ 0.11404471099376678, -0.19525110721588135, 0.01593915745615959, 0.04639308527112007, -0.03334164619445801, -0.12610600888729095, 0.49071845412254333, -0.029118210077285767, -0.024599796161055565, -0.6394098997116089, 0.22486765682697296, 0.5620044469833374, -0.6112543344497681, 0.166689842...
Tip me plase, how to insert a null value into table using Trolltech Qt 4.x SQL classes? `QSqlQuery`, I guess, or something else from QtNetwork. As analog of it, in .NET there is the `System.DbNull` class, which represents sql NULL. And what type should I use for some object's property, that can hold both null-value an...
[ 0.6403610110282898, -0.1341964155435562, 0.7214342355728149, 0.21482500433921814, -0.28655293583869934, -0.30644720792770386, -0.06064198538661003, -0.30564334988594055, 0.043995581567287445, -0.38865846395492554, 0.4746610224246979, 0.5514710545539856, -0.22371356189250946, 0.087327025830...
I'm generating a menu with a Repeater control bound to an XmlDataSource. ``` <asp:Repeater ID="myRepeater" runat="server" DataSourceID="myDataSource" onitemdatabound="myRepeater_ItemDataBound" onitemcreated="myRepeater_ItemCreated"> <HeaderTemplate> <ul class="menu_list"> </HeaderTempla...
[ 0.21623973548412323, -0.25019821524620056, 0.5803424715995789, -0.0006762797711417079, 0.14329877495765686, 0.5181239247322083, -0.08210348337888718, -0.07640265673398972, 0.042942918837070465, -0.8516761660575867, 0.19262656569480896, 0.41040319204330444, -0.03453594073653221, 0.180952191...
the style of the containing LI based on mouseover events and currently selected menu item. I tried via the HtmlGenericControl, but I receive an error that it's readonly. ``` protected void myRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item ||...
[ -0.33738821744918823, -0.31335434317588806, 0.6860727071762085, -0.15066732466220856, -0.08940023183822632, 0.12731079757213593, 0.48476481437683105, -0.17583057284355164, -0.18916215002536774, -0.7362305521965027, -0.3962334990501404, 0.34996554255485535, -0.6338307857513428, 0.2793364226...
HtmlGenericControl l_genericControl = e.Item.FindControl("liMenu") as HtmlGenericControl; if ((hrefCurrentMenuLink != null) && (l_genericControl != null)) { string l_currentPage = GetCurrentWebPage(); if (String.Compare(Path.GetFileNameWithoutExt...
[ -0.5369560718536377, -0.2830655574798584, 0.9063397645950317, -0.20467424392700195, -0.0390162467956543, 0.14347293972969055, 0.5861345529556274, -0.1971053183078766, -0.0100945346057415, -0.9235213994979858, -0.32816824316978455, 0.6250786185264587, -0.2980159819126129, 0.2544716596603393...
0) l_genericControl.Style = "on-nav"; else l_genericControl.Style = "off-nav"; l_genericControl.Attributes.Add("onmouseover", "navOn(this)");
[ -0.08795588463544846, -0.19498558342456818, 0.49361181259155273, -0.28956255316734314, 0.31352633237838745, -0.14896434545516968, 0.3105349838733673, -0.005421403795480728, -0.07905364036560059, -0.4673003852367401, -0.4986681640148163, 0.6428055763244629, -0.37104907631874084, 0.423501849...
l_genericControl.Attributes.Add("onmouseout", "navOff(this)"); } } } ``` Is there any way to accomplish this? The style property is a collection. Do this: ``` l_genericControl.Style.Add("css-name", "css-value") ``` Or if you are using CSS classes, then change the CssClass proper...
[ -0.03126382455229759, -0.08692516386508942, 0.4812943637371063, -0.21740464866161346, 0.024105070158839226, 0.025627732276916504, 0.2488926351070404, 0.0756295695900917, -0.3021371066570282, -0.6563266515731812, -0.35999569296836853, 0.5110952854156494, -0.5017412900924683, 0.2867526710033...
style with your javascript, this might work: ``` l_genericControl.Attributes.Add("onmouseover", "this.style.color='red'; this.style.backgroundColor='yellow';"); l_genericControl.Attributes.Add("onmouseout", "this.style.color='black'; this.style.backgroundColor='none';"); ```
[ 0.13657762110233307, -0.0643516406416893, 0.2554844915866852, -0.22908249497413635, 0.08229091018438339, -0.21332141757011414, 0.48423445224761963, -0.09295857697725296, -0.011446859687566757, -0.7048832774162292, -0.3980027139186859, 0.636473536491394, -0.6734222173690796, -0.024771690368...
Subversion lets you embed working copies of other repositories using [externals](http://svnbook.red-bean.com/en/1.1/ch07s04.html), allowing easy version control of third-party library software in your project. While these seem ideal for the reuse of libraries and version control of [vendor software](http://svnbook.red...
[ 0.09806165844202042, -0.1980372816324234, 0.012421678751707077, -0.028842933475971222, -0.3667522966861725, -0.2795492708683014, 0.40224623680114746, 0.31107985973358154, -0.4408392310142517, -0.40779510140419006, 0.07015573233366013, 0.008760936558246613, -0.5486666560173035, 0.1065617799...
and to ask for an explanation. Of course, if I fully explained everything in that answer, I would need to have written a book. Mike is also right to point out that one of the problems with an `svn:external`-like feature is that changes in the targeted source could break your own source, especially if that targeted sou...
[ 0.5176486968994141, 0.2380398064851761, 0.03027918189764023, 0.13050875067710876, -0.11635514348745346, -0.31373628973960876, 0.2909355163574219, 0.03139977529644966, -0.269748330116272, -0.2762642204761505, -0.07203619927167892, 0.43972209095954895, -0.26057714223861694, 0.354805886745452...
the feature is far more likely to be misused. In my experience, it has always been misused, and I find myself very unlikely to ever use it in that safe manner nor to ever recommend that use. Please further note that I mean NO disparagement to the Subversion team--I love Subversion, although I plan to move on to Bazaar....
[ 0.7306510806083679, 0.0830906555056572, 0.045521508902311325, 0.018249113112688065, -0.16420723497867584, -0.46407434344291687, 0.3416529595851898, 0.5119352340698242, 0.007678910158574581, -0.3251941502094269, -0.15633806586265564, 0.3852718472480774, -0.08041731268167496, 0.2384869605302...
it depends. Neither of these uses is wise, and they constitute an antipattern. As I said in my other answer, I believe that an essential principle for software builds is that each project constructs exactly ONE binary or primary deliverable. This can be considered an application of the principle of [separation of conc...
[ 0.6497407555580139, 0.5164844393730164, -0.08470175415277481, -0.030416127294301987, -0.0400920994579792, -0.14132587611675262, 0.12087824940681458, -0.21258382499217987, -0.06122333183884621, -0.07065863907337189, -0.08239488303661346, 0.5798858404159546, -0.11138922721147537, 0.429406791...
by recursively invoking sub-builds. Maven strongly encourages/enforces this behavior, which is one of the many reasons that I don't recommend it. Finally, I find that there are various practical matters that make this feature undesirable. For one, `svn:external` has some interesting behavioral characteristics (but the...
[ 0.5160936117172241, 0.2779299318790436, 0.054971277713775635, -0.07541978359222412, -0.10354810208082199, -0.35032713413238525, 0.7311589121818542, 0.2575104534626007, -0.2573273181915283, -0.29443633556365967, -0.05147800222039223, 0.5935454964637756, -0.17209844291210175, 0.3230946660041...
such as a way to "configure" a working environment. I could see where a programmer might create their own folder in the repository (or one for each programmer) where they would configure `svn:external` links to the various other parts of the repository that they are currently working on. Then, a checkout of that one fo...
[ 0.5788319706916809, 0.24313412606716156, -0.04321981593966484, 0.2990826368331909, 0.23534931242465973, -0.1848079264163971, -0.06244179606437683, -0.11341086775064468, -0.3701033890247345, -0.5577464699745178, -0.19430187344551086, 0.6556686162948608, -0.0450969897210598, 0.10617244988679...
as doing this with a script that invokes the checkouts. For the record, my most recent exposure to this issue occurred during the summer of 2008 at a consulting client that was using `svn:external` on a massive scale--EVERYTHING was cross-linked to produce a single master working copy. Their Ant & Jython-based (for We...
[ 0.2759275734424591, 0.24270768463611603, -0.03523215651512146, -0.06530169397592545, -0.005689787212759256, -0.06240977719426155, 0.3156021237373352, -0.04937049373984337, -0.46163415908813477, -0.5062261819839478, 0.15751323103904724, 0.44836512207984924, -0.08077365159988403, 0.109896183...
GB of files (they put binaries in the repository also). Getting anything done was a exercise in futility, and I left after trying for three months (there were many other antipatterns present as well). EDIT: Expound on recursive builds - Over the years (especially the last decade), I have built massive systems for For...
[ 0.20574040710926056, 0.28927457332611084, 0.02363448403775692, 0.1368662714958191, -0.07265087217092514, -0.08579124510288239, 0.30318960547447205, -0.00436118571087718, -0.24164584279060364, -0.5215181708335876, -0.21353596448898315, 0.3968500792980194, -0.2648363411426544, 0.115259371697...
Python-based systems. These systems have also included huge databases typically in Oracle or Microsoft SQL Server. I have had great success designing these massive builds for ease of use and repeatability. My design standard is that a new developer can show up on their first day, be given a new workstation (perhaps st...
[ 0.5169546008110046, 0.17611545324325562, -0.2727450728416443, -0.18432050943374634, -0.12747709453105927, -0.05249467492103577, 0.1864919662475586, 0.21205662190914154, -0.1961258500814438, -0.3942028284072876, -0.18918916583061218, 0.6242815256118774, -0.25624507665634155, -0.265315979719...
itself involves opening a command shell, changing to the root directory of the source tree, and issuing a one-line command to build EVERYTHING. Despite that success, constructing such a massive build system requires great care and close adherence to solid design principles, just as with constructing a massive business...
[ 0.40421420335769653, 0.3167939782142639, -0.09291766583919525, -0.11671143770217896, -0.08588278293609619, 0.06755881756544113, 0.5573987364768982, -0.13312889635562897, 0.14822861552238464, -0.4160119593143463, -0.4172898232936859, 0.45471933484077454, 0.15703286230564117, 0.1582231074571...