text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
url + ".{format}", defaults); } ```
[ 0.05445405840873718, 0.1806577891111374, 0.6898466944694519, -0.15308989584445953, 0.13634134829044342, -0.4836144745349884, 0.2675227224826813, 0.15674909949302673, 0.07077083736658096, -0.18942321836948395, -0.6912606358528137, 0.6198750734329224, -0.29767003655433655, 0.6855347156524658...
For a requirement i was asked to export information into a custom entity that was created in MS CRM 4.0. I am trying to do this programmatically and I have not found a single code that actually accomplishes this. I wrote code to check if a certain value for a field exists in the entity but creating a new entity seems t...
[ 0.4106576442718506, 0.005521071143448353, 0.15466178953647614, 0.3074498772621155, -0.1343151032924652, -0.14334557950496674, 0.03701424226164818, 0.08681795746088028, -0.33465203642845154, -0.4588368833065033, 0.27447062730789185, 0.46301785111427307, -0.1757621169090271, 0.10417507588863...
i found the answer to my solution [here](http://nishantrana.wordpress.com/2008/10/29/understanding-dynamicentity-in-microsoft-dynamic-crm/). Thanks for you reply :).
[ -0.522763192653656, -0.11784885823726654, 0.3416171669960022, 0.08847681432962418, 0.07495830208063126, 0.1044405996799469, 0.39887145161628723, 0.2589471638202667, -0.22687673568725586, -0.26276010274887085, -0.2980877757072449, 0.1514626145362854, 0.2476179003715515, 0.1984132081270218, ...
Is there anything out there freeware or commercial that can facilitate analysis of memory usage by a PHP application? I know xdebug can produce trace files that shows memory usage by function call but without a graphical tool the data is hard to interpret. Ideally I would like to be able to view not only total memory...
[ 0.4815467894077301, 0.13321875035762787, 0.04617948457598686, -0.01051194965839386, -0.29279008507728577, -0.2905719578266144, 0.13591021299362183, 0.15417003631591797, -0.07261461764574051, -0.49249589443206787, 0.08490414172410965, 0.5386256575584412, -0.403751015663147, 0.38068825006484...
support for Memory profiling as that didn't work properly. So I've tried another tool and it worked well for me. <https://github.com/arnaud-lb/php-memory-profiler> This is what I've done on my Ubuntu server to enable it: ``` sudo apt-get install libjudy-dev libjudydebian1 sudo pecl install memprof echo "extension=m...
[ -0.09973768144845963, 0.19525618851184845, 0.9411574006080627, -0.14524534344673157, -0.2605232000350952, -0.12880276143550873, 0.3538033664226532, -0.41997653245925903, 0.02568511664867401, -0.8212493062019348, -0.3020194172859192, 0.782068133354187, -0.15730421245098114, -0.0767147094011...
new window in your existing browser session with something like shown below: ![PHP memory profiling with memprof and gperftools](https://i.stack.imgur.com/EAnGC.png) Xhprof + Xhgui (the best in my opinion to profile both cpu and memory) ====================================================================== With **Xh...
[ 0.05769963562488556, 0.0014934823848307133, 0.1829342246055603, 0.10031045973300934, -0.23867592215538025, -0.005256628151983023, 0.11377844959497452, 0.03694465011358261, -0.46966230869293213, -0.7877414226531982, 0.04799024388194084, 0.3426826596260071, -0.10575425624847412, 0.1181550547...
machine you'll be happy to know it's supported ;-)
[ 0.4937869906425476, -0.0500570684671402, 0.5144726037979126, 0.2389427125453949, 0.3386308252811432, 0.5874732732772827, -0.13061082363128662, -0.3352935314178467, -0.3756086230278015, -0.39308542013168335, 0.09316334873437881, 0.7827965021133423, -0.18376298248767853, 0.06624285131692886,...
The main user-case is: 1. Create the 2D floor plan 2. See the 3D view of the room in colors and in dynamic lighting (switching on and off the lamps) 3. Select the furniture from the large library of predefined samples. 4. Change the color and texture of the furniture samples. 5. Create the photos of the 3D room view f...
[ 0.28317880630493164, 0.3180992305278778, 0.3678346872329712, 0.13393090665340424, 0.06636691093444824, -0.01511891558766365, 0.07598487287759781, -0.4609126150608063, -0.12569497525691986, -0.5524751543998718, -0.15421171486377716, 0.38640323281288147, -0.10563293844461441, 0.0995381250977...
game engine, i think you would be able to create your tool with it, in addition you get support for creating 3D content in a variety of modelling tools, Unity support web plugins. There are also a couple of Java 3D engines out there [JMonkeyEngine](http://www.jmonkeyengine.com/) is only one of them. I think you would ...
[ 0.21406713128089905, -0.09171120077371597, 0.1229613870382309, 0.1904161274433136, -0.09727047383785248, -0.1334732323884964, -0.2231004536151886, 0.055369168519973755, -0.03797098621726036, -0.7273606657981873, 0.14607785642147064, 0.9036573767662048, -0.10127671808004379, 0.2105493098497...
I should preface this by saying I'm working on a pocket PC app and the data files live on sd cards. I have an app that has to create an array of size x. malloc is failing every time. I've got a 1 gig file on a 4 gig card. I've got 64 megs of onboard memory (ram/data/application/os) I can't process the data ...
[ 0.14611707627773285, 0.33561110496520996, 0.5066891312599182, 0.11486732214689255, 0.14447666704654694, 0.02913861721754074, -0.007936458103358746, -0.14028990268707275, -0.2676745057106018, -0.7196692824363708, -0.014372000470757484, 0.7123010754585266, 0.08251488208770752, 0.017933035269...
I'm going to use as an array? Or would there be a different way to do this? You should create a file large enough for the array, suitably padded (according to GetSystemInfo), and the map the file with CreateFileMapping/MapViewOfFile. Atleast, that would be my first try - there might be restrictions on how large a m...
[ 0.5702152848243713, -0.2301226407289505, 0.4513780474662781, 0.09870846569538116, 0.06531981378793716, -0.2285265177488327, -0.24066007137298584, -0.2619539201259613, -0.40542662143707275, -0.8967922329902649, 0.19627870619297028, 0.4162205159664154, -0.037433017045259476, 0.13662895560264...
Is it generally better to run functions on the webserver, or in the database? Example: ``` INSERT INTO example (hash) VALUE (MD5('hello')) ``` or ``` INSERT INTO example (hash) VALUE ('5d41402abc4b2a76b9719d911017c592') ``` Ok so that's a really trivial example, but for scalability when a site grows to multiple ...
[ 0.15658298134803772, -0.015575477853417397, 0.024082761257886887, 0.20486992597579956, 0.04183236509561539, -0.35051488876342773, 0.4175122380256653, -0.04068535938858986, -0.3408854901790619, -0.4553726315498352, -0.11821794509887695, 0.5709004998207092, -0.3589567244052887, -0.0393765717...
something like "SELECT .... WHERE MD5(xxx) = ... " And database functions aren't very portable in general.
[ 0.010445425286889076, -0.30542245507240295, -0.10203272104263306, 0.08933315426111221, 0.12416233122348785, -0.3469600975513458, -0.23694078624248505, 0.009354893118143082, -0.18193264305591583, -0.5916747450828552, 0.08343732357025146, 0.2560409605503082, -0.2161835879087448, 0.2477056831...
I'm trying to use class names to change the color of a link after it has been selected, so that It will remain the new color, but only until another link is selected, and then it will change back. I'm using this code that was posted by Martin Kool in [this](https://stackoverflow.com/questions/206689/changing-the-bg-co...
[ 0.11938309669494629, -0.4322890341281891, 0.29779642820358276, -0.078872911632061, -0.0031409617513418198, 0.25031647086143494, 0.04013789817690849, -0.11882136017084122, -0.20804136991500854, -0.9558391571044922, -0.10644019395112991, 0.05369904637336731, -0.3542100787162781, 0.2928376495...
for (var i = 0, l = siblings.length; i < l; i++) { var sib = siblings[i]; if (sib != el && sib.className == "selected") sib.className = "unselected"; } } } </script> <style> .selected { background: #f00; } </style> </head> <body> <a href="#" class="selected">One</a> <a h...
[ -0.014255596324801445, -0.3619718849658966, 0.39180731773376465, -0.14989206194877625, 0.2972947061061859, 0.36471837759017944, 0.3653179407119751, -0.786048412322998, -0.03315035626292229, -0.648091197013855, -0.33239060640335083, 0.4147493839263916, -0.04253169894218445, -0.1895381808280...
out the links in a table. Why is this? Be easy, I'm a beginner. --- There is no error, the links are changing to the "selected" class, but when another link is selected, the old links are keeping the "selected" class instead of changing to "unselected". Basically, as far as I can tell, it's functioning like a vlink a...
[ 0.0867023691534996, 0.1516411155462265, 0.4594043791294098, -0.14509820938110352, 0.05370355769991875, 0.008697633631527424, 0.16462981700897217, -0.2595202624797821, -0.43234390020370483, -0.6719907522201538, -0.055620014667510986, 0.3462384045124054, -0.6496297121047974, 0.12939225137233...
el.className == 'unselected') { var links = document.getElementsByTagName('a'); for (var i = links.length - 1; i >= 0; i--) { if (links[i].className == 'selected') links[i].className = 'unselected'; } el.className = 'selected'; } return false; } ``` This code you g...
[ -0.1291995793581009, 0.012677186168730259, 0.5544999837875366, -0.09218110144138336, 0.0970577821135521, -0.03688353672623634, 0.18037807941436768, -0.446503221988678, -0.06913676857948303, -0.861933171749115, -0.08754515647888184, 0.6613099575042725, -0.28916820883750916, 0.39781147241592...
change color, but dont link to anything, and then when I remove the script, they work fine. What am I doing wrong/what do I have to change to make this work? Also, I want to do the same thing somewhere else in my website, where the links are all in one `<div>` tag, separated by `<p>` tags. How can I make this work? Yo...
[ 0.4062020778656006, -0.1790732592344284, 0.5123175978660583, -0.0575701929628849, 0.1901029795408249, 0.05230902507901192, 0.3593464195728302, -0.27200204133987427, -0.1190563440322876, -0.886630117893219, 0.008884480223059654, 0.4365265667438507, -0.4959419071674347, 0.15943385660648346, ...
if (el && el.className == 'unselected') { var links = document.getElementsByTagName('a'); for (var i = links.length - 1; i >= 0; i--) { if (links[i].className == 'selected') links[i].className = 'unselected'; } el.className = 'selected';
[ -0.3874519169330597, -0.16020099818706512, 0.4053235650062561, -0.28296327590942383, 0.2871116101741791, -0.11215881258249283, 0.2975219488143921, -0.42087897658348083, 0.08218956738710403, -0.5322316884994507, -0.5983366370201111, 0.2890268862247467, -0.3175101578235626, 0.275453865528106...
} return false; } ``` I've also added a `return false;` at the end of the function to stop you going to '#'
[ 0.06933461874723434, 0.17052890360355377, 0.17830239236354828, -0.374753475189209, 0.059128787368535995, -0.05291302129626274, 0.6804824471473694, 0.1955965906381607, 0.07613053917884827, -0.13155248761177063, -0.5301355123519897, 0.7593382000923157, -0.27636849880218506, 0.222100153565406...
The company I work for has recently been hit with many header injection and file upload exploits on the sites we host and while we have fixed the problem with respect to header injection attacks, we have yet to get the upload exploits under control. I'm trying to set up a plug-and-play-type series of upload scripts to...
[ 0.8216599822044373, 0.37175050377845764, -0.039126571267843246, -0.16565392911434174, 0.10891078412532806, -0.2472897619009018, 0.1593467891216278, 0.1755232810974121, -0.033860448747873306, -0.5253134369850159, 0.11182235926389694, 0.6296373009681702, -0.1612206995487213, 0.17353221774101...
site for the last hour and found many different answers dealing with specific methods that rely on outside sources. What do you all think is the best script-only solution that is specific enough to use as a reliable method of protection? Also, I'd like to keep the language limited to PHP or pseudo-code if possible. **...
[ 0.5260269641876221, 0.1142110601067543, 0.30599677562713623, 0.19199010729789734, 0.040186069905757904, -0.4710686504840851, 0.48667654395103455, 0.2585451304912567, -0.1129436269402504, -0.5894123315811157, -0.00921157281845808, 0.6045646071434021, 0.008548115380108356, -0.180073082447052...
containing the uploaded files outside of the "web" environment and use a script to make them downloadable. In this way, even if somebody uploads a script it can not be executed by calling it from the browser and you don't have to check the type of the uploaded file.
[ 0.2818337678909302, 0.09863189607858658, 0.0965137928724289, 0.3655405044555664, -0.06844198703765869, -0.5759913921356201, 0.2454306036233902, 0.11873168498277664, -0.27196642756462097, -0.7943516969680786, -0.29991719126701355, 0.33526119589805603, 0.008996880613267422, 0.336407244205474...
I'm using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in `$(document).ready` . For example: ``` $(function() { $('div._Foo').bind("mouseover", function(e) { // Do something exciting }); }); ``` Of course, this works fine the first ...
[ 0.38050615787506104, -0.1398281753063202, 0.3212769627571106, -0.14953292906284332, 0.3490418791770935, -0.38238584995269775, 0.10356017202138901, -0.07949993759393692, -0.0001393752172589302, -0.5440338850021362, -0.02267598547041416, 0.7242870330810547, -0.26880887150764465, -0.208858326...
only on the first page load, but every time an UpdatePanel fires a partial page update? Should I be using the ASP.NET ajax lifecycle instead of `$(document).ready`? An UpdatePanel completely replaces the contents of the update panel on an update. This means that those events you subscribed to are no longer subscribed b...
[ 0.18859335780143738, 0.01972932368516922, 0.47568443417549133, 0.13920262455940247, -0.16109968721866608, -0.10865157097578049, 0.22146151959896088, -0.07643292099237442, -0.14902716875076294, -0.8159508109092712, -0.3073466718196869, 0.5481346845626831, -0.18475177884101868, -0.2817082107...
update. ``` $(document).ready(function() { // bind your jQuery events here initially }); var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(function() { // re-bind your jQuery events here }); ``` The `PageRequestManager` is a javascript object which is automatically available if a...
[ -0.08155054599046707, -0.1365366280078888, 0.8207957744598389, -0.07538765668869019, -0.08620815724134445, -0.24944764375686646, 0.14516198635101318, -0.2088525891304016, -0.15792393684387207, -0.8094908595085144, -0.45207861065864563, 0.7244139313697815, -0.382519394159317, 0.002939001424...
is the latest version of the documentation from Microsoft: [msdn.microsoft.com/.../bb383810.aspx](http://msdn.microsoft.com/en-us/library/bb383810.aspx) --- A better option you may have, depending on your needs, is to use jQuery's [`.on()`](http://api.jquery.com/on/). These method are more efficient than re-subscribi...
[ 0.19741687178611755, -0.062095727771520615, 0.8439896106719971, 0.1029287800192833, 0.06526364386081696, -0.30042070150375366, -0.14256791770458221, -0.2741105258464813, -0.26779666543006897, -0.6069273352622986, -0.42968037724494934, 0.5346559882164001, -0.046006739139556885, 0.2514910995...
The symptom of the problem looks like "[0m[27m[24m[J[34;1" which on a terminal translates into the color blue. -A The solution that is currently giving me some success is to redefine the shell function as an ansi term: ``` ;; shell-mode (defun sh () (interactive) (ansi-term "/bin/zsh")) ```
[ 0.020720474421977997, 0.0734700933098793, 0.09987480938434601, -0.5005376935005188, 0.4309399425983429, 0.035227883607149124, 0.34441298246383667, 0.29551321268081665, 0.025741394609212875, -0.8214730620384216, -0.33833619952201843, 0.645157516002655, -0.4427851438522339, 0.339304685592651...
In C++ I'd like to do something like: ``` int n = get_int_from_user(); char* matrix = new char[n][n]; matrix[0][0] = 'c'; //... matrix[n][n] = 'a'; delete [][] matrix; ``` but of course this doesn't work. What is the best way to do something similar? I've seen some solutions to this but they seem pretty messy. **...
[ -0.21781398355960846, -0.0028329906053841114, 0.48299747705459595, -0.22443242371082306, -0.08367065340280533, -0.12555156648159027, 0.2182575762271881, -0.29000842571258545, -0.15793488919734955, -0.41448646783828735, -0.3015645444393158, 0.6869059801101685, -0.551364004611969, -0.1045283...
matrix[row + col*width] = val; } ``` --- **Boost Matrix:** [Consider using boost::matrix](http://www.boost.org/doc/libs/1_36_0/libs/numeric/ublas/doc/matrix.htm) if you can have the dependency. You could then tie into the [boost linear algebra](http://www.boost.org/doc/libs/1_36_0/libs/numeric/ublas/doc/index.htm)...
[ 0.021332470700144768, 0.007451301906257868, 0.5723621845245361, -0.21514500677585602, -0.34974560141563416, 0.22259168326854706, -0.03513734042644501, -0.67217618227005, -0.37171727418899536, -0.23155230283737183, -0.20624981820583344, 0.6768932342529297, -0.4372707009315491, -0.2986716032...
a compiler. You cannot do this by default VC++ though. So in g++ this is valid code: ``` int width = 10; int height = 10; int matrix[width][height]; ``` Drew Hall mentioned that this C99 feature is called Variable Length Arrays (VLAs) and it can probably be turned on in any modern compiler.
[ 0.2653283178806305, -0.24565356969833374, 0.4524070918560028, -0.257357120513916, -0.1641416996717453, -0.27957841753959656, 0.16474436223506927, -0.1070236787199974, -0.3428267240524292, -0.3249671161174774, -0.14410562813282013, 0.5630500912666321, -0.4216693341732025, -0.165370002388954...
I'm trying to find some info on the best and most common RESTful url actions. for example, what url do you use for displaying the details of an item, for editing the item, updating, etc. ``` /question/show/<whatever> /question/edit/<whatever> /question/update/<whatever> (this is the post back url) /question/list (l...
[ 0.09977170825004578, -0.013928648084402084, 0.2544604539871216, 0.22755618393421173, -0.15945777297019958, -0.062498096376657486, 0.05924092233181, 0.21194449067115784, -0.21878944337368011, -0.5660209059715271, -0.1852925419807434, 0.567975640296936, -0.12013240158557892, -0.1278676688671...
information on a resource. To obtain a question resource: ``` GET /questions/<question> HTTP/1.1 Host: whateverblahblah.com ``` To list all question resources: ``` GET /questions HTTP/1.1 Host: whateverblahblah.com ``` **POST:** Used to create a resource. Note that the following is an error: ``` POST /questio...
[ 0.0623524971306324, 0.06552708894014359, 0.3546581268310547, 0.332654744386673, -0.0256932582706213, -0.07411012798547745, 0.12058567255735397, 0.08110324293375015, -0.13560453057289124, -0.5910242795944214, -0.3090749979019165, 0.10586116462945938, -0.11561790108680725, 0.1760927885770797...
of questions. You should do something like this to create a resource using POST: ``` POST /questions HTTP/1.1 Host: whateverblahblah.com ``` Note that in this case the resource name is not specified, the new objects URL path would be returned to you. **DELETE:** Used to delete the resource. ``` DELETE /questions...
[ 0.2874883711338043, 0.1634533703327179, 0.19570213556289673, 0.04459613189101219, -0.24977506697177887, 0.12490659952163696, 0.231120303273201, -0.025923237204551697, -0.33841466903686523, -0.5663179755210876, -0.2442607432603836, 0.24319498240947723, -0.3929523527622223, 0.257367759943008...
when they next do. --- **Using REST in HTML forms:** The [HTML5 spec defines GET and POST for the form element](http://www.w3.org/TR/2012/CR-html5-20121217/forms.html#attr-fs-method). > The method content attribute is an enumerated attribute with the following keywords and states: > > > * The keyword GET, mappin...
[ 0.16239365935325623, -0.17531761527061462, 0.7729063034057617, 0.20024371147155762, -0.15728461742401123, -0.3459468185901642, 0.28681761026382446, -0.4192958176136017, 0.05905987694859505, -0.726409912109375, -0.37944331765174866, 0.41043567657470703, 0.060586895793676376, -0.088262706995...
you use GET to read the data, so it will confuse matters if you decide to instead use READ. That said... **PATCH:** This is a method that was defined in a formal RFC. It is designed to used for when you wish to send just a partial modification to a resource, it would be used much like PUT: ``` PATCH /questions/<new_...
[ 0.6082821488380432, -0.40645650029182434, 0.30359140038490295, 0.20494340360164642, -0.20605003833770752, -0.08319132030010223, 0.2942925989627838, -0.07983214408159256, -0.23788230121135712, -0.7088853120803833, -0.28348010778427124, 0.46829861402511597, -0.23169539868831635, 0.0520378910...
In some my project I notice that during executing unit tests under VSTS2008 its VSTestHost's memory consuming grows. As I have very many tests in my solution it leads to OutOfMemroyException eventually. That looks very strange for me as I was sure that MSTest creates a new AppDomain for each unit test. Otherwise how wo...
[ 0.1032434031367302, -0.10974273830652237, 0.24185748398303986, 0.36392202973365784, -0.12561286985874176, -0.013708711601793766, 0.39847332239151, 0.000761965406127274, -0.42621561884880066, -0.6592829823493958, 0.15887391567230225, 0.32627832889556885, -0.24145488440990448, 0.474516183137...
through ProcessExpolorer and Performance snap-in. A value of "Total appdomain unloaded" is always 0 during test run. I don't think the unit test engine creates a new AppDomain for each test. Since creating an AppDomain is a relatively expensive operation, doing so for each test would slow down execution of unit tests c...
[ 0.003271439578384161, -0.19745077192783356, 0.4719838798046112, 0.07777949422597885, -0.42895272374153137, 0.1927156001329422, 0.3713076710700989, -0.2725638449192047, -0.2188526690006256, -0.6534087061882019, 0.08600520342588425, 0.5443753600120544, -0.21526698768138885, 0.208460822701454...
unit tests I would say that's a strong indicator that your code under test is actually not cleaning things up. Are you sure that you aren't retaining handles to unmanaged objects/memory? I would recommend running your unit tests under a Performance Analysis (you can do that by finding the unit test under the "Test View...
[ 0.4031577706336975, 0.056217242032289505, -0.19253161549568176, 0.3151533007621765, -0.13903020322322845, 0.028657663613557816, 0.4247785210609436, -0.13481076061725616, -0.34601080417633057, -0.7299333810806274, -0.01543375849723816, 0.5771254897117615, 0.3882673978805542, -0.084079399704...
I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running on IIS. I would like to switch to the development web server (Cassini) for debugging, so that I can use features like edit and continue. The reason that I'm not, is because the development web server only starts up when y...
[ 0.2930276393890381, 0.2080247551202774, 0.16985628008842468, -0.10227999836206436, -0.3436414301395416, -0.1898183971643448, 0.3117797374725342, -0.013082396239042282, -0.11829306930303574, -0.6908875703811646, -0.25870636105537415, 0.44582992792129517, -0.35133475065231323, 0.306314408779...
pain out of the whole "debug" effort... Check out a good snippet here on how to do this: <https://thoughtjelly.wordpress.com/2009/05/13/launch-cassini-from-the-command-line/>
[ 0.07487618178129196, 0.1794215440750122, -0.35893818736076355, -0.030374646186828613, -0.034223899245262146, 0.13469968736171722, 0.3357037305831909, -0.2707759439945221, -0.36694735288619995, -0.055906325578689575, -0.4950478971004486, 0.8194113969802856, -0.1685027778148651, 0.4217504262...
I have a C/C++ application and I need to create a X509 pem certificate containing both a public and private key. The certificate can be self signed, or unsigned, doesn't matter. I want to do this inside an app, not from command line. What OpenSSL functions will do this for me? Any sample code is a bonus! You'll need ...
[ 0.5998784899711609, 0.37631842494010925, 0.25651758909225464, 0.25449153780937195, -0.03037593513727188, -0.19969312846660614, 0.06630666553974152, -0.19844956696033478, 0.202087864279747, -0.3906140923500061, -0.04546530544757843, 0.358156681060791, 0.01609640195965767, 0.0099508818238973...
only supports separate storage of the key and the certificate - although you can then concatenate the two. In any case, you'll need to invoke 20+ different functions of the OpenSSL API to create a key and a self-signed certificate. An example is in the OpenSSL source itself, in [demos/x509/mkcert.c](http://www.opensou...
[ 0.11049529165029526, 0.24225755035877228, 0.2187345325946808, 0.1153242290019989, 0.2647140622138977, -0.3740578889846802, 0.2760453522205353, -0.45991843938827515, -0.3679278492927551, -0.2518811821937561, -0.32199031114578247, 0.296893447637558, -0.3186265826225281, 0.12363910675048828, ...
I am unlucky to be in charge of maintaining some old Yahoo! Store built using their RTML-based platform. Recently I've noticed that HTML code generated by some RTML functions is sprinkled all over with "padding images" (or whatever is the conventional name for those 1x1 pixel images used to enforce layout). I have not...
[ 0.3859318792819977, 0.3899535834789276, 0.41504716873168945, -0.26859182119369507, -0.2328026443719864, -0.40536627173423767, 0.09264824539422989, -0.053420793265104294, -0.08709631860256195, -0.6413821578025818, 0.06519316136837006, 0.5026299953460693, -0.41467028856277466, 0.143856793642...
Does anybody know a list of all RTML functions that generate HTML with all these "pad" images? 2. Is there any way to get rid of all those **alt="pad"** attributes without rewriting a lot of RTML code? **NB:** This may sound a little cynical, but improved accessibility is not the main goal here. The main goal is to st...
[ 0.4006609618663788, 0.3221282958984375, 0.44176143407821655, 0.3534364700317383, -0.3547821640968323, -0.3266312777996063, 0.4053123891353607, 0.316002756357193, -0.3623247444629669, -0.6863789558410645, 0.06109175458550453, 0.7319771647453308, -0.09581687301397324, -0.022577079012989998, ...
a prize for software products based on ``` commercial success ------------------ usability ``` ratio, this RTML-based "platform" would probably win the first place. --- *P.P.S. Apparently someone from Yahoo! finally listened, because I can no longer find those silly "pad" tags in the RTML generated for our sto...
[ 0.22862595319747925, 0.22951605916023254, 0.4233681261539459, 0.5496297478675842, -0.09495261311531067, -0.11217808723449707, -0.11088767647743225, -0.04478098079562187, -0.09784816950559616, -0.4165002107620239, 0.0739140436053276, 0.5576685667037964, 0.05381583422422409, 0.08307668566703...
do it. . . ``` TEXT PAT-SUBST s GRAB MULTI HEAD BODY
[ 0.17708241939544678, -0.20944789052009583, 0.646975040435791, 0.08537488430738449, 0.28946858644485474, -0.27442502975463867, 0.2817619740962982, -0.057959165424108505, -0.14706067740917206, -0.2866464853286743, -0.16302764415740967, 0.47471025586128235, -0.256448358297348, -0.521849691867...
TEXT @var-with-alt-tag-equals-pad-in-it frompat "alt=\"pad\"" topat "" ``` The above RTML will find all instances of alt="pad" and replace it with nothing.
[ -0.318563848733902, 0.10021457821130753, 0.8716183304786682, -0.28349941968917847, -0.24907884001731873, -0.3254321813583374, 0.31082355976104736, 0.04459472745656967, -0.0009732292382977903, -0.5797246098518372, -0.4685206115245819, 0.7898452877998352, -0.39655590057373047, -0.18027272820...
I'm a Lisp beginner. I'm trying to memoize a recursive function for calculating the number of terms in a [Collatz sequence](http://en.wikipedia.org/wiki/Collatz_conjecture) (for problem 14 in [Project Euler](http://projecteuler.net/index.php?section=problems&id=14)). My code as of yet is: ``` (defun collatz-steps (n) ...
[ -0.5224283337593079, 0.3425583839416504, 0.78468918800354, -0.27318915724754333, 0.02642705850303173, 0.031015731394290924, 0.4371397793292999, -0.2965396046638489, -0.11208171397447586, -0.40360337495803833, -0.2999458312988281, 0.2974829077720642, -0.2705162763595581, -0.1432415693998336...
2)) (n 2) (steps)) (loop for i from 1 to 1000000 do (setq steps (funcall m-collatz-steps i)) (cond ((> steps maxsteps) (setq maxsteps steps)
[ -0.255780428647995, -0.3059954047203064, 0.6451219320297241, -0.1855393648147583, 0.2539770007133484, 0.19537708163261414, 0.6384704113006592, -0.9027271866798401, -0.18773353099822998, -0.550666868686676, -0.27405688166618347, 0.46591323614120483, -0.3147551119327545, -0.31699877977371216...
(setq n i)) (t ()))) n)) (defun memoize (fn) (let ((cache (make-hash-table :test #'equal))) #'(lambda (&rest args) (multiple-value-bind (result exists) (gethash args cache) (if exists
[ -0.02237889915704727, -0.08068251609802246, 0.39319702982902527, -0.1980925053358078, 0.2451443374156952, 0.03332675248384476, 0.6425229907035828, -0.7288225293159485, -0.05835650488734245, -0.2362399399280548, -0.42305827140808105, 0.46945613622665405, -0.5666638612747192, 0.0805978924036...
result (setf (gethash args cache) (apply fn args))))))) ``` The memoize function is the same as the one given in the [On Lisp](http://lib.store.yahoo.net/lib/paulgraham/onlisp.pdf) book. This code doesn't actually give any speedup compared to the non-memoized version. I believe it'...
[ -0.3243735432624817, 0.08383951336145401, 0.5337138772010803, -0.2001025527715683, 0.0513114370405674, -0.19194310903549194, 0.4571095108985901, -0.48023533821105957, -0.19039663672447205, -0.47839638590812683, -0.2581411302089691, 0.733916699886322, -0.35821250081062317, -0.17028981447219...
Is there any way to have all calls to the original function call the memoized version itself, removing the need for the special m-collatz-steps symbol? EDIT: Corrected the code to have ``` (defvar m-collatz-steps (memoize #'collatz-steps)) ``` which is what I had in my code. Before the edit I had erroneously put:...
[ -0.5183053612709045, 0.028229501098394394, 0.44630715250968933, -0.22709767520427704, 0.029036886990070343, 0.1657124161720276, 0.5131760239601135, -0.5308418869972229, -0.16459332406520844, -0.3979324400424957, -0.41560235619544983, 0.659451425075531, -0.5666055083274841, -0.2055521160364...
perform the memoization (speedup from about 60 seconds to 1.5 seconds), but requires changing the original function. Is there a cleaner solution which doesn't involve changing the original function? I assume you're using Common-Lisp, which has separate namespaces for variable and function names. In order to memoize the...
[ -0.29168638586997986, -0.146286740899086, 0.6467392444610596, -0.017788270488381386, 0.20205682516098022, 0.036364782601594925, 0.6124720573425293, -0.6632372140884399, 0.10696692764759064, -0.6925885081291199, -0.4247482120990753, 0.69126957654953, -0.3745797872543335, -0.3952148556709289...
when (< my y) do (setf my y mx x)) mx)) ```
[ -0.015561096370220184, 0.056378595530986786, 0.5643085837364197, -0.29265832901000977, 0.22134245932102203, -0.07313001900911331, 0.3922303020954132, -0.04663630947470665, -0.005153474397957325, -0.25497961044311523, -0.6751115322113037, 0.5825643539428711, -0.4345052242279053, 0.200889006...
I am building a WPF application. Inside that application I am using the XmlReader class to parse several local XML files. The code I have written **works perfectly** during debugging, but fails once I publish the application and install it. I have the XML documents as CONTENT in build action, and I have them set to CO...
[ 0.6009578704833984, 0.24329780042171478, 0.5393756628036499, -0.2156897336244583, -0.14736463129520416, -0.19197724759578705, 0.3612470030784607, -0.4271658658981323, -0.06510558724403381, -0.6487507820129395, -0.0670475885272026, 0.6950667500495911, -0.31304407119750977, -0.16349561512470...
application without problem. It only fails on the local XML documents. Does anyone know why my XmlReader would fail to parse local XML documents once the application is published? Here is a small snippet of my XmlReader code for referance: ``` XmlReaderSettings settings = new XmlReaderSettings(); setting...
[ 0.0538950152695179, 0.363791286945343, 0.554363489151001, -0.0629408061504364, 0.07750649750232697, -0.17564436793327332, 0.7919158339500427, -0.18311026692390442, -0.23792608082294464, -0.7925345301628113, -0.0825258418917656, 0.7257850170135498, -0.40179190039634705, -0.08414289355278015...
{ settingsReader = XmlReader.Create("Resources/data/TriviaQuestions.xml", settings); nodeNum = 0; while (settingsReader.Read()) { switch (settingsReader.NodeType)
[ -0.2156423032283783, -0.4841838777065277, 0.7983870506286621, 0.05474432185292244, 0.42766767740249634, 0.04965633153915405, -0.052817441523075104, -0.14175985753536224, 0.016084499657154083, -0.7546736001968384, -0.1702909767627716, 0.8373458981513977, -0.14320850372314453, 0.105462133884...
{ case XmlNodeType.Element: if (settingsReader.HasAttributes)
[ -0.39148619771003723, -0.14971083402633667, 0.29466360807418823, 0.037189748138189316, 0.3700946867465973, 0.0871942937374115, -0.008429016917943954, -0.20141327381134033, 0.05076702684164047, -0.7232598066329956, -0.3980601131916046, 0.6319519281387329, -0.2127618044614792, -0.05557654052...
{ for (int i = 0; i < settingsReader.AttributeCount; i++) {
[ -0.2541647255420685, -0.21168620884418488, 0.6096422672271729, -0.24977676570415497, 0.3306954801082611, 0.29785090684890747, 0.26186805963516235, -0.36276882886886597, 0.13288931548595428, -0.5457547307014465, -0.2746279239654541, 0.8015748858451843, -0.1402532160282135, -0.08389353007078...
settingsReader.MoveToAttribute(i); _feeds[nodeNum] = settingsReader.Value.ToString(); }
[ 0.027237050235271454, -0.5656559467315674, 0.6280261278152466, -0.27312180399894714, 0.4881090819835663, 0.09659488499164581, 0.08269719779491425, -0.04488950967788696, -0.16445991396903992, -0.8596715331077576, -0.26423782110214233, 0.6983012557029724, -0.428628534078598, 0.18543767929077...
settingsReader.MoveToContent(); // Moves the reader back to the element node. } break; case
[ -0.6752350330352783, -0.46710723638534546, 0.5374458432197571, -0.009922971948981285, 0.6798509359359741, -0.023427264764904976, 0.10936135798692703, 0.05307171121239662, -0.19867801666259766, -0.6906629204750061, -0.684761106967926, 0.4166337549686432, -0.34880563616752625, 0.162646830081...
XmlNodeType.Text: _questions[nodeNum] = settingsReader.Value; nodeNum++; break;
[ -0.2440800964832306, -0.21579375863075256, 0.45880621671676636, 0.1545475870370865, 0.14220651984214783, 0.002411668887361884, 0.028140874579548836, -0.13772614300251007, -0.07401160895824432, -0.47922244668006897, -0.6710693836212158, 0.32485562562942505, -0.33494946360588074, -0.04196771...
} } settingsReader.Close(); } catch { } ``` Here is my XML ``` <?xml version="1.0" encoding="utf-8" ?> <Questions> <Question feed="http://entertainment.msn.com/rss/topboxoffice/">What movie has
[ 0.3798716366291046, -0.07174994051456451, 0.6886197328567505, -0.10126690566539764, 0.3638937473297119, -0.3590831458568573, -0.1235755980014801, -0.060575760900974274, -0.2569948732852936, -0.30371400713920593, -0.21253088116645813, 0.5563122034072876, 0.03432346507906914, 0.1233098953962...
the top box office sales in the US right now?</Question> <Question feed="http://entertainment.msn.com/rss/topdvdrentals/">What is the top DVD rental in the US this week?</Question> <Question feed="http://entertainment.msn.com/rss/topalbums/">Which of the following albums is currently topping the charts?</Questi...
[ 0.38952744007110596, 0.023865779861807823, 0.6333710551261902, 0.18008889257907867, 0.11529061198234558, -0.42287707328796387, -0.18841566145420074, 0.14678353071212769, -0.2753528952598572, 0.038782041519880295, -0.24186041951179504, 0.8210671544075012, 0.03336380794644356, 0.059981923550...
the setting for each xml file from data file to include. Your other files will already be set to include. Note that the publish settings are independent of the build settings for the file.
[ 0.4401542842388153, 0.0701013132929802, 0.4501444101333618, 0.04198043793439865, 0.27452191710472107, -0.3987649977207184, -0.1167702004313469, -0.23124462366104126, -0.08436985313892365, -0.678209662437439, -0.20272530615329742, 0.5167157053947449, 0.043733756989240646, -0.102166652679443...
In particular, I'm editing the AutoCompletion.plist file for CSSEdit (if that even matters). My question is, are there any characters withing the STRING elements that need to be escaped? spaces? quotes? EDIT: Just to be clear, I'm not using CSSEdit to edit the file - rather the file is part of the CSSEdit package. I'...
[ 0.17695632576942444, -0.04368028789758682, 0.24713550508022308, -0.04343117028474808, -0.3594035506248474, 0.3411393463611603, 0.18197886645793915, -0.3593146502971649, -0.5131800174713135, -0.5781469345092773, -0.28286921977996826, 0.21306903660297394, -0.7430552244186401, 0.0898790955543...
<string>serif</string> <string>sans-serif</string> <string>cursive</string> etc... ``` I'd like to add STRINGs with spaces and single quotes such as: ``` <string>Georgia, Times, 'Times New Roman', serif</string> ``` But CSSEdit goes haywire when I edit the file as such If you're editing an XML plist us...
[ -0.17860564589500427, -0.04114677757024765, 0.12649643421173096, -0.013411378487944603, 0.04973335191607475, 0.619964063167572, 0.400149405002594, -0.39715293049812317, -0.31320446729660034, -0.646358847618103, -0.32867005467414856, 0.12362881004810333, -0.5328916907310486, -0.176285326480...
Times, &apos;Times New Roman&apos;, serif</string>` You can also use a tool such as Apple's Property List Editor, which is included with their free [Xcode developer tools](http://developer.apple.com/technology/tools.html), or a third party product like [PlistEdit Pro](http://www.fatcatsoftware.com/plisteditpro), both ...
[ 0.08535937964916229, -0.13634458184242249, 0.23355448246002197, 0.1881209760904312, 0.15953727066516876, 0.486305832862854, 0.09079154580831528, -0.17097598314285278, -0.4204646944999695, -0.49169015884399414, -0.33463993668556213, 0.23615530133247375, -0.4586028754711151, -0.3156018555164...
``` function AddTheatres() { Services.AdminWebServices.AddTheatresSVC(oTheatres, OnSuccessTheatres, OnError, OnTimeOut); } function OnSuccessTheatres(result1) { Services.AdminWebServices.AddTicketPricesSVC(oTicketPrices, OnSuccessTicketPrices, OnError, OnTimeOut); //working } function OnSuccessTicketPrices(result...
[ 0.08048395067453384, 0.19952493906021118, 0.6144514679908752, -0.15767475962638855, 0.07068601995706558, 0.10101477056741714, 0.6155464053153992, -0.2439950406551361, -0.20814314484596252, -0.5914865732192993, -0.2266632616519928, 0.7908395528793335, -0.35804617404937744, 0.045669447630643...
The situation is somewhat like- ``` var someVar = some_other_function(); someObj.addEventListener("click", function(){ some_function(someVar); }, false); ``` The problem is that the value of `someVar` is not visible inside the listener function of the `addEventListener`, where it is probably being treated as a n...
[ 0.2057875543832779, 0.19047071039676666, 0.3433806300163269, -0.4652022123336792, -0.023808592930436134, -0.29138121008872986, 0.6206283569335938, 0.12550869584083557, -0.2862468957901001, -0.45385849475860596, -0.2221459597349167, 0.833318293094635, -0.2754204273223877, 0.4280683994293213...
more code that operates on the same `someVar` variable next to the call to `addEventListener`) ``` var someVar; someVar = some_other_function(); alert(someVar); someObj.addEventListener("click", function(){ some_function(someVar); }, false); ```
[ 0.3451577126979828, -0.2619866728782654, 0.4845859110355377, -0.3079465925693512, 0.09923247247934341, -0.06215282529592514, 0.49881118535995483, -0.02139296568930149, -0.25386232137680054, -0.43376126885414124, -0.4665795564651489, 0.9547975659370422, -0.5696728825569153, 0.17379365861415...
I have extensively used Prototype before and it helped us add considerable interactivity to our web applications. However we are looking at making the move to use jQuery in order to standardize on something better supported in Visual Studio. I understand that we can use the jQuery.noConflict to run it alongside Protot...
[ 0.594512939453125, 0.14868536591529846, -0.338435560464859, 0.20515680313110352, -0.42771920561790466, -0.14522409439086914, -0.12596574425697327, 0.18557025492191315, -0.21691542863845825, -0.7350635528564453, 0.5025737285614014, 0.559040904045105, -0.026020031422376633, 0.188459292054176...
heard of any such tool, and that I'd be really surprised if one actually existed. While I think jQuery is a great library, and that you're right to be wanting to only use one library, just remember that the cost of you changing over all your scripts is going to be many many hours of work. The cost of your users downlo...
[ 0.4309658706188202, -0.07010427862405777, 0.05530078709125519, 0.5490231513977051, -0.04954911023378372, -0.13459117710590363, 0.1520635187625885, 0.38978034257888794, -0.1377304047346115, -0.7417599558830261, 0.1540052890777588, 0.515131413936615, 0.4002349078655243, -0.05466746538877487,...
Is there a way to execute SQL custom functions with Enterpise Library? I've tried Database.ExecuteScalar() but for some reason it returns null. This is my function: ``` Database db = DatabaseFactory.CreateDatabase("ConnectionString"); DbCommand cmd = db.GetStoredProcCommand("FunctionName"); db.AddInParameter(cmd, "Va...
[ 0.03697427734732628, -0.035679351538419724, 0.25136998295783997, -0.07941806316375732, -0.12452392280101776, 0.15659110248088837, 0.42226263880729675, -0.35030701756477356, -0.14017322659492493, -0.7207638025283813, 0.14633847773075104, 0.549892246723175, -0.41527700424194336, 0.2904831469...
A common pattern in C++ is to create a class that wraps a lock - the lock is either implicitly taken when object is created, or taken explicitly afterwards. When object goes out of scope, dtor automatically releases the lock. Is it possible to do this in C#? As far as I understand there are no guarantees on when dtor i...
[ 0.689678966999054, -0.3186979293823242, 0.36504605412483215, -0.2386346012353897, -0.007181110326200724, -0.5302549004554749, 0.13242065906524658, -0.22462530434131622, -0.316226989030838, -0.32311660051345825, -0.3408980369567871, 0.6383934617042542, -0.5480881333351135, -0.01867679692804...
called return in the middle, threw exception or whatnot. Also, as far as I understand using will still only queue object for GC, not destroy it immediately... Your understanding regarding `using` is incorrect, this is a way to have scoped actions happen in a deterministic fashion (no queuing to the GC takes place). C...
[ 0.3384133577346802, -0.2952617406845093, 0.21659384667873383, 0.02190042845904827, -0.19996769726276398, -0.18002010881900787, -0.06707730889320374, 0.08745090663433075, -0.13384954631328583, -0.153859481215477, -0.24228310585021973, 0.3625243306159973, -0.46257802844047546, 0.288705766201...
What, if any, is the performance difference between the following two loops? ``` for (Object o: objectArrayList) { o.DoSomething(); } ``` and ``` for (int i=0; i<objectArrayList.size(); i++) { objectArrayList.get(i).DoSomething(); } ``` From Item 46 in [Effective Java](https://rads.stackoverflow.com/amzn/...
[ 0.07081255316734314, -0.16557316482067108, 0.11701677739620209, -0.3372735381126404, -0.1008077934384346, 0.20375338196754456, 0.33228984475135803, -0.7559691667556763, -0.26249757409095764, -0.4277680516242981, -0.16062943637371063, 0.44753867387771606, -0.6515217423439026, -0.00333504774...
doSomething(e); > } > > ``` > > When you see the colon (:), read it as > “in.” Thus, the loop above reads as > “for each element e in elements.” Note > that there is no performance penalty > for using the for-each loop, even for > arrays. In fact, it may offer a slight > performance advantage over an ordinary >...
[ 0.014696039259433746, -0.33765143156051636, 0.2994154691696167, -0.28180134296417236, 0.11025158315896988, -0.09936422854661942, 0.3909929692745209, -0.6650983691215515, -0.08367622643709183, -0.7745408415794373, 0.052382420748472214, 0.6048620343208313, -0.3645440936088562, -0.13990795612...
I currently don't know any thing about web services, except that they are used to allow an application to share its functions. * Where & how to start? * Does any book on web services work with me if I use PHP as my programming language? * Does anyone know any IRC channel for help? * Does anyone know of a directory for...
[ 0.38385239243507385, 0.1146702989935875, 0.15833570063114166, 0.15175268054008484, -0.024643203243613243, -0.19770903885364532, 0.32272979617118835, 0.08206094801425934, -0.2014450877904892, -0.7490515112876892, 0.3462769091129303, 0.4089944362640381, 0.2242027074098587, 0.0443971715867519...
get started *using* 3rd party APIs (like Amazon, Google, eBay, etc.). It has tons of example PHP code to get you started. [Pro PHP XML and Web Services](https://rads.stackoverflow.com/amzn/click/com/1590596331) is what you want if you're interested in *implementing* web services of your own using PHP.
[ 0.79329913854599, -0.03255477547645569, 0.000005716573468816932, 0.20855623483657837, 0.09051306545734406, -0.35692405700683594, 0.30865615606307983, 0.10897698253393173, -0.5213872194290161, -0.6402302384376526, -0.045573409646749496, 0.302362322807312, 0.11881802976131439, -0.11620663106...
I've written some C# code that checks whether a device is present on any SerialPort by issuing a command on the port and listening for a reply. When I just set the port speed, open the port, get the serial stream and start processing, it works 100% of the time. However, some of our devices work at different speeds and ...
[ 0.3234293758869171, 0.20843319594860077, 0.4409736096858978, 0.03318440541625023, 0.1676403284072876, -0.07091078162193298, 0.5014941096305847, -0.026019463315606117, -0.28409019112586975, -0.7138535380363464, -0.007716711610555649, 0.7817031145095825, -0.22229549288749695, 0.1267306655645...
30s per serial port, and there may be several. Hence the desire to probe all ports concurrently. Sometimes this works. Sometimes Vista bluescreens. When I use threads to probe all the ports simultaneously it nearly always bluescreens. When I force everything to run in one thread it never happens. A USB-serial Prolifi...
[ 0.47969868779182434, -0.11540678888559341, 0.21488747000694275, 0.05582769587635994, 0.08018963783979416, 0.07278125733137131, 0.3626253604888916, 0.22200946509838104, -0.46068528294563293, -0.7119554877281189, 0.16179338097572327, 0.7327960133552551, -0.3522537052631378, 0.013835617341101...
to overlapped I/O, inducing a race condition inside the driver. Since the driver executes in kernel mode, **BLAM!** Epilogue ======== Except for kicking off, don't use BeginXxx outside of the callback handler and don't call BeginXxx until you've called EndXxx, because you'll induce a race condition in driver code tha...
[ 0.16741357743740082, 0.030866891145706177, 0.33064186573028564, -0.00007857022865209728, -0.07280206680297852, -0.17172934114933014, 0.4246348738670349, -0.0020765874069184065, -0.16373391449451447, -0.3632667362689972, -0.07079987227916718, 0.7177093029022217, -0.372852087020874, 0.223098...
find a more up-to-date driver from the PL2302, then try that, but my recommendation is that if you have to use USB->Serial adaptors, the FTDI-based ones are the best. (They're *not* the one I wrote the drivers for, either...)
[ 0.23524872958660126, -0.09998437017202377, 0.20161312818527222, 0.5452150106430054, 0.0992594063282013, 0.018281565979123116, -0.204729363322258, 0.22912806272506714, -0.18819625675678253, -0.6758102774620056, 0.05350285768508911, 0.7467154264450073, -0.04086276516318321, -0.12494228780269...
I'm using [BizUnit](http://www.codeplex.com/bizunit "BizUnit") to unit-tests my Biztalk orchestrations, but some orchestrations consume a WebService,and testing these seems more like integration testing than unit testing. I'm familiar with using a mocking framework to mock the generated proxy objects, in order to test...
[ 0.5818149447441101, 0.2918891906738281, -0.17851637303829193, 0.14571747183799744, -0.48263683915138245, -0.11078993231058121, 0.24177983403205872, -0.31832563877105713, 0.012194279581308365, -0.4547099173069, 0.23422400653362274, 0.2119182050228119, -0.2814537286758423, 0.2298958450555801...
the 99% of your interfaces into BizTalk applications are message based and have a huge number of possible inputs, through to the opaque nature of orchestrations, BizTalk offers no real way of testing units of functionality as... well... units. For BizTalk, integration tests are sadly often the only game in town. That...
[ 0.2716216444969177, -0.03653103485703468, -0.24315039813518524, 0.2509395182132721, -0.0008769236737862229, 0.213619202375412, 0.33838778734207153, -0.18018881976604462, -0.31643080711364746, -0.5264576077461243, -0.07868704199790955, 0.3221884071826935, -0.48469337821006775, -0.1004843041...
given directory or sending an HTTPRequest to a BizTalk HTTPReceive location are all strictly speaking, testing integration. Now that I've gotten that rant out, what you are asking for is something I've been thinking about for a long time, the ability to create automated unit tests that give some real confidence that m...
[ 0.6385882496833801, -0.10239885002374649, 0.32566162943840027, 0.2556077241897583, 0.047366004437208176, 0.07440529018640518, 0.055410102009773254, -0.17271660268306732, -0.2472100704908371, -0.6974462866783142, 0.3006286025047302, 0.2723866403102875, -0.07997605949640274, 0.13920257985591...
this in isolation but never tried to but them all together in this specific form. So given the desire to mock a call to some external service (that may not even exist yet) without needing to actually make any external call **and** wanting to have the ability to set expectations for that service call and to specify the...
[ 0.3097476363182068, 0.06497489660978317, 0.39641842246055603, 0.19826729595661163, -0.28429099917411804, 0.3430066704750061, 0.20795314013957977, -0.34068331122398376, -0.10896723717451096, -0.7345436215400696, 0.20968730747699738, 0.7462142705917358, -0.2171594202518463, 0.087123610079288...
then specify properties for the adapter that allow it to behave as a mock of your webservice. The adapter would be similar in concept to a loopback adapter but would allow internal mocking logic. Things that you might want to include as adapter properties: * Expected document (perhaps a disk location that specifies a...
[ 0.3740892708301544, 0.004816187079995871, 0.44971567392349243, 0.20515163242816925, -0.06884002685546875, 0.13250832259655, 0.30666452646255493, -0.4738428294658661, -0.01815590262413025, -0.6257632970809937, -0.07214336842298508, 0.72905433177948, -0.16481676697731018, -0.2059850096702575...
disk and setup a BizUnit step to validate the file that was written out. Building a custom adapter is non-trivial, but possible, you can get a good start from the [BizTalk Adapter Wizard](https://web.archive.org/web/20220825235952/https://www.microsoft.com/nl-nl) and there is an article on deploying custom adapters [h...
[ 0.39861997961997986, -0.04497840255498886, 0.28214025497436523, 0.31316348910331726, -0.019830819219350815, -0.10778690874576569, -0.06384030729532242, -0.2874460518360138, -0.440722793340683, -0.5987531542778015, -0.18724296987056732, 0.9604982137680054, -0.25265732407569885, 0.0376678742...
probably simpler if you are happy having an http call, and setting up an IIS port to listen for your test. Initialising unit tests ----------------------- You can import binding files into a BizTalk application using a .bat file. If you make a new binding file for each test you run, as well as for your standard appl...
[ 0.5758745670318604, -0.11983519047498703, 0.057876117527484894, 0.2916826903820038, -0.11459003388881683, 0.10522954165935516, 0.050637077540159225, -0.5280213952064514, -0.06151067838072777, -0.7577647566795349, 0.17884594202041626, 0.6268737316131592, -0.4007859230041504, -0.077054195106...
binding settings based on settings in the test step and then ran the shell commands to update the bindings. Testing Message Contents ------------------------ A final thing that you might want to consider, to really tie all this together, is some way of testing the contents of messages. You could do this in your mock ...
[ 0.5319069623947144, -0.0460166409611702, 0.43839433789253235, 0.24262510240077972, -0.1857180893421173, -0.3320486843585968, 0.18264177441596985, -0.41096237301826477, -0.10408255457878113, -0.7320546507835388, 0.09408997744321823, 0.6978335380554199, -0.1603991985321045, -0.00728077860549...
inspection that xsd, so you can check things like "If element x contains this content, I expect element y to be present". If you built a custom pipeline that took a schematron schema as a parameter, you could then swap in a testing file for a specific unit test, validating that for this test, when you call the webserv...
[ 0.44961845874786377, -0.21890266239643097, 0.07885069400072098, 0.4152776300907135, -0.3244793713092804, -0.2794916331768036, 0.07952899485826492, -0.1268775463104248, -0.20106634497642517, -0.5880649089813232, 0.34671106934547424, 0.42497125267982483, -0.3126811981201172, -0.0316348038613...
Does anyone have a recommendation about web service security architecture in Java (preferably under JBoss)? Any recommended reading? I want to expose a fairly rich web service to the world but the data are sensitive and it requires authentication from the current client (Flex), accessed via RPC. I definitely do not wa...
[ 0.32331743836402893, 0.1786210834980011, 0.17043596506118774, 0.06512559950351715, -0.20622549951076508, -0.3887259364128113, 0.2706710994243622, -0.16039049625396729, -0.29216670989990234, -0.5592813491821289, -0.08140113204717636, 0.6496461629867554, 0.08548663556575775, -0.1192035302519...
How do I make all occurrences of a phrase (search term) in a file to be highlighted in the VS code editor? When you run a "find" you can click "bookmark all" which will identify on the left which lines the search terms occur on, but you can't "highlight" the elements using visual studio, out of the box.
[ 0.6171261072158813, 0.012742094695568085, 0.25637805461883545, 0.155354306101799, 0.019760292023420334, -0.22482989728450775, 0.33564549684524536, -0.26528796553611755, 0.01480670552700758, -0.6434906125068665, -0.030681714415550232, 0.5719360709190369, -0.10918720066547394, 0.087598890066...
Is there a way of getting the websites absolute URL (<http://www.domain.com/>) using Java? because I've googled a bit but I only come across with having to make 2 or 3 classes to create that function =/ ### Update: The thing is I am trying to create a crawler that will give me some information and among that I'd like...
[ 0.5014538168907166, 0.10988869518041611, 0.24953337013721466, 0.1169276311993599, -0.29116132855415344, -0.10878107696771622, 0.24058236181735992, 0.600481390953064, -0.19797281920909882, -0.7283100485801697, 0.14139480888843536, 0.25156232714653015, -0.20299221575260162, 0.231028780341148...
because I know it can be done but I've only done it writing a whole other class to retrieve the url and then inherit it and use it further...hope it made it clearer I'm assuming you just want the domain from a JSP, however you may find you need the entire URL including the prefix, domain, path and parameters. The easie...
[ 0.3137943744659424, -0.009492216631770134, 0.4535951018333435, 0.06855644285678864, -0.38950076699256897, -0.3480664789676666, 0.1342831701040268, -0.13190560042858124, -0.18029682338237762, -0.7327465415000916, -0.1612190157175064, 0.41441473364830017, -0.1542026549577713, 0.1961990445852...
I am writing a footer div that displays info from the database. The footer has a different background color than the rest of the page, and will have a height that depends on how much content the database throws to it. When I generate the content with php and call for a border around the footer div, the content appears ...
[ 0.4513354003429413, 0.1397252231836319, 0.7624062299728394, 0.11580994725227356, -0.011040409095585346, -0.006710076238960028, 0.04400705546140671, -0.2945730686187744, -0.004823116585612297, -0.5903884172439575, 0.13172583281993866, 0.2619064748287201, -0.08941622823476791, -0.11666734516...
$tasks=mysql_query("select stuff from the db"); while($row=mysql_fetch_assoc($tasks)){ extract($taskrow); $an_array[]=$task; } $an_array=array_chunk($an_array,4); foreach($an_array as $dtkey=>$dtval){ echo "<dl>"; foreach($dtval as $dtvkey=>$dtvval){ ec...
[ 0.06948118656873703, -0.08118173480033875, 0.23433838784694672, -0.5766128897666931, -0.22368057072162628, 0.3369803726673126, 0.5344615578651428, -0.8922474980354309, -0.17109066247940063, -0.31407806277275085, -0.4250977635383606, 0.3405391573905945, -0.38831084966659546, 0.1207648739218...