text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
} } </script> <input id="FullName" type="text" /> <script type="text/javascript"> document.getElementById('FullName').onchange = function() { shouldConfirm = true; } </script> ``` There's a full article at [4GuysFromRolla.com](https://web.archive.org/web/20211020134123/https://www.4guysfr...
[ -0.0042303455993533134, 0.12656958401203156, 0.35671257972717285, -0.37053996324539185, 0.25602877140045166, -0.05804555118083954, 0.2905929684638977, -0.07740920037031174, 0.05691400170326233, -0.5724926590919495, -0.5651987791061401, 0.7842409610748291, -0.07986577600240707, 0.0873760059...
There are a set of point that are collinear. The problem is to add a new point that lies in the same line so that sum of distance from the new point to existing points is minimum. (Assume that the point lies in a horizontal line). The solution I thought of is: 1. Sort the points according to their x-coordinates (y do...
[ -0.1997731775045395, -0.2259412556886673, 0.6182187795639038, 0.08942582458257675, -0.12864916026592255, 0.2059018909931183, 0.044370993971824646, -0.30540329217910767, -0.21149301528930664, -0.6515839099884033, -0.2553514838218689, 0.13524971902370453, -0.2732068598270416, 0.2602002024650...
Also any better way of solving this? I believe that the median is the correct answer if we wish to minimise the sum of the absolute distances, which is the obvious interpretation. The mean is correct if we wish to minimise the sum of the squared distances. For points at y = 0 and x = 0, 1, 2, 101 the mean is 26 and we ...
[ -0.06523436307907104, 0.21839050948619843, 0.7578743696212769, -0.33204716444015503, -0.21877482533454895, 0.39949527382850647, 0.186519056558609, -0.14775824546813965, -0.1583312451839447, -0.5393754839897156, -0.1318415105342865, 0.40056103467941284, 0.31314021348953247, 0.35781896114349...
your left is the same as the number of points to your right. Moving left by a small amount increases all the distances to the points to your right and decreases all distances to the points to your left by the same amount - no change. If you are a point or more away from the median you can decrease the sum of absolute d...
[ -0.2626422047615051, -0.421443909406662, 0.8630561828613281, 0.017302246764302254, -0.1264718472957611, 0.09643364697694778, 0.05069614574313164, 0.11489302664995193, -0.3740185797214508, -0.6076672673225403, 0.1257389932870865, 0.4140252470970154, 0.4121203124523163, 0.008511334657669067,...
distances originating from the area where there are fewer points - So if you are not at the median you can improve things by moving towards it. This is a fairly standard result in statistics.
[ 0.10628622025251389, -0.3615405559539795, 0.5419931411743164, -0.09957063943147659, -0.09994568675756454, 0.03348267078399658, 0.24648597836494446, -0.033599235117435455, -0.33235806226730347, -0.7033039331436157, -0.16446910798549652, 0.14284074306488037, 0.3060564696788788, 0.13788178563...
New to Linux programming in general. I am trying to communicate with a kernel module via shared memory, but cannot call the functions used in user apps such as shmget(); I have installed kernel-headers and kernel-devel, and included , to the kernel module source, but the headers do not contain any functions. Is ther...
[ 0.17441359162330627, 0.0663394033908844, 0.09496589004993439, -0.0035130707547068596, -0.05683578550815582, -0.37543874979019165, -0.001956916879862547, 0.12300842255353928, -0.09152831137180328, -0.886913001537323, -0.21857476234436035, 0.7223159074783325, -0.27793169021606445, -0.0222938...
The final goal being porting it to LynxOS to see what kind of troubles may occur when doing so on larger projects. Currently the main features of the demo is multi-process, pipes, message ques, shared-memory, sockets, multi-threads. It has an user app and a loadable kernel module communicating with each other. pipes...
[ 0.14510710537433624, -0.021075937896966934, 0.07302525639533997, 0.3904191553592682, 0.05268449708819389, 0.18611831963062286, 0.25975990295410156, 0.29346704483032227, -0.06542594730854034, -0.9108965992927551, -0.029538020491600037, 0.4665263891220093, -0.11122401058673859, 0.12673674523...
you want to have access to some kernel allocated memory, one way to go is to implement the mmap system call. If you really need to write some kernel code, a recommended reading is : [linux device driver third edition](http://lwn.net/Kernel/LDD3/), and chapter 15 is the one you are looking for. Once you have shared me...
[ 0.18258580565452576, 0.02917420119047165, 0.15315575897693634, 0.0663817897439003, -0.07639069855213165, -0.15760785341262817, -0.2513834238052368, 0.29263943433761597, -0.36476147174835205, -0.807816743850708, -0.12136341631412506, 0.5299939513206482, -0.1982831209897995, 0.05151502415537...
series](http://lwn.net/Articles/240667/) about it. However, if you were more specific in what you want to do, you would receive more specific help on the way to do it, if you really need a kernel module, which kernel code you could have a look at and so on. For the socket thing, I don't know enough, but you should go...
[ 0.49978363513946533, -0.2883584797382355, 0.5240291357040405, -0.00676994351670146, -0.10864334553480148, -0.431959331035614, -0.09099853783845901, -0.08782216161489487, -0.2251879870891571, -0.6400949358940125, -0.1470099687576294, 0.5730850696563721, -0.048728689551353455, 0.182552501559...
Does it make more sense (except of server side validation XML/schema/dtd) to store XML in XML type instead of text/varchar/ntext? I'm not planning to do any XML manipulation on database side. The purpose of my investigation is to decrease database size. Can I use [XML data type](http://msdn.microsoft.com/en-us/library...
[ -0.24041993916034698, 0.012372187338769436, 0.1061427965760231, 0.1556924730539322, -0.10043935477733612, -0.058119989931583405, 0.15184526145458221, -0.21561118960380554, -0.34902864694595337, -0.27970921993255615, 0.11978459358215332, 0.4456419348716736, -0.006649184040725231, 0.11475002...
Copyright (c) 1988-2005 Microsoft Corporation > Express Edition on Windows NT 6.0 (Build 6000: ) store XML with overhead about 70% (possible for faster processing/parsing). My data before conversion: rows=160320, reserved=178576 KB, data=178184 KB, index\_size=272 KB, unused=120 KB My data after the conversion: row...
[ -0.16056305170059204, 0.3748222887516022, 0.4650352895259857, 0.24566613137722015, 0.029589500278234482, -0.13427722454071045, -0.1953810304403305, -0.17673176527023315, -0.4009504020214081, -0.03917143493890762, -0.039146002382040024, 0.20984743535518646, -0.06530071049928665, 0.570483148...
I have just coded up a web based flv file download utility. When I try to download an flv file, the browser does not show a progress bar as in I do not see the time left for download. Somewhere I read that this happens if the flv file you are trying to download does not have a meta tag associated with it. So I ran my f...
[ 0.6780104041099548, 0.06661023944616318, 0.3721034824848175, -0.18242351710796356, 0.004395246505737305, -0.1694437712430954, 0.07314108312129974, -0.035584304481744766, -0.601232647895813, -0.4743695855140686, 0.19052140414714813, 0.6665434241294861, -0.21074220538139343, 0.30308529734611...
0.360730744040669.flv File size 167 bytes Meta 1 event canSeekToEnd 1 filesize 167 metadatacreator FLV::File v0.22 metadatadate Wed Feb 4 17:00:07 2009 ``` Anyone any ideas? It is likely that your web server is not setting the Content-length header correctly, or someth...
[ 0.015190279111266136, 0.04564714431762695, 0.9094118475914001, 0.05580969154834747, -0.15574274957180023, -0.4127053916454315, 0.06997136026620865, -0.1721051186323166, -0.6489773988723755, -0.06265857070684433, -0.030105993151664734, 0.6447551250457764, -0.017397316172719002, 0.1081888079...
small.
[ -0.29604077339172363, 0.0602998249232769, 0.03176143020391464, -0.1410016119480133, 0.09208556264638901, 0.17256897687911987, -0.10044341534376144, -0.028467169031500816, -0.40314480662345886, -0.43070873618125916, 0.061442919075489044, 0.14944784343242645, -0.026237061247229576, 0.4126632...
I want to create a bookmarklet that sets the page to be editable, that is, to run this code: ``` javascript:document.body.contentEditable=true; ``` When I made a bookmark of that, I could see that the page becomes editable very briefly and then the whole thing is replaced with the word "true". Bookmarklets have to e...
[ 0.5111000537872314, 0.4310021698474884, 0.37410372495651245, -0.08153874427080154, 0.014437207020819187, -0.37393030524253845, 0.44999954104423523, -0.3719892203807831, 0.08322462439537048, -0.7589809894561768, -0.11999612301588058, 0.708662211894989, -0.37809088826179504, -0.0576849542558...
I have a web service slowdown. My (web) service is in gsoap & managed C++. It's not IIS/apache hosted, but speaks xml. My client is in .NET The service computation time is light (<0.1s to prepare reply). I expect the service to be smooth, fast and have good availability. I have about 100 clients, response time is 1s ma...
[ 0.20340168476104736, 0.1596362590789795, 0.7256219387054443, -0.12699557840824127, -0.09512332081794739, -0.05344690382480621, 0.8059435486793518, 0.07204928249120712, -0.07900258898735046, -0.8442276120185852, -0.10144811868667603, 0.445704847574234, -0.09160640835762024, 0.12222682684659...
in a loop. It's higher load but everything is processed in less 30 seconds. With sysinternals TCPView, I see that about 1 thousands connections are in TIME\_WAIT. They slowdown the service and It takes seconds for the service to reply, now. Could it be that I need to reset the SoapHttpClientProtocol connection ? Someo...
[ 0.4379657804965973, -0.17291927337646484, 0.4712602496147156, 0.11730329692363739, -0.020488638430833817, -0.06528625637292862, 0.8471633791923523, -0.0942533016204834, -0.4858229458332062, -0.38392236828804016, 0.062181297689676285, 0.3594104051589966, -0.4160086512565613, 0.3216263353824...
I am learning templates. Which book is worth buying for doing template programming? I already have [The C++ Programming Language](http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language) and [Effective C++](http://en.wikipedia.org/wiki/Scott_Meyers#Publications). Those two books are pretty good in my opinion and...
[ 0.4711110591888428, 0.3407975733280182, -0.2342873066663742, 0.2826608419418335, -0.023152397945523262, -0.27346524596214294, 0.31932371854782104, -0.3118163049221039, -0.016049891710281372, -0.7079730033874512, -0.16380123794078827, 0.2789486348628998, -0.24821214377880096, -0.22485639154...
because that's heavy stuff.
[ 0.5399770736694336, 0.543714165687561, -0.04643968492746353, -0.1754978895187378, 0.15997590124607086, -0.24242821335792542, 0.05452853813767433, 0.04600652679800987, -0.35407382249832153, 0.2777363061904907, 0.04020393639802933, 0.2082778960466385, 0.07303056865930557, 0.09060890972614288...
After installing VS 2008 SP1, the LINQ to SQL Designer is not generating code. I get an error message: > Could not load type ' r' from assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Its fixed, the problem was when Installing vs 2008 sp1, it haven't installed .net 3.5 sp...
[ 0.03571215644478798, 0.2160295993089676, 0.8370810747146606, -0.09213171154260635, -0.037937477231025696, -0.2690642476081848, 0.6321353316307068, -0.2894009053707123, -0.12095678597688675, -0.21875281631946564, 0.1076887995004654, 0.6208326816558838, -0.3624783754348755, -0.00200241850689...
I'm very busy write now debugging some code, so I can't cookup a complete example, but this basically describes my problem ``` class Base{}; class MyX:public Base { ... }; class Derived:Base { ... }; template<class X> class MyClass:Derived { private: MyClass(const MyClass& ) :x() {} public: MyClass(...
[ -0.19212473928928375, 0.06551557779312134, 0.2536609172821045, -0.03680901229381561, -0.012148438021540642, 0.11488410085439682, 0.34147822856903076, -0.07660733908414841, 0.07696705311536789, -0.5537521243095398, -0.0542776845395565, 0.44505131244659424, -0.2523362934589386, 0.26416122913...
I have written a program with both a Advanced Mode and a Beginner Mode to allow the user to get the hang of my program before it is actually used. The Advanced Mode is almost identical to the Beginner Mode apart from one or two methods needing to be replaced by another, so I have decided to create a general Mode class ...
[ 0.058114953339099884, -0.13503582775592804, -0.031687911599874496, -0.15541264414787292, -0.23772896826267242, 0.0011340162018314004, 0.4506717920303345, -0.239887073636055, 0.1580664962530136, -0.4872092306613922, 0.05475484952330589, 0.9273308515548706, -0.14512130618095398, -0.171438947...
General Mode class has the following code: ``` public class GeneralMode { private int range; private String id; public GeneralMode() { } public int getRange() { return range; } public String getID() { return id; } public void doStuff() { } } ``` The General...
[ -0.09241633862257004, -0.4140617251396179, 0.5781265497207642, -0.12177492678165436, -0.02490539476275444, -0.2061709612607956, 0.0847359374165535, -0.26024070382118225, 0.297382116317749, -0.5864078402519226, -0.3816051185131073, 1.0899100303649902, -0.41197335720062256, 0.075828321278095...
the Advanced Mode class can take the input from the GUI class and use it in the same way as the GeneralMode class does. Thank you for all your help! Make 'GeneralMode' class, an abstract class, with abstract methods that have to be implemented by the concrete 'advanced' and 'beginner' classes. The functionality that ...
[ -0.1597265601158142, -0.24802632629871368, 0.13562841713428497, 0.35728752613067627, -0.11826059222221375, -0.14033925533294678, 0.17819148302078247, -0.1537051945924759, 0.2305329293012619, -0.6498794555664062, -0.14190787076950073, 0.9691413044929504, -0.19091825187206268, -0.16665211319...
advanced mode. pseudocode: ``` GeneralMode mode = (UseAdvancedMode == true)? new AdvancedMode() : new BeginnerMode(); ```
[ -0.6767246723175049, -0.15799497067928314, 0.8266561031341553, -0.22451405227184296, 0.23430544137954712, -0.03447338566184044, 0.5064706206321716, -0.3536316752433777, 0.21058274805545807, -0.5643541216850281, -0.6011109948158264, 0.7336739301681519, -0.2071869820356369, -0.08148506283760...
I have a Linux C++ application and I'd like to test an object pointer for validity before dereferencing it. However try/catch doesn't work for this on Linux because of the segmentation fault. How can this be done? If you have a scenario where many pointers across your app reference the same limited-lifetime objects, a ...
[ 0.1740599274635315, 0.10479758679866791, 0.26572147011756897, 0.05006542056798935, 0.004701334051787853, -0.19795511662960052, 0.059408772736787796, -0.04607672989368439, -0.20838874578475952, -0.5033164024353027, -0.08748598396778107, 0.5650226473808289, -0.36268144845962524, -0.087126918...
You'll see that `weak_ptr` has the validity check you're asking for built in.
[ 0.3228251338005066, 0.23923420906066895, -0.0012781252153217793, -0.011353321373462677, 0.16980740427970886, -0.3128882348537445, 0.2483484148979187, 0.14459048211574554, -0.1367659568786621, -0.347136527299881, -0.2788689136505127, 0.4944816827774048, -0.03858815133571625, 0.1088642850518...
If a business needed to connect to a various database and generate PDF mostly reports, what are some good tools. Commercial or Opensource. Non technical users should also be able to generate various reports with good looking charts and tabular data through a report designer tool. As well, we should be able to deploy th...
[ 0.5941595435142517, 0.01776464469730854, 0.1315000206232071, 0.49837028980255127, -0.5049126148223877, -0.43150386214256287, -0.095552958548069, 0.0879979208111763, -0.45423439145088196, -0.22531510889530182, -0.03299304097890854, 0.7857536673545837, -0.032406195998191833, -0.0360642038285...
tool). Everything looks good with Birt and does exactly what we might need but the charts don't look that impressive. And with Crystal Reports, once you bring in those vendors, they sell a bunch of stuff that you normally don't need and it is impossible to get stuff done. But I could be wrong. Commercial and for large...
[ 0.7094264030456543, 0.11673872917890549, 0.2151104062795639, 0.23654097318649292, -0.13736052811145782, -0.16171269118785858, -0.132316455245018, -0.040477294474840164, -0.20708811283111572, -0.14706780016422272, -0.017757896333932877, 0.7621968984603882, -0.027333810925483704, -0.08994724...
Let's say you've written the next social networking phenomenon (or any other web app). You've chosen Java, Tomcat, Apache and Oracle (or whatever setup that you like). You know want to get it out there on the web and have people sign up and start using it. What is the next step for something that you have written at ...
[ 0.7922240495681763, -0.11508338898420334, 0.053337134420871735, 0.1589658558368683, 0.08617480099201202, -0.3922034204006195, 0.16894826292991638, 0.4736826717853546, -0.20983633399009705, -0.5761378407478333, 0.15275134146213531, 0.24576009809970856, -0.14442592859268188, -0.2960107326507...
only putting it on a web server somewhere but what nitty gritty things were involved in doing that. If you have a dedicated server from an ISP, what would be involved in regards to setting up the database you want with the schema you require and what sort of access do you get to do what you want. I apologise if it stil...
[ 0.8362075686454773, -0.06367074698209763, -0.0075356001034379005, 0.3316798806190491, 0.18938769400119781, -0.22492729127407074, 0.16332049667835236, 0.08597668260335922, -0.11968565732240677, -0.053159892559051514, 0.3668580949306488, 0.1572936326265335, -0.18065021932125092, 0.1682391613...
web app archive onto a server and that's it. I was just wondering whether there was something more to it and whether there are any things to look out for or any gotchas. I also appreciate the responses in regards to marketing as they were very informative as well. So thanks to those that talked about that! The first tw...
[ 0.658431351184845, -0.02692374214529991, 0.4764830768108368, 0.014123172499239445, -0.06836648285388947, 0.006675858981907368, 0.287894606590271, 0.3005395233631134, -0.42481428384780884, -0.8609780669212341, 0.06535843759775162, 0.06064720079302788, 0.05483413115143776, 0.2200359553098678...
market you'll have your own virtual web server, which is a small slice of a larger machine. Should give you free Java, Tomcat, MySQL etc. If you really do need Oracle (or MSSQL) your range of options will be smaller and more expensive. The next jump up from there is having you're own dedicated server with an ISP you'll...
[ 0.7456761598587036, -0.152679443359375, 0.21833544969558716, 0.26318779587745667, 0.09260246157646179, 0.11528041958808899, -0.17757517099380493, 0.30304038524627686, -0.3995438814163208, -0.6872377991676331, 0.1520087718963623, 0.5271978974342346, 0.22181297838687897, 0.12554945051670074,...
your ISP's admin tool is really important, and the amount you pay doesn't seem to relate to the level of access you get.
[ 0.5726415514945984, 0.178426593542099, 0.14840304851531982, 0.3031001687049866, 0.10922780632972717, -0.0863562524318695, -0.21334904432296753, 0.31807413697242737, 0.0592690035700798, -0.4237504303455353, -0.06362056732177734, 0.42516466975212097, 0.5040092468261719, -0.26666060090065, ...
I have to find the IDs of all the contentPlaceHolders in a MasterPage. based on the now revised question: ``` $rowcount = count($rows); ``` will naturally always return 10, as you're limiting the result ``` ... LIMIT 10; ``` But this might help: [SQL CALC FOUND ROWS](http://dev.mysql.com/doc/refman/5.0/en/inform...
[ 0.10362422466278076, 0.3501204252243042, 0.7626488208770752, -0.08905240893363953, 0.056402191519737244, -0.12512333691120148, 0.30264803767204285, -0.3561127483844757, 0.05984944850206375, -0.7986302375793457, -0.04904608055949211, 0.6655375957489014, -0.19566091895103455, 0.1309561729431...
I have this small code library that I'm considering releasing into Open Source. I want to release it under something similar to MIT License, i.e. no significant restrictions, however I would like to require that if you use my library on your servers, you have to give me credit on your website. Basically, I want a lice...
[ 0.8395545482635498, 0.42274415493011475, -0.08935537934303284, 0.059174079447984695, -0.12400463223457336, -0.4400426745414734, 0.3559424877166748, 0.2962838113307953, -0.1021011471748352, -0.6226025819778442, 0.14631971716880798, 0.5480453372001648, -0.2636791467666626, 0.1062786877155304...
lawyer, and I don't want to pay one. I just thought it would be nice to be able to tell if someone's using my lib with a simple Google search. It turns out that CC is not so great for software :( CPAL is good alternative, because it has better definition of "source code" (which CC don't have) it's based on Mozilla Pu...
[ 0.2601418197154999, 0.31483614444732666, 0.687803328037262, 0.25042402744293213, 0.03525543957948685, -0.23693174123764038, -0.43445542454719543, -0.3443922698497772, -0.3675844371318817, -0.4582643508911133, 0.48506489396095276, 0.6718966960906982, -0.018021712079644203, 0.170127928256988...
I am trying to set the current line number to a variable in Elisp but keep getting a void-variable error! The code is: (setq x what-line) I'd also like to set the total number of lines in the buffer to a variable as well, but get the same error?! ``` (setq x (line-number-at-pos) y (line-number-at-pos (point-ma...
[ 0.04380093887448311, -0.24204204976558685, 0.37849658727645874, -0.08940210193395615, -0.10659009963274002, -0.008213032968342304, 0.11836709827184677, 0.05270300805568695, 0.16847214102745056, -0.4834260046482086, -0.1669849455356598, 0.549432098865509, -0.46477484703063965, -0.2455653697...
Recently I've been thinking about securing some of my code. I'm curious how one could make sure an object can never be created directly, but only via some method of a factory class. Let us say I have some "business object" class and I want to make sure any instance of this class will have a valid internal state. In ord...
[ 0.6985498070716858, 0.3100658059120178, 0.11409362405538559, 0.15420937538146973, 0.2645488679409027, -0.06627902388572693, 0.3502860367298126, 0.11625691503286362, -0.2978558838367462, -0.5861072540283203, 0.08245035260915756, 0.46742698550224304, -0.1274368166923523, 0.42948973178863525,...
how can I arrange for a business object to be creatable only through some method in my business logic class but never directly? The first natural desire to use a good old "friend" keyword of C++ will fall short with C#. So we need other options... Let's try some example: ``` public MyBusinessObjectClass { public ...
[ -0.027725882828235626, 0.037705305963754654, 0.621547281742096, -0.060981348156929016, 0.44474491477012634, 0.20500317215919495, 0.17261283099651337, -0.15529967844486237, -0.055893443524837494, -0.7821156978607178, -0.2674425542354584, 0.688292920589447, -0.4018622040748596, 0.09800052642...
// Perform some check on myProperty if (true /* check is okay */) return new MyBusinessObjectClass (myProperty); return null; } } ``` It's all okay until you remember you can still create MyBusinessObjectClass instance directly, without checking the input. I would like to exclude tha...
[ 0.2632046937942505, 0.18992869555950165, 0.45336294174194336, -0.014490392059087753, 0.03836249187588692, -0.3743610680103302, 0.5055266618728638, 0.38854116201400757, -0.1395939588546753, -0.6488051414489746, -0.1564732939004898, 0.6641953587532043, -0.300519198179245, 0.2066049575805664,...
so why dont you just create a static method inside the "BusinessClass" that does all the dirty "myProperty" checking work, and make the constructor private? ``` public BusinessClass { public string MyProperty { get; private set; } private BusinessClass() { } private BusinessClass(string myPropert...
[ 0.14495564997196198, 0.15081936120986938, 0.14644351601600647, -0.004465040750801563, 0.31545838713645935, -0.055153004825115204, 0.48263928294181824, -0.07912612706422806, 0.02671969123184681, -0.4029752016067505, -0.30988237261772156, 0.7750236392021179, -0.45345330238342285, 0.260500490...
if (/* all ok */) return new BusinessClass(myProperty); return null; } } ``` Calling it would be pretty straightforward: ``` BusinessClass objBusiness = BusinessClass.CreateObject(someProperty); ```
[ -0.10914266109466553, -0.2065831571817398, 0.5568099617958069, -0.28460314869880676, 0.17260463535785675, -0.09618338942527771, 0.4012998938560486, 0.09559015929698944, -0.05306785926222801, -0.532228410243988, -0.37910646200180054, 0.6595696210861206, -0.5400431752204895, 0.36643034219741...
Do you know if there is a way of using Amazon SimpleDB with NHibernate? [LightSpeed seems to be compatible](http://www.mindscape.co.nz/blog/index.php/2009/01/13/object-relational-mapping-over-amazon-simpledb-using-lightspeed/). Check the [update](http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/...
[ -0.3595931828022003, -0.11917455494403839, 0.5711979269981384, 0.05127779394388199, -0.03210892900824547, -0.043647971004247665, -0.009144782088696957, -0.5785421133041382, -0.06180103123188019, -0.18251995742321014, -0.01985822431743145, 0.39850130677223206, -0.24608992040157318, 0.008674...
I'm beginning to fall in love with Extension Methods, but I just don't know how to create an EM only for a determinate Object type. I have for example: ``` public static void AddPhoneNumberToContact(this Contact contact, PhoneType type, String number) { lock (contact) { PhoneRow pr = PhoneRow.CreateNe...
[ 0.3635684847831726, -0.08866971731185913, 1.0386675596237183, -0.15531416237354279, 0.4394652247428894, 0.07019796967506409, 0.22080744802951813, -0.4241797626018524, 0.000017458120055380277, -0.5144796967506409, -0.3501245975494385, 0.5946253538131714, -0.6044820547103882, 0.1418534368276...
pr = null; } } ``` My problem is that I want to also Have this method in the Person object, and that is why I named ``` AddPhoneNumberToContact AddPhoneNumberToPerson ``` Is there a way to have AddPhoneNumber and deal with the object that is provided? or the solution is to have ``` public static void AddPho...
[ -0.0908784568309784, 0.2189227044582367, 0.9793432950973511, -0.2802997827529907, 0.26131048798561096, 0.23118668794631958, -0.09836971014738083, -0.5582398772239685, -0.14871355891227722, -0.42731016874313354, -0.3087027966976166, 0.841692328453064, -0.39383092522621155, 0.025585142895579...
cleaner to me. If there's some common code between the two, extract that into a separate method.
[ 0.3839310109615326, 0.014223042875528336, 0.13827715814113617, 0.2959226071834564, -0.2716329097747803, 0.3421097993850708, 0.26493918895721436, -0.2624478340148926, -0.03244205564260483, -0.6732691526412964, 0.22786688804626465, 0.4409584105014801, -0.04938611388206482, 0.1076435297727584...
If I implement an interface on a base class will it be inherited by its sub classes, I know the functions/procedures will be, but I am more interested in whether I will be able to cast the subclass to the interface and then back to its original class. What I am hoping I can do is pass objects of different base classes...
[ 0.18255381286144257, -0.09469231218099594, 0.07448602467775345, 0.14800049364566803, -0.07871128618717194, -0.089764304459095, 0.17099842429161072, -0.1781965047121048, 0.05969094857573509, -0.6813358068466187, 0.11688116937875748, 0.7004103064537048, -0.22931510210037231, -0.0460839346051...
like to do (striped down to its core). Interface ``` IMyInterFace = interface ['{B7203E50-F5CB-4755-9DB1-FB41B7B192C5}'] function MyFunction: Boolean; end; ``` Base Class ``` type TMyObject = class(TInterfacedObject,IMyInterFace) ``` Sub Class ``` type TSubMyObject = class(TMyObject) ``` ...
[ 0.3608190715312958, -0.04293591156601906, 0.8445339798927307, -0.2103826254606247, 0.054014865309000015, 0.1417354941368103, 0.5900394916534424, -0.18135060369968414, 0.2817503809928894, -0.6465079188346863, -0.13557367026805878, 0.6800437569618225, -0.8494165539741516, 0.5559977889060974,...
if (iobj is TSubMyObject) then begin //code here end else if (iobj is TMyOtherObject) then begin //code here end; end; ``` **Update 2** I have updated the code abit so show what I am after better. the *//code here* sections have little to do with the object that are passed t...
[ 0.3058384954929352, -0.037791915237903595, 0.4397483766078949, -0.17641893029212952, -0.21769197285175323, -0.09956704080104828, 0.4473856985569, -0.13694563508033752, 0.06134430691599846, -0.8440821766853333, -0.29794377088546753, 0.5468526482582092, -0.25478366017341614, -0.0154861472547...
pay but if it was a TInvoice then it would check to see if it needed paying and only pay it when the date was 2 days before the dead line. the TEmployee/TInvoice may even come from out side classes asking for payments to be made. this is just an example. Yes, the interface is inherited by the subclass. It's perfectl...
[ 0.6143730282783508, -0.27456068992614746, 0.21578940749168396, -0.048433516174554825, -0.3470882177352905, 0.14579245448112488, 0.07048213481903076, -0.4145578145980835, -0.02069227024912834, -0.634472668170929, 0.10270754992961884, 0.6751906871795654, -0.029398322105407715, -0.05482409521...
you possibly can, but REALLY SHOULD NOT cast from A to B. **EDIT:** You want to go from B to I and back to B . . . but you already have a reference to B, if B is what you pass to your function, so you don't need to cast from I to B (unless were talking about a different object, then No, don't do it) Going from I to ...
[ 0.684245228767395, -0.0397646464407444, 0.11002622544765472, 0.1267242282629013, -0.13340964913368225, -0.06487298011779785, 0.463649719953537, -0.3194391131401062, -0.12462490051984787, -0.4991092383861542, 0.02900581993162632, 0.32177871465682983, -0.1180550828576088, 0.16147196292877197...
smell, it tells you that you should try and solve this problem in a different way (possibly by redesigning you classes (e.g. adding more properties / methods to I), or just deciding that the function will only work with the sub class - working with the subclass 'B' will give you access to all the methods of A & I). Ca...
[ 0.539433479309082, 0.14917543530464172, 0.3779532313346863, -0.4238935708999634, -0.3075222373008728, -0.06236189603805542, 0.15714293718338013, -0.24255526065826416, 0.4218311011791229, -1.020395040512085, 0.1935141533613205, 0.4348739683628082, -0.7042543888092041, -0.08377185463905334, ...
//code here end; end; ``` The 'If' statement in there is a bad idea, and breaks OO principals. If you need to do this then either * The interface definition is insufficient, you might want to add a Type property to the interface allowing you to (if iObj.SomeProperty = 1) then . . .) * The interface is simply n...
[ 0.27287355065345764, 0.025420060381293297, 0.4315498173236847, -0.04799441993236542, -0.02031063474714756, -0.18669500946998596, 0.45333021879196167, 0.13112999498844147, -0.10740189254283905, -0.43033328652381897, -0.1276584267616272, 0.4929317235946655, -0.2273058444261551, 0.10804530978...
replace the type check (e.g. by putting the class name in a property, then checking the class name) That is indeed exactly the same problem. There is some essential difference between Subclasses that inherit the interface. This difference should be expressed by either * Exposing some item of data that can then be u...
[ 0.1257959008216858, -0.26422640681266785, -0.009267319925129414, -0.21794675290584564, -0.18722961843013763, 0.032301437109708786, 0.184719979763031, -0.39284759759902954, 0.10823842883110046, -0.6669164896011353, -0.20227381587028503, 0.5198305249214172, -0.5865523219108582, 0.03607012704...
first case, polymorphism *could* be overkill (polymorphism doesn't fix every problem). **EDIT 4** You say *"the //code here sections have little to do with the object that are passed to it . . ."* I'm sorry but that statement is incorrect, if you need to Pay an Employee, you need to know their 1) EmployeeCode 2) Thei...
[ 0.37503841519355774, -0.15695470571517944, -0.0673515796661377, -0.0067445458844304085, -0.05276221036911011, -0.1135198250412941, 0.12616358697414398, -0.20281682908535004, -0.12088856846094131, -0.5456164479255676, 0.11693092435598373, 0.7466502785682678, -0.45672523975372314, 0.05125834...
"Accounts" needs to do something with the object (e.g. Pay the employee, charge an Invoice etc). So we might call the function AccountsCheck. Inside Accounts check you will have a peice of logic specific to each sub class (to pay an employee, to charge the invoice . . .) This is an ideal candidate for Polymorphism. On...
[ 0.16619591414928436, -0.17150993645191193, 0.35401275753974915, 0.275686115026474, -0.12055595219135284, 0.12475287169218063, -0.10930533707141876, -0.08997823297977448, -0.11005965620279312, -0.5347747802734375, -0.05133039876818657, 0.47574755549430847, -0.37272319197654724, 0.1865373402...
each sub class. This makes the code * More obvious in intent (each class contains some logic for AccountsCheck) * You're less likely to break SubClass B's logic when fixing something in AccountsCheck for C * It's easier to figure out exactly what SubClass B's AccountsCheck logic is, you've only to check 20 lines of co...
[ 0.1780540496110916, -0.14516356587409973, -0.01569763571023941, 0.1581059694290161, -0.27937647700309753, 0.03053484857082367, 0.5178923010826111, -0.03198596090078354, -0.3223215341567993, -0.6104499101638794, -0.05482330918312073, 0.3845745623111725, -0.43564409017562866, -0.033809032291...
I have a RootViewController and a SubViewController. I traverse the views in either direction. The RootViewController is a UITableView SubClass. Depending upon the row selected I want to change the title of the subview using `self.navigationItem.title = [chunks objectAtIndex:1];` It works when the subview is first tim...
[ 0.3182157874107361, 0.10331148654222488, 0.5973128080368042, -0.1776675432920456, -0.004059849306941032, 0.015249728225171566, 0.4378345310688019, 0.20260129868984222, -0.2038494348526001, -0.8247946500778198, 0.09792156517505646, 0.7086981534957886, -0.2615542709827423, 0.3567920923233032...
else that you code is only getting called the first time you invoke your SubViewController. Stick a break point on that line and see if it actually gets called a second time. Or perhaps [chunks objectAtIndex:1] is always returning the same string. Or perhaps I'm not understanding your question. As far as I can tell it...
[ 0.44072628021240234, -0.02623509056866169, 0.04584210366010666, 0.012215214781463146, -0.2198338359594345, -0.038690101355314255, 0.30534568428993225, 0.34588733315467834, -0.3862488567829132, -0.47835108637809753, 0.026536308228969574, 0.6476601958274841, -0.3326881527900696, -0.000599211...
I read somewhere that config data is stored under user account->Local Settings->Application data, but can't find where the dlls, exes and resource files are going. I know ClickOnce uses an application store and a data directory to store its application data, but are these accessible to the client? Are they browseable...
[ 0.23725548386573792, 0.31429049372673035, 0.471651554107666, 0.017186090350151062, 0.25196582078933716, 0.021924564614892006, 0.15659292042255402, 0.3933497369289398, -0.6546221971511841, -0.6458066701889038, -0.002586063463240862, 0.5507747530937195, -0.5190205574035645, 0.238686069846153...
Doing odd/even styling with jQuery is pretty easy: ``` $(function() { $(".oddeven tbody tr:odd").addClass("odd"); $(".oddeven tbody tr:even").addClass("even"); }); ``` Now I came across an interesitng problem today. What if you want to style alternating **groups** of elements? For example, alternating blocks of ...
[ -0.32010239362716675, -0.057351939380168915, 0.2999372184276581, -0.12471538037061691, -0.15801262855529785, 0.40344056487083435, 0.20241904258728027, -0.24398188292980194, -0.10894718021154404, -0.44337326288223267, 0.08335137367248535, 0.5211209654808044, -0.21019193530082703, -0.0340212...
+ groupSize + " tbody tr:nth-child(" + groupSize + "n+" + i + ")").addClass("odd"); $(".oddeven" + groupSize + " tbody tr:nth-child(" + groupSize + "n+" + (groupSize+i) " + ")").addClass("even"); } } ``` and: ``` $(function() { oddEvenGroupStyle(3); }); ``` Seems like a bit of a hack to me though. Is there...
[ -0.3070688545703888, -0.06259392201900482, 0.37786969542503357, -0.1358262449502945, -0.001788367168046534, 0.34245291352272034, 0.06115736439824104, -0.45098984241485596, -0.16491787135601044, -0.41376030445098877, -0.18167029321193695, 0.5056254863739014, -0.4992530643939972, 0.022983171...
$(this).attr('class', (even ? 'groupEven':'groupOdd') ); }) } ```
[ -0.13083305954933167, 0.16179069876670837, 0.18102282285690308, -0.31539005041122437, 0.22411835193634033, -0.09473980963230133, 0.32670554518699646, -0.10063568502664566, 0.007509668357670307, -0.30179348587989807, -0.33517542481422424, 0.8252694010734558, -0.4533527195453644, 0.315282940...
I'm not subclassing the control. Trying to trigger the event via `Control.Size = Control.Size` fails, since it does not trigger then even unless the new size is actually different. If you are subclassing `Control`, you can call `OnResize` directly, or expose it on the API: ``` public void OnResize() { this.OnRes...
[ 0.10902225971221924, -0.21401554346084595, 0.20672979950904846, -0.18111063539981842, 0.044655691832304, -0.22733409702777863, 0.39070069789886475, -0.37459543347358704, -0.19436652958393097, -0.5870593786239624, -0.062737837433815, 0.5544602870941162, -0.4188958406448364, 0.16796267032623...
I have VS 2005 and VS 2008 installed side by side. It is interesting that I can use development server under VS 2005. But when I tried in VS 2008, it gave me an error "Unable to connect to the ASP.NET Development Server". Any idea? Thanks! Try checking the port configuration of VS 2008? If it's not set to automatic i...
[ 0.27187588810920715, -0.15504737198352814, 0.12386724352836609, -0.00011478643864393234, -0.274217426776886, -0.13274788856506348, 0.16403420269489288, -0.16755713522434235, -0.2238626778125763, -0.7567821741104126, 0.20067211985588074, 0.7935542464256287, -0.175255686044693, 0.15777318179...
I need the simplest editor **with utf-8 support** for editing xml files in windows; something like wordpad is perfect. It's for a non programmer, to edit existing files (up to now he used wordpad, but now that I translated the files in utf-8 encoding a lot of italian accents are obviously unreadable). Any suggestion? ...
[ -0.07288456708192825, -0.05678651109337807, 0.4810130298137665, 0.12021707743406296, 0.03280092403292656, -0.005519933067262173, 0.36531463265419006, -0.0660582110285759, -0.26088714599609375, -0.8991807699203491, -0.23232585191726685, 0.4310833513736725, -0.11584378033876419, -0.265998333...
I'm using log4net to log write log message to a rolling log file. Now I would also redirect all trace messages from `System.Diagnostics.Trace` to that log file. How can I configure that? I tried to find anything about that in the log4net documentation, but without success. Is it possible at all? The reason I want to...
[ 0.5234223008155823, 0.05974093824625015, 0.4226870536804199, -0.09005406498908997, 0.26044154167175293, -0.1514703929424286, -0.07335811108350754, 0.22842827439308167, -0.5576952695846558, -0.4014042019844055, -0.0035742733161896467, 0.2909594476222992, -0.12193967401981354, 0.301626294851...
/> <maxSizeRollBackups value="10" /> <datePattern value="yyyyMMdd" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> </layout> </appender> </log4net> ``` According to Rune's suggestion I...
[ 0.08358822017908096, -0.29862648248672485, 0.296648770570755, -0.0685805082321167, -0.013023111037909985, -0.1117367371916771, 0.31244972348213196, -0.3464431166648865, -0.2051737904548645, -0.7554136514663696, 0.06272425502538681, 0.16779077053070068, -0.25918716192245483, 0.2298602759838...
Log4netTraceListener(log4net.ILog log) { _log = log; } public override void Write(string message) { if (_log != null) { _log.Debug(message); } } public override void WriteLine(string message) { if (_log != null)
[ -0.04264518991112709, -0.39066824316978455, 0.34942081570625305, -0.11704255640506744, 0.2864574193954468, 0.019171256572008133, 0.49986669421195984, -0.1667860895395279, 0.0066022612154483795, -0.6979656219482422, -0.08601672202348709, 0.5886540412902832, -0.4297723174095154, 0.0478684715...
{ _log.Debug(message); } } } ```
[ -0.02526709996163845, 0.0994323268532753, 0.0741838663816452, -0.13381004333496094, 0.3901512324810028, -0.28274115920066833, 0.357222318649292, 0.3677939474582672, -0.19667556881904602, -0.5483230948448181, -0.44358137249946594, 0.5029082894325256, -0.5988587737083435, 0.3953634798526764,...
I work on a large Intranet system - as it is an evolved system which started over ten years ago unfortunately the design of it isn't great and needs to be completely rewritten as it currently works by using frames. The problem with the frame-based layout is that there's a "main" section which does the includes for the...
[ 0.8019551634788513, 0.20445461571216583, 0.030078263953328133, 0.10653049498796463, -0.021104104816913605, -0.2081431895494461, -0.11552399396896362, -0.09286795556545258, -0.2772539258003235, -0.5659328103065491, 0.3066355288028717, 0.17972418665885925, -0.199030801653862, -0.027342377230...
Is this the same for JavaScript libraries? Yes, browsers will load external scripts and stylesheets from cache for each frame, unless you deliberately break it by sending no-cache headers with those files.
[ 0.5892372131347656, 0.09485506266355515, -0.18063966929912567, 0.21452830731868744, -0.25967493653297424, -0.17572112381458282, 0.13567784428596497, 0.02690058946609497, -0.3694559633731842, -0.6098026633262634, -0.001981341978535056, 0.3750818967819214, -0.43968281149864197, -0.1459430754...
I mean, i have one of this controls and text inside one of it's columns. Usually if user changes column size, it's just cutting text. If I'm trying to use template with textblock or textbox and set TextWrapping="Wrap" inside of the template - it's really doesn't change anything. What's the way out? \*And yes, I search...
[ 0.4148067533969879, 0.09460850805044174, 0.2426236867904663, 0.08011388778686523, 0.11563067138195038, 0.13311289250850677, 0.41347599029541016, -0.06539849936962128, -0.34764817357063293, -0.5057216286659241, 0.11247528344392776, 0.27593153715133667, -0.2572634518146515, -0.00728781754150...
difference was that in template I used my UserControl that have TextBlock and other controls inside the StackPanel inside it's Content Property. And after hour of experimenting with Width, HorizontalAlignment and so on in different part of the code I understand, that I can do nothing. And then - i just changed StackPan...
[ 0.22747977077960968, -0.3941112160682678, 0.5683361291885376, -0.03733820095658302, -0.3840840756893158, 0.2863994538784027, -0.10960905253887177, -0.4018706679344177, -0.3370755910873413, -0.5839070677757263, 0.5826606154441833, 0.5845529437065125, 0.07900768518447876, -0.0422542691230773...
if someone could tell me - why is this so? - it would be interesting. If no - i'll just use version with Grid. The following worked for me: ``` <ListView ItemsSource="{Binding Source={StaticResource MyItems}}"> <ListView.View> <GridView> <GridViewColumn Width="50" Header="Column 1"> ...
[ 0.07891153544187546, -0.2809201776981354, 0.5503296256065369, -0.05211794003844261, -0.023708097636699677, 0.1018238365650177, -0.2453017383813858, -0.3926376402378082, -0.11690245568752289, -0.8998523950576782, 0.2439531534910202, 0.2933588922023773, -0.035631969571113586, 0.0698372647166...
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding Path=Column1Text}" /> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> ... </GridView> </ListView.View> </ListView> ``` This caused the text in the
[ -0.1468452662229538, -0.023082217201590538, 0.4889158308506012, -0.3407285809516907, 0.016497338190674782, -0.16578558087348938, 0.2981851398944855, -0.37608689069747925, -0.2923952341079712, -0.7501583695411682, -0.1303386241197586, 0.1595747321844101, -0.3449864089488983, 0.0749463066458...
first column to wrap onto multiple lines if the width of the column wasn't wide enough to show all of the text.
[ -0.06814703345298767, -0.0791793242096901, 0.1644926220178604, 0.22720691561698914, -0.3874957263469696, 0.08527953177690506, 0.10623887181282043, 0.08582255244255066, -0.2739377021789551, -0.395313024520874, -0.15544883906841278, -0.04921899735927582, -0.23626208305358887, -0.055295269936...
This might be quite a strange question since usually people bind only complex types to a gridview. But I need to bind a List of Int (the same is for strings). Usually, as the property to bind one uses the name of the property of the object, but when using a Int or a String, the value is exactly the object itself, not a...
[ 0.33141276240348816, -0.10698593407869339, 0.22684893012046814, 0.21964500844478607, -0.33282768726348877, -0.19591911137104034, 0.08070627599954605, -0.2593526244163513, -0.23453481495380402, -0.780124306678772, 0.10204499959945679, 0.4513813555240631, -0.21270661056041718, 0.119811244308...
a List to a GridView](https://stackoverflow.com/questions/5720349/how-to-bind-a-listdatetime-to-a-gridview)*. `<BoundField DataField="!" />` may do the trick (since `BoundField.ThisExpression` equals "!").
[ 0.15496601164340973, -0.29496943950653076, 0.5995436906814575, -0.12026595324277878, -0.19794051349163055, -0.41898107528686523, 0.06445501744747162, -0.39992591738700867, -0.3201792240142822, -0.4849624037742615, -0.40822523832321167, 0.2513945996761322, -0.49071168899536133, 0.0546221397...
I have a string containing byte data. How can I perform an in-place conversion to ascii string? Another way to play with binary data is [String#unpack](http://ruby-doc.org/core-2.4.1/String.html#method-i-unpack).
[ 0.24268171191215515, 0.07327506691217422, -0.11300751566886902, -0.01353775430470705, -0.13366279006004333, -0.15188676118850708, 0.21557272970676422, -0.3297635614871979, -0.3451122045516968, -0.31946471333503723, 0.01157547626644373, 0.11449745297431946, -0.2902432382106781, 0.0371310599...
I recently set up, for a learning exercise, an Ubuntu desktop PC with KDE 4.2, installed Eclipse and started to look for information on how to develop for KDE. I know there's KDevelop and will probably have a look at that at some time in the future. Right now, however, I don't have the correct headers and libraries for...
[ 0.32394546270370483, 0.33500581979751587, 0.15716931223869324, -0.08219766616821289, -0.34654906392097473, -0.3141230642795563, 0.013511503115296364, 0.027025988325476646, -0.06248103454709053, -0.5404147505760193, -0.12453456223011017, 0.47332054376602173, -0.36339256167411804, 0.07986846...
is, what packages do I need to install in order to have the correct set of headers to allow me to write applications for KDE 4.2? Are there any packages I shouldn't have? Alternatively, if there are no packages then where can I get the appropriate files? As a corollary, are there any good tutorials on KDE development,...
[ 0.47068190574645996, 0.16531014442443848, -0.01435445249080658, 0.3386131227016449, -0.09361661970615387, -0.38741180300712585, 0.15123912692070007, -0.29776498675346375, -0.24948377907276154, -0.42399486899375916, -0.02118677832186222, 0.6876502633094788, -0.2743712365627289, -0.167751953...
as is setting up compiler options for include search paths and so on. Does the KDevelop package have all the correct include and library files or are they separate? I guess they are separate as KDevelop is an IDE that can do other languages as well, but I'm probably wrong. So, the KDE/Qt header files I have don't work,...
[ 0.42980843782424927, 0.15140074491500854, 0.01612948440015316, 0.05842824652791023, 0.011586271226406097, -0.37736961245536804, 0.5322972536087036, -0.2218061089515686, 0.008068978786468506, -0.8169785737991333, -0.41020113229751587, 0.8324747681617737, -0.29544904828071594, -0.12380130589...
pair of `sudo aptitude install` commands which I used to get some required packages. I also got the KDevelop and QDevelop applications, although I'm not sure they are required. There was also another package I needed (kdelibs5-dev) and this one appears to be the key package. Everything eventually worked after getting t...
[ -0.03780509904026985, -0.17003664374351501, 0.04184297099709511, 0.1078217551112175, -0.30670157074928284, -0.32108014822006226, 0.3672638535499573, -0.24882639944553375, 0.07308530062437057, -0.723456859588623, -0.051291655749082565, 0.7165317535400391, -0.08993590623140335, -0.0479916930...
main window and float - useful on a dual monitor setup. I couldn't see anyway to do that in KDevelop (I'm sure someone will comment on how to do this).
[ 0.40914684534072876, -0.011090654879808426, 0.6602480411529541, 0.29089757800102234, -0.3024834096431732, 0.031142832711338997, -0.04398247227072716, 0.11939612776041031, -0.45548051595687866, -0.7155250906944275, 0.1732860952615738, 0.2261517345905304, 0.006712568923830986, -0.04161013290...
I've been using .NET Reflector for awhile but I've just recently switched machines and I've reinstalled. However, when I try to disassemble code now, the Disassembler window just shows up as blank. Here's a screenshot where I'm trying to disassemble a TimeSpan Member: [alt text http://img17.imageshack.us/img17/1678/3...
[ 0.4122220575809479, 0.11709348112344742, 0.5103095769882202, 0.11163002997636795, 0.001587374834343791, -0.23323579132556915, 0.49716371297836304, -0.2007313370704651, 0.013887192122638226, -1.086758017539978, -0.07513342797756195, 0.956821858882904, 0.03518889844417572, 0.0409745089709758...
although I'm not sure they are required. There was also another package I needed (kdelibs5-dev) and this one appears to be the key package. Everything eventually worked after getting that one. Eclipse and KDevelop were both happy building a simple application once the compiler settings were set up; Eclipse required set...
[ 0.2012219876050949, -0.06147591024637222, 0.17620167136192322, 0.12489788234233856, -0.42420056462287903, -0.22951798141002655, 0.12806405127048492, -0.11521676182746887, -0.23117054998874664, -0.7055844068527222, 0.0941515862941742, 0.6373544931411743, -0.08479943871498108, -0.05371585115...
someone will comment on how to do this).
[ 0.5391947627067566, 0.21466267108917236, 0.4142739772796631, 0.10130999982357025, -0.08269349485635757, -0.030906863510608673, 0.45480412244796753, -0.08536768704652786, -0.2389930784702301, -0.5058441162109375, -0.15312804281711578, 0.31331536173820496, 0.07389362156391144, -0.23376496136...
I have a number of stored procedures I call from code with `ExecuteNonQuery`. It was all good but 2 of my stored procedures started timing out intermittently today with: > Timeout expired. The timeout period > elapsed prior to completion of the > operation or the server is not > responding. The statement has been ...
[ 0.32599207758903503, 0.06289271265268326, 0.7019131779670715, -0.2601253390312195, -0.10936985164880753, 0.027920221909880638, 0.8054811358451843, -0.11810823529958725, -0.576971173286438, -0.6695340275764465, 0.11463899910449982, 0.5868507027626038, 0.027073225006461143, 0.075704425573349...
can't get the sp to run from Management Studio either. Thanks! Ok - this is how I fixed it in the end. A clustered index on a table with 45 million records was killing my SQL server - every insert from code was resulting in the nasty timeouts described in the answer. Increasing the timeout tolerance wasn't gonna solv...
[ 0.12130752205848694, 0.32058626413345337, 0.419427752494812, 0.27437418699264526, -0.22371059656143188, -0.022020598873496056, 0.39195477962493896, 0.03892382234334946, -0.25025713443756104, -0.3651820421218872, 0.33685359358787537, 0.42230895161628723, -0.30461591482162476, 0.198015734553...
We have an application (well, 3) which uses Oracle 9i, however this is being end-of-life-ed shortly, and we need to move to another platform - Oracle 11 or Postgress being the obvious ones. I've heard comments to the effect that porting from 9i to 11 isn't straight forward, but no-one here can confirm one way or the o...
[ 0.3895447552204132, 0.25224369764328003, 0.29561108350753784, -0.04968414083123207, -0.12480150908231735, -0.03094646893441677, 0.23775547742843628, 0.25942641496658325, -0.04018343985080719, -0.5624302625656128, 0.11035406589508057, 0.5952325463294983, -0.23903878033161163, -0.14188900589...
going to rewrite that using Lucene anyway), or the same in PL/SQL. Postgress only came up as a possibly easier and cheaper target to port to, but the license cost is offset by the training cost for our DBAs. Any experience comments appreciated. Some things to note: * CREATE VIEW privilege is part of CONNECT role in ...
[ 0.4913947582244873, -0.22130903601646423, 0.3331397473812103, 0.2904514968395233, -0.12135852128267288, -0.436139851808548, 0.42384710907936096, 0.23719052970409393, -0.16235698759555817, -0.9001997113227844, -0.2950138747692108, 0.6732271313667297, -0.018747398629784584, -0.03346258774399...
I am trying to assign absence dates to an academic year, the academic year being 1st August to the 31st July. So what I would want would be: 31/07/2007 = 2006/2007 02/10/2007 = 2007/2008 08/01/2008 = 2007/2008 Is there an easy way to do this in sql 2000 server. A variant with less string handling ``` S...
[ 0.03912903368473053, 0.02954435534775257, 0.6479659676551819, -0.45537638664245605, -0.3377854526042938, -0.16440701484680176, 0.2846466600894928, 0.20104603469371796, -0.37764105200767517, -0.07480606436729431, -0.021703243255615234, -0.047620948404073715, 0.171903595328331, 0.40964835882...
CONVERT(VARCHAR(4), YEAR(AbsenceDate)) + '/' + CONVERT(VARCHAR(4), YEAR(AbsenceDate) + 1) END AcademicYear FROM AbsenceTable ``` Result: ``` 2007-07-31 => '2006/2007' 2007-10-02 => '2007/2008' 2008-01-08 => '2007/2008' ```
[ -0.46744897961616516, 0.2959626019001007, 0.7737935781478882, -0.3759392499923706, -0.2925587296485901, 0.05317073315382004, 0.3623897433280945, 0.004452211316674948, -0.21595768630504608, 0.03545761853456497, -0.3295389413833618, 0.2725442349910736, 0.3219809830188751, 0.330541729927063, ...
I have a thread push-backing to STL list and another thread pop-fronting from the list. Do I need to lock the list with mutex in such case? From [SGI's STL on Thread Safety](http://www.sgi.com/tech/stl/thread_safety.html): > If multiple threads access a single container, and at least one thread may potentially write, ...
[ 0.30776360630989075, 0.26742690801620483, 0.26807981729507446, -0.12039930373430252, -0.12336569279432297, -0.19970734417438507, 0.15119603276252747, -0.012606147676706314, -0.589903712272644, -0.40523576736450195, 0.018164673820137978, 0.36670976877212524, -0.2705816626548767, 0.552066385...
**Updated:** 09/02/2009 - Revised question, provided better examples, added bounty. --- Hi, I'm building a PHP application using the data mapper pattern between the database and the entities (domain objects). My question is: *What is the best way to encapsulate a commonly performed task?* For example, one commo...
[ -0.010991796851158142, 0.18977704644203186, 0.5731188058853149, -0.08815531432628632, -0.09747704118490219, -0.15709564089775085, 0.35569924116134644, -0.17924602329730988, -0.31074050068855286, -0.8656272888183594, -0.029787909239530563, 0.306154727935791, -0.27805954217910767, 0.02340399...
has an associated locale, and the page actually has multiple revisions (although for the purposes of this task I'd only be interested in the most recent one). I'm going to need to do this (get the site and associated home page, locale etc.) in multiple places within my application, and I cant think of the best way/pla...
[ 0.24695749580860138, 0.23301973938941956, 0.4601501524448395, -0.005634079687297344, -0.0486847385764122, -0.07723592221736908, 0.27409636974334717, 0.3515903055667877, -0.35718104243278503, -0.8669419884681702, -0.09085851907730103, 0.05012035742402077, -0.09407984465360641, 0.31312391161...
created and ready for use. The same problem occurs when saving these objects back. Say I have a site entity and associated home page entity, and they've both been modified, I have to do something like this: ``` $siteMapper->save($site); $pageMapper->save($site->getHomePage()); ``` Again, trivial, but this example i...
[ 0.2573539614677429, 0.09512673318386078, 0.49831125140190125, 0.12611821293830872, 0.21053878962993622, 0.06628220528364182, 0.07181314378976822, 0.15886574983596802, -0.3145104944705963, -0.96163010597229, -0.25838810205459595, 0.2564539909362793, -0.15955378115177155, 0.34266215562820435...
question, what should this object be? * The existing mapper object? * Something based on the repository pattern?\* * Something based on the unit of work patten?\* * Something else? \* I don't *fully* understand either of these, as you can probably guess. Is there a standard way to approach this problem, and could so...
[ 0.5425217151641846, 0.10338906198740005, -0.014866356737911701, 0.40641915798187256, 0.08856058120727539, 0.04262472689151764, -0.03727344796061516, -0.019296711310744286, -0.1655925214290619, -0.6104171276092529, 0.16136455535888672, 0.5863139033317566, -0.1538785994052887, 0.209315240383...