text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
currentDt.get(Calendar.ERA), currentDt.get(Calendar.YEAR), currentDt.get(Calendar.MONTH), currentDt.get(Calendar.DAY_OF_MONTH), currentDt.get(Calendar.DAY_OF_WEEK), currentDt.get(Calendar.MILLISECOND)); // convert to hours gmtOffset = gmtOffset / (60*60*1000); System.out.println("Current User's...
[ 0.07061897218227386, -0.12563437223434448, 0.8328300714492798, -0.08278266340494156, 0.23544931411743164, 0.3144587576389313, 0.10707394033670425, -0.2648084759712219, -0.3041708171367645, -0.5292444229125977, -0.4251127243041992, 0.4731077253818512, -0.10338377952575684, 0.2646504342556, ...
5/1/2008 6:12PM (EST) Current User's TimeZone: EST Current Offset from GMT (in hrs):-4 (Normally -5, except is DST adjusted) TS from ACP: 2008-05-01 14:12:00.0 Calendar Date converted from TS using GMT and US\_EN Locale: 5/1/08 6:12 PM (GMT)
[ -0.05136290192604065, 0.22294647991657257, 1.1961239576339722, 0.2998686730861664, 0.14595076441764832, 0.07214392721652985, 0.36194130778312683, 0.07832798361778259, -0.08006483316421509, -0.44842368364334106, -0.1780378520488739, 0.46720507740974426, 0.05059698224067688, 0.13606189191341...
I am trying to aid another programmer with a page called Default.aspx with a code-behind section, and unfortunately I am at a bit of a loss. ``` Partial Class _Default Inherits OverheadClass 'A bunch of global variables here' Private Sub page_load(ByVal sender As Object, ByVal e As System.Eventarts) Handles Me.Lo...
[ -0.13727790117263794, 0.09019507467746735, 0.4832592308521271, 0.02519792690873146, -0.22274261713027954, 0.00274644885212183, 0.10414525866508484, -0.08946331590414047, -0.1495700627565384, -0.911428689956665, -0.11691917479038239, 0.6095674633979797, -0.0991264060139656, 0.17886105179786...
that I am missing. Edit: I forgot to note that we write in VB, and not C# as many of you are used to for ASP. You should be able to override the OnLoad and call the base class's OnLoad first, then your class, for example: C# Version ``` protected override void OnLoad(EventArgs e) { base.OnLoad(e); // Do som...
[ 0.22074325382709503, -0.08834819495677948, 0.19403238594532013, -0.19413360953330994, 0.22810256481170654, -0.29966631531715393, 0.3542602062225342, -0.09475601464509964, -0.34344246983528137, -0.46181607246398926, -0.41387197375297546, 0.6659939885139465, -0.33710116147994995, 0.252608001...
I know that you can run almost all Java in *Dalvik's VM* that you can in *Java's VM* but the limitations are not very clear. Has anyone run into any major stumbling blocks? Any major libraries having trouble? Any languages that compile to Java byte code (**Scala**, **Jython** etc...) not work as expected? There is a nu...
[ 0.37193647027015686, 0.20297418534755707, -0.04803626611828804, 0.019721753895282745, -0.1926189810037613, -0.2437569946050644, 0.3430284261703491, -0.03972784802317619, -0.3705484867095947, -0.6446452736854553, 0.28001168370246887, 0.43473443388938904, -0.36671456694602966, 0.095611251890...
some bytecode and then use classloader to load it for you, if that trick works on your normal machine, it is guaranteed to not work on Dalvik, unless you change your bytecode generation. That prevents you from using certain dependency injection frameworks, most known example being Google Guice (though I am sure some p...
[ 0.15662260353565216, 0.04027335345745087, 0.08365533500909805, -0.1464778035879135, -0.20606915652751923, -0.24552525579929352, 0.451154887676239, 0.24715161323547363, -0.08127451688051224, -0.46955254673957825, -0.06224863603711128, 0.6296823620796204, -0.45743614435195923, -0.35648626089...
runtime can be converted to Dalvik and should work. I know people did run Jython on Android and it worked ok. Other thing to be aware of is that there is **no just in time compilation**. This is not strictly Dalviks problem (you can always compile any bytecode on the fly if you wish) but that Android does not support ...
[ 0.17091524600982666, -0.04293399676680565, 0.20387670397758484, 0.054370902478694916, -0.2278122752904892, -0.1400446593761444, 0.5413581728935242, 0.04883222654461861, -0.23204362392425537, -0.8885834217071533, 0.06193489581346512, 0.5720062255859375, -0.331991970539093, -0.34280997514724...
near the top of the code i see things like, btn\_dropdown.\_visible = false; mcMenuBkg.\_visible = false; but I can't find these assets anywhere in the library or in any code, how does this make any sense? The movie clips in the library that look the same have different names and I can delete them entirely and they...
[ 0.587163507938385, -0.015872927382588387, 0.07678094506263733, 0.37603703141212463, 0.35200783610343933, -0.21844637393951416, -0.14541016519069672, -0.024544615298509598, -0.605965256690979, -0.32463404536247253, 0.1249711737036705, 0.6663934588432312, -0.06027474254369736, 0.471726447343...
in whatever contents you like with the drawing API. However, if you see clips in the library that are similar to what's showing up at runtime, then it's very unlikely that that's happening. Your first step should probably be another look through the library. Remember that instance names don't have to be the same as MC...
[ 0.47925564646720886, -0.17159855365753174, 0.21089589595794678, 0.4884212911128998, -0.02298985980451107, -0.23067495226860046, 0.010940135456621647, 0.0951826274394989, -0.8353122472763062, -0.6873147487640381, -0.19297672808170319, 0.4993566572666168, -0.0334416925907135, 0.2773407101631...
imported via runtime sharing. If feasible, try moving your SWF to a temp directory and running it from there; that should break all loads (unless contents are loaded from a remote URL). Or, you're looking at the wrong clips in the library. If it's a crufty project there may be unused stuff in there. Try expanding the ...
[ 0.8150023818016052, -0.28545570373535156, 0.421408474445343, 0.08056915551424026, 0.18647083640098572, -0.24093498289585114, -0.16224774718284607, -0.10026564449071884, -0.3745651841163635, -0.429094523191452, -0.11492431908845901, 0.46190929412841797, -0.40118804574012756, -0.079655550420...
child of something that is. Clips with a use count of 0 may still be used if they have a linkage ID; they could be created at runtime with `attachMovie()`. However, for any clip with a use count of 0 and no linkage id, it's safe to assume that it's unused, and irrelevant to what happens at runtime. If none of that hel...
[ 0.4475512206554413, -0.08472179621458054, 0.2847984731197357, 0.23391100764274597, 0.5330548882484436, 0.24763289093971252, 0.06299082189798355, 0.014899385161697865, 0.20938462018966675, -0.54344642162323, -0.022300960496068, 0.5088381767272949, 0.06955064088106155, 0.44691938161849976, ...
SWF you're checking is the same one being published. And just for grins, open up the "Scenes" panel and make sure that some diabolical fiend hasn't put important content on a separate scene where no sane man would look for it. Vague answer for a vague question. :D Hope it helps...
[ 0.4199783205986023, 0.04764757677912712, 0.6867011785507202, 0.3511517345905304, 0.03728123754262924, -0.4403287172317505, 0.27371472120285034, 0.2881043553352356, -0.18858163058757782, -0.3607690930366516, -0.17536631226539612, 0.2835189402103424, -0.1323489546775818, -0.0674162283539772,...
Exception is: 'Country' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value ``` UserService.DsUserAttributes dsCountry = us_service.GetUserAttributeDropDown(systemId, "Country"); Country.DataSource = dsCountry.tblDropDownValues; Country.DataTextField = "AttrValue...
[ -0.19835618138313293, 0.04888187348842621, 0.491665244102478, 0.35877561569213867, 0.20934271812438965, -0.15137191116809845, 0.49694204330444336, -0.09486431628465652, -0.6127133965492249, -0.43486693501472473, -0.5614440441131592, -0.10442948341369629, -0.178865447640419, 0.5719457268714...
Country eefa1387-8dc0-11d8-975f-13da67a41a5d CANADA Country ``` Every time I got this error it was because the keys I was matching on to bind my data didn't match. The lines you showed may not be the problem. Look into when you are possibly loading a record from another table and binding their values into...
[ 0.5577039122581482, 0.2086106240749359, 0.3842812478542328, 0.47594162821769714, 0.25792840123176575, -0.07879491150379181, 0.30104532837867737, 0.26577362418174744, -0.7967185378074646, -0.5242422819137573, 0.14635959267616272, -0.3591655492782593, -0.447006493806839, 0.32607269287109375,...
on the page where a user can select which record from another table they want to edit. Let's say this record contains Information like Name, Phone #, and Country, and its all stored in another table UserTbl. When the form is attempting to bind its data from UserTbl, it is trying to set your Country DropDownList equal t...
[ 0.2605310082435608, 0.2271236777305603, 0.42130276560783386, 0.30049580335617065, 0.07068891823291779, -0.29022708535194397, -0.010216395370662212, -0.018976550549268723, -0.6586301922798157, -0.5324572920799255, 0.11354906857013702, 0.12393302470445633, -0.3084278404712677, 0.408496081829...
any of your values in the Country Dropdown. Look into your database tables and see if you have any CountryIds in your "UserTbl" that don't match any of the ContryIds in your "CountryTbl".
[ 0.2642802894115448, -0.17380961775779724, 0.5425834059715271, 0.4897940158843994, 0.29209864139556885, -0.32852303981781006, 0.31794267892837524, 0.2439100444316864, -0.5976516604423523, -0.4168553352355957, 0.05213502049446106, 0.43356919288635254, -0.17473146319389343, 0.0490015149116516...
I am trying to get center of parent form, not center of screen behavior. Passing in the parent form seems to only control the ownership of the window. These classes are sealed, so I do not see how I can do any WinProc tricks. Rewriting the classes is not an appealing option. Any other ideas? As HTH explained above, the...
[ 0.42599165439605713, 0.08741071820259094, 0.3196094036102295, 0.08502564579248428, 0.05093175172805786, -0.1824679672718048, 0.24492621421813965, 0.30654871463775635, 0.04628072679042816, -0.8708314299583435, 0.07564225792884827, 0.37546759843826294, -0.14390012621879578, 0.261923730373382...
it's a good place to start. [CodeProject CenterDialog](http://www.codeproject.com/KB/dialog/CenterDialog.aspx) Hope this helps.
[ 0.768674910068512, 0.08326632529497147, 0.2731839716434479, 0.09617378562688828, 0.46323472261428833, -0.2588173747062683, -0.09249846637248993, 0.5756146907806396, -0.18868426978588104, -0.6481530070304871, 0.06949403136968613, -0.13310043513774872, 0.3790050148963928, -0.157219797372818,...
My company is a custom development shop for a number of projects, some larger and some smaller. Currently we handle all of our client communication through email. So we email a design doc, they mark it up and send it back. Then we roll out a beta version of their product and they email us with any bugs, new features, e...
[ 0.9974619150161743, 0.26691558957099915, 0.07378849387168884, -0.1522209346294403, 0.1091020330786705, 0.36004793643951416, 0.12199114263057709, 0.3757043778896332, -0.09328033775091171, -0.6731454730033875, 0.3398779332637787, 0.388290137052536, -0.006401993799954653, 0.001899167313240468...
that would provide better tracking of feature requests and client submitted bugs as well as communicate our responses back to the client. If anyone is aware of a a bug tracking system that does this exceptionally well I'd be interested to hear of that. Otherwise I'm just looking for some general guidelines or good bus...
[ 0.8741693496704102, 0.06730576604604721, 0.1964605152606964, 0.17126794159412384, 0.1659076064825058, -0.15725702047348022, -0.048812590539455414, 0.1343875229358673, -0.19807155430316925, -0.5722633004188538, 0.08324656635522842, 0.7276928424835205, 0.1557760089635849, -0.2115028202533722...
Team Foundation Server to handle this or emails back and forth? Although I know of no specific tools (at least no open source ones), I suggest that you setup a system which will cover your overall requirements gathering and implementation process. Requirements could be tracked in the system, which would also contain th...
[ 0.410043865442276, -0.11748753488063812, -0.023920686915516853, 0.2641679048538208, -0.021468769758939743, -0.3224484920501709, 0.1409674733877182, -0.3977850377559662, -0.17521363496780396, -0.7196566462516785, 0.23156963288784027, 0.46443629264831543, -0.02861805632710457, -0.45549723505...
management system, you would additionally ease your development process/requirements tracking.
[ 0.04497921094298363, 0.12049024552106857, 0.17395266890525818, 0.4296215772628784, 0.40974465012550354, -0.07670880109071732, 0.1340467780828476, -0.25382259488105774, -0.25418269634246826, -0.8873279690742493, -0.14539791643619537, 0.6465381979942322, 0.23589631915092468, -0.1141626164317...
I see Oracle procedures sometimes written with "AS", and sometimes with "IS" keyword. ``` CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **AS** ... ``` vs. ``` CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **IS** ... ``` Is there any difference between the two? -...
[ 0.6062439680099487, 0.034581106156110764, -0.1193188726902008, -0.12951017916202545, -0.27180248498916626, -0.1832205355167389, 0.19204391539096832, -0.21233205497264862, -0.06837685406208038, -0.25579458475112915, -0.15299992263317108, 0.7633247375488281, -0.44952306151390076, 0.010031931...
I want yo use the EXSLT - DYN:EVALUATE in a style sheet. I have added the names pace but I don't know where the .xsl file I need to import is. I don't believe I have XALAN installed to point the import to. How would I install this? Once installed and I point it to the .xsl will it pick up the function and apply it? I a...
[ 0.5228621959686279, 0.24868060648441315, 0.34157198667526245, 0.07624193280935287, -0.1907694935798645, 0.1619195193052292, 0.12514039874076843, 0.16178222000598907, 0.06787928938865662, -0.7726605534553528, 0.1966463178396225, 0.8092848658561707, -0.3653194308280945, -0.15384674072265625,...
just need to declare the namespace. I'll give a small example: *input.xml*: ``` <root> <foo>I am foo</foo> <bar>I am bar</bar> </root> ``` *dyn\_evaluate.xsl*: ``` <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic" extension-elem...
[ 0.15909405052661896, 0.30170008540153503, 0.6680173277854919, -0.2787086069583893, -0.0378555990755558, 0.06587480008602142, 0.17477913200855255, -0.5759211778640747, 0.06182381510734558, -0.6313539147377014, -0.22269777953624725, 0.4430513083934784, -0.19467377662658691, -0.05009796097874...
One of my developers has started using RegexBuddy for help in interpreting legacy code, which is a usage I fully understand and support. What concerns me is using a regex tool for writing new code. I have actually discouraged its use for new code in my team. Two quotes come to mind: > **Some people, when confronted wi...
[ 0.4690452516078949, 0.3326459527015686, -0.3429246246814728, 0.10980188101530075, -0.17776437103748322, -0.16450129449367523, 0.6924646496772766, -0.005914151202887297, -0.13665993511676788, -0.6256081461906433, -0.13334280252456665, 0.5231836438179016, -0.09887158125638962, -0.00375475711...
as possible, you are, by > definition, not smart enough to debug > it.** - Brian Kernighan My concerns are (respectively:) * That the tool may make it possible to solve a problem using a complicated regular expression that really doesn't need it. (See also [this question](https://stackoverflow.com/questions/230304...
[ 0.22006608545780182, 0.2362619936466217, -0.013015512377023697, -0.13702036440372467, 0.1247606948018074, -0.031249357387423515, 0.475248783826828, 0.0716104507446289, -0.31432345509529114, -0.13199640810489655, -0.3867688775062561, 0.8480825424194336, -0.2096748799085617, -0.0718946829438...
being paranoid? Poor programming is rarely the fault of the tool. It is the fault of the developer not understanding the tool. To me, this is like saying a carpenter should not own a screwdriver because he might use a screw where a nail would have been more appropriate.
[ 0.7547008395195007, 0.3004454970359802, -0.17224550247192383, 0.2927372455596924, 0.18052072823047638, -0.16079355776309967, 0.56743985414505, 0.05094809830188751, 0.06442800909280777, -0.2696056365966797, 0.5372936725616455, 0.7269332408905029, -0.29822295904159546, -0.13464798033237457, ...
If not, is [smoke testing](http://en.wikipedia.org/wiki/Smoke_test#Smoke_testing_in_software_development) still used? It's sort of a Venn Diagram. Some Automated tests are Smoke tests, and some smoke tests are Automated (inasfar as they are ran by a computer program). A Smoke test is a take off (if I recall correctly) ...
[ 0.8237817883491516, 0.11390139162540436, -0.04408980533480644, 0.09540808945894241, 0.21993125975131989, -0.49653080105781555, 0.3540365993976593, -0.43337365984916687, 0.11926240473985672, -0.22744853794574738, -0.10862284153699875, 0.553376317024231, -0.08594907075166702, -0.121415644884...
-- in places I've worked, it's usually automated.
[ 0.7549166083335876, 0.3608161509037018, -0.017210138961672783, 0.19771920144557953, 0.36388781666755676, -0.1593218296766281, -0.27753427624702454, 0.4367395341396332, -0.28280168771743774, -0.3078065812587738, -0.09834273159503937, 0.6581869721412659, 0.16617168486118317, 0.10099182277917...
Assume that I set up an [automatic nightly build](https://stackoverflow.com/questions/204603/nightly-builds-why-should-i-do-it). What artifacts of the build should I save? For example: * Input source code * output binaries Also, how long should I save them, and where? Do your answers change if I do Continuous Integ...
[ 0.47744014859199524, 0.034005243331193924, 0.1358816772699356, -0.14040465652942657, 0.20436522364616394, -0.1600307822227478, 0.3597980737686157, -0.2380468100309372, -0.168511763215065, -0.5861433744430542, -0.04839068651199341, 0.8124841451644897, 0.08903887122869492, -0.235495701432228...
snapshot of your environment: + compiler version + build tool version + libraries and dll/libs versions + database version (client & server) + ide version + script interpreter version + OS version + source control version (client and server) + versions of other tools used in the process and everything else tha...
[ 0.5877450704574585, 0.4773713946342468, 0.18618857860565186, -0.027465038001537323, -0.07256872951984406, -0.11706370860338211, 0.19003470242023468, -0.028927819803357124, -0.07884719967842102, -0.8313135504722595, -0.10783904790878296, 0.7414282560348511, -0.15031000971794128, -0.06864003...
I can redo my build #6547 and end up with the exact same result I got the first time?" Your answer is what you should keep at each build and it will be a subset or superset of the things I already mentioned. You can store everything in your SCM (I'd recommend a separate repository), but in this case your question on ...
[ 0.7448866963386536, 0.09697166085243225, 0.19857043027877808, 0.4548995792865753, 0.33808887004852295, -0.0027939239516854286, 0.002093295333907008, -0.20651066303253174, -0.40493953227996826, -0.4113214313983917, -0.0853298082947731, 0.3837578296661377, -0.029661618173122406, 0.1998763531...
you might need them. How long, will depend on your development team pace and your release cycle. And no, I don't think it changes if you do continous integration.
[ 0.3530005216598511, 0.03877931088209152, 0.0950523316860199, 0.41430172324180603, 0.5107020139694214, 0.1595282107591629, -0.12417703121900558, 0.14028677344322205, -0.16336272656917572, -0.7804811000823975, 0.23720169067382812, 0.5907959342002869, 0.0370839387178421, -0.19188202917575836,...
On our live/production database I'm trying to add a trigger to a table, but have been unsuccessful. I have tried a few times, but it has taken more than 30 minutes for the create trigger statement to complete and I've cancelled it. The table is one that gets read/written to often by a couple different processes. I ha...
[ 0.8765251040458679, 0.26989203691482544, 0.11261913925409317, -0.25533443689346313, 0.18090249598026276, -0.25698915123939514, 0.3374671936035156, 0.008416895754635334, -0.17156827449798584, -0.6399257779121399, 0.18291901051998138, 0.5117408037185669, -0.32400891184806824, 0.1627310663461...
statement itself. The create trigger statement was successful and quick in a test environment, and the trigger works correctly when rows are inserted/updated to the table. Although when I created the trigger on the test database there was no load on the table and it had considerably less rows, which is different than o...
[ 0.40457063913345337, 0.07552031427621841, 0.26746827363967896, -0.2772074341773987, -0.013060279190540314, 0.09023226052522659, 0.228604257106781, -0.47724267840385437, 0.06569195538759232, -0.36141136288642883, -0.06423640996217728, 0.5339432954788208, -0.3419356346130371, -0.002347363857...
/* do some stuff including for each row updated call a stored procedure that increments a value in table based on the UserId of the updated row */ END END ``` Can there be issues with creating a trigger on a table while rows are being updated or if it has many rows? In SQLServer triggers a...
[ 0.26134684681892395, -0.04066973179578781, 0.07214948534965515, 0.08032947778701782, 0.12482231110334396, -0.22919371724128723, 0.27844157814979553, -0.1279127150774002, -0.3759935796260834, -0.4184515178203583, 0.02145472913980484, 0.681362509727478, -0.40762853622436523, -0.1880058497190...
problem may not be in the table itself, but in the system tables that have to be updated in order to create the trigger. If you're doing any other kind of DDL as part of your normal processes they could be holding it up. Use sp\_who to find out where the block is coming from then investigate from there.
[ 0.5479575395584106, 0.10056435316801071, 0.3986774682998657, 0.13456805050373077, -0.1629161387681961, -0.2276284396648407, 0.11913884431123734, -0.1672118604183197, -0.6317319273948669, -0.3356020152568817, 0.11210335046052933, 0.3712657392024994, -0.38496482372283936, 0.159729465842247, ...
I need a tool to execute XSLTs against **very large** XML files. To be clear, I don't need anything to design, edit, or debug the XSLTs, just execute them. The transforms that I am using are already well optimized, but the large files are causing the tool I have tried (Saxon v9.1) to run out of memory. I found a good s...
[ 0.13878865540027618, 0.0689307153224945, 0.12258932739496231, 0.049685295671224594, -0.2991086542606354, -0.1592012643814087, 0.1853586882352829, -0.32765012979507446, 0.1363528072834015, -0.6743409633636475, 0.05335421860218048, 0.7021507620811462, -0.19637154042720795, 0.0356991104781627...
tried.
[ 0.3456348180770874, 0.6414725184440613, -0.437585711479187, 0.4154262840747833, -0.08942315727472305, 0.38106295466423035, 0.7294740080833435, -0.04059275984764099, 0.04146958515048027, -0.46993735432624817, -0.054772429168224335, 0.5844281315803528, 0.028553098440170288, 0.188248738646507...
I'm creating a table that looks something like this. ``` CREATE TABLE packages ( productCode char(2) , name nvarchar(100) , ... ) ``` How do I make sure the productCode is always one of two values `XJ` or `XD`? ``` ALTER TABLE packages ADD CONSTRAINT constraintname CHECK (productCode in ('XJ', 'XD')) ```
[ 0.13338690996170044, 0.3376469314098358, 0.3005305826663971, -0.20541346073150635, 0.12199170887470245, 0.012411349453032017, -0.038025688380002975, -0.34398263692855835, -0.21158955991268158, -0.7866799831390381, -0.13012424111366272, 0.4705800712108612, -0.5904994606971741, -0.0667217820...
I've seen this format used for comma-delimited lists in some C++ code (although this could apply to any language): ``` void function( int a , int b , int c ) ``` I was wondering why would someone use that over a more common format such as: ``` void function (int a, ...
[ 0.21522879600524902, -0.017373109236359596, 0.257791668176651, -0.0762869194149971, -0.24508820474147797, -0.18451020121574402, -0.20361703634262085, 0.0066545987501740456, -0.6737627983093262, -0.31585657596588135, -0.3123862147331238, 0.2495608925819397, -0.5720441937446594, -0.015031678...
b, int c ) ``` That's a pretty common coding style when writing SQL statements: ``` SELECT field1 , field2 , field3 -- , field4 , field5 FROM tablename ``` Advantages: * Lets you add, remove, or rearrange fields easily without having to worry about that final trailing ...
[ 0.24176517128944397, 0.3125389516353607, 0.09649097174406052, -0.2064167857170105, -0.3032730221748352, 0.05835239216685295, 0.1044670045375824, -0.021089280024170876, -0.11493347585201263, -0.20495231449604034, -0.23737427592277527, 0.36102157831192017, -0.36895665526390076, -0.1241943389...
think you'd want to rearrange parameter order in a function as frequent as you do in SQL, so maybe its just somebody's habit. The ability to comment one of them out will depend on the specific language being used. Not sure about C++. I know that VB.Net wouldn't allow it, but that's because it requires a continuation c...
[ 0.4902716875076294, 0.03226253017783165, -0.03506278991699219, 0.02873913012444973, -0.05869262292981148, 0.043306585401296616, 0.11853846162557602, 0.43756452202796936, -0.5169769525527954, -0.04021817073225975, 0.16171343624591827, 0.6287128329277039, -0.2943258583545685, 0.0371820479631...
Visual Studio does it; Reflector does it; and now I want to as well :) I want to retrieve the XML documentation for some members in some framework assemblies (i.e. `mscorlib.dll`, `System.dll`, etc). I assume this would involve: * finding the XML file for the assembly, * navigating to the appropriately named child el...
[ 0.4572461247444153, -0.09163197875022888, 0.34706810116767883, -0.14036832749843597, -0.29742980003356934, -0.15554888546466827, 0.0016094314632937312, 0.04816514626145363, -0.3399958312511444, -0.7649153470993042, -0.13809175789356232, 0.39818862080574036, -0.187224343419075, -0.114982269...
itself doesn't contain .xml files. Users do not need API documentation. Location is a bit more complex. It can be side by side with the dll, in the subdirectory named after current locale (e.g. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en) or even in some weird directory nearby. I would suggest searching for it i...
[ 0.17652934789657593, 0.05738874897360802, 0.5131583213806152, -0.06795104593038559, -0.03532174229621887, -0.02120690979063511, -0.2612479627132416, -0.16266974806785583, -0.09578020870685577, -0.5024405717849731, 0.0029676551930606365, 0.03270985186100006, -0.2606058716773987, 0.061930269...
I saw a code snippet yesterday in one of the responses here on StackOverflow that intrigued me. It was something like this: ``` List<string> myList = new List<string> {"aBc", "HELLO", "GoodBye"}; myList.ForEach(d=>d.ToLower()); ``` I was hoping I could use it to convert all items in myList to lowercase. However, ...
[ 0.2283254861831665, -0.017871128395199776, 0.43436288833618164, -0.10711441934108734, -0.21137838065624237, 0.06259671598672867, 0.025827595964074135, 0.07093655318021774, -0.24034330248832703, -0.9306818246841431, 0.0058028181083500385, 0.3821595311164856, -0.3199748992919922, 0.223105311...
`ForEach` loops the original list whereas `ConvertAll` creates a new one which you need to reassign.
[ 0.2969397008419037, 0.21292465925216675, 0.13980278372764587, -0.3357643485069275, -0.03698676824569702, 0.1614227443933487, 0.16665372252464294, -0.36691591143608093, 0.07062165439128876, -0.47064927220344543, -0.4405069947242737, 0.42184552550315857, -0.32185080647468567, -0.079424463212...
I have a Delphi Web Server setup and running, publishing Web Services, and I want to know some stuff on the calls to the web services: * The IP address of the client who calls the web service. * Some SOAP information on the call, such as username and password. How can I get this information from within the service co...
[ 0.3227026164531708, 0.2609996497631073, 0.4766193926334381, -0.022532818838953972, 0.06543496996164322, 0.06637829542160034, 0.12013505399227142, -0.11097069829702377, -0.08629129081964493, -0.7734389901161194, 0.155045747756958, 0.3286542296409607, -0.003546228399500251, 0.312904447317123...
working components and methods... // end; ``` You should be able to get a [TWebRequest](http://docs.codegear.com/docs/radstudio/radstudio2007/RS2007_helpupdates/HUpdate3/EN/html/delphivclwin32/HTTPApp_TWebRequest.html) from the Request property of the TWebModule object you get from calling [GetSOAPWebModule](http://do...
[ 0.03152536228299141, -0.11226288229227066, 0.4574272930622101, 0.01254277303814888, -0.10203410685062408, -0.25483667850494385, 0.34925591945648193, -0.3926536738872528, -0.25781095027923584, -0.47618749737739563, -0.3542635440826416, 0.38801831007003784, -0.1575777381658554, 0.14208237826...
Is there any library function for this purpose, so I don't do it by hand and risk ending in TDWTF? ``` echo ceil(31497230840470473074370324734723042.6); // Expected result 31497230840470473074370324734723043 // Prints <garbage> ``` This will work for you: ``` $x = '31497230840470473074370324734723042.9'; bcscale(...
[ 0.041137855499982834, 0.08098886907100677, 0.6141418814659119, -0.1314232498407364, 0.22175860404968262, -0.14075390994548798, 0.27277079224586487, -0.4241434633731842, -0.3277091085910797, -0.3611149489879608, -0.3734796345233917, 0.2546764612197876, -0.1646479368209839, 0.128274396061897...
finds the flooy by multiplying by one with zero precision. Then it can do ceil / round by subtracting that from the total, calling the built in functions, then adding the result back on Edit: fixed for -ve numbers
[ -0.205815851688385, -0.1990961730480194, 0.8649059534072876, -0.016972461715340614, 0.20571477711200714, 0.11898823827505112, -0.05347556620836258, -0.1710120141506195, -0.20279648900032043, -0.10654997825622559, -0.1138921007514, 0.8233627080917358, -0.14066429436206818, -0.02202223613858...
Is there any point to freeing memory in an atexit() function? I have a global variable that gets malloc'ed after startup. I could write an atexit() function to free it, but isn't the system going to reclaim all that memory when the program exits anyway? Is there any benefit to being tidy and actively cleaning it up m...
[ -0.08533045649528503, -0.0693502128124237, 0.19913716614246368, 0.24180912971496582, 0.15363934636116028, 0.4226328134536743, -0.11528196185827255, 0.035208605229854584, -0.5174066424369812, -0.52754807472229, -0.1596672534942627, 0.4418865144252777, -0.08678622543811798, 0.120429120957851...
What is the best method for utilizing a single code base for multiple websites? We have validation and session management libraries that we use on multiple websites. Is there a best practice for keeping a single copy rather than having to maintain updates of local copies for each website? If you are using subversion,...
[ 0.4244491755962372, -0.25972607731819153, 0.2869553864002228, 0.17980802059173584, -0.03983745723962784, -0.33176717162132263, 0.32198667526245117, 0.02399658039212227, -0.6253728270530701, -0.2850586771965027, -0.0944402739405632, 0.209194153547287, -0.2640547454357147, 0.2303593754768371...
The following code compiles correctly under VC++ 8 on XPSP3, but running it causes a runtime error. My header looks like: ``` #include <stdexcept> #include <iterator> #include <list> template<typename T> class test_generator { public: typedef T result_type; //constructor test_generator() { ...
[ 0.4363459646701813, 0.16467934846878052, 0.2829255759716034, -0.2740393280982971, 0.21979516744613647, -0.009771890006959438, 0.3120826482772827, -0.5254820585250854, 0.17978796362876892, -0.6579877734184265, 0.10871237516403198, 0.5407330989837646, -0.15619611740112305, 0.0745340585708618...
{ throw std::logic_error( "" ); } return *value++; } private: std::list<T> tests; typename std::list<T>::iterator value; }; ``` My implementation looks like: ``` #include <functional> #include <algorithm> #include <iostream> #include <deque> #include "test.h" int...
[ 0.3279697597026825, 0.16375552117824554, 0.019197838380932808, -0.3148967921733856, -0.0002916268422268331, 0.10925598442554474, 0.6436449885368347, -0.5455403327941895, 0.013871614821255207, -0.5450772047042847, -0.26362672448158264, 0.5110479593276978, -0.407449871301651, -0.121265806257...
an exception (not the logic\_error exception defined in the header). If I change the implementation to use a function instead of a functor, it works: ``` int main() { std::deque<int> tests; std::generate_n( std::back_inserter( tests ), 10, rand ); return 0; } ``` What's wrong with using a functor here?...
[ 0.06274040043354034, 0.23793350160121918, 0.06340187042951584, -0.07149811089038849, -0.03783491998910904, -0.14374414086341858, 0.25638458132743835, -0.3558703064918518, -0.04498821124434471, -0.21969659626483917, -0.22605828940868378, 0.525633692741394, -0.43871361017227173, 0.2239846289...
list in the original object, not the copy. Because of the iterator debugging checks performed in the Visual Studio STL implementation, this triggers an assertion, because an iterator obtained from one container should not be compared against an iterator from another container. To fix the problem, you could either imp...
[ 0.4524938464164734, -0.06428397446870804, 0.078743577003479, 0.06970164179801941, 0.014655575156211853, -0.1913902312517166, 0.019700702279806137, -0.4414900839328766, -0.28771862387657166, -0.3568260967731476, -0.18758365511894226, 0.6000344157218933, -0.5499509572982788, 0.04845941439270...
I'm working on updating a classic ASP web page used by a number of sub-sites maintained at the company I work for. The purpose of the page is to notify the user that they are leaving "our" site and going to another site. It's basically a disclaimer, but due to resource limitations and time limitations I can't add the ...
[ 0.5381820201873779, 0.015996450558304787, 0.692328691482544, -0.09902598708868027, 0.49174612760543823, -0.5618781447410583, 0.5600989460945129, 0.359452486038208, -0.195045605301857, -0.1927773803472519, -0.0878249853849411, 0.04064168408513069, -0.3054136037826538, 0.6086573004722595, ...
scripting. How do I approach this update to eliminate most (if not all) of the cross site scripting issues using vbScript/ASP. The code I'm using is below. ``` <%@ Language = vbScript %> <% Option Explicit %> <% Dim strLink strLink = Request.QueryString("site") strLink = Replace(strLink, "<", "&lt") strLink = Repla...
[ -0.311500608921051, -0.0017656412674114108, 0.7505355477333069, -0.2952483594417572, -0.06788318604230881, 0.24184715747833252, 0.6525458097457886, -0.13043682277202606, -0.12676405906677246, -0.7810579538345337, -0.26982995867729187, 0.6118915677070618, -0.5172686576843262, -0.24577015638...
1, -1, 1) strLink = Replace(strLink, "onkeydown", "", 1, -1, 1) strLink = Replace(strLink, "onkeyup", "", 1, -1, 1) strLink = Replace(strLink, "onfocus", "", 1, -1, 1) strLink = Replace(strLink, "onblur", "", 1, -1, 1) strLink = Replace(strLink, "&&", "") strLink = Replace(strLink, "##", "") strLink = Replace(strLink, ...
[ -0.08803316205739975, 0.32246387004852295, 0.3097168207168579, 0.0482269749045372, 0.2097042351961136, 0.3989505171775818, 0.5065825581550598, -0.2999728322029114, -0.28003644943237305, -0.7325411438941956, -0.2733507454395294, 0.5209781527519226, -0.6269341111183167, -0.7045568823814392, ...
I have source in a bunch of subdirectories like: ``` src/widgets/apple.cpp src/widgets/knob.cpp src/tests/blend.cpp src/ui/flash.cpp ``` In the root of the project I want to generate a single Makefile using a rule like: ``` %.o: %.cpp $(CC) -c $< build/test.exe: build/widgets/apple.o build/widgets/knob.o build/...
[ 0.6599882245063782, 0.46747922897338867, 0.31209057569503784, -0.08137283474206924, 0.2901034355163574, 0.11705383658409119, -0.006423429120332003, -0.19298391044139862, -0.1252971738576889, -0.656904399394989, -0.04562130942940712, 0.17401160299777985, -0.08830014616250992, 0.179253861308...
test.exe in your case depends on build/widgets/apple.o (etc), make is expecting apple.cpp to be build/widgets/apple.cpp. You can use VPATH to resolve this: ``` VPATH = src/widgets BUILDDIR = build/widgets $(BUILDDIR)/%.o: %.cpp ... ``` When attempting to build "build/widgets/apple.o", make will search for a...
[ 0.6737731099128723, 0.2361423671245575, 0.1758456826210022, -0.055967748165130615, 0.17241601645946503, 0.3252083659172058, 0.1570824235677719, -0.2030554711818695, -0.1370774358510971, -0.593398928642273, 0.12728764116764069, 0.3124179542064667, -0.14575257897377014, 0.05252416431903839, ...
build the binaries in different directories, you can do something like ``` build/widgets/%.o: %.cpp .... build/ui/%.o: %.cpp .... build/tests/%.o: %.cpp .... ``` I would recommend that you use "[canned command sequences](http://www.gnu.org/software/make/manual/make.html#Canned-Recipes)" in ...
[ 0.5138000249862671, 0.49931156635284424, -0.06722812354564667, 0.12929432094097137, 0.06351974606513977, -0.0449613556265831, 0.0019389272201806307, -0.2752878665924072, -0.2976965010166168, -0.4650871455669403, -0.23131927847862244, 0.39927107095718384, -0.47815272212028503, -0.0164129585...
I'm trying to delete a directory that contains XML files from a remote computer. My code compiles and runs fine, but when I go to get a list of XML files in the path I specify, it is not returning anything. Am I missing something permission wise? I have ran it from my computer logged on as myself and from another com...
[ 0.34685564041137695, 0.029937969520688057, 0.25314801931381226, -0.25663089752197266, 0.06903382390737534, -0.05585927516222, 0.4718228578567505, 0.19551415741443634, -0.23184631764888763, -0.5069275498390198, -0.09742940217256546, 0.42152878642082214, -0.3742225468158722, 0.29968687891960...
ext = ".xml"; // have tried xml and .xml if (args.Length != 1) { // do absolutely nothing if we do not exactly 1 argument } else { Console.WriteLine("Argument accepted."); directory = args[0]; // make sure the directory passed is valid
[ 0.27791857719421387, -0.054888270795345306, 0.7367916703224182, -0.10246618837118149, 0.32323455810546875, -0.1740318387746811, 0.40970563888549805, -0.5183128118515015, -0.008243698626756668, -0.3151327073574066, -0.30285972356796265, 0.6491754055023193, -0.20405228435993195, 0.0334656797...
if (ValidateDirectory(directory)) { Console.WriteLine("Directory is valid."); DeleteFiles(directory, ext); } } Console.WriteLine("Done."); } static bool ValidateDirectory(string d) { return Regex.IsMatch(d, @""); //
[ -0.10726938396692276, -0.16420859098434448, 0.689161479473114, -0.0993928387761116, 0.25273463129997253, -0.11074060201644897, 0.19544915854930878, -0.35667508840560913, 0.10725754499435425, -0.3304269313812256, -0.5567923188209534, 0.6239973902702332, -0.2130109667778015, 0.16478691995143...
I removed my regex - it validates properly } static void DeleteFiles(string d, string ext) { DirectoryInfo di; FileInfo[] fi; di = new DirectoryInfo(d); fi = di.GetFiles(ext); Console.WriteLine("Number of files = " + fi.Length + "."); foreach (FileInfo f in fi)...
[ 0.0696713849902153, -0.4102616012096405, 0.8683347702026367, -0.3032504916191101, 0.43366891145706177, 0.169190913438797, 0.3984488546848297, -0.2532239854335785, 0.2686048150062561, -0.5258983969688416, -0.4038715362548828, 0.6865243315696716, -0.335915744304657, 0.3825961947441101, 0.3...
try { Console.WriteLine(f.FullName); f.Delete(); } catch (Exception ex) { // do nothing when there is an exception // just do not want it to quit
[ 0.19606450200080872, -0.44107329845428467, 0.1967308521270752, -0.2303595095872879, 0.5221312046051025, -0.23455943167209625, 0.5927437543869019, -0.16108734905719757, -0.04226401075720787, -0.15753059089183807, -0.4111631512641907, 0.6377878785133362, -0.31583496928215027, 0.0317795388400...
Console.WriteLine(ex.ToString()); } } } ``` I think you should be using \*.xml instead of simply .xml. But I also concur with Kyralessa, test on your local machine first, then add in the complexity of going across a network.
[ 0.038076240569353104, 0.1696835160255432, 0.3998248279094696, -0.0406893715262413, 0.04525470361113548, -0.2784191071987152, 0.06085272505879402, -0.03525866940617561, 0.43365588784217834, -0.8642454743385315, -0.11695161461830139, 0.7487131357192993, -0.20278623700141907, 0.03224981203675...
I know enough to know that we need to get our application to deploy with a single user action. However, I **don't** know: 1. What are some good tools to use in a .NET shop? 2. How do you manage config changes for each of your environments? Can someone point me to some good resources for continous integration. I'd lik...
[ 0.5569392442703247, -0.06409753859043121, 0.23112455010414124, 0.238426074385643, 0.1043161079287529, -0.1131209060549736, 0.3041272759437561, -0.10055793076753616, -0.3525255024433136, -0.9545992016792297, 0.05064723268151283, 0.7562479376792908, -0.19205228984355927, -0.28320571780204773...
be helpful: [Visual Studio Web Deployment Projects](http://murrayon.net/2008/02/visual-studio-web-deployment-projects.html) It is a year and a half old, but talked about some new (at that time) project templates for VS and also a command-line utility from the IIS team called MSDeploy. They sounded really promising an...
[ 0.5701972246170044, -0.06618000566959381, 0.3749740719795227, -0.13224157691001892, -0.06627637892961502, -0.2732653021812439, 0.1120135486125946, 0.08716434985399246, -0.2892988920211792, -0.8223249316215515, 0.4022223949432373, 0.3172588050365448, 0.18197399377822876, 0.02852339111268520...
I have started using Jython as it seems to be a excellent language, and has proved to be so far. I am using dom4j to manipulate and retrieve data from the DOM of a bunch of HTML files I have on disk. I have wrote the below script to check threw the DOM using Xpath for **H1** tags and grab text, if a **H1** tag is not ...
[ 0.09895606338977814, -0.002733319066464901, 0.4190949499607086, -0.07307811826467514, -0.1264948546886444, -0.23352600634098053, 0.22216787934303284, -0.014993023127317429, 0.06018499284982681, -0.6566339731216431, -0.12620529532432556, 0.688580334186554, 0.09953630715608597, 0.04128953814...
a lot more graceful than the below method, If I am right in thinking this, is there someone that can show me a better way to do it? ``` elemHolder = dom.createXPath('//xhtml:h1') elemHolder.setNamespaceURIs(map) elem = elemHolder.selectSingleNode(dom) if elem != None: h1 = elem.getText() else: elemHolder = dom...
[ -0.19527871906757355, -0.09575963765382767, 0.697756826877594, 0.08023451268672943, 0.048944972455501556, -0.19295179843902588, 0.3712119460105896, -0.6315210461616516, -0.23795276880264282, -0.9705713987350464, -0.4498818516731262, 0.6224103569984436, -0.28150394558906555, -0.094630949199...
would be great. Cheers How about this (I don't claim to know much about Python, by the way, but this looks like an obvious first step): ``` for path in ('//xhtml:h1', '//xhtml:title'): elemHolder = dom.createXPath(path) elemHolder.namespaceURIs = map elem = elemHolder.selectSingleNode(dom) if elem is n...
[ -0.28501877188682556, -0.10915056616067886, 0.7537582516670227, -0.006204599980264902, 0.09307899326086044, -0.0932239443063736, 0.34416988492012024, -0.43015769124031067, -0.378589928150177, -0.8303871154785156, -0.2767791450023651, 0.7437226176261902, -0.0012688682181760669, 0.0868584141...
I've set up multiple ssl sites on iis using Servier Bindings as per this article: <http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true> I have two different ssl certs for the two sites installed but when I browse to either site I get the same ce...
[ 0.43945029377937317, -0.016567355021834373, 0.27662453055381775, 0.1351669281721115, -0.0991891548037529, -0.19459110498428345, 0.3278946280479431, -0.2444162517786026, -0.18150049448013306, -0.7689502239227295, -0.10469565540552139, 0.0997205376625061, -0.23006251454353333, 0.388085216283...
header which tells the web server which site is being requested, are encapsulated within the SSL/TLS connection).
[ 0.258663147687912, -0.2969377934932709, 0.3779793679714203, 0.10553664714097977, -0.09739671647548676, -0.3899923264980316, 0.12807665765285492, -0.11608103662729263, -0.22278596460819244, -0.5797500014305115, -0.4877364933490753, 0.044321294873952866, -0.2786661982536316, 0.22369699180126...
Anyone know off the top of their heads how to convert a System.Xml.XmlNode to System.Xml.Linq.XNode? I've never tried, but my first thought would be something like: ``` XmlNode myNode; XNode translatedNode = XDocument.Parse(myNode.OuterXml); ```
[ 0.09979569911956787, -0.046017132699489594, 0.3801306188106537, 0.14560465514659882, 0.05914432927966118, -0.13495713472366333, -0.21938049793243408, 0.37029656767845154, -0.28001540899276733, -0.645739734172821, 0.04292743653059006, 0.28149014711380005, -0.13006208837032318, 0.29754182696...
Hi guys I wrote this code and i have two errors. 1. Invalid rank specifier: expected ',' or ']' 2. Cannot apply indexing with [] to an expression of type 'int' Can you help please? ``` static void Main(string[] args) { ArrayList numbers = new ArrayList(); foreach (int number in new int[12] {...
[ 0.02183459885418415, 0.2400500327348709, 0.4861604869365692, -0.23811028897762299, 0.016905851662158966, 0.12577234208583832, 0.5271325707435608, -0.01942172460258007, -0.3137260973453522, -0.24122396111488342, -0.12139350920915604, 0.5312540531158447, -0.5165287852287292, 0.00027740010409...
numbers.Insert(numbers.Count - 1, 75); numbers.Remove(7); numbers.RemoveAt(6); for(int i=0; i<numbers.Count; i++) { int number = (int) number[i]; // error No.2 Console.WriteLine(number); } } ``` ``` using System; using System.Collections; namespace ...
[ -0.07366026192903519, -0.17533354461193085, 0.41762250661849976, -0.3162611126899719, 0.167824849486351, 0.427141010761261, 0.2465238869190216, -0.4224689304828644, -0.18823471665382385, -0.4806652367115021, -0.3278977870941162, 0.5513867139816284, -0.2352859526872635, 0.31640705466270447,...
static void Main(string[] args) { ArrayList numbers = new ArrayList(); foreach (int number in new int[] { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }) { numbers.Add(number);
[ 0.08133797347545624, -0.27487120032310486, 0.3507184684276581, -0.5708072781562805, 0.03925873711705208, 0.36788615584373474, 0.3349696099758148, -0.13592170178890228, -0.35308167338371277, -0.09551908075809479, -0.3338370621204376, 0.39190542697906494, -0.6245563626289368, 0.1414351910352...
} numbers.Insert(numbers.Count - 1, 75); numbers.Remove(7); numbers.RemoveAt(6); for (int i = 0; i < numbers.Count; i++) { int number = (int)numbers[i];
[ 0.2240888625383377, -0.20863205194473267, 0.2942182123661041, -0.5091768503189087, 0.06641620397567749, 0.24208293855190277, 0.41049203276634216, -0.2676302194595337, -0.26352810859680176, -0.34017413854599, -0.39907339215278625, 0.4682033956050873, -0.4803779721260071, 0.24527093768119812...
Console.WriteLine(number); } } } } ```
[ -0.42786547541618347, 0.17477819323539734, 0.42921704053878784, 0.04498478025197983, 0.4190220534801483, -0.13336406648159027, 0.07043380290269852, 0.10463503748178482, 0.25479575991630554, -0.7628592252731323, -0.14094579219818115, 0.6202148199081421, -0.27932074666023254, 0.2660256028175...
For some weeks now I simply can't run gem install in windows. It sticks on this line: ``` C:\Windows\System32>gem install rails --version 2.1.2 Bulk updating Gem source index for: http://gems.rubyforge.org/ ``` Any ideas what it could be? Have you been able to install stuff previously? The gem index is pretty big, ...
[ 0.5789405107498169, 0.008879920467734337, 0.1327742338180542, -0.04338745400309563, -0.1088966652750969, -0.23810365796089172, 0.45915013551712036, -0.10506024956703186, -0.33172500133514404, -0.6057316660881042, -0.009763488546013832, 0.6349671483039856, 0.05598137155175209, 0.06227263435...
I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this: (simplified php script...) ``` if(isset($_POST["id_tuto"])){ PrintHtml($_POST["id_tuto"]); } function PrintHtml($id) { switch($id) {...
[ 0.2245495617389679, 0.30343496799468994, 0.4215710461139679, -0.3638365566730499, -0.09265794605016708, -0.15716420114040375, 0.3340740203857422, -0.3329123258590698, 0.0060218824073672295, -0.3777863383293152, -0.010160807520151138, 0.3405986726284027, -0.3866293728351593, 0.0789685696363...
content? there is a lot of content each time since it's a step by step tutorial. Each string will be about 50-80 lines of HTML code. Is there a way to put that html content in a separate html file and echo that file or...? Thanks a lot!! You could do it like so: ``` <?php function PrintHtml($id) { switch($i...
[ 0.5287349224090576, -0.07857579737901688, 0.7675290107727051, 0.14904005825519562, -0.18952476978302002, -0.2741576135158539, 0.15001682937145233, -0.26618632674217224, -0.30832937359809875, -0.47830310463905334, -0.1277875453233719, 0.34270530939102173, -0.2654094994068146, -0.02198382094...
[...] } } ?> ``` Or perhaps: ``` <?php function PrintHtml($id) { switch($id) { case [...]: include 'section1.php'; break; [...] } } ?> ```
[ 0.008740833960473537, 0.044704191386699677, 0.4669068455696106, -0.1369074434041977, 0.10374537855386734, -0.09415408223867416, 0.17900773882865906, -0.39237451553344727, -0.26616156101226807, -0.11196121573448181, -0.37050607800483704, 0.2865189015865326, -0.4038199186325073, 0.0550763905...
Is there any easy way to create an acronym from a string? ``` First_name Middle_name Last_name => FML first_name middle_name last_name => FML First_name-Middle_name Last_name => F-ML first_name-middle_name last_name => F-ML ``` Does language-agnostic means you have to use pseudocode? If not, then in Ruby: `"First_na...
[ -0.16690222918987274, 0.3285976052284241, 0.50953209400177, -0.1378442496061325, -0.20785267651081085, -0.017238963395357132, 0.40713033080101013, -0.21231044828891754, -0.15516237914562225, -0.5541907548904419, -0.5640242695808411, 0.3378148674964905, -0.39269694685935974, -0.094453282654...
How do you set the timeout for blocking operations on a Ruby socket? The solution I found which appears to work is to use [Timeout::timeout](http://www.ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html): ``` require 'timeout' ... begin timeout(5) do message, client_address = some_socket.recvfrom(1024...
[ 0.4068587124347687, -0.12277109175920486, 0.2548438012599945, -0.1970423460006714, 0.06857367604970932, -0.06251008063554764, 0.6843761801719666, -0.4439166188240051, -0.1759227216243744, -0.31847304105758667, -0.3658614754676819, 0.4837137460708618, -0.3617114722728729, 0.0049066697247326...
I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user ent...
[ 0.3521782457828522, 0.22579240798950195, 0.29188597202301025, -0.12738944590091705, -0.10610010474920273, -0.19117134809494019, 0.24205312132835388, 0.10099533945322037, -0.16850633919239044, -0.751556932926178, 0.0034131547436118126, 0.5779880881309509, -0.12205720692873001, -0.0183719620...
it's possible? Try this: ``` myVars = new LoadVars(); myVars.username = username.text; myVars.password = pwd.text; myVars.onLoad = function(success) { trace("yay!"); else { trace("try again"); } } myVars.sendAndLoad("login.php", myVars, "POST"); ```
[ 0.18867531418800354, -0.08356094360351562, 0.3392961621284485, 0.10600221902132034, 0.3565611243247986, -0.0963282510638237, 0.752807080745697, -0.13836537301540375, -0.18519456684589386, -0.45396047830581665, -0.057597264647483826, 0.35017380118370056, -0.17143821716308594, -0.03396028280...
Oracle purchased BEA and their WebLogic suite of tools. They still have a competing product in their own 10gAS Application Server. Both are [Java EE](http://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition), enterprise grade, servers. While it make take some time due to maintenance agreements, it would be unusua...
[ 0.4921800494194031, 0.402797669172287, 0.22091154754161835, 0.07890064269304276, 0.19059228897094727, 0.15522921085357666, -0.12707050144672394, -0.02177467569708824, 0.041858844459056854, -0.20591402053833008, 0.3592838644981384, 0.1618821918964386, 0.06899853050708771, 0.35438272356987, ...
followed. You can go through a (rather long) [PDF strategy briefing](http://download.oracle.com/products/middleware/oracle-middleware-strategy-briefing-072008.pdf) from Oracle. The key slide, though, is probably #48. Oracle has put BEA Weblogic on the "Strategic Products" list and the Oracle Application Server on the "...
[ 0.3675285279750824, -0.04535418376326561, 0.5256407260894775, -0.1373676359653473, 0.29233047366142273, -0.32869449257850647, -0.0797644704580307, -0.014189761132001877, -0.22219586372375488, -0.1975826919078827, -0.17877665162086487, 0.5349708795547485, 0.2374090999364853, 0.1143015921115...
In C++ you can disable a function in parent's class by declaring it as private in the child class. How can this be done in Python? I.E. How can I hide parent's function from child's public interface? There really aren't any true "private" attributes or methods in Python. One thing you can do is simply override the meth...
[ 0.18901993334293365, 0.25817540287971497, 0.015552329830825329, -0.3056323826313019, 0.16347573697566986, -0.08386274427175522, 0.37906667590141296, -0.08383912593126297, 0.03990527614951134, -0.17384782433509827, -0.2420577108860016, 0.5865380167961121, -0.5670782327651978, 0.142327234148...
Foo ): ... def foo( self ): ... raise AttributeError( "'Bar' object has no attribute 'foo'" ) ... >>> b = Bar() >>> b.foo() Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "<interactive input>", line 3, in foo AttributeError: 'Bar' object has no attribute 'fo...
[ -0.21723206341266632, 0.32806721329689026, 0.7194282412528992, -0.5106125473976135, 0.21879857778549194, 0.12260674685239792, 0.13014449179172516, -0.30020231008529663, -0.05547768622636795, -0.26245585083961487, -0.3002573549747467, 0.5114511251449585, -0.4664963483810425, 0.2416303902864...
This may seem like a somewhat contrived example, but I'm left scratching my head. Ok, I have a console app that instantiates a WindowsForm and calls a method called DoSomeWork() on the form. ``` class Program { static void Main(string[] args) { Form1 form = new Form1(); form.DoSomeWork...
[ 0.30852004885673523, -0.027019325643777847, 0.37072789669036865, -0.3256550133228302, 0.10448474436998367, -0.12826834619045258, 0.32832562923431396, -0.25053656101226807, 0.05405484512448311, -0.7894562482833862, -0.16299855709075928, 0.6411515474319458, -0.3513667583465576, 0.15126100182...
InitializeComponent(); } public void DoSomeWork() { OuterClass outerClass = new OuterClass(); outerClass.DoSomeWork(); } } ``` Outer class, in turn, looks like this... ``` public class OuterClass { public void DoSomeWork() { InnerClass innerClass = new InnerClass();...
[ -0.13655035197734833, -0.3814443349838257, 0.36942407488822937, -0.32199159264564514, 0.4280630052089691, 0.16970698535442352, 0.14730030298233032, -0.17852376401424408, -0.16538628935813904, -1.028342843055725, -0.17756067216396332, 0.7314338684082031, -0.2789372503757477, 0.1160538196563...
private BackgroundWorker _backgroundWorker = new BackgroundWorker(); public InnerClass() { _backgroundWorker.WorkerReportsProgress = true; _backgroundWorker.DoWork += new DoWorkEventHandler(BackgroundWorker_DoWork); _backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(Backgrou...
[ -0.14865681529045105, -0.251351922750473, 0.3046284317970276, -0.23909755051136017, 0.5083556771278381, 0.37801334261894226, 0.5608458518981934, -0.04275713488459587, -0.5352277159690857, -0.5731377601623535, -0.15626752376556396, 0.6768141984939575, -0.4667321443557739, 0.0921359211206436...
sender as BackgroundWorker; worker.ReportProgress(42); } public void DoSomeWork() { _backgroundWorker.RunWorkerAsync(); } } ``` For a reason unknown (to me), the BacgroundWorker in InnerClass never seems to fire the **ProgressChanged** event. If I replace ``` Form1 form = new Form1()...
[ 0.00686680618673563, -0.2900422513484955, 0.2297176867723465, -0.18707574903964996, -0.06641755253076553, 0.17002466320991516, 0.4667965769767761, 0.04644537717103958, -0.37827929854393005, -0.4804707467556, -0.09784678369760513, 0.5370523929595947, -0.5463216304779053, 0.08013535290956497...
throwing a NotImplementedException, so I've removed it for clarity. You forgot to start a message loop, calling Application.Run() is required. Without a message loop, the BackgroundWorker events cannot work. To fix: ``` static void Main(string[] args) { Application.Run(new Form1()); } ``` Call DoSomeWork() in t...
[ 0.3703080713748932, -0.09246420115232468, 0.32454580068588257, -0.3308519721031189, 0.2602422535419464, -0.19578023254871368, 0.6064199209213257, -0.2204272300004959, -0.12394474446773529, -0.6153017282485962, -0.23337498307228088, 0.7095749378204346, -0.541124165058136, 0.2017313539981842...