text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
asking for information on techniques for the simulation of [participating media](http://www.cescg.org/CESCG-2000/SMaierhofer/node6.html): "Participating media may absorb, emit and/or scatter light. The simplest participating medium only absorbs light. That means that light passing through the medium is attenuated depen... | [
0.05532247573137283,
-0.15983739495277405,
0.16467081010341644,
0.15581046044826508,
-0.4454047679901123,
0.012438551522791386,
-0.16666840016841888,
-0.4482954740524292,
-0.3750191926956177,
-0.3613855242729187,
-0.23161809146404266,
0.2666362524032593,
0.10592059046030045,
0.063324317336... | |
I want to find records on a combination of created\_on >= some date AND name IN some list of names.
For ">=" I'd have to use sql condition. For "IN" I'd have to use a hash of conditions where the key is :name and the value is the array of names.
Is there a way to combine the two?
You can use named scopes in rails 2.1... | [
0.37193000316619873,
-0.014669748023152351,
0.1792483925819397,
-0.020730530843138695,
0.021252911537885666,
-0.2940042018890381,
0.3854188024997711,
-0.34797969460487366,
-0.1343005895614624,
-0.54045569896698,
0.271360844373703,
0.45476457476615906,
-0.27866289019584656,
0.19411893188953... | |
arguments
```
Class Test < ActiveRecord::Base
named_scope :created_after, lambda { |date| {:conditions => ["created_on > ?", date]} }
named_scope :named, lambda { |name| {:conditions => {:name => name}} }
end
```
then you can do
```
Test.created_after(Time.now-1.year).named("fred")
``` | [
0.220547616481781,
0.20721469819545746,
0.10115507245063782,
-0.06357858330011368,
0.1384701281785965,
0.14298328757286072,
0.3161731958389282,
-0.2682346999645233,
0.13359662890434265,
-0.2956334948539734,
-0.15304404497146606,
0.48159483075141907,
-0.03090096265077591,
0.3246056437492370... | |
What interrupt would you hook from DOS to get the real-time clock?
The realtime clock cannot generate interrupts. It was (maybe still is) coupled with the cmos-ram because it was buffered by the battery. It can only be accessed via the ports 0x70 and 0x71.
You can however hook the interrupt of the PIT (programmable in... | [
0.2399912029504776,
0.06521084159612656,
0.1368706226348877,
0.0447782538831234,
0.2189541459083557,
0.24377241730690002,
0.15677106380462646,
-0.05393757298588753,
-0.32729989290237427,
-0.4564186930656433,
0.4663974940776825,
0.9988417029380798,
-0.2540178894996643,
0.1372450739145279,
... | |
an 0x43). | [
-0.39532679319381714,
0.014819364994764328,
0.23627924919128418,
-0.004952183458954096,
-0.03623282164335251,
-0.015077805146574974,
0.14128246903419495,
-0.2512893080711365,
0.13521400094032288,
-0.3697131276130676,
-0.39720678329467773,
0.11733340471982956,
-0.4343726336956024,
0.3486863... | |
There are similar question, but not regarding C# libraries I can use in my source code.
Thank you all for your help.
I've already saw lucene, but I need something more easy to search for similar strings and without the overhead of the indexing part.
The answer I marked has got two very easy algorithms, and one uses ... | [
0.30787521600723267,
-0.3257557153701782,
0.13537219166755676,
0.18126678466796875,
0.04169159010052681,
-0.037305839359760284,
-0.03958813101053238,
-0.08052261173725128,
-0.08912983536720276,
-0.833083987236023,
0.1157667487859726,
0.1449330449104309,
-0.12441713362932205,
-0.02449582144... | |
of tweaking, but nothing that wasn't obvious. | [
0.5710452795028687,
-0.0037832760717719793,
-0.4215275049209595,
0.12003219127655029,
-0.1379636973142624,
-0.10610634833574295,
0.17422665655612946,
-0.22041557729244232,
-0.4053124487400055,
0.10547960549592972,
0.44376900792121887,
0.02454535663127899,
-0.3127789795398712,
0.14817702770... | |
All I know about the constraint is it's name (`SYS_C003415`), but I want to see it's definition.
Another option would be to reverse engineer the DDL...
```
DBMS_METADATA.GET_DDL('CONSTRAINT', 'SYS_C003415')
```
Some examples here....
<http://www.psoug.org/reference/dbms_metadata.html> | [
0.06110774353146553,
0.07504498958587646,
0.3230413496494293,
0.05187128111720085,
0.19422410428524017,
-0.07087400555610657,
0.025258800014853477,
-0.09923751652240753,
-0.24596889317035675,
-0.4192315936088562,
-0.2942711412906647,
0.6446974873542786,
-0.3267575800418854,
0.3633641898632... | |
For example, in Java there is [Functional Java](http://functionaljava.org/) and [Higher-Order Java](http://www.cs.chalmers.se/~bringert/hoj/). Both essentially give a small API for manipulating higher-order, curried functions, and perhaps a few new data types (tuples, immutable lists).
have you looked into [F#](https:/... | [
0.22523149847984314,
0.003380032954737544,
0.12014542520046234,
0.10644830018281937,
-0.19455154240131378,
0.10864172875881195,
0.10496725142002106,
-0.05375022068619728,
-0.3371327221393585,
-0.3637373447418213,
-0.18329352140426636,
0.4055251181125641,
-0.23582004010677338,
-0.2756592631... | |
I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value , {2} with some value and {3} with some value .
Is it Possible to replace all 3 in one replace function ? or is there any way I can directly write query and get replaced value ? I want to replac... | [
0.3795238435268402,
0.016593610867857933,
0.1495884507894516,
0.1489637941122055,
-0.12812085449695587,
0.13737823069095612,
-0.08713846653699875,
-0.3185436725616455,
-0.05644143372774124,
-0.30755215883255005,
0.13196063041687012,
0.5899328589439392,
-0.3306620121002197,
0.18385261297225... | |
to the other value that I have from another table
Although it is not one call, you can nest the `replace()` calls:
```
SET mycol = replace( replace(mycol, '{1}', 'myoneval'), '{2}', mytwoval)
``` | [
-0.09446091204881668,
-0.091193288564682,
0.4729316830635071,
-0.16691383719444275,
0.27610158920288086,
0.2943271994590759,
-0.2550976574420929,
-0.16602246463298798,
0.036010753363370895,
-0.7155960202217102,
-0.2992742657661438,
0.6344393491744995,
-0.2563088536262512,
-0.14443911612033... | |
I want to find a way to develop database projects quickly in Visual Studio. Any ideas?
I have a method of creating and updating database projects in Visual Studio 2005 that I thought was common knowledge. After asking a few coworkers if they knew how to update their database projects with this method and receiving no's... | [
0.5204461812973022,
0.3122548460960388,
-0.1751120388507843,
0.045992691069841385,
-0.06271775811910629,
-0.2570433020591736,
0.06469900906085968,
0.27583545446395874,
-0.3618202805519104,
-0.6425067782402039,
0.4760262966156006,
0.576229453086853,
-0.03741094097495079,
0.02285781316459179... | |
database projects to live with my .NET projects. I am psychotic about keeping database projects up to date. I have been burned too many time in my younger years where I needed to create a stored procedure that was deleted or was out of sync with the application using the database.
After creating your database project ... | [
0.2748773694038391,
0.14325039088726044,
0.5045363306999207,
0.0746447890996933,
-0.07510693371295929,
-0.14057405292987823,
0.18648800253868103,
0.04929016903042793,
-0.40816882252693176,
-0.7763253450393677,
0.37402600049972534,
0.16540080308914185,
-0.37416067719459534,
0.23483306169509... | |
database. I am using Northwind as my example. I am not going to walk through the creation of the connection for this example.
[alt text http://www.cloudsocket.com/images/image-thumb18.png](http://www.cloudsocket.com/images/image-thumb18.png)
I will use a stored procedure as my example on how to update the database pr... | [
0.06382495164871216,
0.03495710715651512,
0.6014688014984131,
0.17328180372714996,
0.04358261078596115,
0.10096532851457596,
0.10970748960971832,
-0.16803134977817535,
-0.23392914235591888,
-0.748255729675293,
0.04656730592250824,
0.3686704933643341,
-0.16758866608142853,
-0.04025193676352... | |
as followed:
```
/****** Object: StoredProcedure [dbo].[CustOrdersOrders] Script Date: 08/25/2007 15:22:59 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CustOrdersOrders]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[CustOrdersOrders]
GO
/****** Object: StoredProcedure [d... | [
-0.3639744520187378,
0.03564833477139473,
0.803479790687561,
-0.18230386078357697,
-0.24048373103141785,
0.20225045084953308,
0.08285914361476898,
-0.2911776900291443,
-0.4936442971229553,
-0.394243061542511,
-0.41356360912323,
0.44427290558815,
-0.4307689666748047,
0.13102838397026062,
... | |
procedures from your database. You can also right click on each script in the Solution Explorer and run the scripts on your database project's referenced database. | [
0.3784503936767578,
-0.03527512773871422,
0.09112314879894257,
0.20479735732078552,
0.5395695567131042,
-0.04062230885028839,
0.3642520308494568,
-0.3197396695613861,
-0.3611988127231598,
-0.7786954641342163,
0.014217969961464405,
0.3001006543636322,
-0.2782984972000122,
-0.032743141055107... | |
Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class.
```
<?php
abstract class ParentClass {
public static function whoAmI () {
// NOT correct,... | [
-0.06577114760875702,
-0.12729668617248535,
0.0384698323905468,
0.002465302823111415,
-0.032440781593322754,
0.20387683808803558,
0.267998605966568,
-0.04984515160322189,
-0.29178929328918457,
-0.4746212661266327,
-0.040867336094379425,
0.26458901166915894,
-0.1749066561460495,
0.224898129... | |
$trace = debug_backtrace();
$class = $trace[0]['class'];
return $class;
}
}
class ChildClass1 extends ParentClass {
}
class ChildClass2 extends ParentClass {
}
// Shows 'ParentClass'
// Want to show 'ChildClass1'
print ChildClass1::whoAmI();
print "\n";
// Shows 'ParentClass'
// Want to show... | [
0.21109355986118317,
-0.2759389579296112,
0.4024059772491455,
-0.12663383781909943,
0.22732548415660858,
0.018306633457541466,
0.378759503364563,
-0.28134071826934814,
-0.0968867614865303,
-0.4277893006801605,
-0.14068640768527985,
0.29102298617362976,
-0.2672404944896698,
0.09455202519893... | |
As well, a new [`get_called_class()`](http://php.benscom.com/manual/en/function.get-called-class.php) function is also available that can only be used within a class method (instance or static).
For the purpose of determining the class as was asked in this question, the `get_called_class()` function is appropriate:
... | [
0.1003018319606781,
-0.29567137360572815,
0.14238621294498444,
-0.11846936494112015,
0.034716859459877014,
0.26922380924224854,
0.1903741955757141,
-0.2466941475868225,
-0.3373696208000183,
-0.2033560425043106,
-0.22381603717803955,
0.1799139529466629,
-0.19911600649356842,
0.1400192081928... | |
making use of `debug_backtrace()`. | [
-0.11855475604534149,
0.2804347574710846,
-0.16150355339050293,
-0.11153382062911987,
0.005560914985835552,
-0.16732710599899292,
0.28040677309036255,
-0.05737556517124176,
-0.049023956060409546,
-0.32111257314682007,
-0.2794985771179199,
0.33042848110198975,
-0.18819405138492584,
-0.10074... | |
We need to capture live video and display *easily* on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience?
Use the [video4linux](http://en.wikipedia.org/wiki/Video4Linux) library. I've used it with a c++ program and was able to capture webcam frames within about an hour. (V... | [
0.7894009351730347,
-0.018565859645605087,
0.5361161828041077,
0.3724939227104187,
0.09485308825969696,
-0.484761118888855,
0.06599578261375427,
0.04502042010426521,
-0.2434604912996292,
-0.6252559423446655,
0.06933287531137466,
0.740333080291748,
-0.16178853809833527,
-0.04637588560581207... | |
```
foreach ($_GET as $field => $label)
{
$datarray[]=$_GET[$field];
echo "$_GET[$field]";
echo "<br>";
}
print_r($datarray);
```
---
This is the output I am getting. I see the data is there in datarray but when
I `echo $_GET[$field]`
I only get "Array"
But `print_r($datarray)` prints all the data. Any i... | [
0.09173444658517838,
0.1063850075006485,
0.22613202035427094,
-0.4735950231552124,
-0.025740956887602806,
-0.034069325774908066,
0.31454965472221375,
-0.6156255006790161,
-0.2000470906496048,
-0.23663108050823212,
-0.33044376969337463,
0.6376548409461975,
-0.39882713556289673,
0.0400335304... | |
[1] => ln
[2] => North America
[3] => yuiyyu
[4] => iuy
[5] => uiyui | [
0.20076848566532135,
-0.23930859565734863,
-0.18070052564144135,
-0.20050156116485596,
-0.7006164789199829,
0.4741499722003937,
0.22198759019374847,
0.17404204607009888,
0.06191195547580719,
-0.6357781291007996,
-0.30830007791519165,
0.20275500416755676,
0.0596584752202034,
0.3068252801895... | |
[6] => yui
[7] => uiy
[8] => 0:0:5
)
)
```
EDIT: When I completed your test, here was the final URL:
<http://hofstrateach.org/Roberto/process.php?keys=Grade1&keys=Nathan&keys=North%20America&keys=5&keys=3&keys=no&keys=foo&keys=blat&keys=0%3A0%3A24>
This is proba... | [
0.22785858809947968,
0.2977333664894104,
0.7459565997123718,
0.3838426470756531,
-0.08150267601013184,
-0.09519234299659729,
0.24822084605693817,
-0.2962726354598999,
-0.024971025064587593,
-0.3994221091270447,
0.1142042726278305,
-0.17828305065631866,
0.35654816031455994,
0.50377297401428... | |
will create individual entries for most of the fields, and make $\_GET['answer'] be an array of the answers provided by the user.
Bottom line: fix your Flash file. | [
0.3436082601547241,
0.07118586450815201,
0.08097174763679504,
0.4253357946872711,
0.5277494192123413,
0.01536503154784441,
0.1437663435935974,
0.06351441890001297,
0.06499990820884705,
-0.39689764380455017,
-0.5088370442390442,
0.6749411225318909,
-0.30970266461372375,
-0.2347150593996048,... | |
Test the following code:
```
#include <stdio.h>
#include <stdlib.h>
main()
{
const char *yytext="0";
const float f=(float)atof(yytext);
size_t t = *((size_t*)&f);
printf("t should be 0 but is %d\n", t);
}
```
Compile it with:
```
gcc -O3 test.c
```
The GOOD output should be:
```
"t should be 0 bu... | [
0.20248715579509735,
0.16534246504306793,
0.09860163182020187,
-0.2200842797756195,
0.1832161396741867,
-0.10785533487796783,
0.5701995491981506,
-0.29245948791503906,
0.1829705685377121,
-0.3741305470466614,
-0.21560654044151306,
0.6520306468009949,
-0.22553524374961853,
-0.30405297875404... | |
As far as I know, this is standards-compliant behaviour (adherence with strict aliasing rules in the ANSI standard start around gcc-4, as Thomas Kammeyer pointed out).
If I recall correctly, you can use an intermediate cast to char\* to get around this. (compiler assumes char\* can alias anything)
In other words, try... | [
0.051604948937892914,
-0.0028082686476409435,
0.02310097962617874,
-0.18394920229911804,
0.10563845932483673,
-0.14013028144836426,
0.61187344789505,
0.013761525973677635,
-0.31690850853919983,
-0.33483460545539856,
-0.1218700110912323,
0.6687470078468323,
-0.47783163189888,
-0.04317634180... | |
Has anyone found a way to get around this? Or a better technique to conglomerate logging from multiple web servers reliably?
Any ideas on good log4net log file analysis tools too (plain text not XML) - apart from good 'ol grep of course :)
The 1024 byte limit is part of the syslog [RFC](http://www.ietf.org/rfc/rfc3164... | [
0.07791514694690704,
0.03932858631014824,
0.4239725172519684,
-0.05015229433774948,
-0.20770642161369324,
-0.3457549512386322,
0.24217025935649872,
0.2128082513809204,
-0.5309814810752869,
-0.7032832503318787,
-0.1817868947982788,
0.3224876821041107,
-0.3559255301952362,
0.0040009627118706... | |
I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow?
Turn off the on-the-fly compilation (which, unfortunately, is one of its best features) | [
0.523525059223175,
0.021744592115283012,
0.2603953182697296,
0.1160789281129837,
0.024606283754110336,
-0.21538123488426208,
0.035452693700790405,
0.2854467034339905,
-0.03080757148563862,
-0.47798365354537964,
0.24924485385417938,
0.9393277168273926,
0.08425432443618774,
0.325688004493713... | |
Does somebody know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" is raising againg and again?
I'm using WebSphere Studio Site Developer (Windows) 5.1.0
The only stack trace in the .metadata/log file is:
`SESSION -----------------------------------------------------... | [
-0.07800474762916565,
0.2736356258392334,
0.6514337658882141,
0.03911225497722626,
0.058737386018037796,
-0.2538723945617676,
0.42668652534484863,
0.13974079489707947,
-0.5404061675071716,
-0.2656872272491455,
0.14933167397975922,
0.45641010999679565,
-0.1535194218158722,
-0.36042770743370... | |
at org.eclipse.ui.internal.AcceleratorMenu.setAccelerators(AcceleratorMenu.java:177)
at org.eclipse.ui.internal.WWinKeyBindingService.updateAccelerators(WWinKeyBindingService.java:316)
at org.eclipse.ui.internal.WWinKeyBindingService.clear(WWinKeyBindingService.java:175)
at org.eclipse.ui.internal.WWinKeyBi... | [
-0.06486225128173828,
0.2711200416088104,
0.5789612531661987,
-0.1540273129940033,
-0.06854297965765,
0.29130178689956665,
0.3199710547924042,
-0.32994428277015686,
-0.3928993344306946,
-0.570603609085083,
-0.4539925158023834,
0.6808098554611206,
-0.291679322719574,
-0.1197882741689682,
... | |
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)`
Does restarti... | [
0.1190548837184906,
0.12490415573120117,
0.15711697936058044,
0.08042433857917786,
0.005874172318726778,
-0.2474440336227417,
0.7754417657852173,
-0.0487038753926754,
-0.49396276473999023,
-0.4255639314651489,
-0.4254559576511383,
0.5680676102638245,
-0.19400665163993835,
-0.00946826487779... | |
any caches that Eclipse has created.
If all else fails, you may want to open a bug for this problem at <https://bugs.eclipse.org/bugs/>. Including a copy of your workspace (if possible), and including the stack trace in the bug would be helpful information for the person trying to diagnose the problem.
Good Luck! | [
0.47766628861427307,
0.21418866515159607,
-0.21422353386878967,
0.3224771320819855,
0.11580701917409897,
-0.3974800705909729,
0.5006898641586304,
0.39116358757019043,
-0.5798910856246948,
-0.8117724657058716,
-0.14593853056430817,
0.6079185009002686,
-0.10957826673984528,
-0.15077504515647... | |
What is a good way to render data produced by a Java process in the browser?
I've made extensive use of JSP and the various associated frameworks ([JSTL](http://java.sun.com/products/jsp/jstl/), [Struts](http://struts.apache.org/), [Tapestry](http://tapestry.apache.org/), etc), as well as more comprehensive framework... | [
0.14617820084095,
0.047678492963314056,
0.2659205198287964,
-0.11488035321235657,
-0.27516645193099976,
0.0855383351445198,
0.2675730586051941,
0.008927155286073685,
-0.19451549649238586,
-0.7049083709716797,
-0.2796998918056488,
0.3053944408893585,
-0.1640714704990387,
0.02815050631761551... | |
JSON, and then rendering the data using PHP or Ruby. This has the added benefit of instantly exposing my service as a web service as well, but I'm wondering if I'm reinventing the wheel here.
I personally use [Tapestry 5](http://tapestry.apache.org/tapestry5/) for creating webpages with Java, but I agree that it can so... | [
0.28084832429885864,
-0.13732078671455383,
0.2845640778541565,
-0.09623614698648453,
-0.5159405469894409,
-0.08408065140247345,
0.210886150598526,
-0.048344410955905914,
-0.403262734413147,
-0.8532595634460449,
-0.11357447504997253,
0.4587709307670593,
-0.08022426068782806,
-0.124138385057... | |
[Jersey](http://jersey.java.net/) - the reference implementation for JAX-RS.
* [Resteasy](http://www.jboss.org/resteasy/) - the implementation I prefer, good support for marshalling and unmarshalling a wide-range of formats. Also pretty stable and has more features that Jersey.
Take a look at the following code to get... | [
0.215508833527565,
-0.33571767807006836,
0.16109001636505127,
-0.19510875642299652,
0.07488583028316498,
-0.11272203177213669,
-0.07431893795728683,
-0.1421523243188858,
0.059371236711740494,
-0.7859355807304382,
-0.13931116461753845,
0.4722074568271637,
-0.09652375429868698,
-0.2120973318... | |
the getText() method at the URI /text and allow access to it via HTTP GET. The @Produces annotation tells the JAX-RS framework to attempt to turn the result of the method into plain text.
The easiest way to learn about what is possible with JAX-RS is to read the [specification](http://jcp.org/en/jsr/detail?id=311). | [
0.37976664304733276,
-0.10958434641361237,
0.42079997062683105,
0.24452830851078033,
-0.04835851863026619,
-0.17845046520233154,
0.17307591438293457,
-0.2113533318042755,
0.19684308767318726,
-0.7351271510124207,
-0.5000261068344116,
0.41927212476730347,
-0.1818239390850067,
-0.29340189695... | |
I am developing a website that relies much on XML data. The web site has an interface where user can update data. The data provided by user will be updated to the respective XML file. However, the changes is not reflected until after 1 or 2 minutes.
Anyone knows how to force the browser to load the latest XML file imm... | [
0.659484326839447,
0.10858003050088882,
0.6308549642562866,
-0.014676125720143318,
0.044601842761039734,
-0.3626445233821869,
-0.09072382748126984,
0.0920816957950592,
-0.04050716012716293,
-0.63770592212677,
-0.006508978549391031,
0.324201375246048,
-0.04166767746210098,
0.120274759829044... | |
Is there any tool that can parse a valid **C** program and generate a report which contains list of *functions*, *global variables*, *`#define` constants*, *local variables in each function*, etc.
Doxygen does all of the above. | [
0.18728560209274292,
-0.06353575736284256,
-0.2474457025527954,
0.052901338785886765,
0.06869732588529587,
-0.6120012998580933,
-0.39294612407684326,
0.13834664225578308,
0.18242816627025604,
-0.17075125873088837,
0.05439937114715576,
0.6722161769866943,
-0.3412875533103943,
-0.10134874284... | |
It appears that using perldoc perl gives the list of, e.g. perlre, perlvar, etc.
Is this the best place to find the list of what's available as an overview or tutorial or reference manual section? Is there another, better list?
```
perldoc perltoc
```
is a bit more verbose about the various documentation files. If y... | [
0.1647738367319107,
-0.03992549702525139,
0.3371811807155609,
0.031885284930467606,
-0.24536539614200592,
-0.0007006862433627248,
0.029256150126457214,
-0.07228497415781021,
-0.5035982728004456,
-0.049822449684143066,
-0.3282969892024994,
0.5097138285636902,
-0.27284058928489685,
0.0858502... | |
My Access 2000 DB causes me problems - sometimes (haven't pinpointed the cause) the "book" form won't close. Clicking its close button does nothing, File -> Close does nothing, even closing Access results in no action. I don't have an OnClose handler for this form. The only workaround I can find involves opening the Vb... | [
-0.048692163079977036,
0.32143834233283997,
0.5866972208023071,
-0.09004534780979156,
-0.006647495552897453,
-0.08605437725782394,
0.5877042412757874,
0.010351878590881824,
0.03794343024492264,
-0.5041499137878418,
-0.06089993566274643,
0.33925536274909973,
-0.08611820638179779,
0.40340694... | |
close. Any help?
Here's a forum post describing, I think, the same problem you face. Excerpt belows states a workaround.
> What I do is to put code on the close button that reassigns the sourceobject
> of any subforms to a blank form, such as:
>
>
> me!subParts.sourceobject = "subBlank" 'subBlank is my form that is... | [
-0.3884328305721283,
0.07795985788106918,
0.8007308840751648,
0.08520601689815521,
-0.14481668174266815,
-0.12907396256923676,
0.3071131110191345,
0.047015439718961716,
-0.0875137522816658,
-0.7547784447669983,
-0.3327496647834778,
0.4597990810871124,
-0.2701742947101593,
0.180068314075469... | |
In one of our commercial applications (Win32, written in Delphi) we'd like to implement full text search. The application is storing user data in some kind of binary format that is not directly recognizable as a text.
Ideally, I'd like to find either an in-process solution (DLL would be OK) or a local server that I co... | [
0.06737247854471207,
0.15568269789218903,
0.30979064106941223,
0.10946736484766006,
-0.03534284234046936,
-0.2680956721305847,
0.053158316761255264,
0.16860784590244293,
-0.07879702746868134,
-0.626507043838501,
-0.2254374921321869,
0.5188233256340027,
-0.21879123151302338,
0.0216521136462... | |
support for logical operators and substring searching. Unicode support is required.
I found extensive list of search engines on Stack Overflow ([What are some Search Servers out there?](https://stackoverflow.com/questions/66922/what-are-some-search-servers-out-there)) but I don't really understand which of those engin... | [
0.0077277896925807,
0.015713173896074295,
0.13897639513015747,
0.049166612327098846,
-0.03228027746081352,
0.20418646931648254,
0.08895866572856903,
0.1685093492269516,
-0.12598547339439392,
-0.3690480887889862,
-0.16826586425304413,
0.6309579610824585,
-0.19089758396148682,
-0.15155352652... | |
Server. As far as I know the Express edition is limited to running the Application Tier on one server.
There is also the [Apache Lucene](http://lucene.apache.org/java/docs/) project which is open source. It has a nice API that's easy to use and a large community of users. The original project is based on Java, but the... | [
-0.056074026972055435,
-0.18241499364376068,
0.2950219511985779,
-0.10321807116270065,
-0.5326164364814758,
0.18421109020709991,
0.027523329481482506,
0.1746329665184021,
-0.11637985706329346,
-0.8091436624526978,
0.07634914666414261,
0.09975368529558182,
-0.06599697470664978,
0.0543330647... | |
I wonder why would a C++, C#, Java developer want to learn a dynamic language?
Assuming the company won't switch its main development language from C++/C#/Java to a dynamic one what use is there for a dynamic language?
What helper tasks can be done by the dynamic languages faster or better after only a few days of le... | [
0.31386280059814453,
0.07499667257070541,
-0.09970053285360336,
0.2212934046983719,
0.14123153686523438,
0.18396294116973877,
0.044173695147037506,
0.2739013731479645,
-0.3367938697338104,
-0.5133402347564697,
0.10335233062505722,
0.7256821393966675,
-0.15528415143489838,
0.072080679237842... | |
for justifications for the employer to finance the learning of a dynamic language. Aside from the obvious that the employee will have broader view, the
employers are usually looking for some "real" benefit.
A lot of times some quick task comes up that isn't part of the main software you are developing. Sometimes the ta... | [
0.35052308440208435,
-0.011766563169658184,
-0.2201051265001297,
0.28642451763153076,
-0.11994019895792007,
0.2321738451719284,
0.3527821898460388,
-0.14032648503780365,
-0.3647647202014923,
-0.32718950510025024,
0.1296347826719284,
0.7487471103668213,
-0.43738460540771484,
-0.301646947860... | |
probably take a lot less time to parse the text file using Perl/Ruby/Python (or maybe even vbscript *cringe* and then load it into the database than it would to create a Java/C# program to do it or to do it by hand.
Also, due to the ease at which most of the dynamic languages parse text, they are great for code genera... | [
0.30362802743911743,
0.12516595423221588,
-0.2444579005241394,
0.3354355990886688,
-0.2141123116016388,
-0.01306847482919693,
0.3535188138484955,
0.009641917422413826,
-0.37848106026649475,
-0.5270185470581055,
0.02581203170120716,
0.6120648980140686,
-0.08605150133371353,
-0.2204941958189... | |
recent example at work is we needed to get data from one accounting system into our accounting system. The system has an import format, but the old system had a completely different format (fixed width although some things had to be matched). The task is not to create a program to migrate the data over and over again. ... | [
0.3026573061943054,
0.24006235599517822,
-0.1519358605146408,
0.03854639083147049,
0.006893336772918701,
0.06765661388635635,
-0.38833871483802795,
-0.043428000062704086,
-0.3720170557498932,
-0.587308943271637,
0.1238211840391159,
0.3903021514415741,
-0.1595744788646698,
0.133542954921722... | |
our application. Ultimately it doesn't matter that I used python, it matters that the data is in the system. My boss was pretty impressed.
Where I often see the dynamic languages used for is testing. It is much easier to create a Python/Perl/Ruby program to link to a web service and throw some data against it than it ... | [
0.5412761569023132,
0.23024442791938782,
-0.27151957154273987,
0.36986568570137024,
-0.2779797315597534,
-0.029275335371494293,
0.36899057030677795,
0.2768975794315338,
-0.2776601314544678,
-0.4952957034111023,
0.18744498491287231,
0.8005262613296509,
-0.3999936282634735,
-0.09798752516508... | |
the C#/C++/Java code. Some examples follow:
The first code generation task I often see is people using dynamic languages to maintain constants in the system. Instead of hand coding a bunch of enums, a dynamic language can be used to fairly easily parse a text file and create the Java/C# code with the enums.
SQL is a ... | [
0.2815883159637451,
-0.0618051178753376,
-0.20743854343891144,
0.4240172803401947,
-0.23111456632614136,
0.02832486666738987,
0.030168363824486732,
-0.07203996181488037,
-0.3992496430873871,
-0.4630562961101532,
0.3619110882282257,
0.6787458658218384,
-0.45504453778266907,
-0.0473872646689... | |
in a set). In fact it is quite useful to use the table definition to create certain stored procedures automatically.
It is always better to get buy in for a code generator. But even if you don't, is it more fun to spend time cutting/pasting or is it more fun to create a Perl/Python/Ruby script once and then have that ... | [
0.7317287921905518,
-0.24179035425186157,
-0.07043886929750443,
0.311382919549942,
-0.03401543200016022,
-0.17008282244205475,
0.18838714063167572,
-0.399088591337204,
-0.2970552444458008,
-0.6122897863388062,
-0.09239935129880905,
0.5163871049880981,
-0.34440046548843384,
-0.3212613761425... | |
a code generator than it takes to hand code once but you know you will have to update the code more than once, it may still make sense. If it takes you 2 hours to hand code, 4 hours to do the generator but you know you'll have to hand code equivalent work another 5 or 6 times than it is obviously better to create the g... | [
0.25512582063674927,
-0.30541959404945374,
0.04603876918554306,
0.3565886318683624,
-0.28836262226104736,
0.009285993874073029,
0.35452497005462646,
-0.2835776209831238,
-0.33990684151649475,
-0.7879381775856018,
0.0708538293838501,
0.6697039008140564,
-0.06005779653787613,
-0.367904335260... | |
use of the Java regular expression library if you haven't before. If you have then there may be something else.
I will leave you with one last example of a task that would have been great for a dynamic language. My work mate had to take a directory full of files and burn them to various cd's for various customers. The... | [
0.27246710658073425,
0.13728618621826172,
-0.3178452253341675,
0.12833359837532043,
0.11833012104034424,
0.04978393390774727,
0.09200575947761536,
-0.038952991366386414,
-0.16756576299667358,
-0.5795210599899292,
0.1411174088716507,
0.5781592726707458,
-0.42635905742645264,
-0.292117476463... | |
the development overhead it isn't worth it. However slapping something together in Perl/Python/Ruby probably would have been worth it. He spent several hours doing it. It would have taken less than one to create the Python script to inspect each file, match which customer it goes to, and then move the file to the appro... | [
0.582522988319397,
0.12812066078186035,
-0.10061682760715485,
0.06741486489772797,
-0.08392703533172607,
0.13791903853416443,
0.2754884958267212,
-0.13165439665317535,
-0.12399117648601532,
-0.38348448276519775,
0.26428714394569397,
0.8667919039726257,
-0.08752822130918503,
-0.226306423544... | |
in Python/Perl/Ruby. If you are using C or C++ the point is even more dramatic due to the extra concerns of programming in C or C++ (pointers, no array bounds checking, etc.). | [
0.1998835653066635,
-0.06980813294649124,
-0.1419893056154251,
-0.07906418293714523,
-0.23928412795066833,
-0.1905021071434021,
0.2672709822654724,
0.1916327029466629,
-0.37439972162246704,
-0.33112838864326477,
-0.3763148784637451,
0.40642985701560974,
-0.27855029702186584,
-0.31390905380... | |
How do I create an index on a column in MySQL v 5.0 (myisam db engine) based upon the length of its value its a TEXT data type up to 7000 characters, do I have to add another column with the length of the first column?
Yes, as MySQL doesn't support function-based indexes (like `ADD INDEX myIndex(LENGTH(text)))`, you'll... | [
0.22792717814445496,
0.03223484754562378,
0.6746814846992493,
0.007107894401997328,
-0.09494674950838089,
0.1633102148771286,
0.13602472841739655,
-0.6405217051506042,
-0.21305949985980988,
-0.3848506212234497,
0.23023425042629242,
0.6882758140563965,
-0.3732171952724457,
0.041605539619922... | |
Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling.
This is not always desirable. If, for example, I want to run ... | [
0.0431072860956192,
0.22105838358402252,
0.35492780804634094,
-0.26514092087745667,
-0.22673334181308746,
-0.10610917210578918,
0.10269401967525482,
-0.11899840086698532,
-0.07211276143789291,
-0.3148121237754822,
-0.13058000802993774,
0.9823369979858398,
-0.37761586904525757,
-0.150966614... | |
easy way to run cl without having to run from within the Visual Studio command prompt?
The compilers can be used from command line (or makefiles) just like any other compilers. The main things you need to take care of are the INCLUDE and LIB environment variables, and PATH. If you're running from cmd.exe, you can just ... | [
0.16853667795658112,
0.08064084500074387,
0.2757154405117035,
0.11942587792873383,
0.13859038054943085,
-0.2900540828704834,
0.11330875009298325,
-0.016517776995897293,
-0.3675060272216797,
-0.47132906317710876,
-0.061635397374629974,
0.9689323902130127,
-0.5361179709434509,
-0.33925789594... | |
this should work for the Visual Studio 2008 compiler and the latest Windows SDK:
Add to PATH:
* C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
* C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin
* C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
Add to INCLUDE:
* C:\Program Files\Microsoft SDKs\Windows\... | [
0.3743321895599365,
0.07143032550811768,
0.3943847119808197,
0.10255245119333267,
0.10267972201108932,
-0.2421092689037323,
0.13363929092884064,
-0.4203656017780304,
-0.11654141545295715,
-0.8531327843666077,
0.004547246266156435,
0.77149897813797,
-0.2551789879798889,
-0.355289489030838,
... | |
The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}.
The following XML, for example, when deserialized, sets the boolean property "Emulate" to `true`.
```
<root>
<emulate>1</emulate>
</root>
```
However, when I serial... | [
0.07943680137395859,
0.12829045951366425,
0.427196204662323,
0.12641367316246033,
-0.2318488359451294,
-0.1111053004860878,
0.06560561805963516,
-0.05216134712100029,
0.11336294561624527,
-0.4281976521015167,
-0.29888981580734253,
0.4808131456375122,
-0.38685184717178345,
0.081178031861782... | |
the 3 methods GetSchema(), ReadXml(XmlReader r) and WriteXml(XmlWriter r). When you implement the interface, these methods are called instead of .NET trying to serialize the object itself.
Examples can be found at:
<http://www.developerfusion.co.uk/show/4639/> and
<http://msdn.microsoft.com/en-us/library/system.xml... | [
0.06588825583457947,
-0.06183352321386337,
0.846959114074707,
0.1303594410419464,
-0.4388318955898285,
-0.042007796466350555,
0.09939143061637878,
-0.36542823910713196,
-0.2916254699230194,
-0.6207966208457947,
-0.22004301846027374,
0.404035359621048,
-0.44046175479888916,
0.15786001086235... | |
For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but represents what I would like to do.
```
application.obj[funcName](argumentCollection=params)
```
The only way I ca... | [
0.023542415350675583,
-0.1657203733921051,
0.4433727264404297,
-0.03422380983829498,
-0.09324385970830917,
-0.08216676115989685,
0.2125249058008194,
-0.3550439178943634,
-0.18639075756072998,
-0.503140389919281,
-0.05473271757364273,
0.8916983604431152,
-0.49263662099838257,
-0.03095739334... | |
returnvariable="localTime">
<cfinvoke component="#tellTimeObj#" method="getUTCTime" returnvariable="UTCTime">
```
You should be able to simply call it with method="#myMethod#" to dynamically call a particular function. | [
0.054445233196020126,
-0.6465321183204651,
0.3178570568561554,
0.013575393706560135,
0.13954389095306396,
-0.2375597357749939,
0.2613406181335449,
-0.022379253059625626,
0.05119163170456886,
-0.6287394762039185,
-0.1785334199666977,
0.6420738697052002,
-0.30122244358062744,
-0.015998160466... | |
Personally I like this one:

P.S. Do not hotlink the cartoon without the site's permission please.
Another one from [xkcd](http://xkcd.com/327/)
 is a great drop-in tool for this. DLL in the bin directory, and some markup to add to the web.config and you're done. | [
0.6224523186683655,
0.25150224566459656,
-0.13418345153331757,
0.29207751154899597,
0.04635490104556084,
-0.8087031245231628,
0.3704276382923126,
0.11165900528430939,
-0.09529805183410645,
-0.4767713248729706,
-0.11164285242557526,
0.23282894492149353,
-0.02337009273469448,
0.1155243963003... | |
If one wants to paginate results from a data source that supports pagination we have to go to a process of:
1. defining the page size - that is the number of results to show per page;
2. fetch each page requested by the user using an offset = page number (0 based) \* page size
3. show the results of the fetched page.
... | [
0.13455507159233093,
-0.14704275131225586,
0.3849745988845825,
0.2712118625640869,
-0.12842367589473724,
0.10728321224451065,
-0.05404512956738472,
-0.33087801933288574,
-0.24184289574623108,
-0.6485331654548645,
-0.1276102364063263,
0.44791263341903687,
-0.37002602219581604,
-0.0408459492... | |
page 0 -> results from 0 to 9;
user inserts a record that due to the query being executed goes to page 0 - the one just shown;
get page 1 -> results from 10 to 19 - the first results on the page is the result on the old page 0.
```
The described behavior can cause confusion to the viewer. Do you know any practical so... | [
0.18512648344039917,
-0.04871760681271553,
0.8143910765647888,
0.21524181962013245,
-0.14204509556293488,
-0.30847641825675964,
0.1526757776737213,
-0.11025683581829071,
-0.40982338786125183,
-0.6327062249183655,
-0.30764952301979065,
0.4391889274120331,
-0.14937610924243927,
0.29223871231... | |
option if working with really
large Datasets)
3. You could do a comparison on each page operation and notify the
user if the total record count
changes
. | [
-0.11289431154727936,
-0.3811151683330536,
0.30614280700683594,
0.356317937374115,
-0.12489598989486694,
-0.16849581897258759,
0.33400264382362366,
-0.34720689058303833,
-0.35737311840057373,
-0.6912329196929932,
-0.0310300774872303,
0.5684785842895508,
-0.2726292312145233,
-0.151178792119... | |
I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up?
I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program that is supposed to write a compatible binar... | [
0.5305120944976807,
0.2984614074230194,
-0.31142541766166687,
0.22637248039245605,
0.05072614923119545,
-0.32820966839790344,
0.06845507770776749,
0.06358633190393448,
-0.5683367252349854,
-0.3614380955696106,
0.20510932803153992,
0.5862278938293457,
-0.27487683296203613,
0.187615782022476... | |
additional instruction the compiler will make its own decisions about record layout. The best approach would be to change the original code to write the record using a specific layout. In particular, the [record representation clause](http://adahome.com/rm95/rm9x-13-05-01.html) allows the Ada programmer to specify exac... | [
0.49134108424186707,
0.13691656291484833,
-0.13909386098384857,
0.24721306562423706,
0.25359299778938293,
-0.11061131954193115,
0.18956616520881653,
-0.39253002405166626,
-0.4532371461391449,
-0.6230725049972534,
0.017126018181443214,
0.6056427359580994,
-0.25524064898490906,
-0.1236211583... | |
Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube?
I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated fields in my pivot table, but the "Formulas" button is grayed out.
How do I do crea... | [
-0.061295848339796066,
-0.021355340257287025,
0.16502763330936432,
0.10919208824634552,
-0.2823810279369354,
-0.00002657685399753973,
0.16227300465106964,
-0.08344949781894684,
-0.16651417315006256,
-0.5062804818153381,
0.44969063997268677,
0.42433393001556396,
-0.4689760208129883,
-0.2191... | |
in charge of the aggregations it has no ability to do custom calculations.HTH... Jim Thomlinson* | [
0.14492565393447876,
0.35708367824554443,
-0.12436192482709885,
-0.09510679543018341,
-0.08145730942487717,
0.07866594195365906,
-0.12511476874351501,
-0.07004421204328537,
-0.3737713396549225,
-0.09560180455446243,
-0.19051219522953033,
0.25919869542121887,
-0.061103980988264084,
0.044140... | |
How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field):
```
<cfset dllPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.DirectorySe... | [
0.1088944599032402,
0.036829836666584015,
0.6804520487785339,
0.12540967762470245,
0.20847399532794952,
0.14572951197624207,
0.24798835813999176,
-0.8123942017555237,
-0.06014354154467583,
-0.9778143763542175,
-0.03982878848910332,
0.39132440090179443,
-0.19156794250011444,
-0.075759209692... | |
<cfcatch type="any">
</cfcatch>
</cftry>
</cfloop>
</cfloop>
</cfloop>
```
How large is the list of items for the inner loop?
Switching to an array *might* be faster if there is a significantly large number of items.
I have implemented this alongside x0n's suggestions...
```
<cfset dllP... | [
0.15150579810142517,
-0.016521334648132324,
0.3941551744937897,
0.19141480326652527,
-0.26718243956565857,
0.030458828434348106,
0.17070376873016357,
-0.7038560509681702,
-0.29554468393325806,
-0.8783221244812012,
-0.2613022029399872,
0.4654182493686676,
-0.42929649353027344,
-0.1717068850... | |
/>
<cfloop list="#columnList#" index="col">
<cfset CurrentCol = Props.getItem(col) />
<cfset ItemArray = ArrayNew(1)/>
<cfloop from="0" to="#CurrentCol.getcount() - 1#" index="item">
<cftry>
<cfset ArrayAppend( ItemArray , CurrentCol.Get_Item(item) )/>
... | [
-0.007138351444154978,
-0.23032265901565552,
0.6800638437271118,
-0.03605382889509201,
-0.2844458520412445,
0.24065272510051727,
-0.030070973560214043,
-0.32708194851875305,
-0.39308542013168335,
-0.3826141059398651,
-0.1329144686460495,
0.3878600597381592,
-0.35721060633659363,
-0.2484301... | |
</cfcatch>
</cftry>
</cfloop>
<cfset theQuery[col][theQuery.recordCount] = ArrayToList( ItemArray , '|' )/>
</cfloop>
</cfloop>
``` | [
0.18434540927410126,
-0.20373894274234772,
0.46061861515045166,
0.11605104804039001,
-0.2582761347293854,
0.03475302457809448,
0.05424696207046509,
-0.19546474516391754,
-0.2520045042037964,
-0.5587384700775146,
-0.2657831907272339,
0.28134214878082275,
-0.49501359462738037,
-0.20156931877... | |
All front-end developers know the pain of coding for Firefox, then viewing our then mangled pages in IE6.
IE6 is still widely used (it is, however disappearing [slowly but surely](http://www.w3schools.com/browsers/browsers_stats.asp)... in a year and a half from the writing of this, it will be irrelevant as usage will... | [
0.4682050347328186,
0.0664357841014862,
0.26303669810295105,
0.059968262910842896,
-0.3756049871444702,
-0.20524734258651733,
0.32571640610694885,
0.21480447053909302,
0.016071995720267296,
-0.7236039638519287,
0.023681048303842545,
0.2655298113822937,
-0.22504812479019165,
-0.037556149065... | |
tool that in many ways is better than firebug) What's the best tool for IE6?
As far as I know [Debugbar](http://www.debugbar.com/) is currently the most sophisticated debugging tool for IE. It's definitely better than IE developer, but it's still not quite as slick as firebug. | [
0.2988293170928955,
-0.07873519510030746,
0.19615022838115692,
0.21919886767864227,
-0.22695480287075043,
-0.42017561197280884,
0.14780215919017792,
-0.16556420922279358,
0.21931447088718414,
-0.6203378438949585,
0.12684690952301025,
0.9178473353385925,
0.030659087002277374,
-0.04445909336... | |
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way.
Thanks.
As promised, here is the code for integrating with JDEdewards using XML. I... | [
0.08916093409061432,
0.232001394033432,
0.09995314478874207,
-0.07246249169111252,
-0.3762686252593994,
-0.25900039076805115,
0.4164659082889557,
-0.268588125705719,
0.09603828191757202,
-0.9302478432655334,
-0.30266496539115906,
0.5934581160545349,
-0.21645447611808777,
0.1990764290094375... | |
private Int16 _intServerTimeout;
public JdeBFService()
{
// Load JDE ServerName, Port, & Connection Timeout from the Web.config file.
_strServerName = ConfigurationManager.AppSettings["JdeServerName"];
_intServerPort = Convert.ToUInt16(ConfigurationManager.AppSettings["JdePort"], Cultur... | [
0.08100463449954987,
0.13489744067192078,
0.22442056238651276,
-0.009724080562591553,
-0.40982845425605774,
0.141089528799057,
0.3927326798439026,
-0.40452486276626587,
-0.12396825850009918,
-0.5845322608947754,
-0.25335919857025146,
0.5492757558822632,
-0.39739665389060974,
0.346583396196... | |
Function referenced in the XML document
/// and return a response.
/// </summary>
/// <param name="Xml"> The jdeRequest XML document </param>
[WebMethod]
public XmlDocument JdeXmlRequest(XmlDocument xmlInput)
{
try
{
string outputXml = string.Empty;
output... | [
0.0016399096930399537,
-0.12125620245933533,
0.5108269453048706,
-0.08329148590564728,
-0.33505406975746155,
0.4164946973323822,
0.21909601986408234,
-0.7641938924789429,
-0.07225426286458969,
-0.5001340508460999,
-0.5144860148429871,
0.3822971284389496,
-0.43138736486434937,
-0.0534104742... | |
XmlDocument outputXmlDoc = new XmlDocument();
outputXmlDoc.LoadXml(outputXml);
return outputXmlDoc;
}
catch (Exception ex)
{
ErrorReporting.SendEmail(ex);
throw;
}
}
}
/// <summary>
/// This interop class | [
-0.06381941586732864,
-0.35744768381118774,
0.23653346300125122,
-0.13559576869010925,
-0.09208989888429642,
-0.003866512794047594,
0.059487830847501755,
-0.3241598904132843,
-0.1518399715423584,
-0.46534961462020874,
-0.27772340178489685,
0.4140245318412781,
-0.4477054476737976,
0.0847422... | |
uses pinvoke to call the JDE C++ dll. It only has one static function.
/// </summary>
/// <remarks>
/// This class calls the xmlinterop.dll which can be found in the B9/system/bin32 directory.
/// Copy the dll to the webservice project's /bin directory before running the project.
/// </remarks>
internal static class... | [
-0.06319310516119003,
-0.12798528373241425,
0.33324331045150757,
-0.031880009919404984,
-0.1252841204404831,
0.16878864169120789,
0.02599572204053402,
-0.48695865273475647,
-0.12136376649141312,
-0.5900044441223145,
0.061164118349552155,
0.6643258929252625,
-0.41830986738204956,
0.34442299... | |
SetLastError = true)]
private static extern IntPtr jdeXMLRequest([MarshalAs(UnmanagedType.LPWStr)] StringBuilder server, UInt16 port, Int32 timeout, [MarshalAs(UnmanagedType.LPStr)] StringBuilder buf, Int32 length);
public static string JdeXmlRequest(XmlDocument xmlInput, string strServerName, UInt16 intPort, ... | [
-0.037610672414302826,
-0.05057813227176666,
0.885871410369873,
-0.08978340774774551,
-0.10196864604949951,
0.3045015335083008,
0.509596586227417,
-0.802141547203064,
-0.13308081030845642,
-0.27483677864074707,
-0.45488184690475464,
0.4364207684993744,
-0.22197666764259338,
0.2714149653911... | |
= Marshal.PtrToStringAnsi(jdeXMLRequest(sbServerName, intPort, intTimeout, sbXML, sbXML.Length));
return result;
}
}
```
}
You have to send it messages like the following one:
```
<jdeRequest type='callmethod' user='USER' pwd='PWD' environment='ENV'>
<callMethod name='GetEffectiveAddress' app='JdeWeb... | [
0.027316156774759293,
-0.0030066128820180893,
0.39007407426834106,
0.051838140934705734,
-0.17790602147579193,
0.01534444373100996,
0.6683822274208069,
-0.8226436376571655,
-0.15125413239002228,
-0.7752686738967896,
-0.36313340067863464,
0.4521738588809967,
-0.24575184285640717,
0.08289675... | |
If I open a file in Design View (web form), I get intellisense for my display code, but not my script code.. If I open with source code editor I, occasionally, get intellisense within the script tags.
Anyone know how to get intellisense working all of the time for all of my code?
Been living with this one for a lon... | [
0.17077356576919556,
-0.002250660676509142,
0.6233053207397461,
-0.16817718744277954,
-0.10517562180757523,
-0.13272526860237122,
0.1646604984998703,
0.18885961174964905,
-0.10334577411413193,
-1.1778918504714966,
-0.06132790446281433,
0.9187212586402893,
-0.05034217983484268,
0.0758168846... | |
gives me access to the toolbox and tabs for designer,split, and code-view (which is the view I primarily work in). In that mode, all of my `<asp:` tags get intellisense, but then I lose all intellisense within my `<script>` tags. I've never been able to have intellisense working both within the `<script>` tags and with... | [
0.10899332910776138,
-0.21503615379333496,
0.721351683139801,
0.22162127494812012,
-0.06671295315027237,
-0.1622452586889267,
0.14792592823505402,
-0.026140432804822922,
0.020583095028996468,
-0.7781432867050171,
0.021162576973438263,
0.5183548927307129,
-0.03177674859762192,
-0.1536686569... | |
our website. | [
0.5885376930236816,
0.07091619074344635,
0.09205853939056396,
0.07175105810165405,
0.16886688768863678,
-0.563582718372345,
0.30176806449890137,
0.446858286857605,
0.04969475045800209,
-0.5911982655525208,
-0.0007016306626610458,
0.26968634128570557,
0.32873013615608215,
0.0299699939787387... | |
I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method.
```
vLocalImage ORDImage := ORDImage.init();
...
vLocalImage.source.localdata := PORTAL.wwdoc_admin.get_document_blob_content(pFile);
vLocalIma... | [
0.14280202984809875,
-0.011654410511255264,
0.9112691283226013,
-0.06682772189378738,
0.18207034468650818,
0.11112546920776367,
0.1865348368883133,
-0.23647558689117432,
-0.1867210865020752,
-0.7110058069229126,
-0.2213718146085739,
0.5766251683235168,
-0.2021469622850418,
0.13310238718986... | |
it should be possible to edit an ORDImage "in-place", I was unable to make it work.
Instead, I created a new ORDImage object and used processCopy:
```
vNewImage ORDImage;
...
vLocalImage.processCopy('maxScale 534 401', vNewImage);
``` | [
0.1979595571756363,
-0.21559025347232819,
0.6657745242118835,
0.16657082736492157,
0.2958691120147705,
0.010685937479138374,
-0.16101790964603424,
-0.10927613079547882,
-0.07633762061595917,
-0.716792106628418,
-0.10514848679304123,
0.16323821246623993,
-0.31546279788017273,
0.170509710907... | |
I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto\_increment functionality. (Below)
```
create table foo
(
user_id int not null auto_increment,
name varchar(50)
)
```
Is there a way of doing this with out... | [
0.2037481665611267,
0.2299794703722,
0.20735496282577515,
-0.10709315538406372,
0.03712516650557518,
-0.10071644186973572,
0.05128816142678261,
-0.29889997839927673,
-0.11042621731758118,
-0.3244115114212036,
0.15008775889873505,
0.7182004451751709,
-0.5333260893821716,
-0.0891998782753944... | |
Are there any good books or website that go over creating a `JTable`? I want to make one column editable. I would like to actually put a inherited `JCheckBox` component (that we created here) into one of the table columns instead of just having the table put `JCheckBox` in based on it being an editable `boolean` field.... | [
0.42522481083869934,
0.12432625889778137,
0.09591847658157349,
0.07416020333766937,
-0.15604354441165924,
-0.3497079908847809,
-0.01639525592327118,
-0.1306271106004715,
-0.4019799530506134,
-0.3675217628479004,
0.2137247771024704,
0.4237026572227478,
-0.07823319733142853,
-0.2223633080720... | |
and put it in the book.
I am re-reading the stuff though, just curious if anyone has found something that might help out more.
To make a column editable you have to override the `isCellEditable` method in the `TableModel`. Creating a `TableModel` is fairly easy if you inherit `AbstractTableModel` and I'd recommend it ... | [
0.1438327580690384,
0.26297739148139954,
0.5003343820571899,
0.07709047198295593,
-0.006672924850136042,
-0.06198720633983612,
0.09265478700399399,
-0.0026511854957789183,
-0.34791168570518494,
-0.8297643661499023,
0.09907551854848862,
0.45351916551589966,
-0.4144594967365265,
-0.218141704... | |
editor. In some cases, it's enough to use slightly modificated versions of the default classes for this.
**Editors**
If you already have got a custom component is easily done using delegation: Create a new class implementing `TableCellEditor`, and return a **new** instance of the component in the `getCellEditorCompon... | [
-0.3191787004470825,
-0.08737373352050781,
0.3935566246509552,
0.1943562924861908,
-0.06172988936305046,
-0.2520993649959564,
0.03655357286334038,
-0.281355619430542,
-0.23656298220157623,
-0.8159379363059998,
-0.1268131583929062,
0.3606739044189453,
-0.46422094106674194,
0.090005390346050... | |
and adjust the model) or cancels an edit. Be sure to call the `stopEditing()` method on your editor if you ever programmatically abort editing, otherwise the editor component will remain on screen -- this once took me like 2 hours to debug.
Note that within a `JTable` editors and **only** editors receive events! Displ... | [
0.18746714293956757,
-0.16258803009986877,
0.5724294185638428,
-0.02239161729812622,
-0.048132698982954025,
-0.2779727280139923,
0.4644172191619873,
-0.30195173621177673,
-0.26357749104499817,
-0.513071596622467,
-0.2650611698627472,
0.8259027600288391,
-0.09729912132024765,
-0.16189241409... | |
you typically end up doing it anyway, if only for minor modifications. Renderers, unlike editors, are speed critical. *The `getTableCellRendererComponent` of a renderer is called once for every cell in the table!* The component returned by a renderer is only used to paint the cell, not for interaction, and thus can be ... | [
0.1246476098895073,
-0.13199955224990845,
0.6218933463096619,
0.0660816878080368,
0.11957992613315582,
-0.14382855594158173,
0.37415093183517456,
-0.1914501041173935,
-0.23721666634082794,
-0.8993497490882874,
-0.5143173933029175,
0.7297626733779907,
-0.18209199607372284,
-0.40718117356300... | |
work, you need to tell the `JTable` when to use a certain renderer/editor. There are basically two ways to do this. You can set the default cell renderer/editor **for a certain type** using the respective `JTable` methods. For this way to work, your `TableModel` needs to return exactly this type in the `getColumnClass(... | [
0.21872034668922424,
0.09172559529542923,
0.44707509875297546,
-0.09314331412315369,
0.01881476305425167,
-0.09917796403169632,
0.037897780537605286,
-0.1386660933494568,
-0.2990398705005646,
-0.8052464127540588,
-0.07024451345205307,
0.6132605075836182,
-0.36027809977531433,
-0.2932116389... | |
the `getTableColumn(...)` method of the `JTable`. This is a lot more elaborate, however, it's also the only way to have two different renderers/editors for a single class. E.g. your model might have two columns of class String which are rendered in entirely different ways, maybe once using a `JLabel/DefaultRenderer` an... | [
0.12839031219482422,
-0.12303894758224487,
0.4316301941871643,
0.20421835780143738,
-0.20942848920822144,
-0.40284839272499084,
0.1338868886232376,
-0.09734432399272919,
-0.38837724924087524,
-0.6665465235710144,
-0.19331899285316467,
0.5848432779312134,
-0.0184326134622097,
-0.20510914921... | |
reading for anyone customising JTables. In particular, read and reread [Concepts: Editors and Renderers](http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editrender) because it typically takes a while for it to "click". The examples on custom renderers and editors are also very worthwhile. | [
0.2966955900192261,
-0.11037170886993408,
0.22276125848293304,
0.14266984164714813,
-0.2541017234325409,
-0.35855981707572937,
0.3689631521701813,
-0.08678912371397018,
-0.22648142278194427,
-0.8584316372871399,
-0.18211384117603302,
0.6782789826393127,
0.1058076024055481,
-0.2396528571844... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.