text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I would like to know this to understand why some games like Mario is still playing today and because no other. This is to implement in future game projects. ***What are the factors most important to developing a game?*** Gameplay or Graphics? Both? **EDIT:** It's Possible combine these two? Gameplay, combined with ...
[ 0.42186054587364197, 0.019649185240268707, 0.039890192449092865, 0.37144985795021057, 0.05166931077837944, 0.056723784655332565, 0.03497546911239624, 0.049241695553064346, -0.5289354920387268, -0.9678845405578613, 0.23003172874450684, 0.5328172445297241, 0.42424634099006653, -0.18192224204...
commands only, which makes it easy to come back to. Comes back to this: <http://xkcd.com/484/>
[ 0.19142889976501465, -0.22644689679145813, 0.11472479999065399, 0.32930585741996765, -0.2392694503068924, -0.10735370963811874, 0.07158441841602325, 0.18087553977966309, -0.5094144344329834, -0.31864774227142334, -0.4047605097293854, 0.5492262840270996, -0.2813635766506195, 0.0070932856760...
Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why? See <http://todotnet.com/archive/2006/07/27/8248.aspx> > Because in the construction of > XPathDocument, there's an http GET > command to see if it can access the > DTD. It's not doing anything with the > DTD. It's for just in cas...
[ 0.21212701499462128, -0.029137123376131058, 0.6313266158103943, 0.2682054936885834, 0.006434333510696888, -0.4022815227508545, 0.05835412070155144, -0.03393058106303215, -0.08937617391347885, -0.6962530016899109, -0.18934249877929688, 0.4396791458129883, -0.37049150466918945, 0.21189486980...
I'm writing an app where 3rd party vendors can write plugin DLLs and drop them into the web app's bin directory. I want the ability for these plugins to be able to register their own HttpModules if necessary. Is there anyway that I can add or remove HttpModules from and to the pipeline at runtime without having a cor...
[ 0.5434265732765198, 0.06464672833681107, 0.4158564507961273, 0.11898136138916016, 0.15703754127025604, -0.07068178802728653, 0.23983165621757507, -0.08822157979011536, -0.40054717659950256, -0.6456919312477112, -0.022630874067544937, 0.6292340755462646, -0.40160560607910156, -0.00348116992...
having to fudge the web.config to achieve the same effect. > It has to be done at just the right > time in the HttpApplication life cycle > which is when the HttpApplication > object initializes (multiple times, > once for each instance of > HttpApplication). The only method > where this works correct is > HttpA...
[ 0.26117944717407227, -0.3286634385585785, 0.5688008069992065, 0.15537843108177185, 0.09944421797990799, -0.3028112053871155, 0.4453549087047577, -0.5110580921173096, -0.228302001953125, -0.7963787317276001, -0.08003728091716766, 0.7169700264930725, -0.15912878513336182, 0.02994147874414920...
// some modules use explicit interface implementation > // by declaring this static member as the IHttpModule interface > // we work around that > public static IHttpModule Module = new xrnsToashxMappingModule(); > public override void Init() > { > base.Init(); > Module.Init(t...
[ 0.08248351514339447, -0.28416386246681213, 0.4418981075286865, -0.16853006184101105, -0.0982292965054512, -0.254398375749588, 0.4231429100036621, -0.4712449610233307, -0.12249769270420074, -0.6993090510368347, -0.2190515249967575, 0.28687623143196106, -0.6317558884620667, 0.190481916069984...
Init() method and > then access the static instance's Init > method. Init() of the module hooks up > the event and off you go. Via [Rick Strahl's blog](http://www.west-wind.com/weblog/posts/44979.aspx)
[ -0.07035978883504868, -0.15482567250728607, 0.34475579857826233, 0.0182083360850811, 0.06625871360301971, -0.34704625606536865, 0.6041229963302612, -0.17971684038639069, -0.20762795209884644, -0.48384106159210205, -0.2553389072418213, 0.1480359435081482, -0.1517992615699768, 0.115007959306...
According [this MSDN article](http://msdn.microsoft.com/en-us/library/y3bwdsh3.aspx) *HttpApplication*.EndRequest can be used to close or dispose of resources. However this event is not fired/called in my application. We are attaching the handler in Page\_Load the following way: ``` HttpContext.Current.ApplicationIns...
[ -0.3275206685066223, -0.2521078288555145, 0.32109326124191284, 0.03816831484436989, 0.09918680042028427, -0.08250749856233597, 0.2884613871574402, -0.15020500123500824, -0.41228410601615906, -0.8756585121154785, -0.21791620552539825, 0.34228238463401794, -0.3732656240463257, 0.277357131242...
private void context_EndRequest(object sender, EventArgs e) { HttpContext context = ((HttpApplication)sender).Context; // use your contect here } } ``` You need to add the module to your web.config ``` <httpModules> <add name="CustomModule" type="CustomModule"/> </httpModules> ```
[ 0.029015837237238884, -0.257833331823349, 0.5823088884353638, 0.03407120704650879, 0.3398817181587219, -0.18102708458900452, 0.11536157876253128, -0.22940614819526672, -0.24177902936935425, -0.570497989654541, -0.41670486330986023, 0.7687839269638062, -0.38547536730766296, 0.03429690003395...
In the context of unit testing, what is a "unit"? I usually define it as a **single code execution path** through a single method. That comes from the rule of thumb that the number of unit tests required to test a method is equal to or greater than the method's [cyclomatic complexity](http://en.wikipedia.org/wiki/Cyclo...
[ 0.4056433439254761, -0.062310151755809784, -0.3382361829280853, 0.34026792645454407, 0.04852243885397911, 0.21893754601478577, 0.3482089042663574, -0.5468260645866394, 0.05718760937452316, -0.48566707968711853, 0.10327829420566559, 0.23209737241268158, 0.18700478971004486, 0.22646087408065...
I have a property called "IsSecureConnection" that is part of my object's interface. This makes sense for most implementations of the interface, however, in some implementations I would like to make the property ReadOnly. Should I omit this property from the object's interface even though it is required by all of the...
[ 0.02789526805281639, 0.03452376276254654, 0.030996989458799362, -0.028637036681175232, -0.13731685280799866, -0.04983079060912132, 0.402641624212265, 0.011182879097759724, 0.039952732622623444, -0.7652224898338318, 0.15111702680587769, 0.5551231503486633, -0.43756958842277527, 0.1512693613...
to implement: ``` interface IObject { bool IsSecureConnection { get; } // ... other interface definitions // } interface ISecurableObject : IObject { new bool IsSecureConnection { get; set; } } ``` 2) Split the set from the property, with an inherited interface: ``` interface IObject { bool IsSecureC...
[ 0.05326781049370766, -0.16998066008090973, 0.328710675239563, 0.12336644530296326, 0.003702474758028984, -0.20315365493297577, 0.4297279417514801, -0.6006016731262207, 0.07634352147579193, -0.7947306632995605, -0.31000077724456787, 0.5796734094619751, -0.6085180044174194, -0.14548043906688...
bool TrySecureConnection(); } ``` 4) Add an additional check property: ``` interface ISecurable { bool IsSecureConnection { get; set; } bool SupportsSecureConnection { get; } } ``` All of these are, IMO, valid designs for certain contexts. Since I don't have any info on the use cases, except that almost all ...
[ -0.08695725351572037, 0.04569773003458977, 0.5026143789291382, -0.11939936876296997, -0.13152167201042175, -0.20546747744083405, 0.7249371409416199, -0.30994269251823425, 0.03646652773022652, -0.7022185921669006, -0.19129449129104614, 0.6304028034210205, -0.5267667770385742, -0.09975694119...
think it has less issues than the other choices. If clients *prefer* a secure connection, but don't *require* one - then 1 has the disadvantage of either requiring overloads or the client to check if their IObject is really a ISecurableObject. Both of which are kind of ugly. 2 has the same problem, but without the tro...
[ 0.37142032384872437, -0.22933760285377502, 0.42999836802482605, 0.19281518459320068, 0.008846713230013847, -0.17649805545806885, 0.16605211794376373, -0.33431771397590637, -0.36730679869651794, -0.5256646871566772, 0.1278018057346344, 0.6151761412620544, -0.3968712389469147, -0.05790914222...
to IO.Stream) is easy for clients to get wrong. If 90% of implementers are securable, it's easy to not check the SupportsSecureConnection. There's also an implementer's choice of either throwing an exception or discarding the IsSecureConnection = true call if it's not supported, requiring clients to both catch and chec...
[ 0.08765368163585663, -0.06886233389377594, 0.00969903264194727, 0.09321342408657074, 0.15539801120758057, -0.1564101278781891, 0.622273862361908, -0.12297318875789642, 0.0033607312943786383, -0.2722630202770233, -0.11715827882289886, 0.5192506313323975, -0.4792407751083374, -0.150124087929...
If you have a class member that is `static` and `public`. Would you write `static public` or `public static`? I know they are the same. But is there some recommendation / best practice for writing this? see [this question](https://stackoverflow.com/questions/191929/is-there-a-convention-to-the-order-of-modifiers-in-c#1...
[ 0.19751328229904175, -0.23639152944087982, 0.09890236705541611, 0.14722058176994324, -0.06734869629144669, -0.32196858525276184, 0.06635990738868713, -0.018504982814192772, -0.342914342880249, -0.4065921902656555, -0.31265145540237427, 0.7302348613739014, -0.245243638753891, -0.03852814435...
This is a follow-up to a previous question I had about interfaces. I received an answer that I like, but I'm not sure how to implement it in VB.NET. Previous question: [Should this property be part of my object's interface?](https://stackoverflow.com/questions/239909/should-this-property-be-part-of-my-objects-interfa...
[ 0.07714100182056427, -0.04173039644956589, 0.36598941683769226, 0.058316316455602646, -0.16314367949962616, -0.16765762865543365, 0.1431291401386261, -0.2809242606163025, -0.041037097573280334, -0.8519818782806396, 0.045328762382268906, 0.6729719042778015, -0.4207336902618408, 0.1276175230...
concrete class is mutable, have it implement the second interface. In your code that deals with the class, check to see that it is an instance of the second interface, cast if so, then call the setter.
[ 0.099796824157238, -0.3891315758228302, -0.19524848461151123, -0.03366081416606903, -0.20684026181697845, -0.08027894794940948, 0.10716183483600616, -0.18605242669582367, 0.10630066692829132, -0.6985138654708862, 0.03560376912355423, 0.594036340713501, -0.5118783712387085, 0.22101686894893...
I have two databases, one is an MS Access file, the other is a SQL Server database. I need to create a SELECT command that filters data from the SQL Server database based on the data in the Access database. What is the best way to accomplish this with ADO.NET? Can I pull the required data from each database into two n...
[ 0.3003961741924286, -0.0799650177359581, 0.3777120113372803, -0.022484727203845978, 0.0329400971531868, -0.16714689135551453, 0.07631707191467285, -0.2193530797958374, -0.04264470934867859, -0.8252053260803223, 0.21295621991157532, 0.47498705983161926, -0.5999937057495117, 0.18512360751628...
of background information to explain why there are two databases. My company uses a CAD program to design buildings. The program stores materials used in the CAD model in an Access database. There is one file for each model. I am writing a program that will generate costing information for each model. This is based on ...
[ 0.855721652507782, 0.3670671284198761, 0.14149993658065796, 0.27385497093200684, 0.3269127607345581, 0.34656018018722534, -0.22293958067893982, 0.12889377772808075, -0.047352924942970276, -0.5295084118843079, 0.31411147117614746, 0.6306926608085632, -0.07882048934698105, 0.2596167325973511...
solution but it worked. You don't want to pull both datasets across if you don't have to do that. You are also going to have trouble implementing Tomalak's solution since the file location may change and might not even be readily available to the server itself. My guess is that your users set up an Access database wit...
[ -0.19962336122989655, -0.18583695590496063, 0.11514268815517426, 0.3481217324733734, 0.2783218324184418, 0.0260276161134243, 0.11065829545259476, -0.08933087438344955, -0.4018631875514984, -0.3773430585861206, 0.1542607843875885, 0.45381346344947815, -0.23757518827915192, 0.172005623579025...
the Access data, then use that to generate a filtered query to SQL Server so that you can minimize the data that is sent over the network. So, the most important things are: 1. Filter the data ON THE SERVER so that you can minimize network traffic and also because the database is going to be faster at filtering than ...
[ -0.027802128344774246, -0.26626306772232056, 0.31586021184921265, 0.37886789441108704, -0.1845639944076538, -0.2592562139034271, -0.2730637192726135, 0.055361539125442505, -0.22852474451065063, -0.8471958041191101, 0.17710591852664948, 0.3414480984210968, -0.45496243238449097, 0.2295432388...
I have to generate two random sets of matrices Each containing 3 digit numbers ranging from 2 - 10 like that matrix 1: 994,878,129,121 matrix 2: 272,794,378,212 the numbers in both matrices have to be greater then 100 and less then 999 BUT the mean for both matrices has to be in the ratio of 1:2 or 2:3 what ever...
[ 0.48158198595046997, 0.12555722892284393, 0.304556280374527, 0.007092353422194719, -0.3969973921775818, 0.5513104796409607, 0.13275456428527832, -0.5529881715774536, -0.5295619964599609, -0.5628124475479126, 0.4031578600406647, 0.08688987046480179, -0.21947850286960602, 0.2775024175643921,...
each. 1. Fill the first list with four random numbers. - Calculate the mean of the first list. - Multiply the mean by 2 or by 3/2, whichever the user input. This is the required mean of the second list. - Multiply by 4. This is the required total of the second list. - Generate 3 random numbers. - Subtract the total of...
[ 0.1807505339384079, -0.2800067365169525, 0.4021144509315491, -0.10352212190628052, -0.27068111300468445, 0.3039882779121399, 0.2617366909980774, -0.9594101309776306, -0.36760154366493225, -0.4166208803653717, -0.15607710182666779, 0.2962439954280853, -0.4692518711090088, -0.023654140532016...
the second list is not truly random, since it's based on the other values in the list.
[ -0.04877840727567673, -0.5097112059593201, -0.1566731035709381, 0.3850090205669403, -0.19220083951950073, 0.01600232906639576, -0.24979639053344727, -0.1860637664794922, -0.1561867743730545, -0.5551342964172363, -0.049800895154476166, 0.04372170940041542, -0.43173059821128845, 0.1204050108...
I have a very large C project with many separate C files and headers and many dozens of contributors. Many contributors do not have a strong knowledge of makefiles and dependencies, resulting in the not uncommon problem where you almost always have to "make clean" before you can trust "make" to have produced correct ou...
[ 1.0348796844482422, 0.24019333720207214, -0.2554008960723877, 0.06169755384325981, 0.09218741208314896, -0.1784549504518509, 0.18206794559955597, -0.15975098311901093, 0.09406573325395584, -0.2752859592437744, 0.14664743840694427, 0.4025160074234009, 0.17517048120498657, 0.1622984707355499...
why these aren't caught by the build manager before a new baseline is cut... Yes, we shouldn't have let it go this far. Yes, we're educating our developers. As usual, we don't have time to stop everything and fix it by hand. I'm thinking there are tools along these lines: * Are there automated tools to help build ...
[ 0.8040879368782043, 0.20642365515232086, -0.09180140495300293, 0.2698862552642822, 0.15365180373191833, -0.024620579555630684, 0.3389124572277069, -0.017731066793203354, -0.21130628883838654, -0.516136109828949, 0.2043725550174713, 0.8106308579444885, 0.10343369096517563, 0.005483204033225...
done to resolve this issue? Thanks in advance... -Adam It might be easiest to switch from Make to a tool which automatically detects dependencies. For example, [SCons](http://www.scons.org/) doesn't make you list dependencies but instead automatically parses the files being compiled and looks for includes. You simply...
[ 0.5756986141204834, -0.14390060305595398, 0.005901002325117588, 0.15402495861053467, 0.12522035837173462, -0.35844913125038147, -0.0019643220584839582, -0.32701945304870605, -0.2851414084434509, -0.38803529739379883, -0.14908583462238312, 0.677406907081604, -0.33285990357398987, 0.17602492...
example of how to have your makefiles automatically discover dependencies so that you don't need to specify them by hand.
[ 0.5143788456916809, -0.09190066158771515, 0.06864991784095764, 0.28285834193229675, 0.4940010607242584, -0.11009284108877182, 0.06746632605791092, -0.12559416890144348, -0.28278669714927673, -0.612149178981781, 0.012007340788841248, 0.38431984186172485, 0.13813218474388123, -0.322699725627...
Jeffrey Richter is looking for some input on how people are using his PowerThreading library. If anyone out there is using this, what parts of it are you using? He is looking to clean up the library and wants to know what classes people are using. <http://www.wintellect.com/PowerThreading.aspx> EDIT: See <http://tech...
[ 0.4100036919116974, 0.2931649386882782, -0.15690192580223083, 0.4145963191986084, -0.1886037141084671, -0.3861446678638458, 0.0034921017941087484, -0.3085935115814209, -0.45729735493659973, -0.10066983103752136, 0.04261966422200203, 0.24946419894695282, 0.13562873005867004, 0.1414779126644...
In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged. Is there any other way of determining if the value has changed? In WPF you have [Dependen...
[ 0.26142582297325134, -0.0059932805597782135, 0.4890744686126709, 0.050574418157339096, -0.08868404477834702, -0.12167195975780487, 0.12375681102275848, -0.2485779970884323, -0.1931183934211731, -0.6155931949615479, -0.006249499041587114, 0.5135153532028198, -0.42101049423217773, -0.0062276...
Why is Oracle's `to_char()` function adding spaces? ``` select length('012'), length(to_char('012')), length(to_char('12', '000')) from dual; ``` `3, 3, 4` The format mask that you are using is fixed width and allows for a minus sign
[ 0.21595090627670288, -0.058437373489141464, 0.08496305346488953, -0.07079526782035828, 0.01279022078961134, 0.15709900856018066, 0.08043063431978226, -0.19829466938972473, 0.007485507987439632, -0.43588367104530334, -0.08717671036720276, 0.7292373776435852, -0.3349432349205017, -0.06184216...
Where can I find the option to switch between the Windows Working Set in Eclipse 3.4 (Ganymede)? In the previous version it was under then Window menu, but it appears to have moved. You still have it under 'Windows' menu. Windows/Working Sets/[your different working sets] You select the different working sets you wa...
[ 0.1286405622959137, -0.41650310158729553, 0.12066874653100967, -0.18537384271621704, -0.07703662663698196, 0.07674262672662735, -0.24544483423233032, 0.2133610099554062, -0.372881680727005, -0.6699650287628174, 0.2074790596961975, 0.6080853343009949, -0.3020763099193573, -0.035728182643651...
I'm hitting this error and I'm not really sure why. I have a minified version of excanvas.js and something is breaking in IE, specifically on: `var b=a.createStyleSheet();` I'm not sure why. Does anyone have any insight? I can provide more information, I'm just not sure what information will help. This is a slightly ...
[ 0.47731804847717285, 0.3524283766746521, 0.43414416909217834, -0.10014849901199341, -0.35511866211891174, -0.36524078249931335, 0.6042092442512512, -0.07508686929941177, 0.09110561013221741, -1.009175181388855, 0.0402168333530426, 0.37274330854415894, -0.2734091281890869, 0.164398729801177...
is the source of the problem. HTH, Russell
[ -0.1154157742857933, 0.3735090494155884, 0.23011988401412964, 0.08152012526988983, -0.12149582803249359, 0.18345816433429718, 0.006558853667229414, -0.0988374650478363, -0.14590881764888763, -0.3307550251483917, -0.3634900748729706, 0.1874694675207138, -0.24328899383544922, 0.5128493309020...
How would I achieve the pseudo-code below in JavaScript? I want to include the date check in the second code excerpt, where txtDate is for the BilledDate. ``` If ABS(billeddate – getdate) > 31 then yesno “The date you have entered is more than a month from today, Are you sure the date is correct,”. if (txtDate && t...
[ 0.6242854595184326, -0.25158873200416565, 0.8504642844200134, -0.2156992405653, 0.4406163990497589, -0.34369897842407227, 0.15433520078659058, -0.2019147127866745, -0.022515451535582542, -0.32332971692085266, -0.12295428663492203, 0.6620826125144958, -0.046941597014665604, -0.1062114536762...
myDate = new Date(yearno, monthno-1, dayno); //you could put hour, minute, second and milliseconds in this too ``` Beware, the month-part is an index, so january is 0, february is 1 and december is 11 !-) Then you can pull out anything you want, the .getTime() thing returns number of milliseconds since start of ...
[ 0.25682777166366577, -0.055877238512039185, 0.9223718643188477, -0.19626857340335846, 0.02755216509103775, 0.17327357828617096, 0.026397647336125374, -0.025819072499871254, -0.24650608003139496, -0.5148429870605469, -0.022149011492729187, 0.3363443911075592, 0.14065980911254883, 0.51452058...
= diff/(1000*60*60*24);//24 hours of 60 minutes of 60 second of 1000 milliseconds alert(diffInDays); ``` This will return a decimal number, so probably you'll want to look at the integer-value: ``` alert(Math.floor(diffInDays)); ```
[ 0.39118853211402893, 0.0845995545387268, 0.6411654949188232, -0.07452874630689621, 0.21227006614208221, 0.10288382321596146, 0.3979044258594513, -0.13915617763996124, -0.2696702778339386, -0.481388121843338, -0.1390528678894043, 0.5994166731834412, 0.050280001014471054, 0.15235580503940582...
I'd like something like a generic, re-usable `getPosition()` method that will tell me the number of bytes read from the starting point of the stream. Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap each and every one of them as I get them from disparate sources. Does such a bea...
[ 0.6911744475364685, -0.1483321636915207, 0.106257863342762, 0.13414090871810913, -0.24799354374408722, 0.03391595929861069, -0.09002386033535004, -0.07866867631673813, -0.3345634341239929, -0.4221205413341522, 0.30954626202583313, 0.5495671033859253, -0.19197170436382294, -0.11264615505933...
I want to write (or find) a guide to effective bug reporting in a style similar to ESR's [How To Ask Questions The Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html) What are your top tips for effective bug reports? * Step-by-step instructions on how to recreate the bug * Make sure you've attempted to isol...
[ 0.627631664276123, 0.06876209378242493, -0.018069475889205933, 0.2671142816543579, 0.038665834814310074, -0.12432160973548889, 0.33250853419303894, 0.068973608314991, -0.09179040789604187, -0.5947893261909485, 0.23720741271972656, 0.34833335876464844, -0.12799841165542603, -0.1915553659200...
line is you have to engage some level of critical thinking when the bug is encountered. Once you've exhausted all possibilities that it could be your fault, write up a bug. If you find out its your fault, but the software you are using/testing could have done something more usable to indicate its your fault, still writ...
[ 0.24646833539009094, 0.02548271231353283, 0.16855253279209137, 0.12230979651212692, 0.18573042750358582, 0.0688537135720253, 0.17456099390983582, 0.4549892842769623, -0.025569278746843338, -0.24980293214321136, 0.15955400466918945, 0.602552056312561, -0.17905202507972717, 0.212074294686317...
You can't just complain and walk away, participate in the process and help the team out by testing, recreating, and troubleshooting.
[ 0.5653606653213501, 0.17942330241203308, -0.6036921739578247, 0.5104004740715027, 0.08708032965660095, -0.41086235642433167, 0.5165948867797852, 0.15243588387966156, -0.005077288020402193, -0.29197531938552856, 0.06564652919769287, 0.28941580653190613, -0.09610314667224884, -0.161785945296...
I'm looking for a way to convert a preprocessor token to a string. Specifically, I've somewhere got: ``` #define MAX_LEN 16 ``` and I want to use it to prevent buffer overrun: ``` char val[MAX_LEN+1]; // room for \0 sscanf(buf, "%"MAX_LEN"s", val); ``` I'm open to other ways to accomplish the same thing, but sta...
[ -0.01061165053397417, -0.030608145520091057, 0.4134664535522461, -0.13211120665073395, 0.08856652677059174, 0.22868260741233826, 0.17070309817790985, -0.16372667253017426, -0.34404197335243225, -0.6101804971694946, -0.15176449716091156, 0.5323708653450012, -0.358288049697876, -0.0548429191...
We have a POST to a PL/SQL database procedure that (a) does some database operations based on the POST parameters and (b) redirects the user to a page showing the results. The problem is, when the user does a browser "refresh" of the results page, that still has the original request, so it calls the database procedure...
[ 0.34832286834716797, 0.14388400316238403, 0.13817456364631653, 0.2695344090461731, -0.06778952479362488, -0.11073543131351471, 0.16962577402591705, 0.15706802904605865, -0.14384305477142334, -0.49375221133232117, 0.09587547928094864, 0.11785498261451721, -0.37118715047836304, 0.42974841594...
redirect call, not the original user request? This would probably be in either the redirect itself, or in Javascript on the target page. see <http://www.decompile.com/cpp/faq/file_and_line_error_string.htm> specifically: ``` #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define AT __FILE__ ":" TOSTRING(__LI...
[ -0.18851618468761444, -0.3612748980522156, 0.8372295498847961, -0.18416066467761993, -0.08332856744527817, 0.028929783031344414, 0.3334946930408478, -0.4791525900363922, -0.2972204387187958, -0.47087594866752625, -0.366661012172699, 0.7395749092102051, -0.6955879330635071, -0.0904817730188...
I need my .net application to use the .html extension instead of .aspx I'm converting a php app and there are external applications which depend on that extension to function. What is the best way to do this? Thanks In IIS, when you create the application for the virtual directory, click on "Configuration" for the ...
[ 0.21647875010967255, 0.1452798992395401, 0.5221051573753357, 0.05190382897853851, -0.1309504210948944, 0.0944133773446083, 0.403626948595047, -0.15585537254810333, -0.25481751561164856, -1.1215554475784302, -0.13433220982551575, 0.5856173634529114, -0.17939020693302155, -0.1179136335849762...
extension=".html" type="System.Web.Compilation.PageBuildProvider" /> </buildProviders> </compilation> ``` EDIT: Added the section, according to the comment. Thanks Chris.
[ 0.2176462858915329, 0.16271322965621948, 0.5320063233375549, 0.06847196817398071, -0.43868011236190796, -0.1975608617067337, 0.23553112149238586, -0.021035635843873024, -0.5778610110282898, -0.6502240896224976, -0.22839660942554474, 0.27540701627731323, 0.09436914324760437, -0.250118970870...
I have the following SQL-statement: ``` SELECT DISTINCT name FROM log WHERE NOT name = '' AND name LIKE '%.EDIT%'; ``` It works fine on Postgres (returns all different names from log, which aren't empty and contain the string '.EDIT'). But on Oracle this statement doesn't work. Any idea why? ``` SELECT DISTINCT name...
[ 0.017127685248851776, 0.3191789388656616, 0.04435788467526436, -0.20044858753681183, -0.1563878059387207, -0.10666818171739578, 0.23865169286727905, -0.07871035486459732, 0.340157687664032, -0.47524896264076233, 0.022953780367970467, 0.5123812556266785, -0.1911344975233078, 0.3088956475257...
redundant. So re-write as: ``` SELECT DISTINCT name FROM log WHERE name LIKE '%.EDIT%'; ```
[ -0.2939297556877136, 0.10119955986738205, 0.29050129652023315, -0.01740953139960766, 0.12221374362707138, 0.004537801258265972, 0.055090516805648804, 0.03859752416610718, 0.08391842991113663, -0.49491816759109497, -0.25784212350845337, 0.3601185381412506, -0.16562819480895996, 0.3354433774...
I've got a VB.NET class that is invoked with a context menu extension in Internet Explorer. The code has access to the object model of the page, and reading data is not a problem. This is the code of a test function...it changes the status bar text (OK), prints the page HTML (OK), changes the HTML by adding a text an...
[ 0.733592689037323, 0.23029972612857819, 0.6455146670341492, -0.13229267299175262, -0.013799316249787807, -0.2807607352733612, 0.3528229594230652, -0.04856954142451286, -0.1362207680940628, -0.5787169337272644, -0.08848871290683746, 0.4252665638923645, -0.22303077578544617, 0.44075053930282...
As mshtml.HTMLDocument = Source.document Source.status = "Working..." Dim H As String = D.documentElement.innerHTML() MsgBox(H) D.documentElement.insertAdjacentText("beforeEnd", "ThisIsATest") H = D.documentElement.outerHTML() MsgBox(H) Source.status = "" End Sub ``` The function is called...
[ -0.1271534413099289, -0.20322805643081665, 0.6359866261482239, -0.36748042702674866, -0.1987808346748352, 0.13954846560955048, 0.3602932095527649, -0.33402109146118164, -0.08394526690244675, -0.6375864744186401, -0.4408937990665436, 0.2934417426586151, -0.5438516139984131, 0.19375734031200...
What is people's prefered method of storing application configuration data in a database. From having done this in the past myself, I've utilised two ways of doing it. 1. You can create a table where you store key/value pairs, where key is the name of the config option and value is its value. Pro's of this is adding n...
[ 0.303542822599411, -0.26723894476890564, -0.007200703490525484, 0.13755416870117188, 0.21196891367435455, -0.01513948105275631, -0.1601887196302414, -0.12626875936985016, -0.1909981667995453, -0.7031503319740295, 0.16699939966201782, 0.6662722229957581, -0.5947874784469604, -0.015458350069...
downside to this is more maintenance setting up new values, but it allows you to have typed data. Having used both, my preferences lie with the first option as its quicker to set things up, however its also riskier and can reduce performance (slightly) when looking up data. Does anyone have any alternative methods? *...
[ 0.24144543707370758, -0.08827945590019226, 0.3107505142688751, 0.12873969972133636, 0.15883450210094452, -0.04952129349112511, 0.30525341629981995, -0.18312150239944458, -0.2690325081348419, -0.7474085688591003, -0.1359902024269104, 0.6583114266395569, -0.33957141637802124, -0.312209397554...
data-type. Your application can than use this data-type column to cast the value. But yeah, I would go with option 1, if config files are not an option. Another advantage of option 1 is you can read it into a Dictionary object (or equivalent) for use in your application really easily.
[ 0.02502221241593361, -0.2527112364768982, 0.19378173351287842, 0.23517125844955444, -0.13225175440311432, -0.09740346670150757, -0.14623291790485382, 0.23674798011779785, 0.0639844611287117, -0.6739081740379333, 0.005083073396235704, 0.5765442252159119, -0.3363664150238037, -0.341461569070...
Announced today. Descriptions so far are confusing. Let's put together a good starting point for understanding Windows Azure. Strongly related to [What is a "Cloud OS"?](https://stackoverflow.com/questions/280037/what-is-a-cloud-os), but not enough to warrant closing. Description ----------- The Azure™ Services Platf...
[ 0.281795471906662, 0.08905215561389923, 0.39713674783706665, 0.521037220954895, -0.1502050906419754, -0.2800680696964264, -0.08811100572347641, 0.1100776270031929, -0.1237688660621643, -0.5918450355529785, -0.24766717851161957, 0.0071027884259819984, -0.0001282842131331563, 0.1806566566228...
running on connected devices, PCs, servers, or hybrid solutions offering the best of online and on-premises. Azure **reduces the need for up-front technology purchases**, and it enables developers to quickly and **easily create applications running in the cloud** by using their existing skills with the Microsoft Visua...
[ 0.21027407050132751, 0.04962396249175072, 0.21262936294078827, 0.5409153699874878, -0.03653686121106148, -0.287365585565567, -0.1419185847043991, 0.22957152128219604, -0.15216057002544403, -0.9959949254989624, -0.364941269159317, 0.24912898242473602, 0.014236891642212868, 0.051184594631195...
automated with a platform that is designed for high availability and dynamic scaling to match usage needs with the option of a pay-as-you-go pricing model. Azure provides an open, standards-based and interoperable environment with support for multiple internet protocols, including HTTP, REST, SOAP, and XML. Features -...
[ 0.22703193128108978, -0.09095636755228043, 0.14147429168224335, 0.4475555717945099, -0.16969148814678192, -0.0944662094116211, 0.057231269776821136, 0.07132125645875931, 0.00041336793219670653, -0.7527776956558228, -0.3793485462665558, 0.39910611510276794, -0.0399525910615921, -0.044712074...
a consistent way for users to store, share and synchronize documents, photos, files and information across their PCs, phones, PC applications and Web sites * Microsoft SharePoint Services and Microsoft Dynamics CRM Services for business content, collaboration and rapid solution development in the cloud.
[ 0.17033690214157104, 0.26821836829185486, 0.4809066355228424, 0.4176643192768097, 0.38323715329170227, -0.18646210432052612, -0.09212441742420197, 0.16607695817947388, -0.16819287836551666, -0.6470347046852112, -0.3538269102573395, 0.17534139752388, 0.04620018228888512, 0.10278637707233429...
as google does not deliver what i want to know, i try to ask stackoverflow :) what is the number of max concurrent connections to a sql ce 3.5 database? thanks j. I believe the information you are looking for is the SQL Server Edition Comparison. For standard Editions - [Compare Features](http://www.microsoft.com/sql...
[ -0.20503827929496765, 0.06898078322410583, 0.7453257441520691, 0.35545143485069275, -0.1934758871793747, 0.033515628427267075, 0.2822788953781128, 0.018445152789354324, -0.5980892181396484, -0.8541002869606018, 0.049913134425878525, 0.4726172089576721, -0.2656371295452118, 0.14139138162136...
It would be a shame if it doesn't, because it will make for more attractive looking Android applications. Not right now, and it would be a nontrivial task to make it work. Android doesn't have all the libraries that the typical desktop JRE does. Although since Android is open source and it will run anything that can be...
[ 0.23811478912830353, 0.19810578227043152, 0.24772024154663086, 0.22047282755374908, -0.02469331957399845, -0.15255212783813477, 0.10674282163381577, 0.024681871756911278, -0.18561707437038422, -0.6829817295074463, -0.09456874430179596, 0.5474390983581543, -0.3373526930809021, 0.03598835319...
of stuff to make that easier.
[ 0.28955844044685364, 0.4431777894496918, -0.24673320353031158, 0.14898912608623505, -0.10072143375873566, 0.03432939574122429, 0.09865938872098923, 0.11158851534128189, -0.024479923769831657, -0.0413287878036499, 0.06712470203638077, 0.3851511776447296, -0.07955501228570938, 0.008478752337...
I have the following rails migration: ``` create_table :articles do |t| t.integer :user_id, :allow_null => false t.integer :genre_id, :allow_null => false t.string :url, :limit => 255, :allow_null => false t.string :title, :limit => 60, :allow_null => false t.text :summary, :limit => 350, :allow_null => fals...
[ 0.02377181313931942, 0.2363886833190918, 0.5731593370437622, -0.1968279629945755, 0.0882885605096817, -0.14746390283107758, 0.39079341292381287, -0.14524129033088684, -0.2797142267227173, -0.6495389342308044, -0.09691286087036133, 0.37406325340270996, -0.3787861168384552, 0.170202538371086...
much if you mean in terms of performance or storage efficiency. However, it's just good practice to push as many of your low-level constraints into the database layer. For one thing, it guarantees that a subtle bug in Rails isn't going to lead to some randomly `NULL` data in a not-null field. Likewise, if you ever run ...
[ 0.20876459777355194, -0.040778230875730515, -0.0818832591176033, 0.48701152205467224, 0.23671628534793854, -0.13850387930870056, 0.2417408972978592, 0.19399023056030273, -0.41327059268951416, -0.7896257042884827, -0.20232291519641876, 0.7385106086730957, -0.052949462085962296, -0.013587188...
Is there a good way to remove HTML from a Java string? A simple regex like ```js replaceAll("\\<.*?>", "") ``` will work, but some things like `&amp;` won't be converted correctly and non-HTML between the two angle brackets will be removed (i.e. the `.*?` in the regex will disappear). Use a HTML parser instead of r...
[ -0.07150910049676895, 0.1337064504623413, 0.24626825749874115, -0.19744031131267548, -0.18796372413635254, -0.1835155338048935, 0.3899209499359131, -0.24057351052761078, -0.16536806523799896, -0.573937714099884, -0.3417183756828308, 0.6000010967254639, -0.4940109848976135, -0.2298004180192...
self-contained tags](https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags) * [What are the pros and cons of the leading Java HTML parsers?](https://stackoverflow.com/questions/3152138/what-are-the-pros-and-cons-of-the-leading-java-html-parsers) * [XSS prevention in JSP/Serv...
[ -0.3262253999710083, 0.07625793665647507, 0.21064692735671997, -0.08358567208051682, -0.45959022641181946, -0.3905249834060669, 0.220176100730896, -0.33367156982421875, -0.3312983512878418, -0.16446660459041595, -0.5552678108215332, 0.6515112519264221, -0.6338882446289062, -0.5122251510620...
I have tried the following two statements: * `SELECT col FROM db.tbl WHERE col (LIKE 'str1' OR LIKE 'str2') AND col2 = num` results in a syntax error * `SELECT col FROM db.tbl WHERE page LIKE ('str1' OR 'str2') AND col2 = num` results in "Truncated incorrect DOUBLE value: str1" and "Truncated incorrect DOUBLE value: s...
[ -0.16286791861057281, 0.06221281364560127, 0.173054039478302, -0.1789335161447525, -0.37580105662345886, 0.25147783756256104, 0.16667447984218597, -0.1848258674144745, 0.03798125684261322, -0.7764955759048462, -0.05249761417508125, 0.4920564293861389, -0.4746587574481964, 0.091645307838916...
I need to be able to schedule a job on the 10th of each month and have it run for a set number of days or until a specified date. Is there any way to customize sql server agent jobs using some sort of API or something? Thanks. I still can't find any way of customizing the job schedule, but I have figured a way around...
[ 0.3603661358356476, -0.12068047374486923, 0.6216621398925781, -0.05189473554491997, 0.12122464925050735, 0.009414448402822018, 0.3669566512107849, 0.27940574288368225, -0.10908472537994385, -0.6482613682746887, 0.0654568001627922, 0.5070157051086426, 0.02215978130698204, 0.0357100069522857...
I have an associative array in the form `key => value` where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and uses that for th...
[ 0.15429720282554626, 0.024815378710627556, 0.010888560675084591, 0.04308779910206795, -0.18291603028774261, 0.05578254535794258, 0.16519935429096222, -0.3555162847042084, 0.007044745143502951, -0.39972907304763794, 0.016089435666799545, 0.54818195104599, -0.2670569121837616, 0.097259238362...
way of doing this? ``` $arr[$newkey] = $arr[$oldkey]; unset($arr[$oldkey]); ```
[ -0.26334139704704285, 0.2543392479419708, 0.2546774744987488, -0.5700133442878723, 0.13065658509731293, -0.10776302963495255, 0.34188222885131836, -0.5173839926719666, -0.33621615171432495, -0.3199447691440582, -0.3943217992782593, 0.4796932339668274, -0.5149794816970825, -0.00725179072469...
What open source projects would you recommend as a good place for a starting open source developer? Factors that I think would be important are some obvious ones like well written code and a community that is helpful to newbies. But it might be nice if the code base is such that I can start hacking some small problems ...
[ 0.747684121131897, 0.16483984887599945, -0.26887476444244385, 0.5075932145118713, -0.026845676824450493, -0.21475157141685486, 0.04295554384589195, 0.3864116072654724, -0.3881973326206207, -0.4518994092941284, 0.10309357196092606, 0.5566931962966919, -0.12180041521787643, 0.033143147826194...
you use daily or enjoy using? Go work with that one.
[ 0.4841647744178772, 0.013265471905469894, -0.3323192894458771, 0.1281599998474121, 0.1253659725189209, -0.0767720639705658, 0.11262772232294083, 0.21809151768684387, -0.12449896335601807, -0.5044230818748474, 0.4724988341331482, 0.8848421573638916, -0.2418125718832016, -0.15157939493656158...
I have OS X 10.5 set up with the precompiled versions of PHP 5 and Apache 2. I'm trying to set up the Zend Debugger, but with no luck. Here's what I did: * I downloaded `ZendDebugger-5.2.14-darwin8.6-uni.tar` * I created the directory `/Developer/Extras/PHP` and set the permissions to: + Permissions: `drwxrwxr-x` + ...
[ 0.3160006105899811, 0.2291894555091858, 0.38145437836647034, -0.10710546374320984, -0.2146582305431366, -0.2072608321905136, 0.4732370674610138, -0.10186374187469482, -0.08294957876205444, -0.781161904335022, -0.2667543590068817, 0.7057242393493652, -0.2336045503616333, 0.2530328333377838,...
it shows the Zend Debugger is loaded. Both state that they're running the same version of PHP, and loading the same INI file. Anyone have another suggestion for me to try? If I remember correctly, this problem is do to the fact that the Zend Debugger is compiled for 32-bit Apache while the Apache that comes with Max O...
[ 0.37650594115257263, -0.1844538003206253, 0.18639183044433594, 0.2085934281349182, -0.1529536098241806, -0.35263365507125854, 0.39084547758102417, -0.2729721665382385, -0.2095058560371399, -0.4740937054157257, 0.005851909518241882, 0.8281455039978027, -0.07937746495008469, -0.0798125863075...
am leaning to recompiling to avoid future problems.
[ 0.43081164360046387, 0.2926577925682068, 0.14386498928070068, -0.1970716267824173, 0.11248768121004105, -0.032233111560344696, 0.1752610206604004, -0.21482431888580322, 0.28470492362976074, -0.775017499923706, 0.06937006115913391, 0.6876389384269714, 0.2683641314506531, -0.3213945031166076...
I have seen some websites use the following tag: ``` <meta type="title" content="Title of the page" /> ``` Is it needed when you have a `<title>`? Also, what's the best formatting for a page title? Some ideas: * Page Description :: Company Name * Page Description - Company Name * Page Description <> Company Name *...
[ 0.31238311529159546, 0.4721183776855469, 0.5364950895309448, 0.12257669121026993, 0.034952275454998016, -0.49507975578308105, -0.11414273083209991, 0.3060561418533325, -0.23426827788352966, -0.5581276416778564, -0.1280628889799118, 0.3484840393066406, -0.049563560634851456, 0.3928339183330...
of a good web page](http://www.w3.org/QA/Tips/good-titles). As for the format of the title, I think there is good advice in [this article at Standards Schmandards](http://www.standards-schmandards.com/2004/title-text-separators/): > If the title contains the name of the > site, the name of the site should be > plac...
[ 0.1768922507762909, 0.5859792232513428, 0.4476233124732971, -0.16428659856319427, -0.14347386360168457, -0.5473202466964722, 0.44346532225608826, 0.04382913559675217, -0.04231065511703491, -0.2039397805929184, -0.2842661142349243, 0.6357128620147705, 0.23275181651115417, 0.1640838086605072...
each title because: 1. Consistency is always a good idea. 2. Newer browsers like Firefox 3 allow you to search your history and bookmarks by page titles, so users can easily get a view of all the pages they've visited on your site by simply typing in your company name or site name. 3. People that use screen readers wi...
[ 0.2705335319042206, 0.23909714818000793, 0.7636289000511169, 0.16519074141979218, -0.05341067165136337, -0.36257702112197876, 0.2673974335193634, 0.10638371855020523, -0.4077237546443939, -0.641677975654602, -0.07536733150482178, 0.42422330379486084, -0.046131398528814316, 0.31048640608787...
reader users because they would have to make an extra effort to skip that information on every page they visit. If you do decide to put the company name in your title, keep these things in mind (also from [Standards Schmandards](http://www.standards-schmandards.com/2004/title-text-separators/)): > * The separator cha...
[ -0.38740167021751404, 0.11848737299442291, 0.8016104102134705, 0.003054423024877906, -0.2733311057090759, 0.2903079092502594, 0.09447040408849716, 0.0409020334482193, -0.2148677557706833, -0.6420081853866577, -0.39722225069999695, 0.24890781939029694, -0.21134459972381592, 0.20202645659446...
*it is important to surround it > with whitespace*. This will aid both > sighted visitors and listeners as it > will distinguish the character from > the title text. Based on all the information herein, that essentially makes the second example in your question the obvious choice: ``` <title> Page Description...
[ 0.2484755963087082, 0.4022507667541504, 0.4303008019924164, -0.04746324196457863, 0.08529023081064224, 0.02455376833677292, -0.14142118394374847, 0.20458264648914337, 0.07899586111307144, -0.4292023777961731, -0.4011688828468323, 0.38703519105911255, 0.10780353844165802, 0.4063717126846313...
I am having an issue when using `LoadControl( type, Params )`. Let me explain... I have a super simple user control (ascx) ``` <%@ Control Language="C#" AutoEventWireup="True" Inherits="ErrorDisplay" Codebehind="ErrorDisplay.ascx.cs" EnableViewState="false" %> <asp:Label runat="server" ID="lblTitle" /> <asp:Label ru...
[ -0.047508638352155685, -0.03586812689900398, 0.440192848443985, -0.178297758102417, 0.08850087225437164, -0.1938067078590393, 0.7333662509918213, -0.42968320846557617, -0.2394624650478363, -0.7074182629585266, -0.23336389660835266, 0.5836634039878845, -0.3911934196949005, 0.175582796335220...
override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (_ErrorMessage != null) { lblTitle.Text = _ErrorMessage.Message; lblDescription.Text = _ErrorMessage.Description; } } } ``` Elsewhere in my web application I am adding an instance of the u...
[ -0.2935183346271515, -0.06775429099798203, 0.5252702236175537, -0.3277527391910553, 0.32979243993759155, 0.025013182312250137, 0.3932211399078369, -0.36838915944099426, -0.00392908276990056, -0.6216503381729126, -0.33666884899139404, 0.6227886080741882, -0.3893531560897827, 0.1463177651166...
``` I am using the overloaded version of LoadControl because I want to pass the Message parameter to the constructor. All this *appears* to work ok. However, when the `OnPreRender()` is fired on the ErrorDisplay usercontrol the lblTitle and lblDescription variables are both `null`, despite them having a markup equiva...
[ 0.3280249238014221, 0.3007770776748657, 0.5330215096473694, -0.18443380296230316, -0.17303906381130219, -0.3221290707588196, 0.583631694316864, -0.02751060575246811, -0.17916002869606018, -0.6642599105834961, -0.2550947368144989, 0.7173095345497131, -0.5094887614250183, 0.13287676870822906...
and is now processing the event handlers. I cannot add the usercontrols at an earlier asp lifecycle stage as they are being created in response to a button click event. I have tried the following code as well - which yields the same result (i.e. both lblTitle and lblDescription are null) ``` protected void Page_Load(...
[ -0.23513421416282654, -0.3583807945251465, 0.501760721206665, -0.18287555873394012, -0.039241693913936615, -0.0909455418586731, 0.1356041580438614, -0.3415154218673706, -0.24662184715270996, -0.6817312836647034, -0.3908599019050598, 0.6265413165092468, -0.47980281710624695, 0.0417409576475...
is loading up to the current 'state' of the page onto which it is being included on. hence the Init, Page\_Load etc are all run as part of the LoadControl call. Interestingly this (unanswered) asp.net forums post exhibits the same problem as I am experiencing. [MSDN Forums Post](http://forums.microsoft.com/MSDN/ShowP...
[ -0.21978503465652466, -0.2812889814376831, 0.38286545872688293, 0.14022663235664368, 0.09992086887359619, -0.15330557525157928, 0.11999772489070892, -0.055554650723934174, -0.39329758286476135, -0.568526566028595, -0.17389123141765594, 0.24277536571025848, -0.4211941957473755, 0.1756534129...
validation, the control must be added in the Init event rather than in the Load event. Therefore shouldn't LoadControl correctly initalise the control? **EDIT:** Ok, so I'm answering my own question here .. I found an answered version of the forum post I linked to above [Here](http://forums.asp.net/t/1174838.aspx) ...
[ 0.07696989923715591, 0.09004789590835571, 0.07962707430124283, 0.16985346376895905, -0.2064603865146637, -0.11290770769119263, 0.16054929792881012, -0.2885512709617615, -0.2203110307455063, -0.0771031454205513, -0.07903668284416199, 0.4273224174976349, -0.20967784523963928, -0.047852721065...
the code which is initalising the control and split it into seperate parts. I.e. ``` Control ErrorCntrl = LoadControl("ErrorDisplay.ascx"); ErrorCntrl.ID = SomeID; (ErrorCntrl as ErrorDisplay).SetErrorMessage = MessageDetail; divErrorContainer.Controls.Add(ErrorCntrl); ``` And it should work ok.. It isn't as neat as...
[ 0.11728905886411667, -0.025766368955373764, 0.5239774584770203, 0.04643665999174118, 0.09608423709869385, -0.1704096496105194, 0.39964011311531067, -0.24335941672325134, 0.10900814086198807, -0.5677300691604614, 0.0303184911608696, 0.7690107822418213, -0.08751419931650162, -0.0458637699484...
So in a .NET app , i got about 2 million items that i need to hold them in memory for processing , 1 by 1, would holding these items in a Stack collection , is better than holding them in a List collection, assuming that the memory used by the stack object will be keep minimizing every time an item is poped out of the ...
[ 0.2109629064798355, 0.011817371472716331, 0.11992262303829193, 0.2439657300710678, -0.01595057174563408, 0.1215541660785675, 0.26364049315452576, -0.09058539569377899, -0.4043949544429779, -0.6423675417900085, 0.12224821001291275, 0.14486725628376007, -0.12004946917295456, 0.06345747411251...
here is another way, when a Stack collection is used, does the memory used by the stack get minimized every time an item is pulled out of the stack. Thanks in advance No difference. The "Pop" method of a Stack never reduces the size of the internal array. The "Push" method doubles the size when the limit is hit. I us...
[ 0.27942949533462524, -0.23458980023860931, 0.3439042568206787, -0.05912947654724121, -0.20797410607337952, -0.11975070834159851, 0.0007357519352808595, -0.1887260526418686, -0.6311736106872559, -0.4363452196121216, 0.10439591109752655, 0.408847451210022, -0.010260045528411865, 0.1996610462...
When you have a derived class, is there an simpler way to refer to a variable from a method other than: ``` BaseClass::variable ``` **EDIT** As it so happens, I found a page that explained this issue using functions instead: [Template-Derived-Classes Errors](http://www.parashift.com/c++-faq-lite/templates.html#faq-...
[ 0.43436378240585327, -0.08810624480247498, -0.14562593400478363, 0.1372104287147522, -0.3153478801250458, -0.08515854924917221, 0.319322794675827, -0.3908451497554779, -0.2474021017551422, -0.2507226765155792, -0.12005530297756195, 0.40705856680870056, -0.34706225991249084, 0.2867539525032...
: public Base { void foo() { a = 5; // works b = 10; // error! } }; ``` There is also something to be said for keeping all member variables private, and providing getters and setters as needed. Also, beware of "hiding" data members: ``` class Base { public: int a; }; class Derived : public Base {...
[ 0.41812026500701904, 0.01857222244143486, -0.20239120721817017, -0.08477283269166946, -0.12317386269569397, -0.22206167876720428, 0.3528200089931488, -0.30188533663749695, -0.021960299462080002, -0.0861411765217781, -0.22188368439674377, 0.4427199065685272, -0.45565831661224365, 0.23138049...
From the MSDN documentation: "Synchronized supports multiple writing threads, provided that no threads are reading the Hashtable. The synchronized wrapper does not provide thread-safe access in the case of one or more readers and one or more writers." Source: <http://msdn.microsoft.com/en-us/library/system.collection...
[ 0.4305667579174042, -0.2239844799041748, 0.18956905603408813, 0.27626413106918335, -0.17512856423854828, -0.1420365273952484, 0.32560527324676514, -0.03026837669312954, -0.5700523853302002, -0.37034404277801514, 0.12840619683265686, 0.4958817958831787, -0.631179690361023, 0.130367740988731...
you break from the enumeration early, the wrapper class would have no way to know that it can release its lock. Think instead of the case of a counter. Multiple threads can increase a value in the table, and you want to display the value of the count. It doesn't matter if you display 1,200,453 and the count is actuall...
[ 0.4136691391468048, -0.09137213230133057, 0.26874324679374695, 0.15612804889678955, 0.1317514330148697, -0.17054510116577148, 0.07378227263689041, -0.4207555055618286, -0.5627686977386475, -0.3685116767883301, 0.24831773340702057, 0.5126432180404663, -0.10170957446098328, 0.213960781693458...
Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code? I have a simple Google AppEngine project's source hosted on Google Code and would love if everytime I committed to Subversion, that AppEngine would reflect the latest commi...
[ 0.6714674234390259, 0.17971400916576385, -0.11997666209936142, 0.2317066788673401, -0.027201633900403976, -0.059748921543359756, 0.3664160370826721, 0.16273513436317444, -0.3560594320297241, -0.6340175867080688, 0.18349376320838928, 0.6085340976715088, 0.014779038727283478, 0.0492087937891...
would not require anything manual from me nor any type of server/listener software on my machine. Google Code Project Hosting now supports [Post-Commit Web Hooks](http://code.google.com/p/support/wiki/PostCommitWebHooks), which ping a project-owner-specified URL after every commit. This would eliminate the need to regu...
[ 0.5825392603874207, 0.05866358056664467, 0.16072942316532135, 0.042916327714920044, -0.26189377903938293, -0.21229387819766998, 0.35324627161026, -0.08815345168113708, -0.1295439898967743, -0.4840126037597656, -0.15412664413452148, 0.3351178467273712, 0.08331418037414551, 0.080112643539905...
I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used. Is there a single`__xxx__`method I ...
[ 0.40937599539756775, 0.07599083334207535, -0.10731134563684464, 0.13145339488983154, -0.16152912378311157, -0.11470986157655716, 0.05421373248100281, -0.06728290021419525, -0.38895273208618164, -0.3529529571533203, 0.04899447411298752, 0.5293995141983032, -0.32208961248397827, 0.1977714598...
i want to be a good developer citizen, [pay my taxes](http://blogs.msdn.com/oldnewthing/archive/2005/08/22/454487.aspx), and disable things if we're running over Remote Desktop, or running on battery. If we're running over remote desktop (or equivalently in a Terminal server session), we must disable animations and do...
[ 0.4909196197986603, 0.14038045704364777, 0.33807551860809326, 0.11900085210800171, 0.06135088577866554, -0.14983880519866943, 0.1891680359840393, 0.001991988392546773, -0.07926234602928162, -0.4367597699165344, -0.2541032135486603, 0.48997607827186584, -0.10956821590662003, -0.167014881968...
return System.Windows.Forms.SystemInformation.TerminalServerSession; } } ``` Now i need to find out if the user is running on battery power. If they are, i don't want to blow through their battery. i want to do things such as * disable animations * disable background spell-checking * disable background printing ...
[ -0.1970544010400772, 0.11537511646747589, 0.5555576086044312, 0.1548730432987213, 0.20963948965072632, 0.12457873672246933, 0.36063018441200256, -0.2515755891799927, -0.28766778111457825, -0.7422541975975037, 0.15678083896636963, 0.8412472605705261, -0.1056019514799118, -0.09133330732584, ...
you convince developers to pay their "taxes"?](http://blogs.msdn.com/oldnewthing/archive/2005/08/22/454487.aspx) *([archive.is](https://archive.fo/iNVg5))* * [Taxes: Remote Desktop Connection and painting](http://blogs.msdn.com/oldnewthing/archive/2006/01/03/508694.aspx) *([archive.is](https://archive.fo/lJx1u))* * [Ge...
[ 0.45100292563438416, -0.15547551214694977, 0.6028229594230652, 0.31510570645332336, 0.4905606806278229, -0.07917211204767227, 0.3290848731994629, -0.5865369439125061, -0.09097397327423096, -0.43747735023498535, -0.13492445647716522, 0.8813235759735107, -0.08797947317361832, -0.049692299216...
What's the simplest way to convert a Unicode codepoint into a UTF-8 byte sequence in C? The only way that springs to mind is using `iconv` to map from the UTF-32LE codepage to UTF-8, but that seems like overkill. Unicode conversion is not a simple task. Using iconv doesn't seem like overkill at all to me. Perhaps there...
[ -0.14906226098537445, 0.06941214203834534, 0.437461256980896, -0.014941386878490448, -0.20954051613807678, 0.15067899227142334, 0.10121046751737595, 0.09541285783052444, -0.2477622777223587, -0.793722927570343, -0.05007156357169151, 0.4370976686477661, -0.4527696371078491, 0.04073639586567...
I've been slowly working on a personnel project to run a webmud like game using extjs as my frontend. One of the design choices I made was to allow user-generated evaluated code for game logic. So when the player enters a new "room" a number of state scripts would be called along the lines of "has player been here befo...
[ -0.19294020533561707, 0.062449559569358826, 0.3973703980445862, -0.24828051030635834, 0.28260132670402527, 0.047843463718891144, 0.09616946429014206, -0.14317244291305542, -0.08601752668619156, -0.6597083210945129, -0.1449218988418579, 0.19467325508594513, -0.22625508904457092, 0.335368752...