text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I am using ASP.Net 2.0. I am using a gridview component over some data because I wanted to get the paging functionality it provides. The rest of my site where I do not need to provide paging because I have used an alphabetical index or because the result set is small enough to fit in the screen I use a repeater. In the...
[ 0.27263522148132324, -0.04335653781890869, 0.2244827151298523, -0.1675696074962616, -0.15958692133426666, 0.034820739179849625, 0.33398014307022095, 0.15591666102409363, -0.2889776825904846, -0.8786616921424866, 0.019797103479504585, 0.2650949954986572, -0.2859761118888855, -0.053941536694...
screen where you can edit the details. I have not been able to find a way to move the edit and delete columns to the end. Is there perhaps a property that I missed or is the easiest way of doing this going to be extending the Gridview component. If that is the case would it better to extend the component or try and wr...
[ 0.39579132199287415, 0.0168232973664999, 0.4635787606239319, 0.10592770576477051, -0.07525580376386642, 0.04497075453400612, -0.020860906690359116, 0.007544950116425753, -0.12373002618551254, -0.8311152458190918, 0.37682875990867615, 0.9502557516098022, -0.2945137917995453, -0.061873286962...
sure that Auto Generate fields is not selected and you can then add your columns as desired, and edit, delete and insert are all available as children of the CommandField option.
[ 0.2739047408103943, -0.036446116864681244, 0.2941845953464508, 0.01933264546096325, 0.19544783234596252, -0.06704405695199966, 0.004431974608451128, 0.025412103161215782, -0.08193855732679367, -0.29422733187675476, -0.10838615894317627, 0.8113805651664734, -0.47357165813446045, -0.37533873...
I currently have a VS Solution with 2 projects: a WPF application and a Windows Service. Now, I have managed to get ClickOnce working in installing my WPF application, but I also want a Windows Service to be installed (the one in the project) during this installation. I have found ways how to programmatically start ...
[ 0.5000260472297668, -0.17260868847370148, 0.665283739566803, 0.017826223745942116, -0.07118429243564606, -0.04138006269931793, 0.31902530789375305, -0.024529097601771355, -0.35412895679473877, -0.8956510424613953, -0.01688283123075962, 0.6357787251472473, -0.09961169958114624, 0.1426663398...
I am looking for example code that demonstrates how to create a filter that understands *binary* data. Links to examples are greatly appreciated. Just for the record, zeroing the bits in an object won't affect whether the destructor gets called (unless the compiler has a special quirk that enables this behaviour). Just...
[ 0.6499849557876587, -0.0113553861156106, -0.20862095057964325, 0.16947221755981445, 0.007694767322391272, -0.15738049149513245, 0.4023359417915344, 0.2744568884372711, -0.31203991174697876, -0.5116382241249084, -0.05785806104540825, 0.6887179017066956, -0.28465771675109863, -0.166883990168...
environment has scarce amounts of it. --- However, if you must, you can still use placement new. If you don't have the `<new>` header, here are the relevant lines directly from it on my version of GCC: ``` // Default placement versions of operator new. inline void* operator new(std::size_t, void* __p) throw() { retu...
[ 0.08967696875333786, 0.08068597316741943, 0.18397748470306396, -0.3066251873970032, 0.3340079188346863, 0.05282201990485191, 0.11732983589172363, -0.36637136340141296, -0.23859314620494843, -0.9123955965042114, 0.08920823037624359, 0.6260839104652405, -0.5750076770782471, -0.17481084167957...
file that tests this: ``` #include <cstdio> #include <new> int main(int argc, char** argv) { typedef char const* cstr; char foobar[16]; cstr* str = new (&foobar) cstr(argc > 1 ? argv[1] : "Hello, world!"); std::puts(*str); str->~cstr(); } ``` On my version of GCC, this does not use `libstdc++` a...
[ 0.04339677467942238, -0.05529801920056343, 0.379483699798584, -0.3925115466117859, 0.11462638527154922, -0.059137750416994095, 0.27457305788993835, -0.2098374217748642, -0.33147528767585754, -0.5474029779434204, -0.2804603576660156, 0.5284132957458496, -0.5860708355903625, 0.22849366068840...
p) {std::free(p);} inline void operator delete[](void* p) {std::free(p);} int main(int argc, char** argv) { typedef char const* cstr; cstr* str = new cstr(argc > 1 ? argv[1] : "Hello, world!"); std::puts(*str); delete str; } ``` This allows you to use the standard `new`/`delete` that you're familiar...
[ -0.04765906184911728, 0.15978656709194183, 0.7413294911384583, -0.3202953636646271, 0.21689559519290924, 0.08702349662780762, 0.501083493232727, -0.08473971486091614, -0.3908049166202545, -0.4791983366012573, -0.4419865012168884, 0.3487176299095154, -0.23215103149414062, 0.2538825869560241...
According to the CSS 2.1 standard, the vertical margins of floating elements should not collapse with any adjacent elements. See: <http://www.w3.org/TR/CSS21/box.html#collapsing-margins> But actually this is not what happens in all browsers (FF, Safari, Opera and Chrome) except IE6 (didn't try with IE7 or IE8 though)...
[ -0.16365733742713928, 0.08119736611843109, 0.625146746635437, -0.17501570284366608, -0.31356146931648254, 0.06441304832696915, -0.18695968389511108, -0.27985700964927673, -0.35855647921562195, -0.7297266721725464, 0.03139423951506615, 0.0905776172876358, -0.10911782830953598, 0.03548113629...
I'm referring to, it's not a real problem that I'm trying to find a solution to. In neither IE6 nor the standards browsers are the float's margins collapsing with its siblings. This is correct as per the quoted standard. The difference in renderings is caused by IE6's interpretation of which margins flow together. (If...
[ 0.027281103655695915, -0.04824842885136604, 0.6646907329559326, -0.17508426308631897, -0.25783318281173706, -0.06299244612455368, 0.10531741380691528, -0.13942945003509521, -0.16629301011562347, -0.7338181138038635, -0.12256327271461487, 0.13540716469287872, -0.2567119896411896, 0.27011024...
before and after the float box flow vertically as if the float didn't exist. That is, they flow together and have adjoining vertical margins which may collapse. IE6 (and IE7 in Quirks Mode) gets this wrong, and thinks that the float breaks up the flow, causing no collapsing to occur. With the general confusion surrou...
[ 0.2694687247276306, 0.04903557896614075, 0.7117964029312134, -0.3779643774032593, 0.08514758199453354, -0.06327317655086517, 0.22516079246997833, -0.0679607167840004, -0.1261296421289444, -0.5550139546394348, -0.2703784108161926, 0.2002743035554886, -0.08060438930988312, 0.1118862926959991...
Am not sure if this question makes sense. But I know all the basic CRUD commands of mysql. Probably a bit more here and there (foreign keys etc). But there are so many books written on mysql/dbms. I can write decent queries and get all my results as I want them. Maybe they aren't the most efficient but it worksforme. T...
[ 0.10108847916126251, 0.6417787075042725, 0.22918663918972015, 0.10945934057235718, -0.3261939585208893, -0.13513889908790588, 0.4184763431549072, 0.2168123424053192, -0.24335448443889618, -0.5935019254684448, 0.386439710855484, 0.7138009667396545, 0.3113173246383667, 0.0688459575176239, ...
theory, so you write better SQL. I'm currently enjoying "[SQL and Relational Theory](http://www.xaprb.com/blog/2009/03/29/a-review-of-sql-and-relational-theory-by-c-j-date/)," a new book by C. J. Date, the world's leading expert on the relational model. * Implementing and monitoring [security](http://dev.mysql.com/doc/...
[ 0.3663689196109772, 0.03936333954334259, 0.10206340253353119, 0.0965413823723793, -0.03575510531663895, -0.23645806312561035, 0.18544626235961914, -0.2869076132774353, -0.2908996343612671, -0.4008422791957855, 0.04915693402290344, 0.37904903292655945, -0.22366167604923248, -0.0118361189961...
maintenance and recovery - [backups, repair](http://dev.mysql.com/doc/refman/5.1/en/backup-and-recovery.html). * [Replication](http://dev.mysql.com/doc/refman/5.1/en/replication.html), [clustering](http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster.html), and [proxying](http://dev.mysql.com/doc/refman/5.1/en/mysql-pr...
[ 0.27824118733406067, 0.20429249107837677, 0.40888431668281555, 0.12914982438087463, -0.09572933614253998, -0.09074867516756058, -0.017542699351906776, -0.345897912979126, -0.3462793529033661, -0.6446484327316284, -0.46471038460731506, 0.8907131552696228, 0.14807499945163727, 0.051260139793...
If we are coding a JSP file, we just need to use the embedded "application" object. But how to use it in a Servlet? The `application` object in JSP is called the [`ServletContext`](https://docs.oracle.com/javaee/7/api/javax/servlet/ServletContext.html) object in a servlet. This is available by the inherited [`GenericSe...
[ 0.27750730514526367, 0.04898599535226822, 0.4342230260372162, 0.035661548376083374, -0.2790820598602295, -0.22332528233528137, 0.16185081005096436, -0.39654427766799927, -0.038353510200977325, -0.4089529812335968, -0.549733579158783, 0.27821943163871765, -0.5349212288856506, 0.014288191683...
} @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ServletContext ctx = getServletContext(); // ... } @Override public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOEx...
[ 0.24651843309402466, 0.19176657497882843, 0.19493162631988525, -0.2138989269733429, -0.08940225094556808, 0.07504705339670181, 0.4421112537384033, -0.5131130814552307, 0.09206618368625641, -0.6459860801696777, -0.3871494233608246, 0.5090972781181335, -0.5976690053939819, 0.1509447544813156...
get Servlet Context](https://stackoverflow.com/questions/35837285/differents-ways-to-get-servlet-context).
[ 0.00843285582959652, -0.2735760509967804, 0.511040210723877, 0.27960488200187683, -0.1094757467508316, 0.11428935080766678, 0.31550270318984985, -0.33861422538757324, -0.39797651767730713, -0.344577819108963, -0.38953086733818054, 0.024777671322226524, -0.246663436293602, 0.051646523177623...
I would like to return from a closure, like one would if using a break statement in a loop. For example: ``` largeListOfElements.each{ element-> if(element == specificElement){ // do some work return // but this will only leave this iteration and start the next } } ``` In the abo...
[ 0.09938869625329971, -0.13636797666549683, 0.2227567881345749, -0.25334200263023376, 0.025120388716459274, -0.17733146250247955, 0.2480354905128479, -0.2096768617630005, -0.20393837988376617, -0.3695216476917267, -0.004601897206157446, 0.28153368830680847, -0.3368958532810211, 0.3055686354...
exception is thrown within the closure and caught outside, but I'm not too fond of that solution. Are there any solutions to this, other than changing the code to avoid this kind of algorithm? I think you want to use find instead of each (at least for the specified example). Closures don't directly support break. Un...
[ 0.17313753068447113, -0.020275626331567764, -0.30083775520324707, 0.20967058837413788, 0.0016710306517779827, -0.18508337438106537, 0.34615498781204224, -0.14342452585697174, -0.2416316121816635, -0.4260263741016388, 0.01937791518867016, 0.5546236038208008, -0.573796808719635, -0.088935740...
a match is met. Here's an example: ``` Object.metaClass.eachBreak = { ifClosure, workClosure -> for (Iterator iter = delegate.iterator(); iter.hasNext();) { def value = iter.next() if (ifClosure.call(value)) { workClosure.call(value) break } } } def a ...
[ -0.03478794917464256, -0.13726668059825897, 0.5112885236740112, -0.35530900955200195, 0.18588386476039886, -0.15733496844768524, 0.36606189608573914, -0.7578230500221252, 0.0368766263127327, -0.2772459089756012, -0.27072176337242126, 0.6482369899749756, -0.5741313695907593, 0.1249181628227...
println "working on $it" } // prints "working on bar" ```
[ 0.1403122991323471, 0.3016594648361206, 0.03981523588299751, -0.6477135419845581, -0.09284377098083496, 0.006563788745552301, 0.19028392434120178, 0.1458214819431305, -0.18627965450286865, -0.3984256982803345, -0.1725923866033554, 0.6064442992210388, -0.4040568768978119, 0.0622853375971317...
For example, I'm running into developers and architects who are scared to death of Rails apps, but love the idea of writing new Grails apps. From what I've seen, there is a LOT of resource overhead that goes into using the JVM to support languages such as Groovy, JRuby and Jython instead of straight Ruby or Python. ...
[ 0.21432001888751984, 0.1540803611278534, -0.28277453780174255, 0.1369936317205429, -0.10910972207784653, -0.2833929657936096, 0.3059162497520447, 0.46405190229415894, -0.13382533192634583, -0.45933836698532104, 0.09991439431905746, 0.811114490032196, -0.15976135432720184, -0.10712616145610...
libraries that could be "dropped in" and used, than, say, Ruby or Python (or even Perl, for that matter). So for people who like using existing code, rather than writing everything themselves, Java is a huge win. For example, recently I've been looking for something like JAXB for Python or Ruby. In the end, I ended up...
[ 0.147710382938385, -0.11858650296926498, -0.1342967301607132, 0.394863486289978, -0.31531670689582825, -0.355270653963089, -0.021715907379984856, 0.20354081690311432, -0.3185630440711975, -0.6330955624580383, -0.04391441494226456, 0.37503254413604736, -0.3516792953014374, -0.04006344452500...
I'm new to WCF and would like to know the differences/advantages/limitations/etc of each of the following bindings: ``` net.pipe net.tcp http ``` Supporting scenarios on when to use each binding and other examples would be appreciated. While not great for providing specific usage examples, here is a link from MSDN w...
[ 0.3021809756755829, 0.0703020915389061, 0.589789867401123, -0.03475795313715935, -0.36721038818359375, -0.3854043781757355, 0.22362959384918213, -0.4864463210105896, -0.08988253772258759, -0.8775396347045898, 0.32716619968414307, 0.5075021386146545, -0.13787642121315002, 0.1156608387827873...
I'm getting the UIImage from the image picker and putting it into a UIImageView. It works fine for regular images, but for images taken with the iphone camera, they sometimes come up rotated 90 degrees. When accessing one of those images later (it has already been saved to disk) I noticed the above error. Any ideas? ...
[ 0.2999979555606842, -0.21531616151332855, 0.8532087206840515, 0.14103055000305176, 0.01989891566336155, -0.09065808355808258, 0.060811348259449005, 0.025568149983882904, -0.23135170340538025, -0.7277220487594604, 0.2790977656841278, 0.48930075764656067, -0.0656735822558403, 0.0643982589244...
flip the image as dictated by the `imageOrientation` property. There is some code here that will do the trick: [UIImage fix](http://blog.logichigh.com/2008/06/05/uiimage-fix/). A UIImageView rotates & flips automatically, so it's not a problem if all you do is display it on screen like that.
[ 0.03238718956708908, -0.36530452966690063, 0.7342979311943054, 0.09522996842861176, -0.048746999353170395, -0.07532817870378494, -0.055310141295194626, 0.09114114195108414, -0.3065446615219116, -0.6419578790664673, 0.008427046239376068, 0.7627471089363098, -0.16675910353660583, -0.22672872...
I was reading through a Java textbook, and it mentions something called a "driver class". What is it, and how is it different from a normal class? A "Driver class" is often just the class that contains a main. In a real project, you may often have numerous "Driver classes" for testing and whatnot, or you can build a ma...
[ 0.42158281803131104, -0.1267925500869751, -0.6611728072166443, 0.3658931255340576, -0.06918387115001678, 0.04830944910645485, 0.18434381484985352, 0.2857288420200348, -0.1037132740020752, -0.3719637393951416, 0.03403899446129799, 0.27549901604652405, -0.036110639572143555, 0.11788884550333...
In CodeIgniter, or core PHP; is there an equivalent of Rails's view partials and templates? A partial would let me render another view fragment inside my view. I could have a common `navbar.php` view that I could point to the inside my `homepage.php` view. Templates would define the overall shell of an HTML page in on...
[ 0.18503646552562714, -0.2602159380912781, 0.01434000488370657, 0.033299218863248825, -0.5226550698280334, 0.07197995483875275, 0.18500052392482758, -0.11173098534345627, -0.21184344589710236, -0.7466305494308472, 0.3150978088378906, 0.40726161003112793, -0.2865244746208191, 0.0345362760126...
the controller. (i.e. to move the navbar my designer would have to edit the controller). I've been searching on stack**overflow** for a PHP way to accomplish this. I have found [this page](https://stackoverflow.com/questions/761922/can-you-render-a-php-file-into-a-variable), which talks about simulating partials with ...
[ -0.26674818992614746, -0.21856266260147095, 0.5958693623542786, 0.15198171138763428, -0.21665777266025543, 0.1312590390443802, -0.057755738496780396, 0.01969030126929283, -0.16002053022384644, -0.6702733635902405, -0.20831751823425293, 0.41670554876327515, -0.39842963218688965, 0.343664735...
?> ``` The header could then include a NavBar in the same fashion, etc.
[ 0.3535160720348358, 0.21216928958892822, -0.028768355026841164, -0.01576719805598259, -0.12959854304790497, -0.23803168535232544, 0.038944780826568604, 0.010083943605422974, -0.09806480258703232, -0.37249448895454407, -0.35866889357566833, 0.3841325342655182, -0.3752092719078064, 0.1945641...
Google search turns up some links to tsql questions. I was wondering what would SO experts would ask in an interview for TSQL. Here are some of the most common questions I've been asked as an ASP.Net developer with strong SQL Server skills: * Name and describe the different kinds of JOINs * What is COALESCE? * Explain...
[ 0.18485449254512787, -0.016495250165462494, 0.04547495022416115, 0.2741713225841522, -0.19628053903579712, -0.07080080360174179, 0.2118782252073288, 0.06493911892175674, -0.17182953655719757, -0.5683947205543518, 0.04446747899055481, 0.3602020740509033, -0.1587868332862854, 0.0186344701796...
This inquiry is rather difficult for me to properly phase, but I'm going to give it a shot either way. I'm currently trying to figure out how to set my UITableView's to scroll over a background, and not within their own bounds. What I mean by that, is if you look at the Tumblr application, screenshot here: <http://dl...
[ 0.5273517966270447, -0.34478920698165894, 0.5177534222602844, -0.00448658037930727, -0.31115585565567017, -0.09859923273324966, 0.025082336738705635, -0.22979938983917236, -0.3819945752620697, -0.6754350662231445, 0.10797667503356934, 0.4489397406578064, -0.11189215630292892, -0.0449261032...
space at the bottom of the UITableView? That screenshot was taken with my dragging the UITableView up as far as I could. Instead of the last cell just dragging with the entire UITableView, the offset at the bottom gets created. I'm curious what the trick is in the case of the Tumblr application to get the UITableView...
[ 0.24247699975967407, -0.21711385250091553, 0.46680888533592224, 0.16949355602264404, -0.2681623697280884, 0.0008019819506444037, -0.22196198999881744, 0.10933101922273636, -0.3617754280567169, -0.6828789114952087, -0.00017812983423937112, 0.2562140226364136, -0.09958650916814804, 0.2396028...
UIScrollView, so I figured this would be poor design). Thanks for the solution, this one is driving me up a wall. If I am understanding what you are trying to do, just set the background of the UITableView to be clear and put your background behind it. I was doing that in my application until I gave up on the UITable...
[ 0.5516225695610046, -0.04771270602941513, 0.44540664553642273, -0.023353904485702515, -0.21987420320510864, -0.15414011478424072, -0.11418692022562027, -0.12099610269069672, -0.23040057718753815, -0.5900272130966187, 0.06809618324041367, 0.4753190875053406, -0.30940473079681396, -0.2100666...
example. chris.
[ 0.23047855496406555, 0.3998629152774811, -0.22592251002788544, -0.2509936988353729, -0.29717424511909485, -0.022494645789265633, 0.2896480858325958, 0.1395801156759262, -0.5986253619194031, -0.5938622355461121, -0.35412535071372986, -0.012454780749976635, -0.2878302037715912, 0.01401972956...
what is meaning the error . I set and then appear this error . > Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use ...
[ 0.29551681876182556, 0.21136395633220673, 0.1678115576505661, 0.03135087341070175, 0.19639596343040466, -0.1518029272556305, 0.9237177968025208, -0.047809209674596786, -0.18866601586341858, -0.6073465347290039, 0.08789213746786118, 0.68336021900177, -0.29511168599128723, 0.2304529994726181...
How do I build a query in Subsonic that of this format > (ConditionA OR ConditionB) AND > ConditionC Iv tried various approaches but I cant seem to get the desired result. Here is one thing i tired: ``` Query q = Challenge.CreateQuery(); q.WHERE(Challenge.Columns.ChallengeeKey, playerKey) .OR(Challenge...
[ -0.061523452401161194, 0.03867141902446747, 0.5972434282302856, 0.0037222050596028566, -0.2430741935968399, -0.3037535548210144, 0.5892606973648071, -0.43430253863334656, 0.15285655856132507, -0.36433160305023193, 0.18901537358760834, 0.5653036236763, -0.2476772964000702, -0.10259293764829...
Challenge challenge = new Select().From(Challenge.Schema) .WhereExpression(Challenge.Columns.ChallengerKey).IsEqualTo(playerKey) .Or(Challenge.Columns.ChallengerKey).IsGreaterThan(playerKey) .AndExpression(Challenge.Columns.Complete).IsEqualTo(false) .ExecuteSingle<Challenge>...
[ -0.3838329613208771, -0.29986095428466797, 0.5308150053024292, -0.09054256975650787, -0.02419872395694256, -0.08550509065389633, 0.3912883996963501, -0.6233689785003662, -0.18035179376602173, -0.3728276193141937, -0.4153188169002533, 0.4193526804447174, -0.36655446887016296, 0.300088077783...
I'm stumped on how to get started with Adobe Flash Media Server. On Linux. All I need to do is: 1. Accept a request for rtmp://myserver.com:1935/stream/static/abcdef0123456789 2. Tell FMS that $filename is located at /var/media/ab/cd/ef/abcdef0123456789 3. Have FMS send /var/media/ab/cd/ef/abcdef0123456789 to the cli...
[ 0.17512203752994537, 0.31281110644340515, 0.5717239379882812, -0.1285024881362915, -0.06993518769741058, -0.19771334528923035, 0.1852995604276657, -0.4044173061847687, -0.12357450276613235, -0.6664432287216187, -0.06232495605945587, 0.833713948726654, -0.17662018537521362, -0.1656462997198...
Forgive me coder for I have sinned. I put some code into a dll in the GAC, and now I am confused about how the GAC is really working with IIS. In our intranet environment I have several related web applications (about 10). Each application runs from a separate url, and potentially runs in its own app pool. For now all...
[ 0.3674021065235138, 0.31274107098579407, 0.2021673619747162, -0.0253253523260355, -0.3390672206878662, 0.1916288584470749, 0.7865217328071594, -0.26948902010917664, -0.10145323723554611, -0.7255027890205383, 0.18460793793201447, 0.5726955533027649, -0.166789710521698, 0.13301177322864532, ...
all of our applications (master pages, logon pages, menus ect.) The request from management was that changes to these files could be universal, and would take effect without having to re-compile and re-migrate each web app. There are lots of ways to accomplish this task, and despite warnings to avoid the GAC, this real...
[ 0.2831008732318878, -0.002310450654476881, 0.7221679091453552, 0.15328699350357056, 0.14530347287654877, -0.10613249987363815, 0.04366222769021988, 0.014104286208748817, -0.5923073291778564, -0.7903575897216797, -0.16111138463020325, 0.47007206082344055, -0.2767220437526703, 0.214373096823...
pull the files from a database, but I was hoping that embedding the files into the dll itself would be more performant. **Complication #1** I didn’t want the developers of each app to have to mess with their own GAC to test and run their application, so in each solution I just included the Virtual Path Provider proj...
[ 0.4847065806388855, -0.03431206941604614, 0.44909486174583435, 0.145463228225708, -0.1029440388083458, 0.031698159873485565, 0.19043654203414917, 0.14478744566440582, -0.2782418131828308, -0.5178889036178589, -0.061032917350530624, 0.5934474468231201, -0.3319539427757263, 0.108461074531078...
dll in their GAC (which they shouldn’t) the local bin copy is used. This allows the developer to easily change and test both the app’s files and the files that are common to every application. This also means that unless it is deliberately prevented, the common dll will exist in the bin directory of every app in produc...
[ 0.3015388250350952, 0.0757526233792305, 0.6635059714317322, 0.13119369745254517, 0.03513454273343086, -0.23283448815345764, 0.06831049174070358, -0.1761893630027771, -0.1520196795463562, -0.7076025605201721, -0.42829039692878723, 0.5560114979743958, -0.5473843812942505, 0.13735757768154144...
to both have the VPP.dll copy local for development, and yet not copy to the bin directory, when the app was copied to the server. **Complication #2** Actually coding an app so that it always uses the latest version of the dll instead of the specific version that it was compiled with seems like a fairly complicated m...
[ 0.3871549665927887, -0.13818831741809845, 0.3581427037715912, 0.29009172320365906, -0.017423052340745926, -0.12119560688734055, 0.12557150423526764, -0.06199885904788971, -0.2911216616630554, -0.569520115852356, 0.005371906794607639, 0.44041627645492554, -0.4401886761188507, 0.021721517667...
when migrating a new version of the VPP dll to the GAC. This seemed to work ok, until it didn’t. Using the Windows /assembly snap-in on the server, I replaced an older version of v. 1.0.0.0 of my dll in the GAC with an updated copy of v. 1.0.0.0 . Even though I had updated the dll in the GAC, my apps continued to use ...
[ 0.1305878758430481, 0.0017774079460650682, 0.30918747186660767, 0.052570655941963196, -0.20969726145267487, -0.18561603128910065, 0.5736293196678162, 0.29616421461105347, -0.27194032073020935, -0.751408576965332, 0.07570751011371613, 0.46778881549835205, -0.5956780314445496, 0.444621384143...
using the correct copy of the dll from the GAC. I have seen many GAC related questions of this type that all seemed to end with “all of the sudden my website started working correctly again”. It took a while for me to see that this was an effect of how IIS was caching my strongly named dll, and that I was mis-using th...
[ 0.009602067992091179, 0.05822180584073067, 0.20050205290317535, 0.04774511978030205, -0.45292726159095764, -0.2599865198135376, 0.4724883437156677, -0.005739731714129448, -0.19828854501247406, -0.4134190082550049, 0.40409740805625916, 0.4380253553390503, -0.36339014768600464, 0.42113488912...
process would either fail, or revert/advance to the version that was in the bin directory. However because the version in the bin was also 1.0.0.0, IIS continued to use the cached copy of the dll, which now no longer existed on the machine.(That had me really baffled for a while, because I lost confidence that the GAC ...
[ 0.03313153609633446, -0.05017683655023575, 0.39180171489715576, -0.050343990325927734, -0.0779472216963768, -0.07272852212190628, 0.6885822415351868, -0.18329715728759766, -0.20272612571716309, -0.6533229351043701, 0.07676847279071808, 0.47866058349609375, -0.2022138088941574, 0.5309469699...
that it would fail, and then put the new version of the dll into the GAC. Starting and stopping IIS during this had no effect. This consistently got my applications to use the new code but… So much for simply sticking a new version of a dll into the GAC and having its new effects propagate seamlessly. After reading s...
[ 0.19186368584632874, 0.11887114495038986, 0.35605135560035706, -0.19038887321949005, -0.10928387194871902, -0.3660227656364441, 0.5572500228881836, -0.06303957104682922, -0.3184379041194916, -0.36735549569129944, -0.16621962189674377, 0.6187059879302979, -0.5456603765487671, 0.230892330408...
recompile, but it’s a sledgehammer of a fix) 4. restart IIS. This appears to be working, but It still seems like there is something wrong with having to go to all this trouble. Is there an easier way to force IIS to use the current instance of the GAC’s dll? Is there a better way to accomplish the effect that I am aft...
[ -0.07949143648147583, -0.2207443118095398, 0.5112231969833374, 0.4310188293457031, -0.06437227129936218, -0.05461180955171585, 0.4150688946247101, -0.374403178691864, -0.27963536977767944, -0.38979029655456543, -0.08171055465936661, 0.6057310700416565, -0.3585442304611206, -0.2124586999416...
knowledge: Redirecting Assembly Versions To redirect one version to another, use the `<bindingRedirect>` element. The oldVersion attribute can specify either a single version, or a **range of versions**. For example, `<bindingRedirect oldVersion="1.1.0.0-1.2.0.0" newVersion="2.0.0.0"/>` specifies that the runtime shou...
[ 0.28808215260505676, 0.12027700990438461, 0.7070386409759521, 0.02306593768298626, 0.06745734065771103, -0.15166008472442627, 0.24519871175289154, -0.13680300116539001, -0.13691478967666626, -0.8042038679122925, 0.1747252494096756, 0.321184903383255, -0.22172880172729492, 0.615498006343841...
see if updating the version like this also triggers IIS to use the correct version of the new file (after resetting the app pool) Looking at your question, it seems you wish to use a higher version of your assembly when deployed. In that case, this <http://msdn.microsoft.com/en-us/library/eftw1fys(VS.71).aspx> might h...
[ 0.34099194407463074, -0.28286364674568176, 0.1761721819639206, 0.10039229691028595, 0.16166804730892181, -0.057070136070251465, 0.4053930938243866, -0.21664102375507355, -0.4182518720626831, -0.7539396286010742, -0.2193070501089096, 0.45768308639526367, -0.34051814675331116, -0.21655994653...
I'm 99% certain the answer to this is a blinding **no**. Please validate my proposition that the following code will produce a memory leak. ``` Data &getData() { Data *i = new Data(); return *i; } void exampleFunc() { Data d1 = getData(); Data d2; /* d1 is not deallocated because it is on the hea...
[ 0.25738802552223206, 0.11125027388334274, 0.23598723113536835, -0.15992049872875214, 0.2031143307685852, -0.12167752534151077, 0.4571923315525055, -0.36370712518692017, -0.31741201877593994, -0.5665827989578247, -0.40934526920318604, 0.6621650457382202, -0.3813033699989319, 0.1826811581850...
point this out thanks. ### Update 1: To add to this, what if I assign the pointer to a reference? In this case, I assume that the data is not copied... ``` Data &getData() { Data *i = new Data(); return *i; } void exampleFunc() { // Does copying occur here? Data &d1 = getData(); // Does this de...
[ 0.18981033563613892, 0.29050981998443604, 0.47475194931030273, -0.11569824069738388, -0.09020224958658218, -0.09504060447216034, 0.00020405651594046503, -0.4128471612930298, -0.17181570827960968, -0.4982176423072815, 0.18913021683692932, 0.5709990859031677, -0.5032148361206055, 0.141925483...
not cause a copy... ``` #include <iostream> #include <string> using namespace std; class Data { public: string mName; Data(const string &name) : mName(name) { cout << mName << " default ctor" << endl; } Data(const Data& other) { mName = other.mName + " (copy)"; cout << mName << ...
[ 0.11845000833272934, 0.29363399744033813, 0.3145371675491333, -0.29863885045051575, 0.32473132014274597, 0.16325797140598297, 0.374111533164978, -0.4019520580768585, -0.20617011189460754, -0.5075206160545349, -0.5571466684341431, 0.42283210158348083, -0.6900438666343689, 0.2853457927703857...
Data &getData(const string &name) { Data *d = new Data(name); return *d; } }; int main() { cout << "d1..." << endl; Data d1 = Data::getData("d1"); cout << "d2..." << endl; Data d2("d2"); cout << "d3..." << endl; Data &d3 = Data::getData("d3"); cout << "return..." ...
[ -0.2637161910533905, -0.2044668048620224, 0.7662205100059509, -0.09849095344543457, 0.31473344564437866, 0.08839961886405945, 0.08754325658082962, -0.38371971249580383, 0.043788690119981766, -0.23177331686019897, -0.705486536026001, 0.5959779024124146, -0.36380645632743835, 0.2157641649246...
ctor d3... d3 default ctor return... d2 dtor d1 (copy) dtor ``` Thanks to Eric Melski for [a great answer](https://stackoverflow.com/questions/765971/is-memory-allocated-with-new-ever-automatically-freed/766002#766002) (my code in update 2 is a modified copy of his exmaple code). Actually both `d1` and `d2` will be d...
[ -0.18849441409111023, 0.09913422167301178, 0.5748836994171143, -0.08087354898452759, 0.09299029409885406, -0.11397343873977661, 0.053659435361623764, -0.6447338461875916, -0.18812152743339539, -0.5099036693572998, -0.49719417095184326, 0.5708457231521606, -0.4597538709640503, 0.08713319897...
cout << "Data copy ctor" << endl; } ~Data() { cout << "Data dtor" << endl; } static Data& getData() { Data *i = new Data(); return *i; } }; ``` Note that I have explicitly declared the copy constructor for `Data`. In your example you are implicitly calling that constructor when you do...
[ 0.009412409737706184, 0.21910668909549713, 0.4786522388458252, -0.3328556716442108, 0.39719027280807495, 0.013993876054883003, 0.24194136261940002, -0.09468820691108704, -0.08358142524957657, -0.6471882462501526, -0.2888540029525757, 0.7259511351585388, -0.6666972637176514, -0.001269612461...
namespace std; int main(int argc, char *argv[]) { Data d1 = Data::getData(); Data d2; return 0; } ``` The output is as follows: ``` Data default ctor Data copy ctor Data default ctor Data dtor Data dtor ``` Line-by-line, here's what you're seeing: 1. The default constructor is invoked when you alloc...
[ -0.04294538497924805, -0.14921383559703827, 0.41171640157699585, -0.1649014949798584, 0.12487097084522247, 0.0001333261898253113, 0.06610032171010971, -0.27626851201057434, -0.16699568927288055, -0.5094287991523743, -0.5544137358665466, 0.5890910625457764, -0.48105666041374207, 0.350288689...
it goes out of scope at the end of `main()`. Note that there are three constructor calls, but only two destructor calls -- indicating that you have leaked exactly one `Data` object. Hope that helps, Eric Melski
[ 0.16606268286705017, -0.05274892598390579, 0.15484900772571564, 0.3430086672306061, 0.21952567994594574, -0.5720013380050659, 0.3361337184906006, 0.07223306596279144, -0.23169030249118805, -0.08028973639011383, -0.3039342164993286, 0.40811458230018616, -0.25045090913772583, 0.2304207831621...
I have a ListBox, that's bound to an `ObservableCollection`. Each `ListBoxItem` is displayed with a `DataTemplate`. I have a button in my `DataTemplate`, that when clicked, needs a reference to the member of the `ObservableCollection` it's part of the DataTemplate for. I can't use the `ListBox.SelectedItem` property b...
[ 0.05669478327035904, 0.0707479938864708, 0.8088761568069458, 0.07283440232276917, 0.012884796597063541, -0.11424494534730911, -0.1254008412361145, -0.30408406257629395, -0.29806289076805115, -0.5416316986083984, 0.0009355979273095727, 0.41035178303718567, -0.3208206593990326, 0.32012957334...
button belongs to. The second option seems cleaner, but either way is probably OK. Simplified code segment below: XAML: ``` <DataTemplate x:Key="postBody"> <Grid> <TextBlock Text="{Binding Path=author}"/> <Button Click="DeleteButton_Click">Delete</Button> </Grid> </DataTemplate> <ListBox Ite...
[ -0.13290444016456604, -0.002764230826869607, 0.7946180701255798, -0.0932650938630104, 0.007612134329974651, -0.015484176576137543, -0.09467919915914536, -0.39230358600616455, -0.2506605386734009, -0.46837466955184937, -0.11480114609003067, 0.28362318873405457, -0.4759686589241028, 0.170065...
<TextBlock Text="{Binding Path=author}"/> <Button Click="DeleteButton_Click">Delete</Button> </Grid> </DataTemplate> <ListBox ItemTemplate="{StaticResource postBody}" ItemSource="{Binding Posts}"/> ``` and in your code-behind, your `Button`'s `DataContext` is equal to your `DataTemplate`'s `DataContext`. In ...
[ -0.3206820487976074, -0.011569519527256489, 0.7223389744758606, -0.22835418581962585, -0.20156143605709076, 0.28210318088531494, 0.26377177238464355, -0.6012895703315735, -0.16267608106136322, -0.5462114214897156, -0.3616168797016144, 0.48163077235221863, -0.4527224004268646, 0.27858725190...
I need to prompt a user to save their work when they leave a page. I've tried onbeforeunload but I need to show a styled prompt not the usual dialog box. Facebook has managed to achieve this (if you have a Facebook account, edit your profile info and go to another page without saving and you get a styled prompt). I've ...
[ 0.6364706158638, -0.3814109265804291, 0.3320135176181793, 0.12661470472812653, -0.26993072032928467, -0.2712653577327728, 0.2665369510650635, 0.35717645287513733, -0.16115717589855194, -0.7007244229316711, 0.032688893377780914, 0.554905891418457, 0.07367345690727234, 0.08730048686265945, ...
but nothing when entering a new URL in the address bar, clicking a bookmark, or navigating Back in your browser's history. If that works for you, it's easy enough to do: simply add a `click` event handler to every link on the page, and trigger your stylized confirmation from it. Since these handlers will get called pr...
[ 0.31709781289100647, -0.1996033787727356, 0.3947724401950836, 0.19084270298480988, 0.17455807328224182, -0.5098627209663391, 0.5267967581748962, 0.2640455961227417, -0.3404906392097473, -0.5848970413208008, -0.20488135516643524, 0.3610157072544098, -0.14103300869464874, 0.02895178459584713...
do need or want to respond to navigation events triggered externally, you'll have to use `onbeforeunload`. And yes, the dialog is crappy, and you can't cancel the event - that's the price we pay for all the scandalous idiots abusing such features back in the '90s. Sorry...
[ 0.29757553339004517, 0.2135719656944275, 0.5781825184822083, 0.2854108214378357, 0.17546780407428741, -0.5272709727287292, 0.44053635001182556, 0.6678306460380554, 0.003173425327986479, -0.21873760223388672, -0.4722691476345062, 0.7777597308158875, -0.29880160093307495, 0.03402384370565414...
I have been looking at [stacked](http://ra-ajax.org/stacked-an-open-source-implementation-of-stackoverflow-com.blog) and it seems that it is marginalizing the heavy financial and intellectual investments made by the creators of Stackoverflow itself. I have been beaten down pretty heavily for bringing up [this topic](ht...
[ 0.7444111704826355, 0.0780647024512291, 0.3606848418712616, -0.1250377893447876, -0.10992670059204102, -0.3037646412849426, -0.1760665476322174, 0.011321445927023888, -0.42667049169540405, -0.22538666427135468, 0.30839985609054565, 0.5790117979049683, -0.30282050371170044, 0.22380512952804...
having skill in the art of programming. Would you pursue patents or different means of protecting your investment? What steps would you take to discourage this practice? > What legal steps should you take to > protect your products from open source > ripoff? As has been mentioned, it's not specific to open source. E...
[ 0.7378842830657959, 0.19380241632461548, -0.36796608567237854, 0.25340357422828674, 0.05227810516953468, -0.3517985939979553, -0.04928629845380783, -0.2109397053718567, -0.22197812795639038, -0.28382569551467896, 0.40095585584640503, 0.6583861112594604, -0.11664522439241409, -0.06111435219...
away from Joel and Jeff, it's not totally amazingly different to anything else out there. It's better than it's direct competitors (eg. expertsexchange) and generally very slick and well-done, but the same techniques have been used elsewhere. Anyway, the short answer to the actual question: Be better than them. Patent...
[ 0.8372191190719604, 0.3477824330329895, -0.005460018292069435, 0.2676222622394562, 0.11922801285982132, -0.15931525826454163, 0.15273036062717438, 0.12531541287899017, -0.05853474512696266, -0.20131582021713257, 0.16065596044063568, 0.6050214767456055, 0.5823008418083191, 0.113518409430980...
similar thing to you, it's called "competition" and it's no bad thing. So, don't spend your time trying to think up some kind of 'protection' for your software - instead, spend it making that software the best in it's market.
[ 0.4052179753780365, 0.07820302993059158, -0.18246352672576904, 0.47537752985954285, -0.0392831452190876, -0.3152841627597809, 0.08954453468322754, 0.3431464731693268, -0.1620108187198639, -0.4175080358982086, 0.32117557525634766, 0.689235508441925, 0.009141301736235619, 0.02223317138850689...
I have two tables that have the exact same structure. Table MasterList Acct\_id(9) Name (25) Address (35) City(15) State(2) ZipCode(5) and Table NewMasterList Acct\_id(9) Name (25) Address (35) City(15) State(2) ZipCode(5) I need a query that will display the Acct\_ID and Name for all records from each table that a...
[ -0.11422066390514374, 0.35869407653808594, 0.8990823030471802, 0.006396464537829161, -0.31285837292671204, 0.26461997628211975, -0.14709952473640442, -0.48349133133888245, -0.5317910313606262, -0.9325751662254333, 0.05581781268119812, 0.1984398066997528, -0.20063896477222443, 0.35812377929...
This has probably been asked before, but a quick search only brought up the same question asked for C#. [See here.](https://stackoverflow.com/questions/410227/test-if-object-implements-interface) What I basically want to do is to check wether a given object implements a given interface. I kind of figured out a soluti...
[ 0.0008461249526590109, 0.0656595528125763, 0.1704913228750229, -0.09678041934967041, -0.1262371838092804, -0.19956830143928528, 0.308267205953598, -0.43775102496147156, -0.15615065395832062, -0.5626896619796753, 0.09074385464191437, 0.5632103681564331, -0.4779851734638214, -0.1272639185190...
return true; } } return false; } ``` --- EDIT: Ok, thanks for your answers. Especially to Damien Pollet and Noldorin, you made me rethink my design so I don't test for interfaces anymore. The [`instanceof`](http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.20.2) operator does ...
[ 0.16439086198806763, 0.2729997932910919, 0.2206496000289917, -0.027886250987648964, -0.04692399501800537, -0.21875455975532532, 0.6793801188468933, -0.43612152338027954, -0.0023343830835074186, -0.5492101907730103, -0.03818642720580101, 0.6618067026138306, -0.4286780059337616, 0.0318198651...
isn't). **instanceof** is the built-in, compile-time safe alternative to [Class#isInstance(Object)](http://java.sun.com/javase/6/docs/api/java/lang/Class.html#isInstance(java.lang.Object))
[ -0.19772031903266907, -0.3307736814022064, 0.25126951932907104, 0.003862084122374654, 0.10738010704517365, -0.10784628987312317, 0.3457188606262207, -0.31298595666885376, -0.3646729588508606, -0.6256034970283508, -0.1994633972644806, 0.249235600233078, -0.3679771423339844, 0.04508221521973...
I was looking for a way to print a string backwards, and after a quick search on google, I found this method: Suppose `a` is a string variable. This will return the `a` string backwards: ``` a[::-1] ``` Can anyone explain how that works? Sure, the `[::]` is the [extended slice](https://docs.python.org/whatsnew/2.3....
[ 0.21197669208049774, -0.27382826805114746, 0.18543101847171783, -0.4331904649734497, -0.014797360636293888, 0.17349809408187866, 0.07526398450136185, -0.17977088689804077, -0.17357902228832245, -0.2222428023815155, -0.22962546348571777, 0.23359376192092896, -0.460633248090744, -0.132930278...
end, if you give a negative number, it means to count from the end of the sequence. For instance, if I have a list: ``` l = [1,2,3] ``` Then `l[-1]` is 3, `l[-2]` is 2, and `l[-3]` is 1. For the `step` argument, a negative number means to work *backwards* through the sequence. So for a list:: ``` l = [1,2,3,4,5,6...
[ -0.04136178269982338, 0.1582832634449005, 0.31671151518821716, -0.6092414259910583, -0.12837232649326324, 0.378546804189682, 0.3416104316711426, -0.5802499651908875, -0.3635696768760681, -0.34774520993232727, 0.0337531752884388, 0.4279850125312805, -0.35856425762176514, -0.0371510349214077...
the examples with lists, but strings are just another sequence and work the same way. So `a[::-1]` means to build a string by joining the characters you get by walking backwards through the string.
[ 0.34645843505859375, 0.07798159122467041, -0.0664520338177681, -0.252699077129364, -0.3500608503818512, 0.12559644877910614, 0.11696732044219971, -0.19115562736988068, -0.32866519689559937, -0.5348786115646362, -0.1591518074274063, 0.06784871965646744, -0.48134511709213257, -0.014149088412...
I need to sort an array containing a list of words and search the same using binarysearch. For certain reasons, the word-list must always be sorted using the sorting-rules of "en-US" i.e. American Regional Settings. The code will run under various international Operating Systems and of course, this will mean that the w...
[ 0.1079728901386261, 0.09639258682727814, 0.22707565128803253, 0.19873979687690735, 0.2635344862937927, 0.12562882900238037, 0.5761306881904602, 0.07476595789194107, -0.08643978089094162, -0.8034768104553223, -0.19706298410892487, 0.19431030750274658, -0.024011921137571335, 0.28802549839019...
create havoc to my program. On a desktop-PC, I could change momentarily the Regional Settings into American English by using: Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US") However, since I am developing for Windows Mobile (CF.NET), this piece of code is not possible to implement. ...
[ 0.5474715232849121, -0.08346777409315109, 0.37210196256637573, 0.07323842495679855, 0.13365553319454193, -0.0848313570022583, 0.5612453818321228, 0.298941045999527, -0.08924412727355957, -0.7115971446037292, -0.20779173076152802, 0.1456424444913864, -0.21335406601428986, 0.3440670669078827...
Function BinarySearch(Of T) ( _ array As T(), _ value As T, _ comparer As IComparer(Of T) _ ) As Integer ``` and implement Comparer to take into consideration CultureInfo (and set it to "en-US") but I don't know how to do that despite trying hard. If anyone could post some sample-code in VB.Net or C# or a...
[ 0.05726933851838112, 0.22259731590747833, -0.02864227257668972, 0.10152868181467056, -0.126186802983284, 0.3781568706035614, 0.36575135588645935, 0.05310443043708801, 0.017324412241578102, -0.2808811366558075, -0.141290083527565, 0.5246930122375488, -0.2627257704734802, -0.1357847601175308...
solution since my question clearly stated that I wanted to maintain an association with the English language. However, in means of flexibility, I believe Guffa's answer is the best one. Why? Let's use another example: In German, the letter **Ö** is sorted **Ö**-X-Z while in Swedish and Finnish, the order is X-Z-**Ö**....
[ -0.20391036570072174, -0.051965631544589996, 0.2274591624736786, 0.05668999254703522, -0.1918501853942871, 0.07532232254743576, 0.4176463782787323, 0.0499439537525177, -0.25562742352485657, -0.5921167135238647, -0.3846205174922943, 0.07342373579740524, -0.26705557107925415, -0.250416666269...
Therefore my vote will go to Guffa. Is it not possible to use the [Invariant](http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.invariantculture.aspx) culture? > InvariantCulture retrieves an instance > of the invariant culture. It is > associated with the English language > but not with any...
[ 0.06592725217342377, -0.211618572473526, 0.6115976572036743, 0.38870179653167725, -0.2798692286014557, 0.3110247254371643, 0.05730882287025452, -0.33341705799102783, -0.1684872955083847, -0.49167898297309875, -0.2650332450866699, -0.021013174206018448, -0.37763965129852295, 0.2328857928514...
Just that. I found a similar question here : [c# console, Console.Clear problem](https://stackoverflow.com/questions/377927/c-console-console-clear-problem) but that didn't answer the question. UPDATES : Console.Clear() throws : IOException (The handle is invalid) The app is a WPF app. Writing to the console howe...
[ -0.09571909159421921, 0.047975391149520874, 0.36107224225997925, -0.06217847391963005, 0.038640376180410385, -0.18190377950668335, 0.3287680745124817, 0.0532616563141346, -0.20841266214847565, -0.5015819072723389, -0.26534029841423035, 0.6445537209510803, -0.38140496611595154, -0.079617425...
is being redirected. Maybe this is the case for WPF applications? The article describes how to check whether the console is being redirected.
[ -0.11018392443656921, -0.3813907206058502, 0.6012991666793823, 0.23964619636535645, -0.024546299129724503, -0.2162153422832489, 0.1080523207783699, -0.08886692672967911, -0.21899966895580292, -0.5170602798461914, -0.05085403844714165, 0.5706021189689636, -0.20318278670310974, -0.0989446938...
Does anyone know what's [mint.com](http://www.mint.com)'s programming language/technology? Are they using Java? .NET? Python? Ruby? Their site is extremely good and I was just wondering what they've chosen to develop their web site. Thanks. P.S. MINT.COM is a Personal Finance Management online application. P.S. 2: T...
[ 0.8674680590629578, 0.6009818911552429, -0.17322483658790588, 0.32983461022377014, -0.23087507486343384, 0.03981246426701546, 0.42034557461738586, 0.6012991666793823, -0.3085431158542633, -0.43746212124824524, 0.11858171224594116, 0.22975212335586548, 0.2822343409061432, -0.110442340373992...
I'm using the following code... ``` 169: const char *title = Title.c_str(); 170: glutCreateWindow(title); ``` ... Valgrind gives me the following ... ``` ==28841== Conditional jump or move depends on uninitialised value(s) ==28841== at 0x6FF7A4C: (within /usr/lib64/libGLcore.so.180.44) ==28841== by 0x6FF81F7:...
[ -0.31775355339050293, 0.23686634004116058, 0.5227131843566895, -0.19765588641166687, 0.08689282089471817, 0.14875835180282593, 0.554926872253418, -0.3452755808830261, -0.2447768598794937, -0.36282971501350403, -0.16248401999473572, 0.5045956969261169, -0.3399578928947449, 0.291572093963623...
by 0x54DF300: glutCreateWindow (in /usr/lib64/libglut.so.3.8.0) ==28841== by 0x4146CE: vimrid::glut::GlutApplication::Init() (GlutApplication.cpp:170) ``` But what is uninitialized? The title variable is initialized with the value of Title.c\_str() and Title is a class member which is initialized in the constructo...
[ -0.18662779033184052, -0.021873855963349342, 0.5734386444091797, 0.053377795964479446, -0.17941075563430786, -0.07815857976675034, 0.5666259527206421, -0.27569103240966797, -0.020301615819334984, -0.04172182083129883, -0.3347349166870117, 0.8204323053359985, -0.11427604407072067, 0.4921412...
libraries, such as the GNU C library, and the X11 client libraries, which come pre-installed on your GNU/Linux system. You can't easily fix these, but you don't want to see these errors (and yes, there are many!) So Valgrind reads a list of errors to suppress at startup. A default suppression file is created by the ./c...
[ 0.057924993336200714, -0.04104836285114288, 0.09368555247783661, 0.36080899834632874, 0.10263948887586594, -0.18718425929546356, 0.3305235505104065, -0.1984015703201294, -0.4040690064430237, -0.36952728033065796, -0.39761844277381897, 0.9047486782073975, -0.47729459404945374, -0.3406230211...
I am going crazy starting off with Web Services. I am trying to call the following WSDL using PHP and keep getting nowhere: <http://webservices.sabre.com/wsdl/sabreXML1.0.00/usg/SessionCreateRQ.wsdl> I found the following piece of code on the net, from someone with similar problems, but I could not get it to work eit...
[ 0.448529988527298, -0.20440560579299927, 0.321903258562088, 0.0018246315885335207, 0.2167903631925583, -0.6265288591384888, 0.6244918704032898, -0.36085572838783264, -0.19996647536754608, -0.07846275717020035, -0.11102113872766495, 0.3683794438838959, -0.6967264413833618, 0.182568281888961...
print\_r($e); } //debug print "Request: \n". htmlspecialchars($soap->\_\_getLastRequestHeaders()) ."\n"; print "Request: \n". htmlspecialchars($soap->\_\_getLastRequest()) ."\n"; print "Response: \n". $soap->\_\_getLastResponseHeaders()."\n"; print "Response: \n". $soap->...
[ -0.34871867299079895, -0.08538417518138885, 0.6999064087867737, -0.263273149728775, 0.036218903958797455, 0.18647988140583038, 0.3016960918903351, -0.27929022908210754, -0.06630631536245346, -0.6288686394691467, -0.554778516292572, 0.5281656384468079, -0.44929027557373047, 0.06212692335247...
public $Service = 'Session';// or SessionCreate? public $Action = 'SessionCreateRQ'; public $MessageData = array( 'MessageId' => 'messageid', 'Timestamp' => '2009-04-18T15:15:00Z'); } //the security token class Security { public $Username = "xxxxx"; public $Password = "yyyyy"; publ...
[ 0.2750714123249054, -0.09904951602220535, 0.34397679567337036, 0.09907708317041397, 0.13266761600971222, -0.13162942230701447, 0.26486271619796753, -0.05785590410232544, -0.23455077409744263, -0.46432816982269287, -0.5935258269309998, 0.6195443272590637, -0.14015299081802368, 0.12832885980...
$POS = array( 'Source' => array( '\_'=>"", 'PseudoCityCode'=>'ZZZZ' )); } I keep getting the following error: Response: HTTP/1.1 500 Internal Server Error SOAPAction: "" Content-Type: text/xml;charset=utf-8 Date: Sun, 19 Apr 2009 22:21:34 GMT Connection: close Server: SWS Response: > so...
[ -0.6019634008407593, 0.23237736523151398, 0.7274502515792847, -0.14187848567962646, -0.19197429716587067, 0.2842307388782501, 0.6141971349716187, -0.537663459777832, -0.28032851219177246, -0.6166577339172363, -0.21479253470897675, 0.35601523518562317, -0.13168148696422577, 0.11545906215906...
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEng...
[ -0.28715601563453674, 0.46069878339767456, 0.5216075778007507, -0.03602355346083641, -0.0368511788547039, 0.18861418962478638, 0.853600025177002, -0.29248344898223877, -0.1837397664785385, -0.3931322693824768, -0.05249251425266266, 0.39437273144721985, -0.22094646096229553, 0.2747232019901...
calls. Any help GREATLY appreciated!!! Valgrind comes with some default error suppression, but that probably does not cover libCLcore. > The error-checking tools detect numerous problems in the base libraries, such as the GNU C library, and the X11 client libraries, which come pre-installed on your GNU/Linux system. ...
[ -0.3620900809764862, 0.09730412811040878, 0.5736702680587769, 0.20780542492866516, 0.03813262656331062, -0.03603518009185791, 0.49830755591392517, -0.09395100921392441, -0.22390201687812805, -0.5953550338745117, -0.4932401776313782, 0.9931609630584717, -0.5716573596000671, -0.2474115043878...
to your code.
[ 0.5485382676124573, 0.18772614002227783, -0.15091215074062347, 0.15324853360652924, 0.10837207734584808, -0.003698904998600483, 0.387582391500473, 0.06914499402046204, -0.20614950358867645, -0.6092098355293274, -0.23971764743328094, 0.36797580122947693, -0.26798468828201294, -0.06696118414...
Im trying to work out the best way scale my site, and i have a question on how mssql will scale. The way the table currently is: > cache\_id - int - identifier > > cache\_name - nvchar 256 - Used for lookup along with event\_id > > cache\_event\_id - int - Basicly a way of grouping > > cache\_creation\_d...
[ -0.04359237477183342, 0.06269523501396179, 0.8188821077346802, -0.15199333429336548, -0.15704447031021118, 0.29143333435058594, -0.04188394546508789, -0.4077458381652832, -0.3658584654331207, -0.8613507747650146, 0.09408016502857208, 0.1706974357366562, -0.19257332384586334, 0.394104957580...
site. The different ways i see storing i see are: 1) 1 large table, it would contain tens millions of records and easily become several gigabytes in size. 2) Multiple tables to contain the data above, meaning each table would 200k to a million records. The data will be used from this table to show web pages, ...
[ 0.3751634955406189, 0.08596199750900269, 0.49911147356033325, 0.2635999619960785, 0.015767240896821022, -0.4762764573097229, 0.415402889251709, -0.031169800087809563, -0.5873734354972839, -0.8739108443260193, 0.16011597216129303, 0.1282694935798645, 0.026296190917491913, 0.3229795396327972...
boils down to, what is it that slows down the SQL server?** Is it the size of the table ( disk space ) Is the the number of rows At what point does it stop becoming cost effective to use multiple database servers? If its close to impossible to predict these things, il accept that as a reply to. Im not a DBA...
[ 0.29255354404449463, 0.4778044819831848, 0.5485637187957764, 0.07233990728855133, -0.0662737637758255, -0.06603075563907623, -0.07141400873661041, -0.050573259592056274, -0.15124982595443726, -0.4907575249671936, 0.2693590223789215, 0.618496298789978, -0.26486390829086304, 0.22959366440773...
down the SQL server? Is it the size of the table ( disk space ) Is the the number of rows At what point does it stop becoming cost effective to use multiple database servers? ``` This is all a 'rule of thumb' view; Load (and therefore to a considerable extent performance) of a DB is largely a factor of 2 issu...
[ -0.09522534161806107, 0.1345672905445099, 0.48804816603660583, 0.23758824169635773, -0.10124071687459946, -0.2189895063638687, -0.04755169898271561, -0.33692947030067444, -0.24008193612098694, -0.3757845163345337, -0.02259049378335476, 0.42213043570518494, -0.2068205326795578, 0.3634956777...
systems, appropriate buffer cache sizes, etc. Many of these, e.g. Normalisation are the issues that one considers at DB design time, others during system tuning, e.g. additional/less indexes, buffer cache size. The transactional load is largely a factor of code design and total number of users. Code design includes fa...
[ -0.07838024199008942, 0.1486082673072815, 0.33350563049316406, 0.21774043142795563, 0.08439381420612335, 0.015322837047278881, 0.340027391910553, -0.1442881077528, -0.6228340864181519, -0.8369545936584473, -0.19408054649829865, 0.3139338791370392, -0.2850247025489807, 0.04964994266629219, ...
faster server) then out (multiple servers). The admin issues of a multiple server instance are significant and I suggest only worth considering for a site with OS, Network and DBA skills and processes to match.
[ -0.144363671541214, -0.07613883912563324, 0.3415673077106476, 0.4201870262622833, 0.026496822014451027, -0.03473727032542229, 0.16699762642383575, 0.1029963418841362, -0.2427150011062622, -0.9704598188400269, -0.05317780748009682, 0.3541170060634613, -0.16114450991153717, -0.04046305269002...