text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
for ( Object item: event.getOldState() ) { Object previousContents = null; if ( item != null && item instanceof PersistentCollection ) { PersistentCollection pc = (PersistentCollection) item; PersistenceContext context = session.getPersistenceContext();
[ -0.513806939125061, -0.23724792897701263, 0.6096705198287964, -0.11872163414955139, 0.31658998131752014, 0.25862374901771545, 0.4483796954154968, -0.16000136733055115, -0.4957861602306366, -0.24353191256523132, -0.4315318763256073, 0.6945057511329651, -0.18839958310127258, 0.44087749719619...
CollectionEntry entry = context.getCollectionEntry( pc ); Object snapshot = entry.getSnapshot(); if ( snapshot == null ) continue; if ( pc instanceof List ) { previousContents = Collections.unmodifiableList( (List) snapshot ); }
[ -0.10898002982139587, -0.4041059613227844, 0.5332220792770386, 0.04799627885222435, 0.5181958079338074, -0.015258369967341423, 0.14888671040534973, -0.19358664751052856, -0.5302003622055054, -0.15120086073875427, -0.4884515404701233, 0.5217666029930115, -0.2203812599182129, 0.4388955235481...
else if ( pc instanceof Map ) { previousContents = Collections.unmodifiableMap( (Map) snapshot ); } else if ( pc instanceof Set ) { //Set snapshot is actually stored as a Map
[ -0.2089664340019226, -0.16102038323879242, 0.21857689321041107, 0.1581573337316513, 0.3543512225151062, -0.14449051022529602, 0.07621627300977707, -0.17569538950920105, -0.4363246262073517, -0.6392428874969482, -0.2462943196296692, 0.419099360704422, -0.2668599784374237, 0.0791466385126113...
Map snapshotMap = (Map) snapshot; previousContents = Collections.unmodifiableSet( new HashSet( snapshotMap.values() ) ); } else previousContents = pc; //Do something with previousContents here
[ -0.38897350430488586, -0.410061240196228, 0.28344812989234924, 0.08194183558225632, 0.26858165860176086, -0.011978312395513058, 0.09723987430334091, -0.316831111907959, -0.6150153279304504, -0.6911705136299133, -0.268836110830307, 0.47293323278427124, -0.4436895251274109, -0.06304381787776...
} ```
[ 0.3354566991329193, 0.5660994052886963, -0.045124202966690063, 0.08949362486600876, 0.36271432042121887, -0.03456072509288788, 0.2035233974456787, 0.4996976852416992, 0.20306141674518585, -0.48415371775627136, -0.1802433431148529, 0.4521971344947815, -0.138974130153656, 0.3154967725276947,...
I've built an open source ASP.NET web application and now I'm moving towards release. I'm keen to offer an easy install for my users but I'm having real problems coming up with a solution. The app needs to have a site setup in IIS and a SQL Database installed. What is the easiest deployment process for my users you ca...
[ 0.2898901104927063, 0.20366670191287994, 0.42771223187446594, -0.022482357919216156, 0.414142906665802, -0.12591484189033508, 0.25216609239578247, 0.003362102434039116, -0.3667723834514618, -0.5886983275413513, 0.07397856563329697, 0.8435553312301636, 0.02964015305042267, 0.102730900049209...
My organization has made an upper level decision to move to maven as the standard build tool for Java projects. I have been tasked with helping our local teams migrate projects over to maven. One of the core tools that is in play is the MyEclipse IDE. MyEclipse seems to have had a "fun" history with the maven team as ...
[ -0.1622760146856308, 0.0797196626663208, 0.24931548535823822, 0.03058450296521187, 0.0034900535829365253, -0.005226415116339922, -0.1132676750421524, 0.04407602176070213, -0.19612257182598114, -0.7039616107940674, 0.024646269157528877, 0.35891395807266235, 0.24582679569721222, 0.0377339832...
war apps? If so, is there a way to get MyEclipse to play nicely with a war project that I've not found? Or, am I simply better off suggesting its time to use Eclipse Java EE edition with m2eclipse? I am working as a tech lead, and we recently started moving to maven. I had a couple of issues getting maven to work wit...
[ 0.45885080099105835, 0.4936957359313965, 0.13526327908039093, 0.049797918647527695, -0.10289931297302246, 0.2734706401824951, -0.06440727412700653, -0.06305386126041412, -0.2144184112548828, -0.5935248732566833, -0.030450617894530296, 0.9602420926094055, -0.43136975169181824, -0.3684426248...
preferences you get with m2eclipse are not available with maven4myeclipse. Finally, I couldn't just uninstall the maven4eclipse plugin and install m2eclipse. That would have been an acceptable workaround. I think Genutec tried to make Maven more accesible to newbies, but there are some problems in the impementation...
[ 0.0840262919664383, -0.31701281666755676, 0.37664178013801575, 0.14364652335643768, 0.22186309099197388, 0.0062271058559417725, -0.0270778089761734, 0.31922444701194763, -0.12203367054462433, -0.8093635439872742, -0.1250680536031723, 0.630574643611908, -0.29117551445961, 0.1212356239557266...
**Duplicate:** [Serializing to JSON in jQuery](https://stackoverflow.com/questions/191881/serializing-to-json-in-jquery) It seems there's a JSON serializer/deserializer built into jQuery, since it's able to implement things like .getJSON . Is it possible to use the built in jQuery JSON processor itself a general purpo...
[ 0.1933133602142334, -0.2787104547023773, 0.21603494882583618, 0.1239423155784607, -0.17220786213874817, -0.17517584562301636, 0.14386825263500214, 0.15371501445770264, -0.4732026159763336, -0.7020928263664246, -0.10296302288770676, 0.35242795944213867, -0.37721553444862366, -0.034225523471...
to get rid of it as all I'm doing is simple deserialization. Sounds like jquery really is just doing eval? I had the impression [that wasn't so good for security](http://www.json.org/js.html): > The eval function is very fast. > However, it can compile and execute > any JavaScript program, so there can > be securit...
[ -0.07735039293766022, -0.03791607916355133, 0.32316380739212036, -0.033627476543188095, -0.4197508692741394, -0.3234958052635193, 0.5485801696777344, -0.007097596302628517, -0.38568150997161865, -0.4355224072933197, -0.06292546540498734, 0.7791316509246826, -0.3935038149356842, -0.29200908...
affect all $.ajax(), $.post(), $.getJSON() calls automatically).
[ -0.05357474833726883, -0.24936364591121674, 0.2771646976470947, -0.08890864998102188, 0.24772414565086365, -0.301653116941452, 0.6711497902870178, 0.1865258365869522, -0.19960886240005493, -0.5184983611106873, -0.6569251418113708, 0.43210068345069885, -0.47309446334838867, 0.15074753761291...
I know this question [has](https://stackoverflow.com/questions/21078/whats-the-best-string-concatenation-method-using-c) been [done](https://stackoverflow.com/questions/38010/c-string-concatenation-and-string-interning) but I have a slightly different twist to it. Several have pointed out that this is premature optimiz...
[ 0.2414391189813614, 0.29246634244918823, 0.28457722067832947, 0.06980447471141815, -0.06577587127685547, -0.17918217182159424, 0.1430121511220932, -0.20024323463439941, -0.11391102522611618, -0.4280332326889038, -0.01603301241993904, 0.50666344165802, -0.1321568638086319, 0.173377662897109...
buffer (surely a char[]) and **copying string characters** into it and **reallocating** the array as necessary. However, my code has a lot of repeat strings ("CREATE TABLE [", "GO\n", etc.) which means I can take advantage of them [being interned](https://stackoverflow.com/questions/38010/c-string-concatenation-and-st...
[ 0.050716232508420944, 0.303128182888031, 0.36316540837287903, -0.19469405710697174, 0.01906513422727585, 0.06322140991687775, 0.16791430115699768, -0.15458998084068298, -0.30658337473869324, -0.31964999437332153, 0.011865426786243916, 0.28195932507514954, -0.18505319952964783, 0.2228416800...
information can be reused by interning, yes? Assuming that, then wouldn't a List or LinkedList of strings be faster because they retain pointers to interned strings? Then it's only one call to String.Concat() for a single memory allocation of the whole string that is exactly the correct length. A List would have to r...
[ 0.13642694056034088, -0.11677493900060654, 0.19099855422973633, 0.5296103358268738, 0.14668108522891998, 0.02678690105676651, -0.0873459130525589, -0.22176764905452728, -0.1972719132900238, -0.5699737668037415, 0.1434587687253952, 0.5979416966438293, -0.2695084512233734, 0.1830727308988571...
some heuristic on character counts for each SQL statement & count each type and get a rough idea and pre-set my StringBuilder capacity to avoid reallocating its char[] but I would have to overshoot by a fair margin to reduce the probability of reallocating. So for this case, which would be fastest to get a single conc...
[ 0.12988586723804474, -0.0466395802795887, 0.12431664764881134, 0.4136655032634735, -0.023742713034152985, 0.030730243772268295, 0.1670924723148346, -0.2076256424188614, -0.12904752790927887, -0.7069147825241089, 0.144387349486351, 0.5043325424194336, -0.003567864652723074, -0.2142061591148...
List or LinkedList then write them to a file from the list instead of first concatenating in memory. **EDIT:** As requested, [the reference](http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx) (.NET 3.5) to MSDN. It says: *"New data is appended to the end of the buffer if room is available; otherwi...
[ 0.06038583070039749, -0.10048968344926834, 0.6103285551071167, -0.1953682154417038, 0.02016005478799343, -0.14510945975780487, 0.05412207171320915, -0.1442052125930786, -0.5088401436805725, -0.6027346253395081, -0.4942096769809723, 0.2805863916873932, -0.3339794874191284, 0.191688075661659...
function, which could efficiently write a list of (interned) strings to disk - but it would make a notable difference only when being called asynchronously, as the disk write will overshadow all but extremely large concatenations. For your **main question**: unless you are reaching megabytes of script, or tens of tho...
[ -0.011350264772772789, -0.3168330490589142, 0.41751688718795776, -0.060246542096138, -0.055595800280570984, 0.2506287693977356, 0.18189583718776703, -0.054050929844379425, -0.6343872547149658, -0.40806466341018677, 0.018206341192126274, 0.462530255317688, -0.058666545897722244, 0.013924462...
exercise, some estimates: building a buffer of 1MB will sweep roughly 3 MB memory (1MB source, 1MB target, 1MB due to copying during realloation). A linked list implementation will sweep about 2MB, (and that's ignoring the 8 byte / object overhead per string reference). So you are saving 1 MB memory reads/writes, co...
[ 0.05004676431417465, -0.28594937920570374, 0.29607781767845154, 0.04022748023271561, -0.17152106761932373, -0.0053963023237884045, 0.2728463411331177, -0.4462907612323761, -0.608353316783905, -0.8522453308105469, -0.07074715942144394, 0.358871191740036, -0.06840603053569794, -0.14463455975...
offset by other factors: the StringBuilder code is likely in the code cache already, and a viable target for microoptimizations. Also, using a string internally means no copy at all if the final string fits the initial buffer. Using a linked list will also bring down the reallocation problem from O(number of character...
[ 0.09935107082128525, 0.043080348521471024, 0.2747860848903656, -0.006338109262287617, -0.18147671222686768, 0.07623451203107834, 0.17091189324855804, -0.27927151322364807, -0.3734956383705139, -0.7440807819366455, -0.2227020412683487, 0.5683544278144836, -0.2387048453092575, 0.000931791495...
for very many small segments first, which is actually the extreme kind of scenario StringBuilder is trying to optimize for. Still, it would be interesting to see a comparison of the two ideas, and when the list starts to be faster.
[ 0.3029836416244507, -0.4959697127342224, -0.041102334856987, 0.3888775706291199, -0.17372684180736542, -0.030464809387922287, 0.03742362558841705, 0.0357501395046711, -0.4520909786224365, -0.7537060379981995, 0.1571713238954544, 0.16558177769184113, 0.0654604434967041, 0.14777657389640808,...
**Duplicates:** * [Why should I use git instead of svn?](https://stackoverflow.com/questions/740053/why-should-i-use-git-instead-of-svn) * [Should I use SVN or Git?](https://stackoverflow.com/questions/161541/svn-vs-git) * [Why is Git better than Subversion?](https://stackoverflow.com/questions/871/why-is-git-better-...
[ 0.39604005217552185, 0.0003960308968089521, -0.0051538110710680485, 0.09652338922023773, -0.4200499355792999, -0.3883700668811798, 0.1319824904203415, 0.19581671059131622, -0.44963178038597107, -0.4319400489330292, 0.09344839304685593, 0.5189486742019653, -0.2221345156431198, 0.22983083128...
that git is better but not as integrated in most IDE tools as SVN. I'm still learning. Thank you. That always confused me too before I started using Git. People like to overemphasise how different it is. The truth is that you can, and most likely will, set up your Git system to have a single "master" repostiory. Wha...
[ 0.5665226578712463, 0.04482312500476837, 0.018411071971058846, 0.39927470684051514, -0.2648967504501343, -0.18770478665828705, 0.006068182177841663, 0.10415877401828766, -0.41032877564430237, -0.8357250690460205, 0.06791534274816513, 0.5246219635009766, -0.03576989844441414, 0.352356284856...
server somewhere, and all users being direct clients of that repository, you can easily do that. What makes Git really different is that you don't *have* to do that. You could instead have a big tree of repositories from worker, to subgroup, to test group, to master if you want. You could instead set up a chain from wo...
[ 0.48271146416664124, 0.08169014751911163, 0.09178639203310013, 0.3538990616798401, -0.1913902759552002, 0.1551763266324997, 0.2467777132987976, 0.38395074009895325, -0.3691847324371338, -0.7903602719306946, -0.22584301233291626, -0.11982528865337372, -0.08284050226211548, 0.386714994907379...
up to *you*, not the tool. My suggestion would be to try out Git yourself for a small (or pretend) project. Once you see how it works, you'll begin to see the possibilities.
[ 0.9748412370681763, -0.20897601544857025, 0.030667303130030632, 0.36208516359329224, 0.08571836352348328, 0.02920551970601082, 0.037827372550964355, 0.3529338538646698, -0.14195922017097473, -0.5537785291671753, -0.0722331777215004, 0.5595081448554993, 0.13467475771903992, -0.0753172338008...
How do I track e-mails in and out of a shared in-box in Outlook using excel? We have a large number of e-mails coming in and we need to track responses to make sure that e-mails don't get lost. Is there as way to get the results from advanced find to an excel sheet? What view are you setting up in advanced find ? As y...
[ 0.37851494550704956, -0.18687944114208221, 0.4808429777622223, 0.2905764579772949, 0.15264667570590973, -0.07240597158670425, -0.12067311257123947, -0.2642708718776703, 0.07726283371448517, -0.6382298469543457, 0.24394115805625916, 0.8146570920944214, 0.1375700980424881, -0.018496375530958...
you are trying to set up. So can you tell me what you are doing in advanced find ..? 76mel Ok using outlook tables you can put this in your Excel as a macro Use "sfilter" to define your advance search criteria. You will have to pump the data into Excel at the bottom. ``` Sub GetMail() Dim oApp As Outlook.Applicat...
[ 0.14194895327091217, 0.02806221880018711, 0.8079992532730103, -0.12060891836881638, -0.08847785741090775, 0.04529532417654991, 0.07144922763109207, -0.36149826645851135, 0.030394544824957848, -0.7086979150772095, -0.04268971085548401, 0.5510584712028503, -0.4413381516933441, -0.10184366255...
with Filter Set oTable = oFolder.GetTable(sfilter) 'Remove all columns in the default column set oTable.Columns.RemoveAll 'Specify desired properties With oTable.Columns .Add ("EntryID") .Add ("Subject") .Add ("ReceivedTime") End With 'Enumerate the table using test for EndOfTable 'Pump it into your wo...
[ 0.14064741134643555, -0.3225356638431549, 0.5823966264724731, -0.2860356271266937, -0.054803524166345596, -0.0664035752415657, 0.49802470207214355, -0.6364609599113464, -0.011636227369308472, -0.7905609607696533, -0.3850291669368744, 0.6361037492752075, -0.6112938523292542, -0.183961257338...
Is there a .NET logging class that does not rely on XML configuration files? I thought is was possible with log4net but can't find any info. What view are you setting up in advanced find ? As you can write a VBA macros to pull items from your inbox and put them into you speadsheet. Alot of the advance find option are n...
[ 0.09198103100061417, -0.23462457954883575, 0.34710514545440674, 0.2648395895957947, 0.08135820925235748, -0.27548953890800476, -0.03742664307355881, 0.0016207818407565355, -0.1469830721616745, -0.6815012693405151, 0.22005528211593628, 0.850422203540802, 0.00027263304218649864, -0.140104621...
your Excel as a macro Use "sfilter" to define your advance search criteria. You will have to pump the data into Excel at the bottom. ``` Sub GetMail() Dim oApp As Outlook.Application Dim oFolder As Outlook.Folder Dim oNameSpace As Outlook.Namespace Dim emailCount As Integer Dim counter As Integer Dim sfilter As St...
[ -0.19944947957992554, 0.16928666830062866, 1.049302101135254, -0.4208453297615051, -0.09081065654754639, 0.16866059601306915, 0.061181921511888504, -0.15501752495765686, 0.010961244814097881, -0.659798264503479, -0.12525491416454315, 0.6337685585021973, -0.4031822681427002, -0.142684563994...
.Add ("ReceivedTime") End With 'Enumerate the table using test for EndOfTable 'Pump it into your worksheet Do Until (oTable.EndOfTable) Set oRow = oTable.GetNextRow() Debug.Print (oRow("EntryID")) Debug.Print (oRow("Subject")) Debug.Print (oRow("ReceivedTime")) Loop 'Clean up Set oTable = Nothing Set...
[ 0.2886407673358917, -0.15240028500556946, 0.42482972145080566, -0.09943545609712601, -0.0810510516166687, -0.21372492611408234, 0.6919249892234802, -0.5008882284164429, -0.07028429210186005, -0.7694881558418274, -0.4639274775981903, 0.5289735794067383, -0.4110640287399292, 0.02723586559295...
So, it seems like [Happy](http://www.haskell.org/happy) is a robust replacement for yacc in Haskell. Is there an equally robust lexer generator to replace lex/flex? Alex? <http://www.haskell.org/alex/> > a tool for generating lexical analysers in Haskell, given a description of the tokens to be recognised in the form ...
[ 0.19894643127918243, -0.295424222946167, 0.3850190341472626, 0.08685478568077087, -0.34268707036972046, 0.07577762752771378, -0.1362866312265396, -0.1812257021665573, -0.3912097215652466, -0.619942843914032, -0.0895465537905693, 0.4588807225227356, -0.33555868268013, -0.4402202367782593, ...
then you can build and install the latest version of Alex with > > > > ``` > cabal install alex > > ``` > > To find out what the latest version of Alex is, and to download the source separately, go to Alex's [HackageDB page](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/alex). > > > Alex might a...
[ 0.584888756275177, -0.11516837775707245, 0.37729397416114807, 0.13980863988399506, 0.031196244060993195, -0.1870591789484024, 0.13237673044204712, 0.27134087681770325, -0.0899883583188057, -0.8384780883789062, -0.2239210158586502, 0.4541161060333252, -0.3294892907142639, 0.1006973981857299...
I have a report in SQL 2005 reporting services. It is a server side report and the width is set to 11 inches and the height is set to 8 inches. When I run in in the VS designer, it works fine. However, when I display it in the report viewer control of my Windows application, it appears in portrait mode, not landscape m...
[ 0.39943960309028625, -0.07676439732313156, 0.6642276644706726, -0.17648279666900635, -0.3274975121021271, -0.01592298038303852, 0.35876771807670593, -0.2469983845949173, -0.2448941022157669, -0.6445906162261963, 0.5172115564346313, 0.32092583179473877, -0.07524978369474411, -0.188363239169...
out to be a bug with Linked Reports. The report I was using was a linked report to another source report. Apparently, when you create a linked report, the properties for the source report that are contained in the ReportServer database (including page size) are not copied to the record for the linked report. When the...
[ 0.4443061053752899, 0.24816137552261353, 0.23418934643268585, 0.011248509399592876, 0.1393187940120697, -0.2334071844816208, 0.2783666253089905, -0.0829443410038948, -0.12776654958724976, -0.5017632842063904, 0.05224725604057312, 0.166099414229393, -0.48146116733551025, 0.7367839217185974,...
ran an update command against the ReportServer database to copy the properties to the linked report from the source report record. Another solution to this problem can be found here: <http://blogs.msdn.com/bwelcker/archive/2005/09/07/461758.aspx>
[ -0.16875523328781128, -0.00002257588494103402, 0.014289445243775845, 0.20915256440639496, 0.06596936285495758, -0.31232979893684387, 0.5567958354949951, -0.014807377941906452, -0.39440828561782837, -0.24706415832042694, -0.060853224247694016, 0.48097115755081177, -0.38802385330200195, 0.23...
I have an Orders table (simplified) ``` OrderId, SalesPersonId, SaleAmount, CurrencyId, ... ``` I am attempting to create a report on this table, I'm hoping for something like: ``` SalesPersonId TotalCAD TotalUSD 1 12,345.00 6,789.00 2 7,890.00 1,234.00 ``` I'd prefer not to ...
[ -0.06475918740034103, 0.1526639312505722, 0.5631963014602661, -0.2225186675786972, -0.23107028007507324, 0.5462114214897156, -0.031182631850242615, -0.0571245439350605, -0.4093700647354126, -0.5654258728027344, 0.1862572431564331, 0.3880939185619354, -0.05356871709227562, 0.108116015791893...
LEFT JOIN Orders AS OrdersUSD ON Orders.OrderID AND Orders.CurrencyID = 2 ``` But I cannot think of another way to do this, any ideas? Use a CASE block: ``` SELECT SalesPersonId, SUM( CASE CurrencyID WHEN 1 THEN SaleAmount ELSE 0 END ) AS TotalCAD, SUM( CASE CurrencyID WHEN 2 TH...
[ -0.38638731837272644, -0.14317768812179565, 0.5513957738876343, -0.2438203990459442, -0.12755326926708221, 0.45741182565689087, -0.30276086926460266, -0.176287442445755, -0.3609029948711395, -0.31448233127593994, -0.3046731650829315, 0.1963827759027481, -0.336237370967865, 0.32459241151809...
first time poster and TDD adopter. :-) I'll be a bit verbose so please bear with me. I've recently started developing SOAP based web services using the Apache CXF framework, Spring and Commons Chain for implementing business flow. The problem I'm facing here is with testing the web services -- testing as in Unit testi...
[ 0.686594545841217, 0.20679689943790436, -0.06809123605489731, 0.13418273627758026, -0.3140419125556946, -0.040032386779785156, 0.04059319570660591, -0.27466368675231934, -0.06972901523113251, -0.5746459364891052, 0.2668802738189697, 0.35187220573425293, -0.03912271559238434, -0.05331223085...
Application context. The XML files which harbored data quickly got out of hand; creating object graphs in XML turned out to be a nightmare. Since the "components" to be tested were picked from the Spring Application Context, each test run loaded *all* the components involved in my application, the DAO objects used etc....
[ 0.2177446335554123, 0.22111891210079193, 0.19602744281291962, 0.09399031102657318, -0.2752130627632141, 0.16062027215957642, 0.5736461877822876, -0.44234901666641235, -0.006666128057986498, -0.5128596425056458, 0.10500364005565643, 0.26014813780784607, -0.34783780574798584, -0.039352223277...
it. Following an advice from one of the posts on this board, I looked up Mockito, the Java mocking framework so that I could do away with using real DAO classes and mail servers and just mock the functionality. With unit tests a bit under control, this brings me to my second problem; the dependence on data. The web se...
[ 0.26778000593185425, -0.2333206981420517, 0.28061458468437195, -0.16562648117542267, -0.08067873865365982, -0.17136351764202118, -0.18562059104442596, -0.23974579572677612, 0.06305131316184998, -0.5048788785934448, 0.04653387889266014, 0.8333329558372498, -0.32061800360679626, 0.3672028779...
List<PaymentSchedule> list = billingDAO.getPaymentStatementForPolicy(policy); ctx.put("PAYMENT_SCHEDULE_LIST", list); return false; } } ``` A majority of my components follow the same route -- pick a domain object from the context, hit the DAO [we are using iBatis as the SQL mapper here] and retrieve the re...
[ 0.2584112882614136, 0.030160967260599136, 0.49588871002197266, 0.14081375300884247, 0.05865858867764473, -0.1438317447900772, 0.001878285431303084, -0.5959135890007019, -0.14027035236358643, -0.3632882833480835, 0.027623141184449196, 0.5557950139045715, -0.05384832248091698, 0.076402992010...
web services which move around a lot of data i.e. mindless insertions/retrievals from the data store? Your personal experiences/comments would be greatly appreciated. Please let me know in case I've missed out some details on my part in explaining the problem at hand. -sasuke I would recommend an in-memory database ...
[ 0.584942638874054, 0.0392063744366169, -0.23023566603660583, 0.508188784122467, -0.30576270818710327, -0.28084665536880493, 0.2829027771949768, 0.1056065782904625, 0.09895246475934982, -0.905796229839325, -0.15629176795482635, 0.36460256576538086, 0.009858803823590279, -0.13552427291870117...
will your test interfere with your actual database. For you second problem (end-to-end testing of web services), I have successfully unit tested CXF-based services in the past. The trick is to publish your web service using a light-weight web server at the beginning of your test (Jetty is ideal), then use CXF to point...
[ 0.4689854085445404, -0.03740416839718819, 0.01484636403620243, 0.10406001657247543, -0.09158023446798325, -0.10702259838581085, 0.3657258152961731, -0.4797414541244507, 0.1766294240951538, -0.7411059737205505, 0.2601419985294342, 0.7218843102455139, -0.19979912042617798, -0.085848622024059...
code: <http://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html#AsimpleJAX-WSservice-Publishingyourservice> I would also give a big thumbs up to SOAP UI for doing functional testing of your web service. JMeter is also extremely useful for stress testing web services, which is particularity important for those se...
[ 0.45854654908180237, -0.19328133761882782, 0.3400101363658905, 0.253435879945755, -0.23580895364284515, -0.37286680936813354, 0.8298709988594055, -0.27237942814826965, 0.3193383812904358, -0.6372293829917908, 0.2970946133136749, 0.5609025955200195, 0.07099643349647522, -0.48125171661376953...
I can say I don't know what I'm asking for help,because I don't know the format,but I've got a picture. I have a byte[] array ,how do I convert it to that format below(in right)? [alt text http://img512.imageshack.us/img512/3548/48667724.jpg](http://img512.imageshack.us/img512/3548/48667724.jpg) Its not plain ascii....
[ 0.20294134318828583, 0.2628115117549896, 0.4044204354286194, -0.02964802272617817, -0.11345808207988739, 0.3170302212238312, 0.143067866563797, -0.2383057028055191, -0.18261390924453735, -0.5093744993209839, -0.20609119534492493, 0.4075266718864441, -0.420704185962677, 0.021820232272148132...
(char)b : '.'; ``` To do it on an array: ``` StringBuilder builder = new StringBuilder(); foreach (b in theArray) { builder.Append(b >= 32 && b <= 127 ? (char)b : '.'); } string result = builder.ToString(); ```
[ 0.01593337021768093, -0.14586664736270905, 0.45943892002105713, -0.5488924384117126, 0.11363471299409866, 0.3576577603816986, 0.7144491672515869, -0.9639480113983154, 0.123533234000206, -0.24722401797771454, -0.2356691062450409, 0.6048721075057983, -0.3267988860607147, 0.24010449647903442,...
Question -------- I have two compilers on my hardware C++ and C89 I'm thinking about using C++ with classes but without polymorphism (to avoid vtables). The main reasons I’d like to use C++ are: * I prefer to use “inline” functions instead of macro definitions. * I’d like to use namespaces as I prefixes clutter the ...
[ 0.3997335731983185, 0.2320881336927414, -0.11325757950544357, 0.41399437189102173, -0.4912002384662628, 0.089553602039814, 0.18318696320056915, -0.15471915900707245, -0.2900828421115875, -0.4662613868713379, 0.09069176763296127, 0.5919225811958313, -0.07114025205373764, -0.1171557977795600...
helpful! I thought the subject through and I will stick with C mainly because: 1. It is easier to predict actual code in C and this is really important if you have only 4kb of ram. 2. My team consists mainly of C developers, so advanced C++ features won't be frequently used. 3. I've found a way to inline functions i...
[ 0.08652999252080917, 0.3397783935070038, 0.023359576240181923, 0.38796451687812805, -0.2873171269893646, -0.09832829236984253, 0.40342679619789124, -0.02362833172082901, -0.16056868433952332, -0.48674678802490234, 0.13641636073589325, 0.6543622612953186, -0.05125688016414642, -0.2603279054...
C++: 1. For a lot of embedded processors, either there is no C++ compiler, or you have to pay extra for it. 2. My experience is that a signficant proportion of embedded software engineers have little or no experience of C++ -- either because of (1), or because it tends not to be taught on electronic engineeering degre...
[ 0.26843759417533875, 0.32685673236846924, -0.08034544438123703, -0.33505159616470337, -0.26988524198532104, -0.0065148756839334965, -0.0960797592997551, -0.13313376903533936, -0.3087277412414551, -0.027343669906258583, -0.21246518194675446, 0.6657850742340088, -0.36119720339775085, -0.5523...
the code is stored, and run from, flash. Certainly, the amount of code storage space is something to bear in mind, but as new, more capacious, processors appear on the market, it's less of an issue than it used to be for all but the most cost-sensitive projects. On the use of a subset of C++ for use with embedded sys...
[ 0.3299494683742523, 0.14283549785614014, 0.011869607493281364, 0.3563483655452728, 0.08453769236803055, -0.05128912255167961, -0.15565550327301025, -0.004536336753517389, -0.4039047956466675, -0.307316392660141, -0.5176418423652649, 0.4322474002838135, 0.006536687724292278, -0.255492299795...
I want to implement a scroll function.. So the default of scroll is disabled. And if the user use the scroll button, I want it to be set to the point I want.. How can I implement this function? window.scrollTop is not working.. I tried a lot of different methods but all were not working.. ``` $(window).scroll(function...
[ 0.4708356261253357, 0.06500475853681564, 0.8990257978439331, -0.10155578702688217, 0.0016869984101504087, 0.10583914816379547, 0.38980332016944885, -0.5972656011581421, 0.022627530619502068, -0.685356080532074, 0.15451933443546295, 0.8590657711029053, -0.32853519916534424, 0.06132627651095...
// if it hasn't, use window instead }); ```
[ 0.030745096504688263, 0.02756279893219471, 0.1912056803703308, -0.39205628633499146, 0.23101991415023804, -0.08514349907636642, 0.2325916290283203, 0.31869804859161377, 0.05643128976225853, -0.7399001717567444, -0.5059857964515686, 0.6154800057411194, -0.29629743099212646, 0.37019070982933...
I assume this is pretty easy so here goes; I'm trying to execute these commands and then close the command prompt after Firefox opens. How do I do that? I can't get back to a command prompt after "ping 127.0.0.1 -n 4>null" (i'm simulating a sleep here). ``` @echo off call tskill firefox call ping 127.0.0.1 -n 4>nul ca...
[ 0.20492127537727356, 0.10980959981679916, 0.39066198468208313, -0.43509170413017273, 0.12334097921848297, -0.39561912417411804, 0.29114413261413574, -0.19414447247982025, -0.0687740221619606, -0.7936527132987976, -0.17850381135940552, 0.851615846157074, -0.34653744101524353, -0.01378347631...
Here's another issues that we are facing while migrating our application from current production environment to the new data center environment (see details below) * Current Production Environment : Java 1.4, Java EE 3, WAS 5.1, JSF 2.1 * New Environment: Java 1.5, Java EE 5, WAS 6.1, JSF 2.1 Here we have a third par...
[ 0.07908744364976883, 0.3345329761505127, 0.33501845598220825, -0.06401272118091583, 0.019360017031431198, 0.0248499047011137, 0.3848777711391449, -0.1536146104335785, -0.3771144449710846, -0.42690619826316833, 0.11886171996593475, 0.5699946880340576, -0.10120157897472382, 0.432445943355560...
{ if(dbProperties == null) { dbProperties = ResourceBundle.getBundle("db"); } return dbProperties; } ``` This application is working fine on the current environment. But somehow when we move the application to the new environment we get a "MissingResourceException" (see...
[ 0.15454302728176117, -0.13253271579742432, 0.19494009017944336, -0.11866894364356995, 0.21565061807632446, 0.0956389382481575, 0.5934082269668579, -0.4089103937149048, -0.358871728181839, -0.44265905022621155, -0.4075283706188202, 0.4094202518463135, -0.5647677779197693, 0.0683046951889991...
none worked: 1. Renamed the db.properties as db\_en\_US.properties 2. Putting the properties file in the jar 3. moving the jar file at EAR level. Please suggest on what could be wrong here. And what can we do to get it working :) **Note:** File db.properties is located under the WEB-INF/classes directory. Also we tr...
[ 0.40356874465942383, 0.46537354588508606, 0.06869220733642578, -0.14249326288700104, -0.28685876727104187, 0.23240259289741516, 0.6366721987724304, -0.38513442873954773, 0.2749927043914795, -0.8843807578086853, 0.013446951285004616, 0.7384389042854309, -0.03621741384267807, 0.5053405165672...
jar file in WEB-INF/lib, but it is rather comes from some other location on the server. Its classloader then does not see the property file. If that is the issue, changing the classloader ordering should cause the expected copy of the class to load. Also, the classloader viewer in the admin console can put some light...
[ -0.22166968882083893, 0.1182301864027977, 0.27699410915374756, -0.08293608576059341, -0.1694711446762085, -0.3792670965194702, 0.2888566851615906, -0.028633369132876396, -0.04533166438341141, -0.6760750412940979, -0.14470629394054413, 0.5670573115348816, -0.12090970575809479, 0.47327625751...
Because the float data type in PHP is inaccurate, and a FLOAT in MySQL takes up more space than an INT (and is inaccurate), I always store prices as INTs, multipling by 100 before storing to ensure we have exactly 2 decimal places of precision. However I believe PHP is misbehaving. Example code: ``` echo "<pre>"; $pr...
[ 0.35177093744277954, 0.286298930644989, 0.5121152997016907, -0.2009996473789215, -0.16814416646957397, 0.3347984552383423, 0.05931159853935242, -0.7176284193992615, 0.035826824605464935, -0.09862891584634781, -0.15291456878185272, 0.48463499546051025, -0.009367723017930984, 0.3795396089553...
my test to look more like: ``` Price = string(4) "1.15" Corrected price = float(114.999999999) Integer price = int(114) ``` which would demonstrate the inaccuracy of the float type. But why is floor(115) returning 114?? Try this as a quick fix: ``` $price_int = intval(floor($price_corrected + 0.5)); ``` The probl...
[ 0.28937989473342896, 0.4549703299999237, 0.3366737961769104, 0.15621913969516754, -0.20401111245155334, 0.012504080310463905, -0.03866380825638771, -0.26877498626708984, -0.15379270911216736, -0.2903042137622833, 0.3572719097137451, 0.6432806253433228, 0.11631614714860916, 0.13588601350784...
can freely add them together, and multiply by other integers. Whenever you display the number, make sure you insert a dot in front of the last two digits. The reason why you are getting 114 instead of 115 is that `floor` rounds down, towards the nearest integer, thus floor(114.999999999) becomes 114. The more interest...
[ 0.1639288365840912, 0.27574610710144043, 0.7260026931762695, 0.06725937128067017, -0.1681768298149109, 0.19881218671798706, -0.06147949770092964, -0.28740549087524414, -0.6556424498558044, -0.5917361378669739, -0.0635821670293808, 0.01101943664252758, 0.08031671494245529, 0.172366365790367...
more detailed explanation what `echo 1.15 * 100;` does: * It parses 1.15 to a binary floating point number. This involves rounding, it happens to round down a little bit to get the binary floating point number nearest to 1.15. The reason why you cannot get an exact number (without rounding error) is that 1.15 has infi...
[ 0.11323437839746475, 0.3873019814491272, 0.20342917740345, -0.04824841395020485, -0.18923525512218475, 0.27868810296058655, 0.22329236567020416, -0.3203212022781372, -0.2673105299472809, -0.30428463220596313, 0.09978020191192627, 0.20467330515384674, 0.03664159029722214, 0.1112113371491432...
rounding, to find the nearest binary floating point number. The rounding error happens to be zero in this operation. * It converts the binary floating point number to a base 10 decimal number with a dot, and prints this representation. This also involves a little rounding. The reason why PHP prints the surprising `Cor...
[ 0.19173455238342285, -0.06526041030883789, 0.48499783873558044, 0.07772257179021835, -0.2690318822860718, 0.33171114325523376, -0.19618168473243713, -0.4393738806247711, -0.1712232530117035, -0.09563640505075455, 0.2328091263771057, 0.5067100524902344, -0.010141759179532528, -0.05327026546...
# this prints 115 printf("%.30f", 1.15 * 100); # you 114.999.... echo 1.15 * 100 == 115.0 ? "same" : "different"; # this prints `different' echo 1.15 * 100 < 115.0 ? "less" : "not-less"; # this prints `less' ``` If you are printing floats, remember: *you don't always see all digits when you print the float*. Se...
[ 0.31741124391555786, 0.08689780533313751, 0.3464522361755371, -0.18756508827209473, -0.14532636106014252, 0.09456465393304825, 0.25916141271591187, -0.7511107921600342, -0.27532437443733215, -0.21946261823177338, 0.13076835870742798, 0.552672803401947, -0.4323938190937042, -0.2431651055812...
I edited the question so it would make more sense. I have a function that needs a couple arguments - let's call it `fc()`. I am passing that function as an argument through other functions (lets call them `fa()` and `fb()`). Each of the functions that `fc()` passes through add an argument to `fc()`. How do I pass `f...
[ 0.06676197052001953, 0.2546232044696808, 0.6244799494743347, -0.24220424890518188, -0.26988908648490906, -0.05689822509884834, -0.10136032104492188, -0.84748375415802, 0.0581585057079792, -0.46994808316230774, -0.17165790498256683, 0.213078573346138, -0.3928464651107788, -0.164163246750831...
myothervar } ``` Below is how I do it now. As I add arguments, it's getting confusing because I have to add them to preceding function(s) as well. `fb()` and `fc()` get used elsewhere and I am loosing some flexibility. ``` function fa(fc){ myvar=something fb(fc,myvar) } function fb(fc,myvar){ myothervar=so...
[ 0.03472822532057762, 0.188380166888237, 0.7339970469474792, -0.15173643827438354, -0.26772385835647583, -0.04084641486406326, 0.25608691573143005, -0.6521445512771606, -0.1411513090133667, -0.543311595916748, -0.10702019929885864, 0.7016389966011047, -0.3545719087123871, -0.222869530320167...
event handlers when section is loaded ``` function setDynamicSelectElements(oSet) { /************************************************************************************** * Sets the event handlers for inputs with dynamic selects *****************************************************************************...
[ -0.19636572897434235, -0.6614006757736206, 0.6239933967590332, 0.10919094830751419, -0.18903936445713043, 0.15704861283302307, -0.16375064849853516, -0.2188270092010498, -0.38835349678993225, -0.5120683312416077, -0.39275306463241577, 0.39584073424339294, -0.5643450617790222, 0.15010431408...
} } ``` `onclick` event builds list ``` function selectList(sListName, sQuery, fnFollowing) { /************************************************************************************** * Build a dynamic select list and set each of the events for the table elements *******************************************...
[ -0.6855113506317139, -0.3266707956790924, 0.5887290835380554, -0.1099003329873085, -0.10169104486703873, 0.2583763003349304, -0.08551670610904694, -0.3611067235469818, -0.12997834384441376, -0.8040019869804382, -0.41868147253990173, 0.5246135592460632, -0.3835943043231964, -0.1830950081348...
if (oSelected.value) findListItem(oSelected)//highlight the selected item } ``` Create the list ``` function setDiv(sPageName, sQuery, sClassName, fnBeforeAppend) { /************************************************************************************** * Creates a div and places a page in it. ***********...
[ -0.4739072620868683, 0.04652567580342293, 0.774563193321228, -0.08492439240217209, -0.018730025738477707, 0.17273278534412384, -0.11358104646205902, -0.20142553746700287, -0.12581303715705872, -1.0225666761398315, -0.4522707462310791, 0.24215587973594666, -0.24400119483470917, -0.142028599...
already exists if (!oDiv) {//if not create it and set an id we can use to find it later oDiv = document.createElement('DIV') oDiv.id = oParent.id + sWindowIdSuffix//give the child an id so we can reference it later oSelected.style.cursor = 'wait'//until the thing is loaded oDiv.c...
[ 0.2897610366344452, -0.13259677588939667, 0.4923751950263977, 0.18264320492744446, 0.35999491810798645, 0.03507978096604347, 0.07213626056909561, -0.08309675753116608, -0.055568862706422806, -0.566648006439209, -0.013220610097050667, 0.07142321765422821, -0.0756339505314827, 0.191844508051...
oDiv.style.pixelTop = (coords.y + coords.h + (iBorder * 2)) XmlHttpPage(sPageName, oDiv, sQuery) if (fnBeforeAppend) { fnBeforeAppend(oDiv) } oParent.appendChild(oDiv) oSelected.style.cursor = ''//until the thing is loaded//once it's loaded, set the cursor back ...
[ -0.15767191350460052, -0.022637998685240746, 0.7678869962692261, -0.24627381563186646, -0.14041230082511902, 0.18389348685741425, 0.13260868191719055, -0.41258704662323, -0.002818217035382986, -0.5798462629318237, -0.21810360252857208, 0.4335121810436249, -0.49090537428855896, -0.105334080...
size the list ``` function configureSelectList(oDiv, fnOnClick) { /************************************************************************************** * Build a dynamic select list and set each of the events for the table elements * Created in one place and moved to another so that sizing based on the c...
[ -0.07159467041492462, -0.011565045453608036, 0.9744038581848145, -0.003732513403519988, -0.11461267620325089, -0.030677424743771553, -0.13381531834602356, -0.558976411819458, -0.3459945619106293, -0.7658008933067322, -0.397457480430603, 0.4606158137321472, -0.18629825115203857, 0.008548187...
it later if (oTable) { for (iRow = 0; iRow < oTable.rows.length; iRow++) { var oRow = oTable.rows[iRow] oRow.onmouseover = function() { highlightSelection(this) }; oRow.onmouseout = function() { highlightSelection(this) }; oRow.style.cursor = 'hand'; ...
[ -0.33852818608283997, -0.38213735818862915, 0.87445068359375, -0.28167325258255005, 0.16530568897724152, 0.038876909762620926, 0.07038945704698563, -0.2426299750804901, -0.0252443328499794, -0.4093301594257355, -0.2604776620864868, 0.7024149894714355, -0.03880631551146507, -0.0672486498951...
function() { closeSelectList(0); fnOnClick ? fnOnClick() : null }; oRow.cells[0].style.whiteSpace = 'nowrap' } } else { //show some kind of error } oDiv.style.width = (oTable.offsetWidth + 20) + "px"; //no horiz scroll bars please oTable.mouseout = function() { closeSelectLis...
[ -0.22368037700653076, -0.08062946051359177, 0.6935574412345886, -0.23390400409698486, 0.14150948822498322, 0.22893264889717102, 0.030529873445630074, -0.6888192296028137, -0.15488135814666748, -0.5251281261444092, -0.5718340277671814, 0.5584070086479187, -0.11818760633468628, -0.1017437130...
- where to start? :) Here is the partial function to begin with, you will need this (now and in the future, if you spend a lot of time hacking JavaScript): ``` function partial(func /*, 0..n args */) { var args = Array.prototype.slice.call(arguments, 1); return function() { var allArguments = args.concat(Array...
[ 0.09289141744375229, 0.03672543913125992, 0.15701283514499664, -0.2566448748111725, -0.18345274031162262, 0.40914374589920044, 0.033410657197237015, -0.16299200057983398, 0.008191569708287716, -0.6706281900405884, -0.03105136565864086, 0.6909523606300354, -0.42478716373443604, 0.2225628346...
yourself of the hack you are currently using, and a few other things: The setDynamicSelectElements() function --------------------------------------- In this function, you can change this line: ``` onclick = function() { selectList(ySelectArgs[0], ySelectArgs[1], ySelectArgs[2]) } ``` To this: ``` onclick = funct...
[ 0.14682893455028534, 0.01582665927708149, 0.5419597625732422, 0.025980398058891296, 0.36681902408599854, -0.22064615786075592, 0.20042404532432556, -0.33394286036491394, -0.06928975135087967, -0.4680601954460144, -0.151498943567276, 0.9262460470199585, -0.459702730178833, 0.011596608906984...
function in the global scope } ``` Then, change this line: ``` var oDiv = setDiv(sListName, sQuery, 'dynamicSelect', configureSelectList); ``` To this: ``` var oDiv = setDiv(sListName, sQuery, 'dynamicSelect', partial(configureSelectListAlternate, fnFollowing)); ``` Now, in that code I provided, I have "configu...
[ -0.5902490019798279, -0.17964544892311096, 0.7545272707939148, -0.2344338744878769, 0.07384638488292694, 0.10050001740455627, 0.05357033759355545, 0.024362467229366302, -0.08523434400558472, -0.625954806804657, -0.2596867084503174, 0.720413088798523, -0.6091631054878235, -0.177027091383934...
configureSelectList.Container; ``` I didn't see you hook that Container property on in any of the other code. Unless you need this line, you should be able to get rid of it. The setDiv() function can stay the same. --- Not too exciting, but you get the idea - your code really could use some cleanup - are you avoid...
[ 0.4819122552871704, 0.023239487782120705, 0.30821308493614197, 0.1821514219045639, 0.16373075544834137, -0.5534296631813049, 0.0677400454878807, 0.13518628478050232, -0.25348398089408875, -0.69669109582901, -0.11323230713605881, 0.6887819766998291, -0.35182830691337585, 0.08158789575099945...
I have a PyQt program, in this program I start a new thread for drawing a complicated image. I want to know when the thread has finished so I can print the image on the form. The only obstacle I'm facing is that I need to invoke the method of drawing from inside the GUI thread, so I want a way to tell the GUI thread t...
[ 0.6093810796737671, -0.02155414968729019, 0.5001222491264343, 0.1295875608921051, -0.13718394935131073, 0.17030580341815948, 0.04983920976519585, 0.12050814181566238, -0.20085225999355316, -0.7686523795127869, 0.34636902809143066, 0.4963245987892151, -0.32506701350212097, -0.10344759374856...
to do such thing in Python? or should I hack into the main loop of PyQt application and change it a bit? In the samples with [PyQt-Py2.6-gpl-4.4.4-2.exe](http://www.riverbankcomputing.co.uk/software/pyqt/download), there's the Mandelbrot app. In my install, the source is in C:\Python26\Lib\site-packages\PyQt4\examples\...
[ 0.2611493468284607, -0.026394683867692947, 0.30086076259613037, -0.053428538143634796, 0.16405907273292542, 0.04801202565431595, 0.1840956062078476, -0.031879909336566925, -0.35350698232650757, -0.6507498025894165, 0.18743796646595, 0.36236345767974854, -0.5712285041809082, -0.246272265911...
**There is unordered list**, which not works properly in IE6-7, I would like want to **replace it by a jQuery function**. So, we have: * simple list with special #id (ul id="") * some `<li>` tags * some special tag in `<li>` to show the number of a row (or something else, as you wish). I need a function which will g...
[ 0.14561796188354492, -0.10725458711385727, 0.4453935921192169, -0.048817895352840424, 0.008942093700170517, 0.19282956421375275, 0.006800103932619095, -0.5806203484535217, 0.1193106397986412, -0.9218610525131226, -0.3433961868286133, 0.4637174904346466, -0.2861240804195404, -0.058518677949...
}); }); ``` result: ``` * 8. test * 11. test * 14. test * 17. test * 20. test * 23. test * 26. test ``` edit: without increment and shorter: ``` $(document).ready(function(){ $("ul").children().each(function(i) { $(this).prepend('<b>'+(1+i).toString()+'.</b> '); }); }); ```
[ 0.14976215362548828, 0.08985001593828201, 0.5864027738571167, -0.17816434800624847, 0.29669904708862305, 0.2860976755619049, 0.19330379366874695, -0.5969835519790649, -0.08286163210868835, -0.5736714005470276, -0.5825782418251038, 0.582693338394165, -0.29768824577331543, 0.2022969424724578...
Is it browser dependent? Also, do different web stacks have different limits on how much data they can get from the request? [RFC 2616](https://www.rfc-editor.org/rfc/rfc2616) (Hypertext Transfer Protocol — HTTP/1.1) states there is no limit to the length of a query string (section 3.2.1). [RFC 3986](https://www.rfc-ed...
[ -0.16724058985710144, -0.22653116285800934, 0.49477043747901917, 0.1458943635225296, -0.1707128882408142, -0.2609659433364868, -0.014717262238264084, -0.08687866479158401, -0.13986361026763916, -0.3873386085033417, -0.17166262865066528, 0.3039647340774536, -0.371003657579422, 0.29264566302...
site (it leads to a shady seeming loan site) but which can still be found at [Internet Archive Of Boutell.com](https://web.archive.org/web/20170503192739/https://boutell.com/newfaq/misc/urllength.html): * **Microsoft Edge (Browser)** The limit appears to be around 81578 characters. See [URL Length limitation of Mic...
[ -0.20156241953372955, 0.14934025704860687, 0.5972159504890442, -0.02091442421078682, -0.23318931460380554, 0.1915043592453003, 0.5868754386901855, -0.13213124871253967, -0.2855828106403351, -0.7451723217964172, -0.19397392868995667, 0.32463058829307556, -0.016081972047686577, -0.0121996933...
characters will work. Testing was not tried beyond that. * **Opera (Browser)** At least 190,000 characters will work. Stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters. * **Microsoft Internet ...
[ -0.12403175234794617, -0.08357267826795578, 0.7993464469909668, -0.028812287375330925, 0.02777731418609619, 0.29584914445877075, 0.412666916847229, 0.01781509816646576, 0.07393886893987656, -0.7879756689071655, -0.3342575132846832, 0.2919132113456726, 0.11994212865829468, -0.17902727425098...
maximum URL length in web browsers bumped into a server URL length limit of approximately 4,000 characters, after which Apache produces a "413 Entity Too Large" error. The current up to date Apache build found in Red Hat Enterprise Linux 4 was used. The official Apache documentation only mentions an 8,192-byte limit on...
[ -0.09206967055797577, 0.16003400087356567, 0.7866358160972595, 0.07064001262187958, -0.2825666666030884, 0.06690436601638794, 0.34194108843803406, -0.15692658722400665, -0.29544004797935486, -0.41425785422325134, -0.11748244613409042, 0.022075960412621498, 0.04904838651418686, 0.2983568608...
with Perl's HTTP::Daemon module will encounter a 16,384 byte limit on the combined size of all HTTP request headers. This does not include POST-method form data, file uploads, etc., but it does include the URL. In practice this resulted in a 413 error when a URL was significantly longer than 8,000 characters. This limi...
[ 0.051618076860904694, -0.2562946677207947, 0.4537713825702667, 0.24310827255249023, -0.28186023235321045, -0.029866822063922882, 0.5027899742126465, -0.2613222002983093, -0.5644293427467346, -0.36076322197914124, -0.16621598601341248, 0.13673992455005646, -0.32698386907577515, 0.1178927794...
I have a following scenario – and what I am really looking is real help from real people. Suggestions / Solutions ? Please. I have an extranet web site for ex. www.foo.com (asp.net 3.5) I am using JQuery 1.3.2 to call ValidateLogin PageMethods in default.aspx page ( www.foo.com/default.aspx) The code will look like t...
[ -0.030382337048649788, 0.08130473643541336, 0.6130701303482056, -0.1287386566400528, 0.09711115807294846, -0.08536699414253235, 0.4523910582065582, -0.013257802464067936, -0.12112203985452652, -0.7170262336730957, -0.1550077646970749, 0.6546682119369507, -0.32109227776527405, -0.1107242032...
window.location = "http://www.google.com"; } else { alert("Invalid UserName/Password."); ResetLoginForm(); } }, error: function (xhr, status, error) { var strerror = xhr.status + error; alert("Error Communicating with Server:" + strerror);
[ -0.31988000869750977, -0.12178853899240494, 0.573142945766449, -0.2355067878961563, 0.09744060784578323, 0.28123119473457336, 0.46688076853752136, 0.08133504539728165, 0.07080315053462982, -0.7224786877632141, -0.46126076579093933, 0.5598170161247253, -0.41665175557136536, 0.12005977332592...
ResetLoginForm(); } }); ``` The code is stored in external js file. For ex default.js. Since this website is public, anyone can download the default.js and thus can take a look at code given above. My question is once the person gets this url: "Default.aspx/ValidateLogin", he can make a request to server and s...
[ 0.432695597410202, -0.12667495012283325, 0.7019349336624146, -0.021260173991322517, 0.19307978451251984, -0.12889978289604187, 0.5039817690849304, 0.26216787099838257, -0.4059024751186371, -0.7941370606422424, -0.06310517340898514, 0.8257392644882202, -0.17888019979000092, 0.10544756054878...
They could simply monitor the HTTP requests and replay those requests (It's very easy with a tool like fiddler for example). Problem with Throttling ----------------------- The throttling solutions are really not viable though they will reduce the rate of attacks. The problem is that an adversary can write a script t...
[ 0.13198213279247284, 0.007132724858820438, 0.5489335656166077, 0.3480639159679413, -0.16672185063362122, -0.23978650569915771, 0.7162328958511353, -0.019208453595638275, -0.1843038648366928, -0.7115405797958374, 0.0024334914050996304, 0.7318602800369263, -0.1718563586473465, 0.228109180927...
out. Solution -------- The typical approach is to use nonce keys. It will require some extra work but it will mitigate the problem and it's only recommended if you really anticipate an onslaught of attacks or something. A simplified version of this would the client passes the nonce key as a URI query parameter. The k...
[ 0.10765133798122406, -0.25468143820762634, 0.4339531362056732, 0.26682543754577637, -0.01999567821621895, 0.06113553047180176, -0.16199105978012085, -0.09329663217067719, -0.05662078037858009, -0.4616119861602783, -0.3361155092716217, 0.31690049171447754, -0.4790489077568054, 0.45358863472...
same nonce key but then the server would need to issue more nonce keys to the user. The simplified solution is to only allow authenticated users to make web service requests but since you are designing a login system this obviously doesn't stick. I wouldn't worry about it unless you've got some nasty adversaries.
[ 0.2484750747680664, -0.31966477632522583, 0.35900774598121643, 0.26265382766723633, 0.07529182732105255, -0.2301759123802185, 0.4032769203186035, 0.13189765810966492, -0.3379231095314026, -0.48721790313720703, 0.1253945231437683, 0.2653428912162781, -0.31118321418762207, 0.3301037847995758...
Continuous Integration ====================== I have been working on a PowerShell script to keep our development process streamlined. I was planning on running it as a post-build event, but I'm having some trouble. From the PowerShell prompt, the following works wonderfully: ``` PS C:\> ./example.ps1 ``` However, ...
[ -0.5837037563323975, -0.12938514351844788, 0.2904897928237915, -0.06757055968046188, 0.33186036348342896, 0.06676758080720901, 0.5561662912368774, -0.09255232661962509, -0.06342075765132904, -0.46436986327171326, 0.1751931607723236, 0.7650521397590637, -0.5761693120002747, -0.0382160060107...
Documents\Visual Studio 2008\Projects\C > gmFamilyComm\scripts\cms.ps1:4 char:27 > + $iirfpath = (resolve-path <<<< ../iirf/cms/isapirewrite4.dll).path, > > > Resolve-Path : Cannot find path 'C:\Documents and Settings\bdunbar\My Documents > \Visual Studio 2008\Projects\CgmFamilyComm\FamilyComm\familycomm' because ...
[ -0.6294058561325073, 0.3438296318054199, 0.6897919178009033, 0.07134345173835754, 0.46417081356048584, 0.10618160665035248, 0.4128149449825287, -0.35896822810173035, -0.3085201382637024, -0.6494871973991394, -0.18784676492214203, 0.6114222407341003, -0.2550473213195801, -0.0589870922267437...
out what the difference is. I've made this work in the past (see <http://sharepointpdficon.codeplex.com/SourceControl/changeset/view/13092#300544> if interested): > C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -NoLogo > -NonInteractive -Command .'$(ProjectDir)Deployment\PostBuildScript.ps1' > -ProjectDi...
[ 0.45048922300338745, -0.15423643589019775, 0.5127387046813965, -0.19385462999343872, -0.15657104551792145, 0.08853568881750107, -0.01702871546149254, -0.4392154812812805, -0.13716135919094086, -0.5550716519355774, 0.29982489347457886, 0.46151894330978394, -0.023817839100956917, -0.08838037...
I have 2 images inside a folder called Pics..... Image1.jpg and Image2.jpg. What code must i place inside my Submit button to just delete Image1.jpg located here "~/Pics/Image1.jpg" Any help would be great!!! You need to use [System.IO.File.Delete](http://msdn.microsoft.com/en-us/library/system.io.file.delete.aspx) n...
[ 0.2338041067123413, -0.007257743272930384, 0.6554208397865295, 0.3001898527145386, -0.1317262351512909, 0.16144560277462006, 0.17067201435565948, -0.24503296613693237, -0.19365347921848297, -1.0552375316619873, -0.056354302912950516, 0.3277882933616638, -0.11535405367612839, 0.124964982271...
What is the difference between composition and aggregation? can anybody give me a sample of this OOAD? [Found here](http://www.jguru.com/faq/view.jsp?EID=51520) "Both aggregation and composition are special kinds of associations. Aggregation is used to represent ownership or a whole/part relationship, and composition ...
[ 0.28552335500717163, 0.10598181188106537, -0.11523067951202393, 0.2968639135360718, -0.1929277777671814, 0.12208044528961182, -0.04481784626841545, -0.205468088388443, -0.39076220989227295, -0.2587529420852661, 0.07380156219005585, 0.02179148979485035, -0.11953768879175186, 0.6528608798980...
at a time. If the composite is destroyed, it must either destroy all its parts or else give responsibility for them to some other object. A composite object can be designed with the knowledge that no other object will destroy its parts. Composition can be used to model by-value aggregation, which is semantically equiv...
[ 0.265024334192276, -0.03525266423821449, -0.21475310623645782, 0.1692364513874054, -0.09850272536277771, 0.20999927818775177, -0.03052739053964615, -0.16893775761127472, -0.3017711639404297, -0.3045004606246948, -0.09476575255393982, 0.03076852485537529, -0.5449279546737671, 0.346501529216...
is not usually relevant during analysis." John Moore
[ 0.22847308218479156, 0.5086110830307007, -0.3613946735858917, -0.06230185553431511, 0.3218178153038025, 0.10114371031522751, 0.4495266377925873, -0.1712525486946106, -0.10571712255477905, -0.17802858352661133, -0.09936938434839249, 0.2930464446544647, -0.12416570633649826, 0.12436123192310...