text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have been using C# for a while now, and going back to C++ is a headache. I am trying to get some of my practices from C# with me to C++, but I am finding some resistance and I would be glad to accept your help. I would like to expose an iterator for a class like this: ``` template <class T> class MyContainer { publ...
[ 0.2515263259410858, -0.2821855843067169, 0.39703407883644104, -0.22640854120254517, -0.12547864019870758, 0.040391914546489716, 0.24777831137180328, -0.08952775597572327, -0.13458073139190674, -0.7815096974372864, 0.16674722731113434, 0.9836342334747314, -0.5296227335929871, 0.134262681007...
std::vector<T> mHiddenContainerImpl; }; ``` Am I trying at something that isn't a problem? Should I just typedef std::vector< T >::iterator? I am hoping on just depending on the iterator, not the implementing container... You may find the following article interesting as it addresses exactly the problem you have post...
[ 0.07435096055269241, -0.07325930893421173, 0.3764532804489136, -0.09200655668973923, -0.08435721695423126, 0.02343827299773693, 0.10367029160261154, 0.017718592658638954, -0.4715636074542999, -0.47322389483451843, -0.08723203092813492, 0.6658964157104492, -0.6574663519859314, 0.05149973556...
I was recently looking at some web hosting solutions and some of the providers offered various hosting locations e.g. US or UK based servers. My question is: does it really make a difference from the performance point of view? Lets say that I am expecting most of the traffic coming from continental Europe? Would th...
[ 0.49368298053741455, -0.07185289263725281, 0.5383805632591248, -0.1351141333580017, 0.02216629683971405, 0.062053024768829346, 0.3821960389614105, 0.4647884666919708, -0.58957439661026, -0.32664063572883606, -0.13680516183376312, -0.09451588988304138, -0.010224041528999805, 0.1582029461860...
depends on the level of your site optimization (size of the pages, usage of AJAX, Flash etc) Example from my experience. Round-trip from russia to USA is 200ms. It does not make any difference for the small web site optimized for the performance, but it makes a huge usability difference for SmartClient accessing Web A...
[ 0.199537456035614, -0.18824270367622375, 0.5833590626716614, 0.4065840244293213, 0.2381054013967514, -0.10576090216636658, 0.8403743505477905, 0.2464471459388733, -0.11726851016283035, -0.602053165435791, 0.0006146490923129022, -0.36816951632499695, -0.2037692666053772, 0.07167798280715942...
I'm running MySQL 5 on a linux server on my local network. Running windows XP for my desktop. Had a look at the [MySQL GUI Tools](http://dev.mysql.com/downloads/gui-tools/5.0.html) but I dont think they help. I cannot install apache on the remote server & use something like PHPmyAdmin. I use [SQLyog](http://www.webyog....
[ 0.25732800364494324, 0.29049375653266907, 0.4041517674922943, -0.046480365097522736, -0.28637659549713135, -0.29167598485946655, 0.44398197531700134, 0.37682631611824036, -0.09026464074850082, -0.8741134405136108, 0.18882304430007935, 0.6201847791671753, -0.05596325919032097, 0.22491797804...
I have column that contains strings. The strings in that column look like this: FirstString/SecondString/ThirdString I need to parse this so I have two values: Value 1: FirstString/SecondString Value 2: ThirdString I could have actually longer strings but I always nee it seperated like [string1/string2/string3/...]...
[ -0.10669717937707901, 0.008411088027060032, 0.4557545483112335, -0.1966487020254135, -0.16252344846725464, -0.04237855225801468, 0.4732491075992584, -0.16990254819393158, -0.098735511302948, -0.5674927234649658, 0.08155418187379837, 0.431911826133728, -0.4463043212890625, 0.107901260256767...
data in quotes." ``` expr1: Left( [Property] , InStrRev( [Property] , "/") - 1), Mid( [Property] , InStrRev( [Property] , "/") + 1) expr1: mid( [Property] , 1, instr( [Property] , "/", -1)) , mid( [Property] , instr( [Property] , "/", -1)+1, length( [Property] )) ``` In a query, use the following two expressions as ...
[ -0.2687658667564392, 0.17885734140872955, 0.8629342317581177, -0.09006872028112411, -0.32001134753227234, 0.4760756194591522, 0.06650262326002121, -0.41363921761512756, 0.13904666900634766, -0.021374830976128578, -0.36339759826660156, 0.3801023066043854, -0.4382406771183014, 0.168502345681...
As far as i know it is not possible to do the following in C# 2.0 ``` public class Father { public virtual Father SomePropertyName { get { return this; } } } public class Child : Father { public override Child SomePropertyName { get
[ 0.05377957224845886, 0.10330379009246826, 0.29562366008758545, -0.010053576901555061, 0.46319296956062317, -0.10251766443252563, 0.10950915515422821, 0.27919748425483704, 0.0017031095921993256, -0.56894451379776, -0.23050129413604736, 0.32270556688308716, -0.0261534471064806, 0.83342945575...
{ return this; } } } ``` I workaround the problem by creating the property in the derived class as "new", but of course that is not polymorphic. ``` public new Child SomePropertyName ``` Is there any solution in 2.0? What about any features in 3.5 that address this matter? This is not possi...
[ 0.07960828393697739, 0.00034821577719412744, 0.07660503685474396, -0.02054520882666111, 0.1527029126882553, -0.13757841289043427, 0.31357231736183167, -0.2965822219848633, 0.054101258516311646, -0.48344263434410095, -0.2527902126312256, 0.4220748543739319, -0.29027122259140015, 0.211991161...
Set(S); } class D : B { T Get(); Set(T); } ``` For the `Get` methods, covariance means that `T` must either be `S` or a type derived from `S`. Otherwise, if you had a reference to an object of type `D` stored in a variable typed `B`, when you called `B.Get()` you wouldn't get an object representable as an `S`...
[ 0.15854747593402863, -0.2662140130996704, -0.10766459256410599, 0.0026816697791218758, -0.14101864397525787, -0.08762767910957336, 0.2819579243659973, -0.1910974532365799, 0.024023503065109253, -0.13661445677280426, -0.49659907817840576, 0.45533105731010437, -0.5566767454147339, 0.38236716...
in a variable typed `B`, when you called `B.Set(X)`, where `X` was of type `S` but not of type `T`, `D::Set(T)` would get an object of a type it did not expect. In C#, there was a conscious decision to disallow changing the type when overloading properties, even when they have only one of the getter/setter pair, becau...
[ 0.08943749964237213, -0.23200038075447083, -0.18138213455677032, -0.05095690116286278, -0.3021038770675659, -0.28243327140808105, 0.2092333883047104, 0.14685943722724915, -0.05160171166062355, -0.25886794924736023, -0.3367418348789215, 0.3476104140281677, -0.7329503893852234, 0.15066115558...
I was reading [this article](http://www.ibm.com/developerworks/java/library/j-dcl.html) about "Double-Checked locking" and out of the main topic of the article I was wondering why at some point of the article the author uses the next Idiom: > Listing 7. Attempting to solve the out-of-order write problem > > > > `...
[ 0.33302387595176697, -0.17169521749019623, 0.053492654114961624, 0.10814014077186584, 0.06873664259910583, -0.19857102632522583, 0.5370570421218872, -0.2613496780395508, -0.42215588688850403, -0.29147714376449585, -0.3289775550365448, 0.5757500529289246, -0.5625009536743164, 0.328382641077...
//2 > if (inst == null) > { > synchronized(Singleton.class) { //3 > inst = new Singleton(); //4 >
[ 0.25408732891082764, -0.45414355397224426, -0.027452444657683372, 0.20191872119903564, 0.09949915111064911, 0.26560765504837036, 0.33135366439819336, -0.42271625995635986, -0.25413981080055237, -0.3879598379135132, -0.11829834431409836, 0.4792786240577698, -0.5137250423431396, 0.0939529761...
} > instance = inst; //5 > } > } > } > return instance; > } > > ``` And my question is: Is there any reason to synchronize twice some code with the same lock? Have this any purpose it? Many thanks
[ 0.2192789614200592, 0.2708134651184082, 0.06599411368370056, 0.03313174098730087, -0.022856561467051506, -0.20614320039749146, 0.3839704394340515, -0.3203694522380829, -0.19432011246681213, -0.5578938126564026, -0.03208192437887192, 0.4716810882091522, -0.37747323513031006, 0.1409633606672...
in advance. The point of locking twice was to *attempt* to prevent out-of-order writes. The memory model specifies where reorderings can occur, partly in terms of locks. The lock ensures that no writes (including any within the singleton constructor) appear to happen after the "instance = inst;" line. However, to go d...
[ 0.1645057499408722, 0.08948305994272232, -0.09367310255765915, -0.15026648342609406, 0.3557263910770416, -0.004614582750946283, 0.40784314274787903, -0.07315944880247116, -0.49905139207839966, -0.3502916991710663, -0.4060705900192261, 0.41012799739837646, -0.4787580668926239, 0.17788392305...
I have wrapped Log4net in a static wrapper and want to log ``` loggingEvent.LocationInformation.MethodName loggingEvent.LocationInformation.ClassName ``` However all I get is the name of my wrapper. How can I log that info using a forwardingappender and a static wrapper class like ``` Logger.Debug("Logging to De...
[ 0.04949348419904709, 0.06479641050100327, 0.2925984263420105, -0.26891186833381653, -0.00899555440992117, 0.03129364550113678, 0.7128117084503174, -0.19778792560100555, -0.11411599069833755, -0.5970283150672913, -0.12484724074602127, 0.7561981678009033, -0.4476393163204193, 0.1301687806844...
{ defaultLogger = LoggerManager.GetLogger(Assembly.GetCallingAssembly(),"MyDefaultLoggger"); ``` ... ``` public static void Info(string message) { if (defaultLogger.IsEnabledFor(infoLevel)) { defaultLogger.Log(typeof(Logger), infoLevel, message, null); } ...
[ -0.24750661849975586, -0.25028058886528015, 0.5404699444770813, -0.21519291400909424, 0.4059281647205353, 0.03187652677297592, 0.29453858733177185, -0.08994196355342865, -0.3499508798122406, -0.5129052996635437, -0.5139685273170471, 0.7694453001022339, -0.5766111612319946, 0.18374925851821...
Image a Button on your windows form that does something when being clicked. The click events thats raised is typically bound to a method such as > protected void Button1\_Click(object > sender, EventArgs e) { > > > } What I see sometimes in other peoples' code is that the implementation of the buttons' behaviour ...
[ 0.2539088726043701, -0.19722452759742737, 0.6070516705513, -0.07042444497346878, -0.19609177112579346, 0.06677659600973129, 0.2639620900154114, 0.013658975251019001, -0.38597676157951355, -0.9830213785171509, -0.06219492107629776, 0.45465290546417236, -0.6551125645637512, -0.15921236574649...
code is needed internally somewhere else, it can be easily used), I am wondering, **if this is a general good design decision**? So the question is: Is it a generally good idea to put event handling code into an own method and if so what naming convention for those methods are proven to be best practice? I put the eve...
[ 0.401706337928772, 0.011900602839887142, -0.0002287713869009167, 0.19533748924732208, -0.11953370273113251, -0.22457320988178253, 0.022840242832899094, -0.12115368992090225, -0.25161659717559814, -0.4003377854824066, 0.09713049232959747, 0.4933059811592102, -0.24475347995758057, -0.0251081...
always into the handler, sometimes even if it is being called from the same event (as long as the signature is the same). So it's more like, use a separate method if it is a general action, and don't if the method is closely related to the actual event.
[ 0.5266842842102051, -0.5573095083236694, -0.0933694913983345, 0.0556623749434948, 0.08060849457979202, -0.3061566948890686, 0.29057547450065613, -0.1615874320268631, -0.11813495308160782, -0.3487314283847809, -0.2246931791305542, 0.2995409369468689, -0.49028903245925903, -0.163441777229309...
Following Izb's question about [Best binary XML format for JavaME](https://stackoverflow.com/questions/8599/best-binary-xml-format-for-javame), I'm looking for an implementation for either binary XML-like formats or just plain XML. My metrics for such implementation, by most important first, are: 1. Supported phones. ...
[ 0.3327401578426361, -0.031191691756248474, 0.3988899290561676, -0.019260207191109657, 0.13357210159301758, -0.16359253227710724, 0.19149427115917206, -0.2102789431810379, -0.24144676327705383, -0.8007176518440247, -0.06074513494968414, 0.6174435019493103, -0.004812678322196007, -0.22072388...
I would like to host a Maven repository for a framework we're working on and its dependencies. Can I just deploy my artifacts to my FTP host using `mvn deploy`, or should I manually deploy and/or setup some things before being able to deploy artifacts? I only have FTP access to server I want to host the Maven repo on. ...
[ 0.30074483156204224, 0.03597387298941612, 0.34786638617515564, 0.2506435811519623, 0.0811229720711708, -0.11826927959918976, 0.004787220153957605, -0.09924042224884033, -0.3747961223125458, -0.643534779548645, -0.22478032112121582, 0.7392993569374084, 0.16177555918693542, 0.201677694916725...
when you have full control over the host machine, or at least more than just FTP access since you need to configure the local directories where the repositories will be placed. Is this possible? I've successfully used Archiva as my repository for several years ... see <http://archiva.apache.org/>. It's easy to administ...
[ 0.07826822251081467, 0.038906000554561615, 0.2720283269882202, 0.23188309371471405, -0.13567014038562775, -0.20681089162826538, 0.2706355154514313, -0.016017165035009384, -0.22354452311992645, -0.6951548457145691, -0.22398315370082855, 0.3855736255645752, 0.077898770570755, 0.3232612013816...
artifacts are deployed to the repositories using the file system. However, it is possible to use a repository on another server with any combination of supported protocols including http, ftp, scp, sftp and more. For more information, refer to Chapter 3. A Maven 2 repository is simply a specific directory structure, s...
[ -0.08630527555942535, -0.12184851616621017, 0.24796825647354126, 0.39549508690834045, 0.20796746015548706, -0.30277180671691895, -0.03650917112827301, -0.1135401502251625, -0.49260345101356506, -0.6706094741821289, -0.38570311665534973, 0.3854927122592926, 0.18878526985645294, -0.030545990...
How can this line in Java be translated to Ruby: String className = "java.util.Vector"; ... Object o = Class.forName(className).newInstance(); Thanks! ``` Object::const_get('String').new() ```
[ -0.09168830513954163, 0.041667595505714417, 0.4178130030632019, -0.2600894272327423, -0.02411411702632904, -0.03819766640663147, 0.5642704367637634, -0.24050047993659973, -0.09601965546607971, -0.5916576981544495, -0.3194153606891632, 0.45470622181892395, -0.34856855869293213, -0.045722864...
I have object A which in turn has a property of type Object B ``` Class A property x as Object B End Class ``` On my ASP.NET page when I select a gridview item which maps to an object of type A I serialize the object onto the QueryString and pass it to the next page. However I run into problems if property x act...
[ 0.1009288802742958, 0.08318832516670227, 0.42887139320373535, -0.04278750717639923, -0.25119495391845703, -0.2358362227678299, 0.27401918172836304, -0.222795769572258, -0.09034515172243118, -0.8534804582595825, -0.1216769814491272, 0.32146143913269043, -0.25440388917922974, 0.4077663123607...
have read that this is bad practice.** * Using a unique key for the object and retrieving it on the next page. **Approach not used as the objects do not map to a single instance in a table, they arte composed of data from different databases.** So I guess my question is two fold * Is it worth using GKZip to compre...
[ -0.06366011500358582, -0.024925004690885544, 0.4533432126045227, 0.11983215063810349, -0.2648685872554779, -0.2456328570842743, 0.19496524333953857, -0.18297699093818665, -0.34117838740348816, -0.9310463070869446, -0.14446577429771423, 0.47215694189071655, -0.2812093496322632, 0.1647758334...
dim objectA as A = ctype(context.items("keyA"), objectA) dim objectB as B = objectA.B end sub ``` One reason to use this is if you want the users to believe that the next page is really a part of the first page. To them, it only appears as if a PostBack has occurred. Also, you don't really need a unique key usin...
[ 0.637769877910614, -0.1807740479707718, 0.642657995223999, -0.09419794380664825, -0.43732815980911255, -0.1785479187965393, -0.07232098281383514, -0.30663442611694336, -0.27824676036834717, -0.2855040729045868, 0.13309429585933685, 0.11047819256782532, -0.4783196449279785, 0.26962238550186...
who mentioned that serialized objects on the querystring is a much worse evil than using session state. If you do use session state, just remember to clear the key you use immediately after using it.
[ -0.10416314005851746, -0.1205572560429573, -0.01994338259100914, 0.1591639667749405, -0.04088069126009941, -0.4185555875301361, 0.43659964203834534, 0.22752530872821808, -0.4478249251842499, -0.625958263874054, -0.07213392108678818, 0.44116175174713135, -0.10003596544265747, 0.407388120889...
I have a `Dictionary<string, someobject>`. EDIT: It was pointed out to me, that my example was bad. My whole intention was not to update the references in a loop but to update different values based on differnt threads need to update/get the data. I changed the loop to a method. I need to update items in my dictionar...
[ 0.25430798530578613, 0.30160292983055115, 0.36454591155052185, -0.1535928100347519, 0.14153486490249634, 0.11177117377519608, 0.44471725821495056, -0.1771298497915268, 0.05034886300563812, -0.606376588344574, 0.12431226670742035, 0.5733675360679626, -0.6215388774871826, 0.3370567858219147,...
keyValuePair = matrixElements[key]; lock (keyValuePair.Key) { keyValuePair.Value = SomeMeanMethod(); } } ``` Would that hold up in court or fail? I just want each value in the dictionary to be locked independantly so locking (and updating) one value does not lock the others. Also i'm aware the lo...
[ 0.09289254248142242, 0.21942192316055298, 0.38457542657852173, -0.04150886461138725, 0.33814704418182373, -0.18438807129859924, 0.5541588664054871, -0.2165759950876236, -0.14151939749717712, -0.4643462002277374, -0.0059999399818480015, 0.6483867168426514, -0.12413245439529419, 0.3096606731...
ever locks that object you could be in for some deadlocks that are hard to debug. Also note that you lock the *object*, not the reference, so if I gave you a dictionary, I may still hold references to the keys and lock on them - causing us to lock on the same object. *If* you completely encapsulate the dictionary, and...
[ 0.276032418012619, 0.03742561861872673, 0.6833342909812927, 0.4736712574958801, 0.16149884462356567, -0.3918013274669647, 0.6899480223655701, -0.07709173858165741, -0.2666250169277191, -0.6728550791740417, -0.2679077982902527, 0.717978835105896, -0.22089633345603943, 0.061366576701402664, ...
see this: ``` public class Something { private readonly object lockObj = new object(); public SomethingReentrant() { lock(lockObj) // Line A { // ... } } } ``` rather than seeing line A above replaced by ``` lock(this) ``` That way, a separate object is locked on, and the visibil...
[ 0.058200281113386154, -0.26141440868377686, 0.032935675233602524, -0.222713440656662, 0.08726968616247177, -0.3455861806869507, 0.452879935503006, -0.0528763011097908, -0.6055163741111755, -0.5359216928482056, -0.4108801782131195, 0.27246809005737305, -0.28603029251098633, 0.18541286885738...
As in a title, does anyone know how to freeze GridView header in ASP.NET ? Option (a) buy into a UI package that includes a souped-up GridView with this functionality built-in. Option (b) roll your own - it's not simple. Dino Esposito [has one approach](http://weblogs.asp.net/despos/archive/2003/12/12/43091.aspx). E...
[ 0.611090898513794, -0.30779922008514404, 0.04892847687005997, 0.18343959748744965, -0.21368171274662018, -0.30372244119644165, -0.14465908706188202, -0.17505748569965363, -0.4383291006088257, -0.11315879970788956, -0.04423611983656883, 0.4933801591396332, -0.08099766820669174, -0.450088232...
I've got a XmlNodeList which I need to have it in a format that I can then re-use within a XSLT stylesheet by calling it from a C# extension method. Can anyone help? I have read that it might have something to do with using a XPathNavigator but I'm still a bit stuck. I had to solve this issue myself a couple of years ...
[ 0.07322406023740768, 0.1003970205783844, 0.523442268371582, 0.12306073307991028, 0.07086307555437088, -0.1921999156475067, -0.0050316741690039635, 0.07106096297502518, -0.2603994607925415, -0.8569847941398621, -0.0815374106168747, 0.4303806722164154, -0.18778549134731293, 0.292038917541503...
root = nodesFragment.CreateElement("root"); foreach (XmlNode node in nodeList) { root.AppendChild(node); } nodesFragment.AppendChild(root); arguments.AddParam("argumentname", string.Empty, nodesFragment.CreateNavigator().SelectChildren(XPathNodeType.All)); ``` Then you need to make sure you have the correspondin...
[ -0.24827507138252258, 0.00494113564491272, 0.37767377495765686, -0.14575402438640594, 0.13762080669403076, -0.11844930052757263, 0.41750919818878174, -0.1677091270685196, -0.01977677457034588, -0.7182273864746094, -0.11549296230077744, 0.47816580533981323, -0.20761315524578094, 0.229005217...
In VB.Net, I can declare a variable in a function as Static, like this: ``` Function EncodeForXml(ByVal data As String) As String Static badAmpersand As Regex = new Regex("&(?![a-zA-Z]{2,6};|#[0-9]{2,4};)") data = badAmpersand.Replace(data, "&amp;") ''// more processing return data End Function ```...
[ 0.11496658623218536, -0.027224931865930557, 0.4673132300376892, -0.36724624037742615, -0.3580605685710907, -0.1620013266801834, 0.2472265362739563, 0.031644999980926514, -0.4129602611064911, -0.10840406268835068, -0.18432645499706268, 0.6359288096427917, -0.5613431334495544, 0.452776312828...
for details on how VB.Net implements it, and typing up the question made that apparent to me. After applying that insight, I found this: <http://weblogs.asp.net/psteele/articles/7717.aspx> That article explains that it's not really supported by the CLR, and the VB compiler creates a static (shared) variable "under ...
[ 0.7136043310165405, -0.1190970242023468, 0.02594946138560772, -0.17142389714717865, -0.14727088809013367, -0.34743183851242065, 0.3514261245727539, -0.06612275540828705, -0.1160816103219986, -0.11366736888885498, 0.06248250976204872, 0.582269549369812, -0.4671890437602997, -0.0155824944376...
from MS is that it doesn't like VB.Net and C# to get too far apart feature-wise. If one language has a feature not supported by the other it tends to become a priority for the language team for the next version.
[ -0.19720458984375, -0.02083425410091877, 0.3357731103897095, 0.06657098978757858, -0.018157191574573517, -0.032878611236810684, 0.16045621037483215, 0.13494925200939178, -0.1513654589653015, -0.424034059047699, -0.19675469398498535, 0.2867668569087982, -0.3911074697971344, -0.0018314378103...
I'm using VisualSVN Server to host an SVN repo, and for some automation work, I'd like to be able to get specific versions via the http[s] layer. I can get the HEAD version simply via an http[s] request to the server (httpd?) - but is there any ability to specify the revision, perhaps as a query-string? I can't seem t...
[ 0.3460158705711365, -0.22909094393253326, 1.053511619567871, 0.213547945022583, -0.22815977036952972, 0.012909171171486378, -0.0003019450232386589, -0.005644273944199085, -0.555469274520874, -0.6175932288169861, -0.040873441845178604, 0.43362492322921753, 0.1968262791633606, 0.414618909358...
I have a program which needs to behave slightly differently on Tiger than on Leopard. Does anybody know of a system call which will allow me to accurately determine which version of Mac OS X I am running. I have found a number of macro definitions to determine the OS of the build machine, but nothing really good to det...
[ 0.5145662426948547, 0.1273670345544815, -0.21660609543323517, 0.04423049837350845, -0.029848391190171242, 0.06892161816358566, 0.3725869953632355, 0.14755010604858398, -0.3869093954563141, -0.5327913165092468, -0.03274639695882797, 0.7331573963165283, -0.3670075535774231, -0.10745675116777...
and above, don't use Gestalt() anymore. See this answer for more details: [How do I determine the OS version at runtime in OS X or iOS (without using Gestalt)?](https://stackoverflow.com/questions/11072804/mac-os-x-10-8-replacement-for-gestalt-for-testing-os-version-at-runtime)
[ -0.047615498304367065, 0.28639817237854004, 0.5203042030334473, 0.00681705167517066, 0.04234787076711655, -0.11848565936088562, 0.2701006829738617, -0.13187046349048615, -0.27441123127937317, -0.44867709279060364, -0.4566762447357178, 0.6701991558074951, -0.23948845267295837, -0.1146237105...
I have a pretty basic windows form app in .Net. All the code is C#. I'd like to turn it into an Asp.net web app. How can I easily do this? I think there's an easy way since the controls I drag/drop onto the windows form designer are pretty much the same that I drag/drop onto the aspx design page. Note: the windows fo...
[ 0.3410698175430298, -0.032995544373989105, 0.4361461400985718, 0.13767245411872864, -0.054042402654886246, -0.4129594564437866, 0.1573329120874405, -0.05217059329152107, -0.07425796240568161, -0.9260925054550171, 0.12365566194057465, 0.6015458106994629, -0.30806440114974976, -0.02379301376...
the UI work will need to be redone, largely from scratch. You will probably be able to re-use your actual "doing" code, though (i.e. the logic that manipulates the files). Second - define "local machine". For an ASP.NET application, this is usually the server, which might not be what you want. You can do some things c...
[ 0.4185107350349426, -0.2920911908149719, 0.4302029609680176, 0.11933258920907974, -0.19675099849700928, -0.23197944462299347, 0.12405410408973694, 0.04059649258852005, -0.31816864013671875, -0.9221981167793274, -0.147112637758255, 0.6586434841156006, -0.28927740454673767, 0.001768307643942...
I am looking for a way in LINQ to match the follow SQL Query. ``` Select max(uid) as uid, Serial_Number from Table Group BY Serial_Number ``` Really looking for some help on this one. The above query gets the max uid of each Serial Number because of the `Group By` Syntax. ``` using (DataContext dc = new Data...
[ 0.014551282860338688, 0.026302585378289223, 0.5426754951477051, 0.15605738759040833, -0.0015752263134345412, 0.2728324234485626, -0.2880149781703949, 0.019474772736430168, -0.23535111546516418, -0.9211606979370117, 0.04930900037288666, 0.42103490233421326, -0.08301685750484467, 0.213531747...
group t by t.SerialNumber into g select new {
[ -0.20435293018817902, -0.43919211626052856, 0.12202853709459305, -0.1645045131444931, 0.15690693259239197, 0.1031675785779953, 0.060876354575157166, -0.3479178249835968, 0.02051537111401558, -0.5541759729385376, -0.46369999647140503, 0.5116063952445984, -0.6362081170082092, -0.022923797369...
SerialNumber = g.Key, uid = (from t2 in g select t2.uid).Max() }; } ```
[ -0.07023709267377853, -0.19317932426929474, 0.7144587635993958, -0.10785979777574539, 0.3927845358848572, 0.15491744875907898, 0.2932055592536926, -0.21003581583499908, -0.247704416513443, -0.4532969295978546, -0.2654011845588684, 0.8161430954933167, -0.319247841835022, 0.4637465476989746,...
Windows Forms allows you to develop Components, non-visual elements that can have a designer. Built-in components include the BackgroundWorker, Timer, and a lot of ADO .NET objects. It's a nice way to provide easy configuration of a complicated object, and it it enables designer-assisted data binding. I've been lookin...
[ 0.5508501529693604, 0.13667292892932892, 0.20783235132694244, 0.19369706511497498, -0.11277348548173904, -0.09317614883184433, 0.08408769220113754, -0.03765313699841499, -0.23427945375442505, -0.8346595168113708, 0.056044768542051315, 0.3578515648841858, -0.19310526549816132, -0.1351558715...
do this. Just from my own observations, it seems like Microsoft is trying to move away from having components and similar things in the GUI. I think WPF tries to limit most of what's in the XAML to strictly GUI things. Data binding I guess would be the only exception. I know I try to keep most everything else in the co...
[ 0.5339739322662354, 0.21559345722198486, 0.06087677180767059, 0.17911206185817719, 0.02423964999616146, -0.48584118485450745, 0.1357424110174179, 0.16538158059120178, -0.014390970580279827, -0.46282336115837097, 0.004028287250548601, 0.605880618095398, -0.16278228163719177, -0.135290414094...
What is the benefit of using the servletContext as opposed the request in order to obtain a requestDispatcher? ``` servletContext.getRequestDispatcher(dispatchPath) ``` and using ``` argRequest.getRequestDispatcher(dispatchPath) ``` It's there in the javadocs in black and white <http://java.sun.com/javaee/5/docs...
[ -0.348278284072876, -0.33782827854156494, 0.41973888874053955, -0.05430808663368225, -0.23274829983711243, -0.06705211102962494, 0.012610047124326229, -0.5849918723106384, -0.18180885910987854, -0.873008668422699, -0.04959199205040932, 0.5777896642684937, -0.462444007396698, 0.015124959871...
I'm having a test hang in our rails app can't figure out which one (since it hangs and doesn't get to the failure report). I found this blog post <http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/> which adds a setup hook to print the test name but when I try to do the same thing it give...
[ 0.5808385610580444, 0.17240257561206818, -0.14292249083518982, 0.13433794677257538, -0.09748949855566025, -0.11786533147096634, 0.49508145451545715, -0.26047998666763306, 0.12655490636825562, -0.591204047203064, 0.3310263156890869, 0.5654316544532776, -0.07862299680709839, 0.25478470325469...
The subject says it all, almost. How do I automatically fix jsp pages so that relative URLs are mapped to the context path instead of the server root? That is, given for example ``` <link rel="stylesheet" type="text/css" href="/css/style.css" /> ``` how do I set-up things in a way that maps the css to `my-server/my-...
[ 0.23424658179283142, 0.010493586771190166, 0.6146902441978455, 0.05634273216128349, -0.1852399855852127, -0.2323923259973526, 0.22515110671520233, 0.15262927114963531, -0.1555902510881424, -0.6082548499107361, -0.21730072796344757, 0.40983423590660095, -0.08137967437505722, 0.0607882849872...
should start with your base URL. For example, if you specified `<BASE HREF="http://www.example.com/prefix">` and then had `<a href="/link/1.html">` then the link should actually take you to /prefix/link/1.html. This should also work on `<LINK>` (stylesheet) tags.
[ 0.3906750977039337, -0.22944965958595276, 0.8090392351150513, 0.0880720317363739, -0.15336979925632477, -0.46158480644226074, 0.06398222595453262, -0.19593149423599243, -0.17781038582324982, -0.5556851029396057, -0.2525210678577423, 0.17540398240089417, -0.042056430131196976, 0.11013205349...
I've started to "play around" with PowerShell and am trying to get it to "behave". One of the things I'd like to do is to customize the PROMPT to be "similar" to what "$M$P$\_$+$G" do on MS-Dos: A quick rundown of what these do: **Character****| Description** **$m** The remote name associated with the current dr...
[ 0.09764956682920456, -0.17653785645961761, 0.5672003626823425, -0.05369531363248825, 0.10599848628044128, -0.10411427915096283, 0.15912218391895294, 0.05441031977534294, 0.041158828884363174, -0.8581327795982361, 0.073496975004673, 0.7995298504829407, -0.2433573305606842, 0.465041607618331...
one character for each level pushed **$g** > (greater-than sign) So the final output is something like: ``` \\spma1fp1\JARAVJ$ H:\temp ++> ``` I've been able to add the `$M` and `$_` functionality (and a nifty History feature) to my prompt as follows: ``` function prompt { ## Get the history. Si...
[ 0.0966319739818573, -0.1430278718471527, 0.42798981070518494, -0.018114715814590454, 0.1615181565284729, 0.20918701589107513, 0.07085315138101578, -0.20445352792739868, -0.2695602476596832, -0.6578287482261658, -0.36051541566848755, 0.43111562728881836, -0.15601827204227448, 0.056396309286...
in the history, find out the ## Id of the final one. ## PowerShell defaults the $lastId variable to '0' if this ## code doesn't execute. if($history.Count -gt 0) { $lastItem = $history[$history.Count - 1] $lastId = $lastItem.Id } ## The command that we're currently entering on the prom...
[ -0.09648443013429642, -0.404521644115448, 0.6776493191719055, -0.16953136026859283, 0.3735238313674927, -0.1324714720249176, -0.052667610347270966, -0.0901939868927002, -0.17573405802249908, -0.7027767896652222, -0.39118486642837524, 0.4736374318599701, -0.12777793407440186, 0.366855829954...
$nextCommand = $lastId + 1 ## Get the current location $currentDirectory = get-location ## Set the Windows Title to the current location $host.ui.RawUI.WindowTitle = "PS: " + $currentDirectory ## And create a prompt that shows the command number, ## and current location "PS:$nextCommand $curren...
[ -0.3108319044113159, -0.23282568156719208, 0.8848901391029358, 0.09205502271652222, 0.7753714919090271, -0.2003612518310547, -0.031557101756334305, 0.3682141900062561, -0.27532124519348145, -1.1547141075134277, -0.39783766865730286, 0.4468879699707031, 0.07464955747127533, 0.44715520739555...
## a single item or an array, the @() syntax ensures ## that PowerShell treats it as an array $history = @(get-history) ## If there are any items in the history, find out the ## Id of the final one. ## PowerShell defaults the $lastId variable to '0' if this ## code doesn't execute. if($history.Cou...
[ -0.020949259400367737, -0.3345620930194855, 0.515936553478241, 0.014535695314407349, 0.1908542811870575, -0.03277028724551201, 0.09154243767261505, -0.2467975914478302, -0.49271124601364136, -0.3602527379989624, -0.579581618309021, 0.3340415954589844, -0.3972586393356323, 0.257918596267700...
command that we're currently entering on the prompt ## will be next in the history. Because of that, we'll ## take the last history Id and add one to it. $nextCommand = $lastId + 1 ## Get the current location $currentDirectory = get-location ## Set the Windows Title to the current location $host...
[ -0.11490343511104584, -0.3863798677921295, 1.0957307815551758, -0.08917462825775146, 0.6961289644241333, -0.17206759750843048, -0.024184416979551315, 0.15524260699748993, -0.2211097776889801, -0.9311385154724121, -0.44588273763656616, 0.3207581341266632, 0.0952528715133667, 0.3833447992801...
$pushPrompt += "+" } ## And create a prompt that shows the command number, ## and current location "PS:$nextCommand $currentDirectory `n$($pushPrompt)>" } ```
[ -0.26153838634490967, -0.49043646454811096, 0.9440826773643494, -0.1441480666399002, 0.7900726795196533, 0.18556331098079681, 0.07700560986995697, 0.15844255685806274, -0.043060943484306335, -0.7785851359367371, -0.5009581446647644, 0.15011054277420044, -0.14849132299423218, 0.154403284192...
In low latency trading applications we are very conscious of latency issues. There is some concern that our application may experience increased latency if the server on which it is running changes PowerNow state. Any kernel developers familiar with calling PowerNow changes and how much processor time is used for the ...
[ 0.024265795946121216, -0.23761379718780518, 0.2106577605009079, 0.24504511058330536, 0.11560039967298508, -0.1599651575088501, 0.04321790486574173, 0.1261918544769287, -0.06324348598718643, -0.4443191885948181, 0.009386972524225712, 0.7908710241317749, -0.08234649896621704, -0.306506872177...
worry than the cost of the state change itself, though, would be that downclocking the CPU will make your application run slower, increasing latency across the board.
[ 0.166227787733078, 0.10906464606523514, 0.2849777638912201, 0.2675607204437256, 0.10166414082050323, -0.07557880133390427, 0.14682142436504364, -0.09201805293560028, -0.2488059401512146, -0.6429667472839355, 0.3902146518230438, 0.3995906114578247, 0.1830962896347046, -0.05284018814563751, ...
I'm updating some old AWStats config files to filter out some specific IP ranges. Here's the pertinent section of the config file: ``` # Do not include access from clients that match following criteria. # If your log file contains IP addresses in host field, you must enter here # matching IP addresses criteria. # If D...
[ 0.33238691091537476, -0.001357286935672164, 0.274858683347702, 0.058438073843717575, 0.0383271761238575, -0.22879038751125336, 0.2974264919757843, -0.10115835070610046, -0.633043646812439, -0.7273492217063904, 0.01496706809848547, 0.4778274893760681, -0.4251854419708252, -0.070147715508937...
REGEX[value]. # Change : Effective for new updates only # Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]" # Example: "localhost REGEX[^.*\.localdomain$]" # Default: "" # SkipHosts="" ``` I want to, for example, filter out X.Y.Z.[97-110] I tried this format (Note: Not these IP values, using private range as exam...
[ 0.10077907890081406, -0.2159605324268341, 0.576719343662262, -0.020521914586424828, 0.14403261244297028, -0.3536156713962555, 0.3088130056858063, 0.11585056781768799, -0.40615347027778625, -0.641559362411499, -0.31505286693573, 0.4307321608066559, -0.6223793029785156, -0.12056134641170502,...
I've discovered that any time I do the following: ``` echo '<a href="http://" title="bla">huzzah</a>'; ``` I end up with the following being rendered to the browser: ``` <a href="http:///" title="bla">huzzah</a> ``` This is particularly annoying when I link to a file with an extension, as it breaks the link. Any...
[ 0.13116498291492462, 0.28185397386550903, 0.3613716959953308, -0.357535719871521, -0.07385218888521194, -0.07663163542747498, 0.6492435336112976, -0.10116638988256454, -0.344962477684021, -0.4415314793586731, -0.6206324696540833, 0.47058138251304626, -0.41362908482551575, 0.088738746941089...
echo '<span class="title">'; if(isset($item[6])) { echo '<a href="http://" title="">' . 'me' . '</a>'; } echo '</span>'; echo '</div></div>'; } ``` **Update:** In response to Matt Long, I pasted in your line and it rendered the same. **Update:** In response to Fire Lancer, I've put back in my ori...
[ 0.30413344502449036, 0.2263554483652115, 0.49494221806526184, -0.022926898673176765, -0.22508054971694946, 0.4766758382320404, 0.6298112869262695, -0.486626535654068, -0.07182694971561432, -0.24419160187244415, -0.4015823006629944, 0.08563022315502167, -0.3714616596698761, -0.1383560746908...
through rawurlencode() elsewhere, and linking to http%3A%2F%2F makes the page think it is a local/relative link. **Update:** I pasted the above response without really looking at it. So the HTML is correct when viewing source, but the actual page interprets it with another trailing slash after it. **Solution:** This ...
[ 0.2959933280944824, -0.22160691022872925, 0.36728331446647644, -0.06248694658279419, -0.6788596510887146, -0.04036620259284973, 0.4832591414451599, 0.05751609057188034, -0.13373267650604248, -0.7073073387145996, 0.007289679255336523, 0.44828274846076965, -0.11274754256010056, -0.0691452696...
link or it's context is making the browser interpret a trailing slash. I wonder if it's a side effect of the url encoding. If you rawurldecode it will that help. If there are parts of the url that need to stay encoded you could search for the slashes and just put those back.
[ 0.37873539328575134, -0.2782188057899475, 0.2514294385910034, 0.23683689534664154, -0.31725770235061646, -0.23964902758598328, 0.38841453194618225, 0.5682397484779358, -0.1346377730369568, -0.6488561034202576, 0.0816168412566185, 0.10617786645889282, -0.24489738047122955, 0.483841001987457...
Using the Sun Java VM 1.5 or 1.6 on Windows, I connect a non-blocking socket. I then fill a `ByteBuffer` with a message to output, and attempt to `write()` to the SocketChannel. I expect the write to complete only partially if the amount to be written is greater than the amount of space in the socket's TCP output buff...
[ 0.25559037923812866, -0.09725011885166168, 0.6309976577758789, -0.24709373712539673, -0.2342180758714676, -0.06438028812408447, 0.4637879431247711, -0.26892101764678955, -0.16262520849704742, -0.6711448431015015, -0.008075075224041939, 0.5533750057220459, -0.19961635768413544, 0.0545043349...
much less than my multi-megabyte output message). A problem here is that I can't test the code that handles the case where the output is partially written (registering an interest set of `WRITE` to a selector and doing a `select()` to wait until the remainder can be written), as that case never seems to happen. What a...
[ 0.1181083470582962, 0.12301092594861984, 0.31451523303985596, -0.06874430924654007, -0.008094708435237408, 0.04517004266381264, 0.26491469144821167, 0.05558013543486595, -0.2184705287218094, -0.6338369846343994, -0.2542322874069214, 0.4389791190624237, -0.4448145627975464, 0.30323749780654...
final ServerSocket ss = new ServerSocket(12345); final Socket cs = ss.accept(); System.out.println("Accepted connection"); final InputStream in = cs.getInputStream(); final byte[] tmp = new byte[64 * 1024]; while (in.read(tmp) != -1); Thread.sleep(100000); } } import java.net.InetSocketAddr...
[ -0.25901883840560913, -0.30405107140541077, 0.7123910784721375, -0.17925263941287994, 0.1937911957502365, 0.4136512279510498, 0.5608608722686768, -0.1945730745792389, -0.20503337681293488, -0.8672544956207275, -0.4770653247833252, 0.18516641855239868, -0.19300773739814758, 0.50171333551406...
1024); for (int i = 0; i < 10; i++) { System.out.println("to write: " + buf.remaining() + ", written: " + s.write(buf)); buf.position(0); } Thread.sleep(100000); } } ``` If you run the above server and then make the above client attempt to write 10 chunks of 128 kB of data, you'll see that e...
[ 0.1419554203748703, 0.04923287779092789, 0.6366251111030579, -0.43121933937072754, 0.3295130729675293, 0.1208215057849884, 0.45529642701148987, -0.2869809567928314, -0.46111300587654114, -0.6129903197288513, -0.38461020588874817, 0.26244980096817017, -0.2897903025150299, 0.2711485028266907...
operation on the client will write 128 kB, whereas all subsequent writes will return `0`. Output when the server is reading from the connection: ``` to write: 131072, written: 131072 to write: 131072, written: 131072 to write: 131072, written: 131072 ... ``` Output when the server is not reading from the connect...
[ -0.5113281011581421, -0.11138207465410233, 0.46110033988952637, -0.37368103861808777, 0.13579322397708893, 0.33296751976013184, 0.61606764793396, -0.18831612169742584, -0.3529260456562042, -0.6208949685096741, -0.7045323848724365, 0.6534329056739807, -0.19083507359027863, -0.09329296648502...
It's surprising how difficult it is to find a simple, concise answer to this question: 1. I have a file, foo.zip, on my website 2. What can I do to find out how many people have accessed this file? 3. I could use Tomcat calls if necessary Or you could parse the log file if you don't need the data in realtime. ``` gre...
[ 0.5731177926063538, 0.16707269847393036, 0.34943556785583496, -0.09500735998153687, 0.12690530717372894, -0.31089791655540466, 0.23322367668151855, 0.006417145021259785, -0.4751647114753723, -0.28497979044914246, -0.1044607162475586, 0.5580620765686035, -0.4362546503543854, 0.1342830806970...
Is there a way to validate on the client side browser whether the size of a file being uploaded from a JSP page is over a set size limit without forcing the user to upload the entire file only to find out it was too large? I would like to stay away from any proprietary controls or techniques like Flash or ActiveX if p...
[ 0.40243518352508545, -0.10907714068889618, 0.19941222667694092, 0.2235575020313263, -0.05123153328895569, -0.41508015990257263, 0.1050390973687172, -0.0034788940101861954, -0.5186293125152588, -0.47002071142196655, -0.1289878636598587, 0.4452158808708191, -0.161019429564476, 0.087595835328...
once. You'd have to actually open a stream representing that chunk of POST data and read from it for the entire thing to be transfered. On the other hand, if you're worried about denial-of-service attacks, then you can't really trust the Content-Length header, because it can easily be forged. In this case, you should ...
[ 0.5108964443206787, -0.21152745187282562, -0.004430707544088364, 0.2986508011817932, -0.15501318871974945, -0.40431997179985046, 0.22963982820510864, 0.2196580022573471, -0.17768701910972595, -0.2220517098903656, -0.11208313703536987, 0.3424765169620514, -0.10861343145370483, 0.36496597528...
I think this is a multi-part question, so bear with me. Currently all of our developers use the version of Tortise built for SVN 1.4 and our SVN server is running 1.4. Our build server is running CC.Net and is using SVN 1.4. We want to upgrade. I've established that upgrading our clients to 1.5, then our server to ...
[ 0.5779617428779602, 0.10581015795469284, 0.4767361283302307, 0.019489433616399765, -0.09616392850875854, -0.1676291525363922, 0.2182910293340683, -0.1038331612944603, -0.3387461006641388, -0.79580157995224, 0.1741475909948349, 1.123512625694275, -0.1456524133682251, 0.10829869657754898, ...
this time to upgrade CC.Net, however, we'd like to make sure the SVN upgrade is done first, then come back and do CC.Net. Also adding to this mix is that in some of our projects we maintain a 'tools' folder that may or may not contain the binaries for SVN due to the nAnt scripts we use in those projects. I assume that...
[ 0.600641131401062, 0.045923762023448944, 0.027121547609567642, 0.24559728801250458, -0.10725095123052597, -0.6423443555831909, -0.057583000510931015, -0.029557956382632256, -0.2631264626979828, -0.8672525882720947, 0.03629288077354431, 0.9278656244277954, -0.19446498155593872, 0.0230187997...
to answer as it seems you're asking for a plan for your environment, which I'm not in. However, here's what I'd do: * Upgrade cc.net (you have a known good starting point, and this is the most likely breaking step. do it without any other variables so it is easier to roll back) * Test & Verify * Upgrade all the svn c...
[ 0.9385811686515808, 0.03114992380142212, 0.18224090337753296, 0.30999189615249634, 0.14685139060020447, -0.44052377343177795, 0.2408512681722641, -0.2444884479045868, -0.19647926092147827, -0.8449488878250122, -0.01964307203888893, 0.9486150145530701, -0.023749517276883125, -0.209962502121...
I've been reading through a lot of the rookie Java questions on `finalize()` and find it kind of bewildering that no one has really made it plain that finalize() is an unreliable way to clean up resources. I saw someone comment that they use it to clean up Connections, which is really scary since the only way to come a...
[ 0.11418695002794266, 0.011664794757962227, -0.16826197504997253, -0.141259104013443, 0.012685246765613556, -0.5055843591690063, 0.46916595101356506, 0.11464692652225494, -0.41496744751930237, -0.4052502512931824, -0.03272285312414169, 0.24504657089710236, 0.04096616804599762, -0.1297545880...
anyone implement `finalize()` in a production system ever. This still doesn't mean that it doesn't have its uses, or that people I've worked with have been doing it right. So my question is, what use cases are there for implementing `finalize()` that cannot be handled more reliably via another process or syntax within...
[ 0.39144083857536316, -0.014458414167165756, -0.2532511353492737, -0.08520042896270752, 0.04990397021174431, -0.30806320905685425, 0.3584662675857544, -0.1311502903699875, -0.13402937352657318, -0.5407467484474182, -0.2700445353984833, 0.31348660588264465, -0.0376715250313282, -0.1438254565...
`close()` method and document that it needs to be called. Implement `finalize()` to do the `close()` processing if you detect it hasn't been done. Maybe with something dumped to `stderr` to point out that you're cleaning up after a buggy caller. It provides extra safety in an exceptional/buggy situation. Not every ca...
[ 0.08939648419618607, -0.09474869817495346, 0.5955324172973633, -0.03544235974550247, 0.04391312226653099, -0.32820194959640503, 0.2989398241043091, -0.47557178139686584, -0.005822828039526939, -0.35880404710769653, -0.5552437901496887, 0.6180098652839661, -0.21286864578723907, -0.167612671...
as of Java 9, [`Object.finalize()`](https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html#finalize--) is deprecated! They point us to [`java.lang.ref.Cleaner`](https://docs.oracle.com/javase/9/docs/api/java/lang/ref/Cleaner.html) and [`java.lang.ref.PhantomReference`](https://docs.oracle.com/javase/9/docs/api...
[ -0.12885946035385132, 0.013612852431833744, 0.8440995812416077, -0.021978914737701416, -0.1024046391248703, 0.07657016068696976, 0.3419053852558136, -0.09016343206167221, -0.16545920073986053, -0.3796129822731018, -0.36741116642951965, 0.7035473585128784, -0.10408733785152435, 0.3570080101...
I have 3 .net projects. Project1.dll is generated by a VS2008 project. Project2.dll is generated by a VS2005 project that references Project1.dll. Project3.dll is generated by a VS2008 project that references both Project1.dll and Project2.dll. Right now, I build Project1.dll, and manually copy it to the place wh...
[ 0.5093545317649841, 0.031244544312357903, 0.49658486247062683, -0.09179826825857162, -0.3449590504169464, -0.02849295362830162, 0.43421292304992676, -0.559095025062561, -0.034187860786914825, -0.7934532165527344, 0.08526737987995148, 0.39159518480300903, -0.30734217166900635, 0.23023755848...
projects is not an option at this time. We have a 3rd party visualstudio plugin that does not yet work in VS2008. Project2 must stay in VS2005 De-updating Project1 and Project3 to VS2005 and then creating one solution is not an option either. We're relying on C# 3.0 and .net 3.5 features in those projects. Probably th...
[ 0.5228844881057739, -0.2501339316368103, 0.42599040269851685, 0.2326401174068451, -0.21226121485233307, -0.09417293965816498, 0.2754560112953186, -0.04390562325716019, -0.31292495131492615, -0.9571067094802856, -0.019137578085064888, 0.44913196563720703, -0.2335316389799118, 0.009652297943...
higher projects would have the latest versions. You can set the path per configurations (Debug, Release) as well, so you won't need to change that for each type of build.
[ 0.5218833088874817, -0.1541704684495926, 0.3123047947883606, 0.2632848024368286, 0.18569844961166382, -0.13550901412963867, 0.2216782122850418, -0.29656949639320374, -0.2393810898065567, -0.8146210312843323, -0.1484317034482956, 0.5092546343803406, -0.09600355476140976, -0.1577331721782684...
I'm looking for a good ASP.NET RichTextBox component that integrates fairly easily with .NET Framework 3.5 Ajax, specifically one that can easily provide its values from inside an UpdatePanel. I got burned by RicherComponents RichTextBox which still does not reference the Framework 3.5. thanks! Look at FCKEditor for ...
[ 0.29901066422462463, 0.0072248633950948715, 0.14504241943359375, 0.31283876299858093, -0.3331102132797241, -0.45742905139923096, 0.3197607398033142, 0.0335925854742527, -0.17080557346343994, -0.6824520826339722, 0.2882348299026489, 0.4564565420150757, -0.30574092268943787, -0.0182945299893...
My app uses a WebRequest at certain points to get pages from itself. This shouldn't be a problem. It actually works fine on the server, which is a "shared" hosting package with Medium trust. Locally, I use a custom security policy based on Medium trust, which includes the following — copied straight from the default M...
[ 0.08290001004934311, 0.3420991003513336, 0.950316309928894, 0.031218454241752625, 0.140619695186615, 0.12910611927509308, 0.44957804679870605, 0.06295699626207352, -0.09776722639799118, -0.7543458342552185, -0.3808773458003998, 0.4037025570869446, -0.4802226722240448, 0.11917953193187714, ...
puriAbsolute, psRole, pReturnType ); } ``` The url being requested is on localhost, in the same application as the requester. Here's the top of the stack trace. ``` at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermiss...
[ -0.25475895404815674, -0.1103726401925087, 0.8969749212265015, -0.026242708787322044, -0.012030805461108685, 0.26088520884513855, -0.008502320386469364, -0.3366468548774719, -0.01898624561727047, -0.5340065360069275, -0.5085672736167908, 0.46496081352233887, -0.11306075751781464, 0.2310461...
xmlResolver) ``` Anyone see the problem here? @Sijin: Thanks for the suggestion. The url that gets sent to the resolver is based on the request URL, and I confirmed in the debugger that accessing the site at 127.0.0.1 yields the same result. My ignorance. I didn't know that the $OriginHost$ token was replaced using t...
[ -0.03416578099131584, 0.01243263017386198, 0.2838217318058014, 0.1471787691116333, -0.13132518529891968, -0.15366633236408234, 0.22616058588027954, 0.1430269181728363, -0.191255122423172, -0.7360042929649353, -0.13601411879062653, 0.5230329036712646, -0.13735336065292358, 0.282330453395843...
I've updated **php.ini** and moved **php\_mysql.dll** as explained in [steps 6 and 8 here.](https://stackoverflow.com/questions/11919/how-do-i-get-php-and-mysql-working-on-iis-70#94341) I get this error… ``` Fatal error: Call to undefined function mysql_connect() in C:\inetpub... ``` MySQL doesn't show up in my **ph...
[ -0.14395242929458618, 0.09899941086769104, 1.0154683589935303, -0.04376249015331268, 0.3023482859134674, 0.023484686389565468, 0.42614272236824036, -0.11944590508937836, -0.5424206256866455, -0.6984179019927979, -0.29516738653182983, 0.622316837310791, -0.24875488877296448, 0.3132573962211...
IIS**. Result: new, different errors instead! ``` Warning: mysql_connect() [function.mysql-connect]: Access denied for user '...'@'localhost' (using password: YES) in C:\inetpub\... error in query. ``` ``` Fatal error: Call to a member function RecordCount() on a non-object in C:\inetpub\... ``` --- I found se...
[ -0.1619715690612793, 0.23940430581569672, 0.24941565096378326, -0.0799858421087265, -0.006823349744081497, -0.22148633003234863, 0.7591238617897034, -0.23013828694820404, -0.07408340275287628, -0.7947505116462708, 0.029338272288441658, 0.6075594425201416, -0.40309271216392517, 0.0179305430...
- I've had problems with this where I've been editting a php.ini file which php isn't using and getting very frustrated until I realised. Also if php is running as a module within apache you will need to restart the apache server to pickup the changes. Wise to do this in anycase if you're not sure. a "php -m" from t...
[ 0.5467080473899841, 0.09631294757127762, 0.43339285254478455, 0.13312174379825592, -0.19639259576797485, -0.24656416475772858, 0.18392066657543182, 0.030307872220873833, -0.4242555797100067, -0.511588990688324, 0.06813205778598785, 0.4801051616668701, -0.1463298350572586, 0.273626416921615...
I have two vista Business machines. I have IE 7 installed on both. On my first machine (Computer1) if I go to this site (<http://www.quirksmode.org/js/detect.html>), it says I am using "Explorer 6 on Windows". If I use Computer2 with Vista Business and IE7, it says I am using "Explorer 7 on Windows". Here is a screen [...
[ 0.40851786732673645, 0.262783408164978, 0.6848636865615845, -0.25049296021461487, 0.2095680683851242, 0.11192833632230759, 0.3772713541984558, 0.08745536208152771, -0.18689291179180145, -0.956717312335968, -0.12997910380363464, 0.6937119960784912, -0.3558517098426819, 0.11489947140216827, ...
3.5.30729; .NET CLR 3.0.30618; MS-RTC LM 8; .NET CLR 1.1.4322) Rick Kierner (11 minutes ago) Computer2: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022) Rick Kierner (10 minutes ago) ``` There seems to be some garbage in the user agent ...
[ -0.04961322993040085, 0.5243912935256958, 0.4810619354248047, 0.034872863441705704, 0.0861450806260109, -0.3290584981441498, 0.5881590247154236, -0.04858386516571045, -0.32597899436950684, -0.5205962657928467, -0.2902178168296814, 0.9252245426177979, -0.5756983160972595, 0.0997757688164711...
check your Registry for additional User Agent information that could be removed at `[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Internet Settings\5.0\User Agent]` (yes, it resides under '5.0' even if you have Internet Explorer 7). Note that this is the location in Windows XP, I'm assuming it is the s...
[ -0.053412046283483505, 0.14229057729244232, 0.515705406665802, 0.013160977512598038, 0.4225744605064392, -0.4032585620880127, 0.366796612739563, 0.577780544757843, -0.32769009470939636, -0.8836445212364197, -0.08912041038274765, 0.5256829857826233, -0.08175119757652283, 0.3290981650352478,...
Is there a tool (preferably free) which will translate Oracle's PL/SQL stored procedure language into Postgresql's PL/pgSQL stored procedure language? There is a tool available at <http://ora2pg.darold.net/> which can be used to transalate Oracle Schemas to Postgres schemas, but I'm not sure if it will also translate t...
[ 0.22080154716968536, -0.04165754094719887, -0.2996341586112976, 0.3713497519493103, 0.0010996464407071471, 0.012632875703275204, -0.0754007026553154, 0.25288188457489014, 0.030008478090167046, -0.3423957824707031, 0.049550898373126984, 0.39874589443206787, -0.10655801743268967, 0.052501287...
I have a basic model in which i have specified some of the fields to validate the presence of. in the create action in the controller i do the standard: ``` @obj = SomeObject.new(params[:some_obj]) if @obj.save flash[:notice] = "ok" redirect... else flash[:error] = @obj.errors.full_messages.collect { |msg| msg ...
[ -0.14242030680179596, -0.12616416811943054, 0.6900632381439209, -0.09979081153869629, -0.03781943768262863, -0.055682867765426636, 0.2603471875190735, -0.3658924698829651, -0.3606308698654175, -0.572243869304657, -0.1690095216035843, 0.44590604305267334, -0.2955959737300873, 0.098042711615...
I need to know, from within Powershell, if the current drive is a mapped drive or not. Unfortunately, Get-PSDrive is not working "as expected": ``` PS:24 H:\temp >get-psdrive h Name Provider Root CurrentLocation ---- -------- ---- --------------- H FileSystem H:\ ...
[ 0.060289401561021805, 0.03482094034552574, 0.8242436051368713, 0.21872350573539734, 0.3177562355995178, -0.4353215992450714, 0.026589125394821167, 0.3312411308288574, -0.13714109361171722, -0.9669915437698364, -0.19378498196601868, 0.5470073223114014, -0.10704600065946579, 0.20036439597606...
drive: ``` New connections will be remembered. Status Local Remote Network ------------------------------------------------------------------------------- OK H: \\spma1fp1\JARAVJ$ Microsoft Windows Network The command completed successfully. ``` What I want to d...
[ -0.03831185773015022, 0.07401175796985626, 0.7886393070220947, 0.1617812067270279, 0.07573079317808151, -0.17052774131298065, 0.26068955659866333, -0.05276560038328171, -0.12914128601551056, -0.7870952486991882, -0.30810168385505676, 0.8908924460411072, -0.13796831667423248, 0.210655316710...