text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the item (show/hide function not shown). ``` <fieldset id="request-type"> <legend>Type of Request</legend> <ul> <li><input type="checkbox" name="q4838:q1[]" id="q4838_q1_0" value="0" class="sq-form-field" /><label for="q4838_q1_0">New account</label></li> <li><input type="checkbox" name="q4838:q1[]" id="q4838_q1_1" v...
[ -0.19781403243541718, 0.12076224386692047, 0.4892977774143219, 0.045637357980012894, -0.3099862337112427, 0.44925498962402344, 0.258998841047287, -0.9370359778404236, -0.2526771128177643, -0.27751031517982483, -0.32465341687202454, 0.46469828486442566, -0.21237434446811676, 0.1298648566007...
is checked I've added the following to the class attribute of the required input. ``` class="{required:'#checkboxid:checked', messages:{required:'required error message'}}" ``` The "delete-account" fieldset then looks like this..... ``` <fieldset id="delete-account" style="display: block;"> <legend>Delete Account</...
[ 0.2843564450740814, 0.1627698838710785, 0.5531467795372009, -0.08722995966672897, 0.2954026460647583, -0.17238405346870422, 0.29466113448143005, -0.3265027105808258, -0.023717690259218216, -0.38682809472084045, -0.1775311529636383, 0.7983559370040894, -0.21529576182365417, 0.08191674202680...
required, and if it comes back `'false'` the field is not required. Another thing I found useful was to ensure that someone selected a request type at the beginning of the form by adding the following to the class attribute on each of the checkboxes ``` class="{required:'true', minlength:1, messages:{required:'Please...
[ 0.04965861514210701, -0.24830926954746246, 0.337908536195755, 0.10911248624324799, -0.08269690722227097, -0.13100279867649078, 0.32591572403907776, -0.32155176997184753, 0.2061903178691864, -0.48148688673973083, -0.18108606338500977, 0.6914605498313904, -0.12611445784568787, -0.24261626601...
What internal web service did your company implement first? What did you learn? One of the first movers was the "Customer base system". The common authority for all customers in the company. EDIT: regarding the comment: It did indeed open up for more SOA. It's about 3-5years ago (before me) and currently it wa...
[ 0.33009442687034607, -0.1258809119462967, 0.18538345396518707, -0.0005182294407859445, -0.09398334473371506, -0.28260573744773865, 0.2043098658323288, 0.1952596753835678, -0.3782171308994293, -0.19283540546894073, 0.15345394611358643, 0.08419214934110641, 0.19148944318294525, -0.0893701687...
to debug or update the setup. Currently we are POCing webservice integration with SAP. Pheeew
[ 0.4194321632385254, -0.014186497777700424, 0.041583433747291565, 0.3814477026462555, 0.20349928736686707, -0.27912989258766174, 0.005361783783882856, -0.03686432167887688, 0.0009703121613711119, -0.5403617024421692, -0.08441102504730225, 0.14523345232009888, 0.1055489331483841, -0.21308319...
I am looking for a way to quickly compare the state of a database table with the results of a Web service call. I need to make sure that all records returned by the Web service call exist in the database, and any records in the database that are no longer in the Web service response are removed from the table. I have...
[ 0.2031564712524414, 0.20094738900661469, 0.054302435368299484, 0.10597439110279083, -0.1102672666311264, 0.1811823546886444, -0.02050711214542389, -0.38041436672210693, -0.13821642100811005, -0.5780555605888367, 0.44851407408714294, 0.3982136845588684, -0.21304498612880707, 0.2349958717823...
MD5 of a data structure and storing it in the database. If the MD5 is different, then I'd move to step 2. **Are there better ways of comparing response data with the state of a database?** I need more guidance on number 2. I can easily retrieve all records from a table (SELECT \* FROM users WHERE user\_id = 1) and the...
[ 0.17950353026390076, -0.2173880934715271, 0.23375196754932404, -0.128810316324234, -0.4677329957485199, -0.0220498014241457, 0.20547938346862793, -0.559903621673584, -0.1393290013074875, -0.783795177936554, 0.16878080368041992, 0.49761727452278137, -0.2521151304244995, -0.03535320982336998...
to compare and sync a data structure with a subset of a database table?** Thanks for any insight into these issues! One of the first movers was the "Customer base system". The common authority for all customers in the company. EDIT: regarding the comment: It did indeed open up for more SOA. It's about 3-5year...
[ 0.479411780834198, -0.13705572485923767, 0.3502386808395386, 0.051455408334732056, -0.14179377257823944, -0.18670660257339478, 0.17771345376968384, 0.20226193964481354, -0.2533479928970337, -0.2818934917449951, 0.16370290517807007, 0.10530829429626465, 0.17874552309513092, -0.0733161047101...
as well, and nobody is really able to debug or update the setup. Currently we are POCing webservice integration with SAP. Pheeew
[ 0.33532124757766724, 0.08669799566268921, 0.08767929673194885, 0.3943870961666107, 0.21161411702632904, -0.3053392469882965, 0.13064177334308624, 0.05742944777011871, -0.020330343395471573, -0.5361924767494202, -0.05422680824995041, 0.26367372274398804, 0.1354285031557083, -0.0591110885143...
I have an internal enterprise application I've developed for my company built on .Net 3.5 / SQL 2008. I have two types of databases. The main system database which contains all of our global data, such as user names, and customers, etc. And project databases, which contain the actual data pertaining to our clients pr...
[ 0.5166061520576477, 0.42817220091819763, 0.2646021246910095, 0.003978311084210873, 0.29702359437942505, 0.24507193267345428, -0.13901713490486145, 0.12818743288516998, -0.2485750913619995, -0.45664945244789124, -0.03660263866186142, 0.3756900131702423, 0.20955701172351837, 0.28094801306724...
database. So a new project will create a new project database with the name: Project\_XXX where XXX is the project id. My question is what is the best way to provision a custom database programatically? Right now the only way I can think to do it is have a class which reads a SQL script from the file system and does a...
[ 0.6693920493125916, 0.3438926339149475, 0.015866780653595924, 0.3270214796066284, 0.001221176004037261, -0.00815789494663477, 0.03705413639545441, 0.14189636707305908, -0.3623761832714081, -0.5585240125656128, 0.07538648694753647, 0.3823765516281128, -0.18752184510231018, 0.209969118237495...
and you have direct control over them (typicall corporate environment), I'd recommend not auto upgrading the databases as it is more hassle than it's worth. Just pass the script on to the people doing the install. For more widespread releases in the past I have used a script as you suggest along with the [SQL Server S...
[ 0.48728907108306885, -0.025048859417438507, 0.1977418214082718, -0.005473861936479807, -0.07473278790712357, -0.45733770728111267, 0.20332889258861542, -0.1750306636095047, 0.20643532276153564, -0.6830007433891296, -0.14672128856182098, 0.7221251130104065, -0.29255977272987366, 0.089733883...
run the v1.2 script. However if they did a fresh install we would run v1.0, v1.1 and v1.2.
[ 0.592054545879364, -0.04160958155989647, 0.3863568603992462, 0.0820981115102768, 0.09548000246286392, -0.3481776714324951, 0.46257662773132324, -0.002838010201230645, 0.31494784355163574, -0.5713241696357727, -0.1608511060476303, 0.7852386832237244, -0.4580639600753784, 0.03735660016536712...
My compact framework application creates a smooth-scrolling list by rendering all the items to a large bitmap surface, then copying that bitmap to an offset position on the screen so that only the appropriate items show. Older versions only rendered the items that should appear on screen at the time, but this approach ...
[ 0.07674069702625275, -0.023342084139585495, 0.7913300395011902, -0.09430918097496033, -0.0743878036737442, 0.04333771765232086, 0.1501879245042801, -0.1822497546672821, -0.1083940789103508, -0.8475809693336487, 0.05700482800602913, 0.5660077929496765, -0.28563815355300903, -0.0042924070730...
being generated in program memory, since the application uses approximately the same amount of program memory as it did before the new smooth-scrolling methods. Is there some way I can prevent this exception? Is there any way I can free up the memory I need (wherever it is) before the exception is thrown? I'd suggest ...
[ 0.15761415660381317, -0.024757128208875656, 0.5886390209197998, 0.33121147751808167, 0.11028873175382614, 0.13214290142059326, -0.003814107971265912, 0.06254595518112183, -0.26191943883895874, -0.5992482900619507, 0.04155930504202843, 0.5407754182815552, 0.10667415708303452, -0.13884370028...
in with limited impact.
[ 0.07825636863708496, -0.05358339473605156, 0.23676331341266632, -0.1826557219028473, -0.23124909400939941, 0.06413530558347702, 0.029920699074864388, -0.024324102327227592, 0.014415706507861614, -0.32317784428596497, -0.40255600214004517, 0.026863878592848778, -0.19301381707191467, -0.2839...
This is mostly a theoretical question I'm just very curious about. (I'm not trying to do this by coding it myself or anything, I'm not reinventing wheels.) My question is how the uppercase/lowercase table of equivalence works for Unicode. For example, if I had to do this in ASCII, I'd take a character, and if it fall...
[ -0.10171960294246674, 0.17235861718654633, 0.001299491967074573, -0.007705566007643938, -0.24194395542144775, 0.6023033857345581, -0.18341156840324402, 0.0033042060676962137, -0.15896396338939667, -0.7791359424591064, 0.10841698944568634, 0.1567087024450302, -0.027097562327980995, -0.22474...
of which would be the same as the input) However, I'm guessing that there's a better way of specifying the equivalences in Unicode, given that there are hundreds of thousands of characters, and that theoretically, a new language or set of characters can be added (and I'm expecting that you wouldn't need to patch windo...
[ -0.05601717159152031, 0.2888580560684204, 0.08094412088394165, 0.25972411036491394, 0.06539979577064514, 0.1701415777206421, -0.028919242322444916, -0.020724846050143242, -0.1502966582775116, -0.6225059032440186, 0.018945172429084778, 0.43961113691329956, -0.18492060899734497, -0.187455520...
and Ë are all equivalent to "e"? That doesn't sound very fast when it comes to comparing strings. How does it access Indexes quickly? Does it already index values converted to their "base" characters, corresponding to that field's collation? Does anyone know the internals for these things? Thank you! There is a map...
[ -0.06697843968868256, 0.1708332598209381, 0.286239355802536, 0.4178144633769989, -0.05341288819909096, -0.14489306509494781, -0.10221666842699051, -0.0636804923415184, -0.10470843315124512, -0.994003415107727, -0.1947944164276123, 0.5148015022277832, 0.03232518956065178, -0.174876391887664...
see: <http://www.unicode.org/faq/casemap_charprop.html>
[ -0.3896924555301666, 0.22575323283672333, -0.13699419796466827, -0.5669634342193604, -0.16868507862091064, 0.8247472643852234, -0.1035192534327507, -0.11073023825883865, -0.2541864216327667, -0.2939662039279938, -0.625660240650177, -0.1133318617939949, -0.3794099986553192, -0.6643549203872...
**Does anyone know of an algorithm (or search terms / descriptions) to locate a known image within a larger image?** e.g. I have an image of a single desktop window containing various buttons and areas (target). I also have code to capture a screen shot of the current desktop. I would like an algorithm that will help...
[ 0.3768042027950287, 0.1976952999830246, 0.5396825075149536, 0.21603502333164215, 0.10845442116260529, 0.26122385263442993, 0.0362018421292305, 0.2422276884317398, -0.23730093240737915, -0.9065089821815491, -0.13580408692359924, 0.3154049217700958, 0.15445929765701294, -0.01754051074385643,...
possibly b/c of OS display differences) Does anyone know of such an algorithm or class of algorithms? I have found various image segmentation and computer vision algorithms but they seem geared to "fuzzy" classification of regions and not locating a specific image within another. \*\* *My goal is to create a framewo...
[ 0.30975016951560974, 0.012821483425796032, 0.40413692593574524, 0.291971355676651, 0.16178858280181885, 0.2546325623989105, -0.2024385631084442, 0.14503203332424164, -0.15988832712173462, -0.8971234560012817, 0.1728467047214508, 0.30176597833633423, -0.10083149373531342, 0.1982453465461731...
want to look at [image registration](http://en.wikipedia.org/wiki/Image_registration) algorithms. There's an open source C++ package called [ITK](http://itk.org/) that might provide some hints. Also [ImageJ](http://rsbweb.nih.gov/ij/) is a popular open source Java package. Both of these have at least some registration ...
[ 0.7909145951271057, -0.10391280055046082, -0.03063785657286644, 0.2687831521034241, -0.29908010363578796, -0.3110668957233429, -0.10401119291782379, 0.10066615045070648, -0.588737428188324, -0.5471318364143372, 0.062137532979249954, 0.26526033878326416, -0.19187423586845398, -0.18455158174...
How are the java API thread priorities (1-10) gets translated to the OS level priorities since most OS don't have thread priority levels (in terms of number) which match this. So keeping in mind , can there be a scenario when two or more threads with different priorities eventually get the same priority at OS level. ...
[ 0.16228066384792328, -0.22240296006202698, 0.21413443982601166, 0.15020503103733063, -0.05367755517363548, 0.11402598768472672, -0.012674082070589066, -0.15857982635498047, -0.46529996395111084, -0.629440426826477, -0.15521112084388733, 0.18027840554714203, -0.3227522671222687, -0.01696112...
– 10 ⇒ 127 Of note is that on Solaris, you can't raise the thread priority above normal, only lower it: the priority value for 5 is the same as any of the higher values. Linux ----- * 1 – 10 ⇒ 4 – -5 (`nice` values) Of note is that on Linux, different thread priorities in Java do map to distinct priority values at ...
[ 0.08507116883993149, 0.05271024629473686, 0.5033987760543823, -0.0015172784915193915, -0.019850878044962883, 0.22565671801567078, 0.13301706314086914, 0.10000543296337128, -0.2575300633907318, -0.5654571652412415, -0.14898239076137543, 0.4930513799190521, -0.3643415868282318, 0.05568874999...
As the title says. How would I create an instance of a class that is globally available(for example I have a functor for printing and i want to have a single global instance of this(though the possibility of creating more)). Going to all the effort of making a singleton object using the usual pattern isn't addressing t...
[ 0.1135934442281723, 0.13216322660446167, 0.08517704159021378, -0.008365031331777573, 0.00980049092322588, -0.3148605525493622, 0.28958338499069214, 0.2600482404232025, -0.047898463904857635, -0.4906524419784546, -0.20881478488445282, 0.479482501745224, -0.39200547337532043, 0.4583032429218...
// ... }; extern MyClass g_MyClassInstance; // myclass.cpp MyClass g_MyClassInstance; MyClass::MyClass() { // ... } ``` Now, in any other module just include `myclass.h` and use `g_MyClassInstance` as usual. If you need to make more, there is a constructor ready for you to call.
[ -0.10925206542015076, 0.00013982040400151163, 0.3448632061481476, -0.16815882921218872, 0.02594483271241188, -0.2559069097042084, 0.2221747785806656, 0.16393263638019562, -0.26443004608154297, -0.8500241637229919, -0.3599083721637726, 0.5453217029571533, -0.3246164619922638, 0.188807025551...
I know there is no such thing as a dumb question but this is: Can you serve contextual based ads via adsense or others on a site that is entirely behind https? Yes, as long as the website is not protected by SSL certificates (in that the client accessing the website needs to have a certificate) Google is perfectly capa...
[ 0.6902155876159668, 0.35934415459632874, 0.16660822927951813, 0.12815973162651062, -0.29721471667289734, -0.41543301939964294, 0.39000678062438965, 0.10754816979169846, -0.14971941709518433, -0.3415190279483795, 0.04655790328979492, 0.28803858160972595, -0.22496017813682556, -0.08816364407...
may contain insecure elements. I do know that their analytics code (For Google analytics) does contain an SSL possibility. In case you have any more questions, Google's adsense support team/faq will be able to better provide answers to your questions, since you can let them know what site you are talking about!
[ 0.52077716588974, 0.18493208289146423, -0.09766258299350739, 0.3992205262184143, 0.18833476305007935, -0.5788622498512268, 0.39573758840560913, 0.15336541831493378, -0.21149367094039917, -0.11767946928739548, -0.197726771235466, 0.11833418160676956, -0.2048560529947281, -0.0607031546533107...
I am developing a .NET CF based Graphics Application, my project involves a lot of drawing images, We have decided to go for porting the application on different handset resolution.(240 X 240 , 480 X 640) etc. How would i go onto achieve this within single solution/project? Is there a need to create different projec...
[ 0.6627984642982483, 0.30796533823013306, 0.2468872368335724, 0.42026954889297485, -0.1981709599494934, -0.12856915593147278, -0.060978736728429794, 0.22890251874923706, -0.325369268655777, -0.7701367139816284, 0.4024142026901245, 0.7560701966285706, -0.28444090485572815, 0.5235280990600586...
**forms inheritance**, which can be tacked onto an existing CF application with minimal effort. Basically, you design each form for a standard 240x320 screen. When you need to re-arrange a form for a new resolution (let's say 240x240), you add a new form to your project and have it inherit from your original 240x320 f...
[ 0.30310171842575073, -0.17795197665691376, 0.666006863117218, 0.25324496626853943, -0.0038256358820945024, -0.08984588831663132, -0.009904932230710983, -0.3109872043132782, -0.373095840215683, -0.9827344417572021, -0.06345536559820175, 0.30777648091316223, -0.5818725228309631, 0.0443614721...
controls on the form you're inheriting from, and you can move them and resize them as you see fit to accomodate the new screen dimensions (this will not affect the original form's layout). When your program is running, it's easy for it to check the screen resolution of the device it's running on and create the appropr...
[ 0.26804083585739136, -0.3172265589237213, 0.6101473569869995, 0.33553677797317505, 0.23107413947582245, -0.17569519579410553, -0.17686964571475983, -0.3114231824874878, -0.3708131015300751, -0.7516276240348816, -0.04554150253534317, 0.6456523537635803, -0.35865941643714905, 0.0930913314223...
There are a number of great Javascript libraries\frameworks out there (jQuery, Prototype, MooTools, etc.), but they all seem to focus on DOM interaction and AJAX functionality. I haven't found any that focus on extending the built-in data types (String, Date, Number, etc.). And by "Extending" I mean methods to solve ty...
[ 0.2421826422214508, -0.10999062657356262, 0.021217215806245804, 0.1635875105857849, -0.13747559487819672, -0.14772193133831024, 0.015803882852196693, 0.01391261164098978, -0.3331006169319153, -0.6374766826629639, -0.08924196660518646, 0.5513250827789307, -0.2847821116447449, -0.03152080625...
address similar productivity issues before launching into a library of my own. Prototype has a few interesting methods in this regard, but since I've already settled on jQuery for DOM work, I really don't need to duplicate functionality on every page. Is anyone aware of a good, lean data type productivity library for...
[ 0.3782779574394226, 0.09306879341602325, 0.06323260068893433, -0.012782531790435314, -0.23617632687091827, -0.13621610403060913, 0.07918406277894974, 0.12754492461681366, -0.4589442312717438, -0.6581252217292786, 0.001172924181446433, 0.5946378111839294, 0.1696922332048416, -0.202796384692...
Is there any way to direct C# to ignore `NullReferenceException` (or any specific exception for that matter) for a set of statements. This is useful when trying to read properties from a deserialized object that may contain many null objects in it. Having a helper method to check for null could be one way but I'm look...
[ 0.2549797296524048, -0.3275710642337799, 0.13830290734767914, 0.009997938759624958, -0.10025365650653839, -0.3602246940135956, 0.249733105301857, -0.15101246535778046, -0.2686135470867157, -0.24098102748394012, -0.21027976274490356, 0.49929675459861755, -0.470386266708374, -0.3731485903263...
stmt 3; } catch (NullReferenceException) { } ``` For Example: I'm deserializing an XML message to an object and then try to access a property like ``` Message.instance[0].prop1.prop2.ID ``` now prop2 could be a null object (because it doesn't exists in XML Message - an optional element in XSD). right now I need to...
[ 0.1285458654165268, -0.26984697580337524, 0.3607499599456787, -0.02543923631310463, -0.17802734673023224, -0.2612125277519226, 0.44377195835113525, -0.39131292700767517, -0.12972548604011536, -0.6278281807899475, -0.11736351996660233, 0.6155714392662048, -0.30501633882522583, 0.09456747770...
definition string X = GetValue(() => Message.instance[0].prop1.prop2.ID); //usage //GetValue defintion private string GetValue(SD d){ try { return d(); } catch (NullReferenceException) { return ""; } } ``` Thanks to [Try-catch every line of code ...
[ 0.23438814282417297, -0.49103930592536926, 0.1926787942647934, 0.046659138053655624, 0.07865636795759201, -0.13769815862178802, 0.4622211456298828, -0.4026406705379486, -0.10652850568294525, -0.5578889846801758, -0.43625766038894653, 0.3585478365421295, -0.15552093088626862, -0.01270250882...
I have seen posts that show three ways to reset the DMV views: 1. Reset the SQL Service 2. Detatch the database 3. Close the database All of these methods seem to require taking the system off-line for a few moments. Is there a way to reset the statistics on demand without interrupting use of the database? When we ha...
[ 0.45930716395378113, 0.0021684938110411167, 0.4634121358394623, 0.3700687885284424, -0.05833176523447037, -0.12191099673509598, 0.2236023098230362, -0.0319172739982605, -0.4029618501663208, -0.41161832213401794, 0.015897177159786224, 0.7462279200553894, -0.39673376083374023, 0.069158188998...
DMVs](http://msdn.microsoft.com/en-us/library/ms189768(SQL.90).aspx) only (BOL link) ``` sys.dm_os_latch_stats sys.dm_os_wait_stats ```
[ 0.047935035079717636, -0.18053805828094482, 0.7137037515640259, -0.04483344778418541, 0.00693821907043457, -0.06210631877183914, -0.19334064424037933, -0.18048816919326782, -0.6045233607292175, -0.6911340951919556, -0.43710964918136597, 0.5664791464805603, -0.19087715446949005, 0.160719379...
I want to access a MySQL database directly from JavaScript code in an HTML page in Firefox. Does such a library exist? To be very clear, **CGI+Ajax will not work** Some background: I want to create something like a GUI front end for a MySQL database (that's not what it is, but it's close enough). I'm thinking about ...
[ 0.3373260498046875, 0.3317967355251312, 0.2600787878036499, 0.0770234614610672, -0.1701032966375351, -0.11161841452121735, 0.07979857921600342, -0.07108412683010101, -0.1320953369140625, -0.9744746685028076, 0.19942522048950195, 0.5186278820037842, -0.31436219811439514, -0.0334076061844825...
this question, that won't work. NOTE: both the database and the JavaScript code will be running locally and are not intended as a public page. In fact the HTML file will loaded as a file://// file. The only reason I'm using JavaScript is that it's the only available system for doing GUI stuff where I need it. I'm wil...
[ 0.5650568604469299, 0.17748577892780304, 0.20910446345806122, 0.26365232467651367, -0.0923585444688797, -0.20779365301132202, 0.42913246154785156, -0.06605508178472519, -0.20259572565555573, -0.7395310997962952, 0.11139805614948273, 0.6170591115951538, -0.2513873875141144, 0.09949394315481...
as files (ugly, and not too flexible, but it would work) I think I'm not going to pursue this. JavaScript code lives inside the browser. It can make HTTP requests to the outside, but not really much more. So by design you won't be able to bind to a program running locally. If MySQL did expose an HTTP service, it might ...
[ 0.5923441648483276, 0.2941308915615082, 0.12439391016960144, 0.0898083746433258, -0.23558589816093445, -0.27080148458480835, 0.3272422254085541, -0.010137414559721947, -0.3659117817878723, -0.8185592889785767, 0.0009076925925910473, 0.3994135558605194, -0.470731645822525, 0.316441982984542...
from JavaScript code, have a look at [Google Gears](http://gears.google.com/). It is a Firefox / Internet Explorer plugin that exposes an [SQLite](http://www.sqlite.org/) database and a few other goodies. If you give more information on what you are trying to build, we might be able to give you better advice...
[ 0.41837021708488464, 0.30346307158470154, -0.06544119864702225, 0.3056585192680359, 0.18360522389411926, -0.024103285744786263, -0.04719304293394089, -0.08447021245956421, 0.17236624658107758, -0.7765087485313416, 0.2405235767364502, 0.4645449221134186, -0.15777522325515747, -0.05666036158...
I have got a table in MS Access 2007 with 4 fields. * Labour Cost * Labour Hours * Vat * Total How do I multiply 'Labour Hours' by 'Labour Cost' add the 'VAT' and display the answer in 'Total' Where would I put any formulas?, in a form or query or table ? There is also the dummies (ie not SQL) way to do it: First de...
[ 0.1188221201300621, 0.14109505712985992, 0.495125412940979, -0.057613056153059006, -0.21095460653305054, 0.8220531940460205, -0.17056730389595032, -0.3259340822696686, -0.4882010519504547, -0.37999245524406433, 0.1975734680891037, 0.41495293378829956, -0.16074708104133606, 0.20154729485511...
can check that everything is working), select an empty field, right click and select "Build" from the drop down list. You should now have an Expression Builder window. Type in the name for your calculated field, e.g. labourTotal, follow it with a colon ":" and then select the field names you want to add from Tables a...
[ 0.27896231412887573, -0.18107403814792633, 0.3059707581996918, 0.03521597012877464, 0.1321520060300827, 0.40754982829093933, 0.006720832083374262, -0.36728042364120483, -0.0855916291475296, -0.4388456642627716, -0.31131643056869507, 0.6580262184143066, -0.18093648552894592, -0.178831070661...
Hours] + [Labour]![Vat] ". Click OK and run the query - if all is well the total column will display the results.
[ 0.42759761214256287, 0.15902253985404968, 0.8665868043899536, -0.1496816724538803, 0.17653031647205353, 0.32264870405197144, 0.21064478158950806, -0.5392637252807617, -0.6306448578834534, -0.11940717697143555, -0.2806791067123413, 0.5933455228805542, -0.22632940113544464, 0.485246121883392...
When trying to work with Qt's signal/slot mechanisms over more than one level of inheritance, I ran into a problem: When my class does not directly inherit from QObject, signals and slots don't seem to work any more. The output of the following program illustrates the case: ``` require 'Qt' class A < Qt::Object si...
[ -0.12026583403348923, -0.23584944009780884, 0.4149188995361328, -0.24987703561782837, -0.029019581153988838, 0.09040364623069763, 0.19360943138599396, -0.5046231150627136, 0.08458899706602097, -0.5832110643386841, -0.2557256519794464, 0.5178582072257996, -0.20291663706302643, 0.16197668015...
received and I am a #{self.class}" end end class B < A def initialize super() end end app = Qt::Application.new(ARGV) A.new B.new app.exec ``` The program yields ``` This is the c'tor of A and I am a A Signal received and I am a A This is the c'tor of A and I am a B ``` However, I would expect ``` T...
[ 0.02203100360929966, 0.08157876878976822, 0.945225179195404, -0.3098171055316925, -0.25809723138809204, 0.2956046164035797, 0.47080397605895996, -0.511952817440033, -0.17601564526557922, -0.08267184346914291, -0.4332793653011322, 0.5010091662406921, -0.13825903832912445, 0.5376863479614258...
QObject.". Since B < A < QObject, I would expect that to be true. The according C++ program behaves as expected (although you cannot identify the type of an object in its c'tor in c++, but that is besides the point here). The question is: Why does the program not give the expected output? As Terence Simpson pointed ou...
[ 0.15316109359264374, 0.03292915225028992, -0.034196026623249054, -0.2539389431476593, -0.38850468397140503, 0.09167411923408508, 0.40060141682624817, -0.018898461014032364, -0.014737160876393318, -0.09609002619981766, 0.07222110778093338, 0.6062447428703308, -0.6187374591827393, -0.0378154...
I would like to add a method to a built-in type (e.g. Double), so that I can use an `infix` operator. Is that possible? Yes and no. Yes, you can make it *seem* like you have added a method to `double`. For example: ``` class MyRichDouble(d: Double) { def <>(other: Double) = d != other } implicit def doubleToSyntax(...
[ 0.4189459979534149, -0.07579910755157471, 0.10900239646434784, -0.21910400688648224, 0.1715514063835144, -0.1493394672870636, 0.21073608100414276, -0.26752322912216187, 0.08189565688371658, -0.520612895488739, -0.10325837135314941, 0.5216309428215027, -0.5270556807518005, -0.01932018250226...
true ``` The "no" part of the answer comes from the fact that you aren't really adding anything to the `Double` class. Instead, you are creating a conversion from `Double` to a new type which does define the method you want. This can be a much more powerful technique than the open-classes offered by many dynamic lang...
[ 0.595913290977478, 0.1763324737548828, 0.001993393525481224, -0.044957734644412994, 0.03507104143500328, -0.41236358880996704, 0.7962985038757324, -0.17993232607841492, 0.3324604034423828, -0.285428911447525, -0.34053802490234375, 0.829376220703125, -0.5410876274108887, -0.0181786194443702...
extension method to be available Idiomatically, implicit conversions are either placed within singleton objects and imported (e.g. `import Predef._`) or within traits and inherited (e.g. `class MyStuff extends PredefTrait`). Slight aside: "infix operators" in Scala are actually methods. There is no magic associated w...
[ 0.06582455337047577, -0.33358868956565857, 0.23105084896087646, -0.18784919381141663, 0.04772568866610527, 0.1030053123831749, -0.05180914327502251, -0.26787281036376953, -0.04909670352935791, -0.49485066533088684, -0.25898095965385437, 0.5683652758598328, -0.34347015619277954, -0.12467878...
= ... val subStream = str take 5 ``` The `str take 5` expression is literally identical to `str.take(5)`.
[ -0.025428514927625656, -0.4439236521720886, 0.3455035388469696, -0.527218222618103, -0.05913157016038895, -0.16832107305526733, 0.21852301061153412, -0.11673051118850708, 0.2939954102039337, -0.05182655528187752, -0.29013749957084656, 0.7070470452308655, -0.20137891173362732, -0.1708750873...
I'm passing a reference of a form to a class. Within this class I believed I could use `formRef->Controls["controlName"]` to access properties on the control. This works for a few labels, but on a button I receive a "Object reference not set to an instance of an object." when I try to change the Text property. Help o...
[ 0.1182754710316658, 0.1039176881313324, 0.44377362728118896, 0.041040465235710144, 0.0036638621240854263, 0.010558302514255047, 0.3737432062625885, -0.3842014670372009, -0.15610255300998688, -0.7927546501159668, -0.09335526823997498, 0.46746712923049927, -0.16414889693260193, 0.12966397404...
that when I posted. The new solution will search all children too, so it's an improvement.
[ 0.31135615706443787, -0.1457710564136505, 0.48256757855415344, 0.3882983326911926, -0.045819737017154694, 0.019411852583289146, 0.3805466592311859, 0.02172209322452545, -0.38007852435112, -0.6589459180831909, 0.15915662050247192, 0.09745591133832932, 0.21918101608753204, 0.2160366922616958...
Instead of writing ``` ((x: Double) => (((y: Double) => y*y))(x+x))(3) ``` I would like to write something like ``` ((x: Double) => let y=x+x in y*y)(3) ``` Is there anything like this sort of syntactic sugar in Scala? Indeed there is: it's called "`val`". :-) ``` ({ x: Double => val y = x + x y * y })(3) `...
[ 0.1574304848909378, -0.10846787691116333, 0.31021377444267273, 0.036322928965091705, -0.498309463262558, -0.17578616738319397, 0.36956101655960083, -0.16433431208133698, -0.04265998303890228, -0.4707423746585846, -0.06460176408290863, 0.45852869749069214, -0.38355475664138794, -0.051148172...
also works within any scope, but it's considered bad style to use it.
[ 0.4680446684360504, 0.17302800714969635, 0.02538803406059742, 0.17088495194911957, 0.16175590455532074, -0.2930872440338135, 0.3887845277786255, 0.027398740872740746, 0.09607637673616409, -0.5171608328819275, -0.1594480276107788, 0.35829275846481323, 0.09179055690765381, -0.292269796133041...
I'm working on a star schema for analysis of posted form data. The site that the form data will be posted to is actually external to the site hosting the form, so only the data in the form will be available. I'm going to give the option to include some extra useful information with hidden fields, original referrer, ses...
[ 0.5497519969940186, 0.13986213505268097, 0.7207391262054443, 0.3360213041305542, -0.09442336857318878, -0.167863130569458, 0.13142307102680206, -0.03999384492635727, -0.06363466382026672, -0.6359812021255493, 0.15722797811031342, 0.3096804916858673, -0.017805615440011024, 0.086934134364128...
will work. The problem that I have is that I have no idea what is going to be in my fact table, its not like there is a nice numerical value that I can aggregate. Apart from the fact that "yes there is a form post" that satisfies these criteria. I'm wondering if I'm approaching this in the right way? Am I using the w...
[ 0.4492768347263336, -0.15506690740585327, 0.4689253866672516, 0.1709466278553009, 0.343049556016922, -0.08840610831975937, 0.3166952431201935, -0.2025211900472641, -0.1993345469236374, -0.7879869937896729, 0.08262721449136734, 0.5327101349830627, 0.07507246732711792, -0.2712133526802063, ...
of filtering. The selected form posts will then be used to generate a csv file for export. The other main area is analytics, studying the conversion of ad spend into customer leads is an obvious starting point. Also somewhat open ended and depends on the form data. You aren't designing a star schema. You're designing ...
[ 0.2747371196746826, 0.104085274040699, 0.46438372135162354, 0.2504233717918396, -0.24977585673332214, -0.16080152988433838, 0.18089906871318817, -0.18974018096923828, -0.0595601350069046, -0.35642969608306885, 0.2146875113248825, 0.4996008276939392, -0.23387782275676727, 0.1049841195344924...
the information. Try XML or YAML or JSON. Those are structured, but dynamic, formats. You can establish metadata on the fly. You can store the whole form instance in a file or in a BLOB in your database. Another emerging technology that can manage dynamic metadata is [RDF](http://en.wikipedia.org/wiki/Resource_Descrip...
[ 0.357509046792984, -0.1853409856557846, 0.28875917196273804, 0.5413432121276855, -0.02075812593102455, -0.43597981333732605, -0.3140309751033783, -0.042808592319488525, -0.31893429160118103, -0.5278955101966858, -0.2966175079345703, 0.6161713600158691, -0.24330750107765198, 0.1489254236221...
Parts of my application are in C++ under windows. I need the process id for the current process. Any thoughts? The [`GetCurrentProcessId`](http://msdn.microsoft.com/en-us/library/ms683180(VS.85).aspx) function will do this.
[ 0.10864179581403732, 0.18500176072120667, 0.3877156376838684, 0.02932247705757618, 0.3651133179664612, -0.2873811423778534, 0.13013552129268646, 0.19165779650211334, -0.005658603738993406, -0.6432275772094727, -0.2868326008319855, 0.5667826533317566, -0.018636588007211685, -0.0956594273447...
If I have the following code: ``` MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null; ``` Will pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow garbage collection? ``` MyClass pClass = new MyCl...
[ -0.12905699014663696, -0.08124617487192154, 0.3751278519630432, 0.2637590169906616, -0.161029651761055, -0.1055903211236, 0.07593602687120438, -0.10573042929172516, -0.25633707642555237, -0.3831896483898163, -0.4437476396560669, 0.37002119421958923, -0.4065819978713989, 0.24013155698776245...
includes a reference to the instance. So yes, an event subscription will prevent GC. However, as soon as the object publishing the event (pClass above) is eligible for collection, this ceases to be a problem. Note that this is one-way; i.e. if we have: ``` publisher.SomeEvent += target.SomeHandler; ``` then "publis...
[ 0.16664506494998932, 0.1419653594493866, 0.2810310125350952, 0.10502098500728607, -0.2541261315345764, -0.38758087158203125, 0.30305877327919006, 0.09523706883192062, -0.26189810037612915, -0.48096662759780884, -0.33912011981010437, 0.5461961627006531, -0.38002297282218933, 0.1844838261604...
you want the target to be collected. Static events, however, for this reason, are very dangerous when used with instance-based handlers.
[ 0.08821592479944229, -0.2803531587123871, -0.4510576128959656, 0.4750158190727234, -0.27688026428222656, -0.17098523676395416, 0.25826793909072876, -0.017518742009997368, -0.2247186005115509, -0.3294033706188202, -0.03579326346516609, 0.5762089490890503, -0.4074251651763916, -0.18146729469...
When C# 4.0 comes out and we have the dynamic keyword as described in this [excellent presentation by Anders Hejlsberg](http://channel9.msdn.com/pdc2008/TL16/), (C# is evolving faster than I can keep up.. I didn't have much time to acquaint myself with the var keyword) Would I still need the var keyword ? Is there any...
[ 0.11994331330060959, -0.0972534716129303, 0.03143151476979256, -0.11280353367328644, -0.013989201746881008, -0.35616445541381836, 0.1600036323070526, -0.24109692871570587, -0.26913490891456604, -0.09536845982074738, -0.32897138595581055, 0.822415292263031, -0.5169832706451416, -0.242029279...
this variable" - i.e. the compiler doesn't know what operations are available, and the DLR will work out what the calls *really* mean at execution time. I expect to use `dynamic` very rarely - only when I truly want dynamic behaviour: * `var` lets you catch typos etc at compile-time * statically bound code is always ...
[ -0.053539376705884933, -0.36436161398887634, 0.14632847905158997, 0.15161411464214325, -0.13663949072360992, -0.10795900225639343, 0.30406010150909424, 0.05326669290661812, -0.39270228147506714, -0.32269781827926636, -0.21117599308490753, 0.5714429616928101, -0.6059103012084961, -0.0123456...
Is it possible to create a list that can be access by either an index or a key? *I am looking for a Collection type that already exists but has this facility, I want to avoid redefining the indexers* System.Collections.Specialized.NameValueCollection can do this, but it can only store strings as values. ``` Syste...
[ -0.04108210653066635, 0.000652646238449961, 0.31635090708732605, -0.06451160460710526, 0.24105291068553925, 0.0034702755510807037, 0.09318987280130386, -0.3295139670372009, -0.46356701850891113, -0.5435675978660583, -0.258093923330307, 0.4970007538795471, -0.5764951705932617, 0.08028547465...
I'm trying to read a value from a file and use it in a subsequent command. I have a file called `AppServer.pid` which contains the process id of my app server (just the number, it's not a properties file or anything like that). The app server is hanging, so I want to take this value and pass it to the kill command. S...
[ 0.7131733298301697, 0.04327096790075302, 0.41735565662384033, -0.0903625637292862, -0.030168671160936356, 0.09266295284032822, 0.05418642610311508, -0.2198156863451004, -0.08523370325565338, -0.6935766339302063, 0.012927787378430367, 0.7590632438659668, -0.5280718803405762, -0.292805463075...
set the value of a parameter using input from the user (or in this case, input from a file)
[ 0.2708200514316559, -0.28155040740966797, -0.26319190859794617, 0.26063254475593567, -0.020076856017112732, 0.297794908285141, -0.34915709495544434, -0.42497485876083374, 0.13654087483882904, -0.36782512068748474, -0.00036964964237995446, 0.612069845199585, -0.4219382107257843, 0.066866621...
My project has collected CSS entropy (unused classes) during its course of development. Now in order to keep the CSS file small, I want to remove all unused CSS references. But doing that manually involves searching for each class in the entire project. That takes time. Do you know of any way/tool which I can adopt t...
[ 0.5999224185943604, 0.20045989751815796, 0.058119259774684906, -0.11340149492025375, 0.10576605051755905, -0.15962722897529602, 0.08208074420690536, 0.23281125724315643, -0.1822807788848877, -0.8966221213340759, 0.06972787529230118, 0.38940438628196716, -0.2255954146385193, 0.0467696413397...
I have written C# code for ascx. I am trying to send an email on click of image button which works in Mozilla Firefox but not in Internet Explorer. This function is called on button click: ``` <%@ Control Language="C#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Web.UI.WebControls" %> <%@ Import ...
[ 0.3850671052932739, 0.17791414260864258, 0.790835440158844, -0.18986794352531433, 0.1341237723827362, -0.0023543054703623056, 0.38540711998939514, -0.15691500902175903, 0.0003440830623731017, -0.9495559930801392, -0.09235439449548721, 0.24701270461082458, -0.272053599357605, 0.257753103971...
string to = "manoj.singh@espireinfo.com"; string subject = "Keep me Updated"; string sendguide = ""; if (optsendguide.Checked) { sendguide = "Yes Please send me"; }
[ 0.2278401255607605, -0.43356192111968994, 0.5044845938682556, -0.11387784034013748, 0.1984444260597229, 0.1449190080165863, 0.7260736227035522, -0.11603398621082306, 0.38228896260261536, -0.4180026352405548, -0.34828078746795654, 0.7339515089988708, -0.22482594847679138, -0.131450295448303...
else { sendguide = "No Please don't send me"; } // build up the body text string body = "<html><body>";
[ 0.1857333481311798, -0.33446815609931946, 0.36415937542915344, -0.0920410230755806, -0.16311436891555786, 0.16976118087768555, 0.6510965824127197, -0.20389734208583832, 0.3265787661075592, -0.5226073861122131, -0.04979819059371948, 0.6688361167907715, -0.2989352345466614, -0.12077780067920...
body += String.Format("<div>Title: {0} </div>", title.Text); body += String.Format("<div>First Name: {0} </div>",firstname.Value); body += String.Format("<div>Sur Name: {0} </div>", surname.Value); body += String.Format("<div>Email address: {0} </div>", email.Value); body...
[ 0.25698116421699524, -0.33802711963653564, 0.5408762097358704, -0.10649749636650085, -0.409365713596344, 0.13835176825523376, 0.3208247125148773, -0.4323626756668091, -0.04705638438463211, -0.32187652587890625, -0.3043663203716278, 0.29167991876602173, 0.033197320997714996, -0.052156284451...
body += "</body></html>"; string error = Utilities.SendEmail(to, from, subject, body); if (error == "") // success { Response.Redirect("index.aspx"); } else // error
[ -0.032493721693754196, -0.35516488552093506, 0.46206846833229065, -0.1475997418165207, -0.3182181417942047, 0.4518750309944153, 0.5470210909843445, -0.7487068772315979, -0.1963559091091156, -0.4667578339576721, -0.3391930162906647, 0.5359172224998474, -0.16679777204990387, -0.1777931600809...
{ Response.Write(error); } } } </script> ``` Markup: ``` <div class="form_elm_button"> <asp:ImageButton ID="SubmitButton" runat="server" Text="Submit"
[ -0.014536776579916477, -0.2834658920764923, 0.5215705633163452, -0.21891142427921295, -0.2951328456401825, 0.31411999464035034, 0.16271314024925232, -0.3593226671218872, -0.17200380563735962, -0.7173926830291748, -0.2661016881465912, 0.370846688747406, -0.361380398273468, -0.10215855389833...
ImageUrl="/images/17-6164button_submit.png" OnClick="btnSubmit_Click" CausesValidation="true"/> </div> ``` hai all, This code is working in IE not mozilla,anyone give idea document.onkeypress = KeyCheck; function KeyCheck(e) { ``` var KeyID = (window.event) ? event...
[ 0.3894270658493042, -0.0940459668636322, 0.7037438154220581, 0.012832807376980782, 0.096622996032238, -0.2673494219779968, 0.17567038536071777, -0.25410178303718567, -0.05531490221619606, -0.9420391917228699, -0.42408016324043274, 0.6010677218437195, -0.43927866220474243, 0.012324253097176...
(KeyID == 0) { var image = document.getElementById("<%= imagetirukural.ClientID%>"); var label = document.getElementById("<%= lbltirukural.ClientID%>"); if (image != null) { document.getElementById("<%= imagetirukural.ClientID%>").style.display = "block"; ...
[ 0.007153221406042576, -0.24941976368427277, 0.6731824278831482, -0.3331077992916107, 0.11077804863452911, 0.23465827107429504, 0.48376932740211487, -0.42735016345977783, -0.04837937280535698, -0.5710683465003967, -0.6354638338088989, 0.6218012571334839, -0.33493557572364807, 0.346578449010...
else { document.getElementById("<%= lbltirukural.ClientID%>").style.display = "block"; InitializeTimer(); } } else if (KeyID != 0) { if (image != null) {
[ 0.07800496369600296, -0.22835151851177216, 0.5179517269134521, -0.32196012139320374, 0.1926991045475006, 0.12578065693378448, 0.35452038049697876, -0.44037672877311707, 0.06987937539815903, -0.6432018280029297, -0.3796199560165405, 0.7344959378242493, -0.22976504266262054, 0.10452245920896...
document.getElementById("<%= imagetirukural.ClientID%>").style.display = "block"; } else { document.getElementById("<%= lbltirukural.ClientID%>").style.display = "block"; } } } ```
[ 0.052348773926496506, -0.06990592926740646, 0.5968878865242004, -0.31904932856559753, -0.07968612015247345, -0.10507319867610931, 0.18803368508815765, -0.2220821976661682, -0.07977455109357834, -0.7899176478385925, -0.6910367608070374, 0.7284917235374451, -0.37142109870910645, 0.2829943299...
Normally, in Delphi one would declare a function with a variable number of arguments using the 'array of const' method. However, for compatibility with code written in C, there's an much-unknown 'varargs' directive that can be added to a function declaration (I learned this while reading Rudy's excellent '[Pitfalls of ...
[ 0.13423652946949005, 0.03020176663994789, 0.35304805636405945, -0.2989901900291443, -0.15576201677322388, -0.19827806949615479, 0.1266292929649353, -0.4163280129432678, -0.02426878735423088, -0.33639541268348694, -0.3183514475822449, 0.822123110294342, -0.46225032210350037, -0.193520382046...
'varargs' directive? I would expect that some tooling for this exists, like Dephi translations of the va\_start(), va\_arg() and va\_end() functions, but I can't find this anywhere. Please help! PS: Please don't drift off in discussions about the 'why' or the 'array of const' alternative - I need this to write C-lik...
[ 0.3508782684803009, 0.13795147836208344, 0.369430810213089, -0.01900138519704342, -0.06263003498315811, -0.29981526732444763, 0.15585102140903473, -0.03396020457148552, -0.004734371323138475, -0.4926963150501251, -0.22620441019535065, 0.9877958297729492, -0.32184866070747375, -0.0328868031...
calling convention on the x86: the stack grows downwards, and C pushes arguments from right to left. Thus, a pointer to the last declared argument, after it is incremented by the size of the last declared argument, will point to the tail argument list. From then, it's simply a matter of reading the argument out and inc...
[ 0.22806179523468018, -0.048213835805654526, 0.18567277491092682, -0.24318015575408936, -0.1106538251042366, -0.23863546550273895, -0.0008447702275589108, -0.18158838152885437, -0.08022857457399368, -0.07646986842155457, -0.1449316143989563, 0.7524324655532837, -0.513164222240448, 0.0927746...
that shows how to read out data. Note that Delphi seems to be passing Extended types in a very odd way; however, you likely won't have to worry about that, as 10-byte floats aren't generally widely used in C, and aren't even implemented in the latest MS C, IIRC. ``` {$apptype console} type TArgPtr = record priv...
[ 0.13644476234912872, -0.020077131688594818, 0.4201827943325043, -0.13350993394851685, 0.22374343872070312, -0.09614502638578415, -0.048374176025390625, -0.32576388120651245, -0.04470274597406387, -0.36270806193351746, -0.15116140246391296, 0.5676752328872681, -0.29164284467697144, -0.02966...
an unsigned version if necessary. function ReadInt32: Integer; // Exact floating-point semantics depend on C compiler. // Delphi compiler passes Extended as 10-byte float; most C // compilers pass all floating-point values as 8-byte floats. function ReadDouble: Double; function ReadExtended: Ext...
[ -0.1294085830450058, -0.007327256724238396, 0.4214189648628235, -0.5224087834358215, -0.09060104936361313, 0.2458866685628891, 0.14737530052661896, -0.39298394322395325, -0.0536016970872879, -0.09223467111587524, -0.4057728350162506, 0.5053078532218933, -0.3781820833683014, -0.098073601722...
TArgPtr.Align(Ptr: Pointer; Align: Integer): Pointer; begin Integer(Result) := (Integer(Ptr) + Align - 1) and not (Align - 1); end; function TArgPtr.ReadInt32: Integer; begin ReadArg(Result, SizeOf(Integer)); end; function TArgPtr.ReadDouble: Double; begin ReadArg(Result, SizeOf(Double)); end; function TArgPtr...
[ -0.22794441878795624, -0.09374794363975525, 0.43050703406333923, -0.37067580223083496, 0.030825981870293617, 0.4363074004650116, 0.3678123950958252, -0.36178073287010193, -0.06705005466938019, -0.058994267135858536, -0.36501848697662354, 0.7604102492332458, -0.41999730467796326, -0.1446314...
Writeln; Exit; end; 'i': Write(ap.ReadInt32, ' '); 'd': Write(ap.ReadDouble, ' '); 'e': Write(ap.ReadExtended, ' '); 's': Write(ap.ReadPChar, ' '); else Writeln('Unknown format'); Exit; end; Inc(cp); end; end; type PDump = procedure(const types: string...
[ -0.19588343799114227, -0.18752527236938477, 0.5127037167549133, -0.34447821974754333, 0.10078642517328262, 0.4928387701511383, 0.4357110559940338, -0.3869587182998657, -0.33783841133117676, -0.2656782865524292, -0.6762297749519348, 0.39789050817489624, -0.4877791106700897, 0.09488603472709...
AsSingle(e: Extended): Single; begin Result := e; end; procedure Go; begin MyDump := @Dump; MyDump('iii', 10, 20, 30); MyDump('sss', 'foo', 'bar', 'baz'); // Looks like Delphi passes Extended in byte-aligned // stack offset, very strange; thus this doesn't work. MyDump('e', 2.0); // These two are mor...
[ 0.2503587007522583, 0.0008632437675260007, 0.6141625642776489, -0.34679675102233887, 0.05252500995993614, 0.3824019134044647, 0.16357018053531647, -0.46258217096328735, -0.2999524176120758, -0.3327023983001709, -0.4351612627506256, 0.46179091930389404, -0.35983607172966003, 0.0850667282938...
I have a really simple ASP.NET web application and a web setup project that deploys the project output and content files to a virtual directory in IIS. What I want is for the MSI to automatically disable Anonymouse Access for that virtual folder in IIS. I suspect it can probably be done by writing some code in a cus...
[ 0.5336183905601501, -0.0100285355001688, 0.02022506482899189, 0.08187346160411835, 0.026168297976255417, -0.29955336451530457, 0.10757475346326828, -0.16138345003128052, -0.19095683097839355, -0.7096763849258423, -0.0721544623374939, 0.48859602212905884, -0.24774721264839172, 0.12035176157...
reason, > you must: > > > 1. Write a custom installer to enable or disable anonymous access. > 2. Pass the necessary parameters from the setup wizard to the installer at > run time.
[ 0.5504618287086487, -0.11217082291841507, 0.19417303800582886, 0.1887868493795395, 0.06385854631662369, -0.5969533324241638, 0.49732705950737, -0.42085880041122437, 0.2202581763267517, -0.5703334808349609, -0.16453112661838531, 0.7661380171775818, -0.4425821602344513, -0.14493630826473236,...
I've just started building a prototype application in Django. I started out by working through the [Django app tutorial on the Django site](http://docs.djangoproject.com/en/dev/intro/tutorial01/) which was pretty helpful, and gave me what I needed to get started. Now I have a couple of what I hope are very simple quest...
[ 0.5082109570503235, 0.1770085245370865, 0.15119512379169464, -0.07284471392631531, -0.23664230108261108, -0.023104822263121605, -0.3880067765712738, 0.019216176122426987, -0.4347310960292816, -0.33480632305145264, 0.44059810042381287, 0.1883801519870758, -0.03174047917127609, -0.1636600345...
<option value=0 SELECTED>No score</option> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> <option value=4>4</option> <option value=5>5</option> <option value=6>6</option> <option value=7>7</option> <option value=8>8</option> <option value=9>9</option> <option value=...
[ 0.13939446210861206, -0.28939396142959595, 0.3107825815677643, -0.007224929518997669, 0.21533456444740295, 0.3141787350177765, -0.010236045345664024, -0.4206249415874481, -0.22677092254161835, -0.41048464179039, 0.051232658326625824, 0.39281392097473145, -0.1799376904964447, -0.02161595225...
through those variables. I'm guessing that I want something like this: ``` for o in request.POST.all endfor ``` but then I'm really not sure what to do with that. I'm not looking for someone to write the code for me, really: I just would like some guidance on how to write a loop like this in python / Django, and a...
[ 0.47476616501808167, 0.2842313051223755, -0.007666220888495445, -0.17609000205993652, -0.04435436800122261, -0.04131987318396568, 0.1260516345500946, 0.34543514251708984, -0.24078167974948883, -0.523125410079956, 0.14479568600654602, 0.2979831397533417, -0.3264581859111786, 0.0529003180563...
loop to generate it in the template in the first place. My template currently has this: ``` <table> {% for movie in movie_list %} <tr> <td> {{ movie }} </td> <td> <select name="score{{ movie.id }}"> <option value=0 SELECTED>No score</option> <option value=1>1</option> <option va...
[ 0.6039085388183594, -0.3486332893371582, 0.20124386250972748, -0.09450060874223709, 0.21411234140396118, 0.13587839901447296, 0.09921683371067047, -0.6285746097564697, -0.188442200422287, -0.18917788565158844, 0.2613659203052521, 0.2849012315273285, -0.45495671033859253, 0.2500870525836944...
<option value=5>5</option> <option value=6>6</option> <option value=7>7</option> <option value=8>8</option> <option value=9>9</option> <option value=10>10</option> </select> </td></tr> {% endfor %} </table> ``` I feel like there must be a way to create a simple ...
[ 0.20633983612060547, -0.49993056058883667, 0.24561767280101776, -0.02221827208995819, 0.3248387277126312, 0.15364761650562286, 0.15974338352680206, -0.23794464766979218, -0.2878808379173279, -0.31709274649620056, -0.10344712436199188, 0.6180634498596191, -0.22834442555904388, -0.1794534474...
need to look at the Django [forms](http://docs.djangoproject.com/en/dev/topics/forms/#topics-forms-index). You should never build your own form like that. You should declare a Form class which includes a [ChoiceField](http://docs.djangoproject.com/en/dev/ref/forms/fields/#choicefield) and provide the domain of choice...
[ 0.4767773151397705, 0.13690951466560364, 0.2683752477169037, -0.10803736001253128, -0.006979760713875294, -0.36387139558792114, -0.11365453153848648, -0.19118478894233704, -0.2579043209552765, -0.6703923940658569, -0.1488499492406845, 0.49168160557746887, -0.34690725803375244, -0.235004261...
If I put a DateTime value into an Excel cell using `Range.set_value` through .Net COM Interop, and then retrieve the value of that same cell using `Range.get_value`, the Millisecond part of the value is not returned, though everything else is correct. Is this a bug? What is the workaround? I'm guessing that using the...
[ 0.3405931890010834, -0.06243143603205681, 0.3231163024902344, -0.39386090636253357, 0.20282891392707825, -0.1078871488571167, 0.33085834980010986, -0.3915160000324249, -0.10734102874994278, -0.33828747272491455, 0.0387110561132431, 0.522688090801239, -0.3316270709037781, -0.004557274747639...
it doesn't tell you that the cell is supposed to be treated as a DateTime. I guess to solve this, you'd need to use a two-pass approach: get cell values using Range.get\_Value to determine their type, then, for any DateTime cells, get their values again using Range.Value2, then convert using DateTime.FromOADate.
[ 0.27553725242614746, -0.2577003538608551, 0.3056134879589081, -0.2369224727153778, 0.3129548132419586, -0.03353889286518097, 0.13283021748065948, -0.19646130502223969, -0.051533401012420654, -0.4596172273159027, 0.09151125699281693, 0.25718244910240173, -0.349456250667572, 0.19186525046825...
This is the HTML: ``` <div id="testBlue"> <span>hello</span> <span id="testGreen" class="testGreen">hello2</span> </div> ``` If I have set in CSS: ``` #testBlue span { color:Blue; } .testGreen, #testGreen { color:Green; } ``` How can I override the general style in the second SPAN? I have tried both ...
[ 0.24115240573883057, -0.04662739485502243, 0.2881453037261963, 0.07658720761537552, -0.34791550040245056, -0.2691555321216583, 0.05468988046050072, -0.47156476974487305, -0.20314309000968933, -0.825238823890686, -0.17699359357357025, 0.5398648977279663, -0.17369909584522247, -0.06649932265...