text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
implementation of IMyInterface. **The main idea** is that your component **has no knowledge** about how it will be used. In your example, your component **makes some assumptions** about its use.
Actually this approach can work, but mixing IoC and explicit object initialization is not a good practice IMO.
IoC gives yo... | [
0.26556968688964844,
0.10532242804765701,
0.06173727661371231,
0.12815052270889282,
-0.26132234930992126,
-0.4318886399269104,
0.12359701842069626,
-0.5411911010742188,
0.19389531016349792,
-0.6841631531715393,
0.15114890038967133,
0.3847740888595581,
-0.6675683259963989,
-0.28552687168121... | |
I'm developing a restful Web service that runs as a servlet (using blocking IO) in Jetty. Figuring out the optimal setting for max threads seems hard.
Is there a researched formula for deciding the max number of threads from some easily measurable characteristics of the rest of the setup?
Very simple and primitive one... | [
0.30448219180107117,
-0.12650048732757568,
0.21824394166469574,
0.17951416969299316,
0.09069695323705673,
0.10601980239152908,
0.13178519904613495,
-0.1547255963087082,
-0.19792696833610535,
-0.6130822896957397,
0.050918251276016235,
0.45122554898262024,
-0.2681269645690918,
-0.17209461331... | |
many multiple users at once even if each request takes longer (higher C).
Usually I set C rather low, e.g. 2 - 10. | [
0.34286534786224365,
0.1574709713459015,
0.2488211989402771,
0.025804368779063225,
-0.07536899298429489,
-0.1749548465013504,
0.33169999718666077,
-0.2229279726743698,
-0.3468431532382965,
-0.6575421690940857,
-0.26286429166793823,
0.28657859563827515,
-0.13047243654727936,
0.2275051027536... | |
Do you know of any compilers that only requires one or two clicks on the source code to compile? Having to configure it to do it doesn't count, nor does having to go to a terminal and write a word or two.
Extra points are given if you can give your own view as to why so few compilers have a gui included, or just a sen... | [
0.6615943908691406,
0.3840383291244507,
-0.3853977918624878,
0.3283635377883911,
-0.10163838416337967,
-0.21985173225402832,
0.4077630341053009,
0.29616600275039673,
-0.12552662193775177,
-0.6110115647315979,
0.022487521171569824,
0.43999654054641724,
-0.1328100860118866,
-0.18115213513374... | |
they would be able to compile the code and then remove it, saving just the binary that is optimized for their computer.
I used to use "jikes", IBM's java compiler. It had an incremental mode where you just had to hit return and it would compile everything that had changed. So you'd do some coding in vi, save the file, ... | [
0.2992808520793915,
0.1666947901248932,
-0.02852020226418972,
0.0018121221801266074,
-0.24315980076789856,
0.28063616156578064,
-0.10928576439619064,
-0.07236391305923462,
-0.12888272106647491,
-0.9199842214584351,
0.2899363934993744,
0.588606059551239,
-0.16511407494544983,
0.034087929874... | |
that you haven't finished writing so you know it's not supposed to compile. | [
0.3606436848640442,
0.5592200756072998,
-0.5260201096534729,
0.1550762802362442,
0.03615507110953331,
-0.17891688644886017,
0.0005974650266580284,
0.3168264627456665,
-0.10575668513774872,
-0.07602129876613617,
0.04323699325323105,
0.18197597563266754,
-0.23482543230056763,
0.2465602308511... | |
What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. Is that the only criterion? Or are there other criteria?
### See also:
* [What’s the difference between a “script” and an “application”?](https... | [
0.3608913719654083,
0.11414942890405655,
-0.16846106946468353,
0.03336721658706665,
-0.10925257951021194,
-0.10402021557092667,
0.20282481610774994,
0.2492954581975937,
-0.26590657234191895,
-0.3711608946323395,
-0.34191086888313293,
0.44811469316482544,
-0.4286300539970398,
-0.30625084042... | |
**EDIT**
What small things which are too easy to overlook do I need to do before deploying a rails application?
I have set up [another question](https://stackoverflow.com/questions/101275/what-do-i-need-to-do-on-deployment-of-a-rails-application) for any task that takes more than a minute or two, and so ought to be ... | [
0.3726111352443695,
-0.06119852513074875,
0.0216376893222332,
-0.06258044391870499,
0.05399519205093384,
-0.22063107788562775,
0.28253886103630066,
-0.3513188660144806,
-0.14612440764904022,
-0.7706135511398315,
-0.018833808600902557,
0.48242494463920593,
-0.0298906322568655,
-0.3255338370... | |
:password, :password_confirmation` | [
-0.06516265124082565,
0.39317911863327026,
0.13778017461299896,
-0.06880860775709152,
0.41691818833351135,
-0.17768488824367523,
0.29621466994285583,
-0.04176453873515129,
-0.11415980011224747,
-0.41334420442581177,
-0.30760595202445984,
0.6932315230369568,
-0.21222642064094543,
0.24965691... | |
Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it.
A quick google has found <http://flatpack.sourceforge.net/> which looks promising.
I just wanted to check what others are using before I couple myself to this API.
Apache Commons CSV
=... | [
0.3679696023464203,
0.08169857412576675,
0.2770581543445587,
0.12916938960552216,
-0.3992953896522522,
-0.18595096468925476,
0.1175752654671669,
-0.1432817280292511,
-0.2916884124279022,
-0.598501443862915,
0.059264544397592545,
0.10868795216083527,
-0.31356167793273926,
0.0340067595243454... | |
How do I read text from the (windows) clipboard with python?
You can use the module called [win32clipboard](http://docs.activestate.com/activepython/2.5/pywin32/win32clipboard.html), which is part of [pywin32](https://github.com/mhammond/pywin32).
Here is an example that first sets the clipboard data then gets it:
``... | [
0.3809109628200531,
0.17087602615356445,
0.6389557123184204,
-0.20348037779331207,
-0.13025416433811188,
-0.3619191646575928,
0.16649439930915833,
-0.3184889853000641,
-0.022681422531604767,
-0.7078579068183899,
-0.2637239098548889,
0.6769315004348755,
-0.17591968178749084,
-0.156691715121... | |
Does anybody use anything else to document their `PHP` code than `PHPDoc?`
Are there any tools that read the same documentation syntax but give richer output?
I´ll go for doxygen too.
Here are several reasons :
* compatible with phpdoc tags and other popular ones : it´s interoperable
* works with various programming ... | [
0.5582764744758606,
0.19670018553733826,
0.17502200603485107,
0.28576186299324036,
-0.410188764333725,
-0.44590285420417786,
0.14820939302444458,
0.24240919947624207,
-0.006142352242022753,
-0.6882993578910828,
0.23772196471691132,
0.770951509475708,
-0.1923142820596695,
-0.218615815043449... | |
easy to learn, but harder that phpdoc because a lot richer. | [
-0.012865151278674603,
-0.026034871116280556,
0.36371535062789917,
0.41952961683273315,
-0.3534333109855652,
-0.5739316940307617,
0.27753064036369324,
0.32294875383377075,
-0.1944238245487213,
-0.5475942492485046,
-0.09019932895898819,
0.4944315552711487,
0.3688863515853882,
-0.45231711864... | |
In Python there is a really neat function called `zip` which can be used to iterate through two lists at the same time:
```
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
```
The above code should produce the following:
```
1 a
2 b
3 c
```
I wonder if there is a ... | [
0.3284400403499603,
-0.013897623866796494,
0.24868109822273254,
-0.2540484070777893,
-0.1894567906856537,
-0.13858409225940704,
0.30126693844795227,
-0.15020179748535156,
-0.4728813171386719,
-0.2289145588874817,
-0.11840089410543442,
0.3650680184364319,
-0.545983612537384,
-0.248137995600... | |
a,
IEnumerable<T2> b,
Func<T1,T2,TResult> combine)
{
using (var f = a.GetEnumerator())
using (var s = b.GetEnumerator())
{
while (f.MoveNext() && s.MoveNext())
yield return combine(f.Current, s.Current);
}
}
```
Dropped the C# 2 version as it was showing its age. | [
0.16954219341278076,
-0.2896585762500763,
0.43742620944976807,
-0.62454754114151,
0.24494196474552155,
0.027419984340667725,
0.25542888045310974,
-0.628591775894165,
0.06634174287319183,
-0.28623339533805847,
-0.32065996527671814,
0.36910486221313477,
-0.3622019588947296,
0.143914461135864... | |
I'm building an installer for an application. The user gets to select a datasource they have configured and nominate what type of database it is. I want to confirm that the database type is indeed Postgres, and if possible, what version of Postgres they are running by sending a SQL statement to the datasource.
Try this... | [
0.3661556839942932,
0.12240085005760193,
0.32246243953704834,
-0.11247193813323975,
0.09329735487699509,
-0.19862008094787598,
0.07290228456258774,
0.1801062524318695,
0.024444380775094032,
-0.6330790519714355,
-0.07943377643823624,
0.3591783046722412,
-0.39642533659935,
0.313234806060791,... | |
version
-----------------------------------------------------------------------------------------------
PostgreSQL 8.3.3 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
(1 row)
```
The command works too in MySQL:
```
mysql> select version();
+... | [
-0.3047628104686737,
-0.06527731567621231,
0.814470112323761,
0.0348079688847065,
0.16158822178840637,
-0.163924440741539,
0.27857789397239685,
0.2019585520029068,
-0.06461773067712784,
-0.6193159818649292,
-0.35438308119773865,
0.847297191619873,
-0.2871559262275696,
0.11037757247686386,
... | |
in sqlite as far as I can see. | [
0.1729229986667633,
0.24381503462791443,
-0.012886288575828075,
0.007246188819408417,
-0.17312301695346832,
-0.2999223470687866,
-0.23154377937316895,
0.5182579159736633,
-0.03632422909140587,
-0.33030322194099426,
0.08098761737346649,
0.5071823000907898,
-0.23261862993240356,
0.0387035645... | |
Inspired by another question asking about the missing `Zip` function:
Why is there no `ForEach` extension method on the `IEnumerable` interface? Or anywhere? The only class that gets a `ForEach` method is `List<>`. Is there a reason why it's missing, maybe performance?
There is already a `foreach` statement included i... | [
0.32327181100845337,
0.0882512703537941,
0.23350009322166443,
-0.17867328226566315,
-0.030694060027599335,
-0.07592149078845978,
0.2267388105392456,
-0.3171418309211731,
-0.253111332654953,
-0.758229672908783,
-0.12029051780700684,
0.6007419228553772,
-0.4736437499523163,
0.086539432406425... | |
changed my stance on that issue; a `ForEach()` extension method would indeed be useful in some situations.
Here are the major differences between the statement and the method:
* Type checking: foreach is done at runtime, `ForEach()` is at compile time (Big Plus!)
* The syntax to call a delegate is indeed much simpler... | [
0.49350813031196594,
-0.02710045501589775,
0.24118496477603912,
-0.08446354418992996,
-0.06872140616178513,
-0.3618848919868469,
0.4113602638244629,
-0.35442018508911133,
-0.1029760017991066,
-0.6619964838027954,
-0.11691531538963318,
0.6920381784439087,
-0.03900505229830742,
0.10051078349... | |
I want to use Vim's quickfix features with the output from Visual Studio's devenv build process or msbuild.
I've created a batch file called build.bat which executes the devenv build like this:
```
devenv MySln.sln /Build Debug
```
In vim I've pointed the :make command to that batch file:
```
:set makeprg=build.ba... | [
0.8450765013694763,
0.27886563539505005,
0.22617387771606445,
-0.38052165508270264,
-0.13415056467056274,
0.04855997487902641,
0.43703410029411316,
-0.14559625089168549,
0.04729913920164108,
-0.7519751191139221,
0.0819891169667244,
0.9796367287635803,
-0.2651117742061615,
0.055328980088233... | |
but none of them have parsed out the errors correctly. Here's a few I've tried:
```
set errorformat=%*\\d>%f(%l)\ :\ %t%[A-z]%#\ %m
set errorformat=\ %#%f(%l)\ :\ %#%t%[A-z]%#\ %m
set errorformat=%f(%l,%c):\ error\ %n:\ %f
```
And of course I've tried Vim's default.
Here's some example output from the build.bat:
`... | [
0.18813060224056244,
0.46828585863113403,
0.5571632385253906,
0.044253598898649216,
0.1272917538881302,
-0.042037900537252426,
0.5222782492637634,
-0.24816648662090302,
-0.2564166486263275,
-0.6730070114135742,
-0.2842946946620941,
0.6042129993438721,
-0.33946385979652405,
0.17756116390228... | |
/optimize- /out:obj\Debug\Thingy.exe /resource:obj\Debug\Thingy.g.resources /resource:obj\Debug\Thingy.Properties.Resources.resources /target:winexe App.xaml.cs Controller\FieldFactory.cs Controller\UserInfo.cs Data\ThingGatewaySqlDirect.cs Data\ThingListFetcher.cs Data\UserListFetcher.cs Gui\FieldList.xaml.cs Interfac... | [
-0.5412586331367493,
-0.38969340920448303,
0.3086898624897003,
-0.11333508789539337,
0.3995913565158844,
0.3514222204685211,
0.27976223826408386,
-0.5340090990066528,
-0.07746953517198563,
-0.6010482311248779,
-0.18689686059951782,
0.6619172692298889,
-0.5662941336631775,
-0.54690247774124... | |
makeprg=msbuild\ /nologo\ /v:q
```
Sample output whould be:
```
Controller\FieldFactory.cs(14,19): error CS0246: The type or namespace name 'IFieldNothing' could not be found (are you missing a using directive or an assembly reference?)
```
It looks like the tricky part here may lie in the fact that the path is re... | [
0.14913016557693481,
-0.24715447425842285,
0.6928019523620605,
-0.18174982070922852,
0.23472176492214203,
-0.06763612478971481,
0.5244860649108887,
-0.41793105006217957,
-0.09428731352090836,
-0.4715093970298767,
-0.1249072328209877,
0.3102857172489166,
-0.5553984045982361,
0.2283097207546... | |
to add the following line to your csproj file's main PropertyGroup:
```
<GenerateFullPaths>True</GenerateFullPaths>
```
I have a blog post which walks through all the details of getting C# projects building in Vim, including the error format. You can find it here: <http://kevin-berridge.blogspot.com/2008/09/vim-c-com... | [
0.5722737908363342,
0.2734549641609192,
0.347362220287323,
-0.03865700215101242,
-0.23567843437194824,
-0.12935419380664825,
0.23925814032554626,
-0.22547374665737152,
-0.16466520726680756,
-0.4894271194934845,
-0.05504763498902321,
0.5895295739173889,
-0.3485843539237976,
0.08440656214952... | |
In the question [What little things do I need to do before deploying a rails application](https://stackoverflow.com/questions/101066/what-little-things-do-i-need-to-do-before-deploying-a-rails-application) I am getting a lot of answers that are bigger than "little things". So this question is slighly different.
What ... | [
0.25991255044937134,
-0.36694011092185974,
0.2993156611919403,
0.05374414473772049,
0.24147097766399384,
-0.09514061361551285,
0.24184349179267883,
-0.3079504370689392,
-0.3375018835067749,
-0.7955261468887329,
-0.1906200647354126,
0.6065157651901245,
0.087253138422966,
-0.3805864453315735... | |
to deploy your code in an automated way. This will involve setting up your shared directory and shared resources like database.yml.
**Install C Based MySQL gem** If you don't have all the required libs, this can take a little while, but less than 20 minutes.
**Make sure you aren't vulnerable to common web applicatio... | [
0.7159884572029114,
-0.007723004091531038,
0.253589928150177,
0.2242036759853363,
-0.21805165708065033,
-0.253776878118515,
0.43411946296691895,
-0.06253386288881302,
-0.19647730886936188,
-1.1283564567565918,
-0.20634377002716064,
0.7361539602279663,
-0.15921545028686523,
-0.3427087068557... | |
Apache, Passenger: there is a lot to choose from. Think about how your app will be used and decide on the best architecture, then set it up.
**Set up Exception Notifier or Exception Logger** You will want your app to warn you when it breaks. Set one of these tools up to track production exceptions. Note: Exception no... | [
-0.003939712420105934,
0.1466270089149475,
-0.1673993617296219,
0.48375943303108215,
-0.19988279044628143,
-0.40715041756629944,
0.6247173547744751,
-0.3163335919380188,
-0.20593184232711792,
-0.6512662172317505,
0.012921002693474293,
0.5520017743110657,
-0.23196959495544434,
-0.4483435451... | |
source control** If you have database.yml, mail.yml (if you use yaml\_mail\_config) or other sensitive files in source control, get them out of there, replace them with database.yml.example, and put them in the shared/ folder on your server.
**Ensure that your DB is locked down.** A lot of people forget to secure MyS... | [
0.608556866645813,
0.027397464960813522,
0.21279208362102509,
0.38311365246772766,
-0.07261376082897186,
-0.28076139092445374,
-0.06204802915453911,
0.05263230949640274,
-0.01849706843495369,
-0.8344042897224426,
-0.09518858045339584,
0.6049540638923645,
-0.17770476639270782,
0.14288401603... | |
it's there. If you need a *robots.txt* file to prevent certain areas of your site from being indexed, make one. If you want a good looking *404 Page*, make sure it's set up correctly. If you want a "Be Right Back" page to be present when you deploy, make sure that you have a Capistrano maintenance file specified and Ng... | [
0.8214833736419678,
-0.09899457544088364,
0.5766317248344421,
0.12474656105041504,
0.2569068968296051,
-0.4316573143005371,
-0.2788604199886322,
0.0895276665687561,
-0.5100468397140503,
-0.7817804217338562,
-0.19676640629768372,
0.43270087242126465,
-0.01679047755897045,
-0.034119639545679... | |
I have a command line tool, written in Delphi, which job is to insert a node in a XML file and then immediately exit. I need to make it possible several instances of the tool to be executed simultaneously and insert nodes to one and the same XML.
To achieve this purpose I have introduced a simple file "mutex" - the t... | [
0.06226010620594025,
0.09425634145736694,
0.18203569948673248,
-0.06199644133448601,
-0.06171909719705582,
0.06553807109594345,
0.4070007801055908,
0.15460088849067688,
-0.13317972421646118,
-0.5081437230110168,
-0.12339653074741364,
0.27498194575309753,
-0.3962785005569458,
0.064269512891... | |
deleted. Then it creates again the temp file, writes to the XML and deletes the temp file.
The problem is that this works fine only when 2-3 instances try to write to the XML file simultaneously. When there are more instances - some of them just wait forever and never append the node into the XML.
Is there a better ... | [
0.24742694199085236,
-0.29311734437942505,
0.020741747692227364,
0.17621757090091705,
-0.31868112087249756,
0.1423056572675705,
0.5752610564231873,
0.07536163181066513,
-0.25436630845069885,
-0.8098978996276855,
-0.14849741756916046,
0.08300749957561493,
-0.7555821537971497,
0.370900720357... | |
of the constructors which takes a name argument. If you use the same name in all the applications, they will be synchronizing over the same kernel mutex. Use TMutex.Acquire to access, and TMutex.Release when you're done, protected in a try/finally block.
Use the TMutex.Create overload which has an InitialOwner argumen... | [
0.2615228295326233,
0.015506673604249954,
0.15923325717449188,
-0.03482751548290253,
0.10201931744813919,
0.1290203481912613,
0.28060200810432434,
-0.3348119854927063,
-0.049968358129262924,
-1.0177615880966187,
-0.1345042884349823,
0.45138636231422424,
-0.482913613319397,
0.19773972034454... | |
I've set up wildcard mapping on IIS 6, by adding "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet\_isapi.dll", and ensured "Verify that file exists" is not checked :
* on the "websites" directory in IIS
* on the website
However, after a iisreset, when I go to <http://myserver/something.gif>, I still get IIS 404 ... | [
0.07304392009973526,
-0.09199999272823334,
0.28249338269233704,
0.16826139390468597,
0.013184292241930962,
-0.34102436900138855,
0.45583200454711914,
-0.16641303896903992,
-0.24338212609291077,
-0.8614989519119263,
0.131036639213562,
0.357948899269104,
-0.16954201459884644,
0.1586062908172... | |
your web config for gif files:
```
<system.web>
<httpHandlers>
<add path="*.gif" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="true"/>
</httpHandlers>
</system.web>
```
That forces .Net to handle the file, then you'll get the .Net error.
Server Error in '/' Application.
-----------... | [
0.2089417725801468,
0.2610938251018524,
0.5720785856246948,
0.16931569576263428,
0.00960511714220047,
-0.30396324396133423,
0.6800196170806885,
0.016260627657175064,
-0.27297356724739075,
-0.8770143389701843,
-0.29240882396698,
0.4871984124183655,
-0.18174174427986145,
0.05172852799296379,... | |
In particular, wouldn't there have to be some kind of function pointer in place anyway?
Non virtual member functions are really just a syntactic sugar as they are almost like an ordinary function but with access checking and an implicit object parameter.
```
struct A
{
void foo ();
void bar () const;
};
```
is ... | [
-0.30696022510528564,
-0.08905529230833054,
0.16784076392650604,
-0.03079821914434433,
-0.21023377776145935,
0.03320194408297539,
0.10226945579051971,
0.18091589212417603,
-0.09312865883111954,
-0.3963735103607178,
-0.2179722785949707,
0.4793336093425751,
-0.6324778199195862,
0.16213904321... | |
something like:
```
void foo (A * this) {
void (*realFoo)(A *) = lookupVtable (this->vtable, "foo");
(realFoo)(this); // Make the call to the most derived version of 'foo'
}
``` | [
0.24681544303894043,
-0.029888303950428963,
0.46378931403160095,
-0.4512559771537781,
0.21490783989429474,
-0.09149283915758133,
0.22121217846870422,
0.12123925983905792,
-0.22540129721164703,
-0.37490013241767883,
-0.3673698604106903,
0.9745080471038818,
-0.6296638250350952,
0.19945098459... | |
As the title says: What is the difference between a non-secure random number generator and a secure random number generator?
No computationally feasible algorithm should:
* recover the seed, or
* predict the "next bit"
for a secure random number generator.
Example: a linear feedback shift register produces lots of r... | [
0.16150973737239838,
-0.14272169768810272,
-0.28637588024139404,
0.35453110933303833,
0.1500370353460312,
0.11950039118528366,
-0.05199858918786049,
-0.08014924824237823,
0.0724344477057457,
-0.334516704082489,
-0.11612113565206528,
0.3903746008872986,
-0.08323017507791519,
0.2295459210872... | |
Is it valid to have a 'choice' of 'group' elements when defining an XML Schema (XSD)
i.e. is the following valid
```
<xs:complexType name="HeaderType">
<xs:sequence>
<xs:element name="reservation-number" type="ReservationNumberType" minOccurs="1" maxOccurs="1" nillable="false" />
<xs:choice minOccurs="1" ma... | [
-0.022444123402237892,
-0.10362305492162704,
0.11144418269395828,
0.017482878640294075,
0.17620982229709625,
-0.09598598629236221,
-0.12753400206565857,
-0.3961471617221832,
-0.17079220712184906,
-0.2511674463748932,
-0.32877084612846375,
0.10466372966766357,
-0.14840063452720642,
-0.05666... | |
then it must include all the elements defined in the CancellationGroup group.
For some reason, my XML editor (Eclipse) does not like this, but does not indicate why. It shows there being an error on the line <xs:complexType name="HeaderType"> but does not say what the error is
I'm no XML expert, although I use it quit... | [
0.19573627412319183,
0.24217817187309265,
-0.035620152950286865,
-0.16611339151859283,
-0.40582332015037537,
-0.3349173665046692,
-0.011802234686911106,
-0.25916627049446106,
-0.10013756155967712,
-0.38360854983329773,
0.048475608229637146,
0.21263810992240906,
-0.42783063650131226,
0.1228... | |
same element, in which case you will violate the Schema Component Constraint: Unique Particle Attribution (below).
[http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#cos-nonambig](http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#cos-nonambig "http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#cos-nonambig")
> *... | [
-0.1914890706539154,
0.2031504064798355,
0.3623496890068054,
0.07456773519515991,
-0.30847644805908203,
0.020335111767053604,
0.09946765005588531,
-0.7644968032836914,
-0.4480927288532257,
-0.3188561797142029,
-0.07469319552183151,
0.11161232739686966,
-0.5371581315994263,
0.43775218725204... | |
the
> sequence.
>
>
> **Note:** This constraint
> reconstructs for XML Schema the
> equivalent constraints of [XML 1.0
> (Second Edition)] and SGML. Given the
> presence of element substitution
> groups and wildcards, the concise
> expression of this constraint is
> difficult, see Analysis of the Unique
> Pa... | [
0.03139082342386246,
-0.03227012977004051,
-0.03647478669881821,
0.09686841815710068,
-0.02539125643670559,
-0.43198162317276,
-0.04342270642518997,
-0.39951226115226746,
-0.27540281414985657,
-0.38119596242904663,
-0.2317562699317932,
0.0901157557964325,
-0.4570046663284302,
0.34579959511... | |
is different from Cancellation group
(resDate and cancDate maybe), then the that is valid.
**Edit:** I'd never come across this sort of problem before, and I think its fascinating that the definitions of the groups are totally legal, but if you put them together in a choice, that choice becomes illegal because of the... | [
0.10104755312204361,
-0.06993386894464493,
0.07953651994466782,
-0.02448337711393833,
-0.12330535054206848,
-0.3882172703742981,
-0.2174595296382904,
-0.25168296694755554,
-0.44315651059150696,
-0.24916760623455048,
-0.2073533535003662,
0.02959417924284935,
-0.2898792326450348,
0.231263443... | |
<xs:sequence>
<xs:element name="date"/>
<xs:element name="name"/>
<xs:element name="address"/>
</xs:sequence>
</xs:group>
```
**Groups that can form a legal choice**
```
<xs:group name="ReservationGroup">
<xs:sequence>
<xs:element name="resDate"/>
<xs:element name="nam... | [
-0.1601429432630539,
-0.06954219192266464,
-0.07321478426456451,
-0.1121082678437233,
0.026492947712540627,
-0.15667082369327545,
-0.17451490461826324,
-0.36253243684768677,
-0.2756415009498596,
-0.4295673370361328,
-0.4244641661643982,
-0.009371110238134861,
-0.08764758706092834,
0.159635... | |
<xs:element name="address"/>
</xs:sequence>
</xs:group>
```
As I mentioned above, I'd do this sort of thing with complex types. Yes, it adds another element, but it seems the obvious way and I like obviousness.
```
<xs:complexType name="HeaderType">
<xs:sequence>
<xs:element name="reservation-number" type=... | [
-0.18263159692287445,
-0.0937139168381691,
-0.03602231666445732,
0.06755340844392776,
0.07415388524532318,
-0.06160455942153931,
-0.00763799250125885,
-0.43497738242149353,
-0.04622285068035126,
-0.6759418845176697,
-0.20211513340473175,
0.39772742986679077,
-0.3633629381656647,
0.23647941... | |
Our application is written in ActionScript2 and has about 50.000+ lines of code. We want to port it to ActionScript3 and we're trying to find out what our options are. Do we have to do it manually or can we use a converter, and what problems can we expect?
I asked a similar question a little while ago that you might fi... | [
0.13804449141025543,
-0.1742493212223053,
0.41229307651519775,
-0.12424474209547043,
0.06675580143928528,
-0.05583075061440468,
0.19192837178707123,
-0.32068583369255066,
-0.4291229546070099,
-0.6340696215629578,
-0.20390519499778748,
0.690913200378418,
-0.2605930268764496,
-0.317354291677... | |
I'm using Castle Windsor for dependency injection in my test project. I'm trying to create an instance one of my 'Repository' classes. "It works fine on my machine", but when I run a nightly build in TFS, my tests are not able to load said classes.
```
private static readonly WindsorContainer _container = new WindsorC... | [
0.047126561403274536,
0.3832803964614868,
0.1657889187335968,
-0.01717689074575901,
-0.03784952685236931,
0.3427872955799103,
0.5964832305908203,
-0.3720438778400421,
-0.1535278707742691,
-0.4706047773361206,
0.07694398611783981,
0.6377482414245605,
-0.21708014607429504,
0.4838639497756958... | |
<component id="primaryProductRepository" type="Example2008.Repository.ProductRepository, Example2008.Repository" service="Example2008.Domain.Repository.IProductRepository, Example2008.Domain" />
</components>
</castle>
```
When I queue a new build it produces
the following message:
> Unable to create instance ... | [
-0.10789305716753006,
0.17075227200984955,
0.6437979936599731,
-0.11515863984823227,
0.15655642747879028,
0.33457598090171814,
0.6925020813941956,
-0.4825771749019623,
-0.21142025291919708,
-0.5454292893409729,
-0.23408940434455872,
0.5753186941146851,
-0.18420369923114777,
0.5020101666450... | |
the concrete class 'LALALALALA', so the xml configuration has obviously been red correctly)
I think I have my dependencies set up correctly as well (because it works locally, even if I clean the solution and rebuild).
Any thoughts?
(using VS2008, TFS 2008.Net 3.5, Castle 1.03, by the way)
Mac OS X's "Keychain Access... | [
0.03369354456663132,
-0.2150101363658905,
0.32570943236351013,
0.17331552505493164,
0.1162090003490448,
-0.10799399763345718,
0.3187668025493622,
0.18420621752738953,
-0.290686696767807,
-0.6093062162399292,
-0.16306272149085999,
0.7525424957275391,
-0.05210842564702034,
-0.010150372050702... | |
How do SQL developers go about keeping up on current techniques and trends in the SQL world? Are there any blogs, books, articles, techniques, etc that are being used to keep up to date and in the know?
There are a lot of opportunities out their for OO, procedural, and functional programmers to take part in a variety ... | [
0.413977712392807,
0.49805060029029846,
-0.1363947093486786,
0.4006081223487854,
-0.09387585520744324,
-0.11365851014852524,
0.20963717997074127,
0.16259895265102386,
-0.22671131789684296,
-0.2950652241706848,
-0.20902518928050995,
0.3635352551937103,
0.02206275798380375,
0.049248710274696... | |
http://ecx.images-amazon.com/images/I/51DTJ099P7L.\_SL500\_BO2,204,203,200\_PIsitb-dp-500-arrow,TopRight,45,-64\_OU01\_AA240\_SH20\_.jpg](http://ecx.images-amazon.com/images/I/51DTJ099P7L._SL500_BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg) | [
-0.4487171769142151,
0.209421768784523,
0.3388013243675232,
0.19452215731143951,
0.2655571699142456,
0.5515294671058655,
0.18977485597133636,
-0.19279985129833221,
-0.5616418123245239,
-0.35315704345703125,
-0.5046550631523132,
0.4286012351512909,
-0.15629954636096954,
0.0360281877219677,
... | |
I have some code which collects points (consed integers) from a loop which looks something like this:
```
(loop
for x from 1 to 100
for y from 100 downto 1
collect `(,x . ,y))
```
My question is, is it correct to use ``(,x . ,y)` in this situation?
Edit: This sample is not about generating a t... | [
0.2236243039369583,
0.040336012840270996,
-0.03561597317457199,
0.06771466881036758,
-0.19700753688812256,
0.16554217040538788,
-0.027693569660186768,
-0.41884106397628784,
-0.23993852734565735,
-0.36052292585372925,
0.14733058214187622,
0.07050718367099762,
-0.3191605806350708,
0.09815809... | |
this clear. The actual loop I use depends on several other functions (and is part of one itself) so it made more sense to replace the calls with literal integers and to pull the loop out of the function.
It would be much 'better' to just do (cons x y).
But to **answer the question**, there is nothing wrong with doing... | [
0.42791038751602173,
0.06455729901790619,
0.13560575246810913,
-0.0784560814499855,
-0.2585658133029938,
-0.23349958658218384,
0.24101656675338745,
-0.21452642977237701,
0.01358018722385168,
0.0039372192695736885,
0.1272314190864563,
0.2794681191444397,
-0.3051440119743347,
0.2780823707580... | |
I have Flex Builder 3 installed on two Windows machines and the same project on both of them. On one computer, the CSS styles I defined are shown in design view; on the other computer they are not applied. Is there any reason why it might not work on one?
It would be much 'better' to just do (cons x y).
But to **answ... | [
0.2658032774925232,
-0.01429551001638174,
0.229678675532341,
-0.22867077589035034,
-0.44561752676963806,
-0.03613174706697464,
0.3156471848487854,
-0.3125417232513428,
0.05020981281995773,
-0.9578329920768738,
0.1988643854856491,
0.7473026514053345,
-0.2757635712623596,
-0.2968354523181915... | |
Let's say I have the following HTML:
```
<table id="foo">
<th class="sortasc">Header</th>
</table>
<table id="bar">
<th class="sortasc">Header</th>
</table>
```
I know that I can do the following to get all of the **th** elements that have class="sortasc"
```
$$('th.sortasc').each()
```
However that gives me... | [
0.03294241428375244,
0.17009644210338593,
0.5601886510848999,
-0.22477072477340698,
-0.1305968463420868,
0.0948319211602211,
0.1941339671611786,
-0.19536834955215454,
-0.18277639150619507,
-0.8179939389228821,
-0.01390635222196579,
0.39256781339645386,
-0.2902084290981293,
-0.1953736543655... | |
I am implementing a comment control that allows a person to select comments and have them sent to specified departments. The email needs to be formatted in a specific way, and I was wondering what the best way to do this would be.
Should I just hard code all of the style information into one massive method, or should ... | [
0.8095967173576355,
0.20083124935626984,
0.22404220700263977,
0.25690507888793945,
-0.048034872859716415,
-0.15169119834899902,
-0.15132246911525726,
-0.06646990776062012,
-0.2336006760597229,
-0.6898117065429688,
0.08898529410362244,
0.3241921663284302,
-0.20786020159721375,
-0.0608641169... | |
to maintain than the hardcoded form. | [
0.06752394139766693,
-0.04096559062600136,
-0.1322639137506485,
0.10084019601345062,
0.059455472975969315,
-0.1581946760416031,
0.043063923716545105,
-0.0570523627102375,
0.0018723653629422188,
-0.521812379360199,
-0.16109439730644226,
0.5156647562980652,
-0.072382353246212,
-0.12284926325... | |
What is the best way to draw a variable width line without using glLineWidth?
Just draw a rectangle?
Various parallel lines?
None of the above?
Assume your original points are (x1,y1) -> (x2,y2). Use the following points (x1-width/2, y1), (x1+width/2,y1), (x2-width/2, y2), (x2+width/2,y2) to construct a rectangle and... | [
0.028458518907427788,
-0.38268575072288513,
0.5061342120170593,
0.19609783589839935,
-0.34093374013900757,
0.11872345954179764,
-0.06546173244714737,
-0.2770484983921051,
-0.06065244600176811,
-0.683311402797699,
0.0634942427277565,
0.5354403853416443,
-0.10421877354383469,
-0.006951678544... | |
I have a Google App Engine app - <http://mylovelyapp.appspot.com/>
It has a page - mylovelypage
For the moment, the page just does `self.response.out.write('OK')`
If I run the following Python at my computer:
```
import urllib2
f = urllib2.urlopen("http://mylovelyapp.appspot.com/mylovelypage")
s = f.read()
print s
f... | [
-0.17297372221946716,
0.3792003095149994,
0.7512362599372864,
-0.13216307759284973,
-0.09392501413822174,
0.032085586339235306,
0.5298359394073486,
-0.28842267394065857,
-0.16457340121269226,
-0.5332536101341248,
-0.183087557554245,
0.7284764647483826,
-0.5127918720245361,
-0.1100891306996... | |
user='billy.bob@gmail.com',
passwd='billybobspasswd')
opener = urllib2.build_opener(auth_handler)
urllib2.install_opener(opener)
```
But it makes no difference - I still get the login page's HTML back.
I've tried [Google's ClientLogin auth API](http://code.google.com/apis/accounts/docs/Auth... | [
-0.0021876622922718525,
0.3434019386768341,
0.877733051776886,
-0.2060050219297409,
-0.38742220401763916,
0.2289498895406723,
0.8634905219078064,
-0.3802134394645691,
0.004868476651608944,
-0.6941078901290894,
-0.3192915618419647,
0.4357408583164215,
-0.32922592759132385,
0.112175554037094... | |
= re.search('Auth=(\S*)', content).group(1)
headers = {}
headers['Authorization'] = 'GoogleLogin auth=%s' % authtok.strip()
headers['Content-Length'] = '0'
response, content = h.request("http://mylovelyapp.appspot.com/mylovelypage",
'POST', | [
0.14532341063022614,
0.05639587715268135,
0.9791683554649353,
0.06281466782093048,
0.21343378722667694,
0.09380117058753967,
0.5274572968482971,
-0.24963726103305817,
-0.18148207664489746,
-0.7340429425239563,
-0.7193340063095093,
0.21897417306900024,
-0.4347391724586487,
0.157837077975273... | |
body="",
headers=headers)
while response['status'] == "302":
response, content = h.request(response['location'], 'POST', body="", headers=headers)
print content
```
I do seem to be able to get some token correctly, but attempts to use it in the header when... | [
0.3041706085205078,
0.032824691385030746,
0.5129095315933228,
0.1874346137046814,
-0.005611804313957691,
-0.14624924957752228,
0.3390856981277466,
-0.18452906608581543,
-0.025311671197414398,
-0.5944966077804565,
-0.09059425443410873,
0.1773538887500763,
0.13261263072490692,
-0.05658997222... | |
HTML. :-(
Can anyone help, please?
Could I use the [GData client library](http://code.google.com/p/gdata-python-client/) to do this sort of thing? From
what I've read, I think it should be able to access App Engine apps,
but I haven't been any more successful at getting the authentication working for App Engine stuf... | [
0.1959455907344818,
0.3721923530101776,
0.4542033076286316,
0.13764357566833496,
-0.4258001148700714,
-0.22534996271133423,
0.26658087968826294,
-0.1920355260372162,
-0.29160186648368835,
-0.5581400394439697,
-0.13300316035747528,
0.2958410084247589,
-0.2947274446487427,
-0.180568113923072... | |
a nutshell, the solution is:
1. Use the [Google ClientLogin API](http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html) to obtain an authentication token. appengine\_rpc.py does this in [\_GetAuthToken](http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/appengine_r... | [
-0.22178570926189423,
0.19859980046749115,
0.657772421836853,
0.06568897515535355,
-0.10563818365335464,
0.19097775220870972,
0.3689107298851013,
-0.4719879925251007,
-0.12474276125431061,
-0.35904353857040405,
-0.3542821705341339,
0.5647514462471008,
-0.44083938002586365,
-0.0709223821759... | |
fact, just use the AbstractRpcServer and HttpRpcServer classes wholesale, since they do pretty much everything you need. | [
0.6698188185691833,
-0.14064666628837585,
0.052062440663576126,
0.25686216354370117,
-0.19770565629005432,
-0.0673680305480957,
0.05474628508090973,
0.5444921255111694,
-0.12299266457557678,
-0.7692242860794067,
0.1836620271205902,
0.5476417541503906,
0.15257078409194946,
-0.06139959022402... | |
I've got 2 monitors, and most of the time I've got some reference material open on one screen, and Visual Studio on the other. To really get in the zone, though, I need my code to be the only thing I see. Does anyone know if it's possible to have multiple code windows in Visual Studio? So far the best I can do is put d... | [
0.49684444069862366,
-0.004607969429343939,
0.32426658272743225,
0.12537141144275665,
0.0776611790060997,
-0.058863282203674316,
0.4691585600376129,
0.2348058670759201,
-0.3651607632637024,
-0.9823076128959656,
0.3088030219078064,
0.6747407913208008,
0.144825279712677,
0.14687395095825195,... | |
there's an option for "New Vertical Tab group" Just maximize across both monitors and put the divider on the monitor divide and I think that's what you're after. | [
0.2979843318462372,
-0.3112625479698181,
0.3863598704338074,
-0.03445969149470329,
-0.07303205132484436,
0.11434700340032578,
-0.2053692787885666,
0.1201014518737793,
-0.3790261447429657,
-0.7370539903640747,
0.42282360792160034,
0.5783527493476868,
-0.12542538344860077,
-0.097815275192260... | |
We are working on an [S60](http://en.wikipedia.org/wiki/S60_%28software_platform%29) version and this platform has a nice Python API..
However, there is nothing official about Python on Android, but since [Jython](http://en.wikipedia.org/wiki/Jython) exists, is there a way to let the snake and the robot work together?... | [
0.6571386456489563,
-0.17579807341098785,
0.06316178292036057,
0.18969278037548065,
-0.1579551249742508,
0.14317616820335388,
0.2928285002708435,
0.2689041495323181,
-0.07890860736370087,
-0.5975359678268433,
0.0970650315284729,
0.5187292695045471,
-0.2658175826072693,
-0.09758485108613968... | |
I'm trying to use cygwin as a build environment under Windows. I have some dependencies on 3rd party packages, for example, GTK+.
Normally when I build under Linux, in my Makefile I can add a call to pkg-config as an argument to gcc, so it comes out like so:
```
gcc example.c `pkg-config --libs --cflags gtk+-2.0`
... | [
0.3660533130168915,
0.350540429353714,
0.1835412085056305,
-0.2866629362106323,
-0.016591651365160942,
-0.2955891489982605,
0.22800461947917938,
0.09559676051139832,
0.22371168434619904,
-0.7994047403335571,
-0.038689613342285156,
0.927261471748352,
-0.4809664189815521,
0.18478752672672272... | |
the culprit. I can copy and paste the command line that make uses to call gcc, and that by itself will run gcc, which halts with ": Invalid argument".
I wrote a small test program to print out command line arguments:
```
for (i = 0; i < argc; i++)
printf("'%s'\n", argv[i]);
```
Notice the single quotes.
```
... | [
-0.05448075011372566,
0.18750423192977905,
0.3389752507209778,
0.20958048105239868,
-0.12963585555553436,
-0.03532978892326355,
-0.005470536183565855,
0.03679386153817177,
0.09336696565151215,
0.1435607224702835,
0.29738983511924744,
0.7293269038200378,
-0.566150426864624,
0.22808668017387... | |
argv[argc - 1] is null. Running the same test on Linux does not have this result.
That said, is there, say, some way I could have the Makefile store the result of pkg-config into a variable, and then use that variable, rather than using the back-tick operator?
> That said, is there, say, some way I could have the Make... | [
-0.09162336587905884,
-0.03162467107176781,
0.1501055806875229,
-0.3585699796676636,
-0.23488347232341766,
-0.05333799868822098,
0.22084927558898926,
-0.32413122057914734,
-0.010494348593056202,
-0.21979141235351562,
0.035655394196510315,
0.645443856716156,
-0.7394567131996155,
-0.03169625... | |
That is, I'd like to have a tuple of values.
The use case on my mind:
```
Dictionary<Pair<string, int>, object>
```
or
```
Dictionary<Triple<string, int, int>, object>
```
Are there built-in types like Pair or Triple? Or what's the best way of implementing it?
**Update** There are some general-purpose tuples im... | [
0.07512291520833969,
0.22267508506774902,
0.33809128403663635,
-0.11779896169900894,
-0.2354751080274582,
0.020295467227697372,
0.21788673102855682,
0.01876710169017315,
-0.12753926217556,
-0.4080298840999603,
-0.07669196277856827,
0.520980954170227,
-0.18152420222759247,
0.000241899950196... | |
C#. Visit <http://www.adventuresinsoftware.com/generics/> and click on the "tuples" link. | [
0.22323855757713318,
0.12498929351568222,
0.21301792562007904,
0.21984325349330902,
-0.001313992659561336,
-0.2263154536485672,
0.4915907382965088,
0.7012649774551392,
-0.4600897431373596,
-0.3006897568702698,
-0.6520840525627136,
0.3172500431537628,
-0.35624319314956665,
0.092986963689327... | |
Typing Ctrl+O twice in editor when a java type is selected pops-up an outline context dialog that displays the members && inherited members. How can I have this in the main outline view?
Looks like you can't do it.
Maybe you should file it as an improvement request. | [
-0.14245760440826416,
-0.19649174809455872,
0.4706951081752777,
-0.10377804189920425,
-0.006267715711146593,
-0.04537612944841385,
0.44708433747291565,
-0.20566394925117493,
-0.13574816286563873,
-0.5505827069282532,
0.11825978010892868,
0.5572724342346191,
-0.32816630601882935,
-0.0695588... | |
Is there any easy to install/use (on unix) database migration tools like Rails Migrations? I really like the idea, but installing ruby/rails purely to manage my database migrations seems overkill.
Just use ActiveRecord and a simple Rakefile. For example, if you put your migrations in a `db/migrate` directory and have a... | [
-0.16231830418109894,
0.02265087515115738,
0.2918180227279663,
0.03128936514258385,
-0.07833993434906006,
-0.19684824347496033,
0.12379179894924164,
-0.18414804339408875,
-0.1663566529750824,
-0.9994310736656189,
-0.15558792650699615,
0.6874313950538635,
-0.30392777919769287,
0.11028786003... | |
you'll be able to run `rake migrate` and have all the migration goodness without a surrounding rails app.
Alternatively, I have a set of bash scripts that perform a very similar function to ActiveRecord migrations, but they only work with Oracle. I used to use them before switching to Ruby and Rails. They are somewhat... | [
0.43034496903419495,
0.20521584153175354,
0.028219252824783325,
0.03536774590611458,
-0.13057519495487213,
-0.06462635099887848,
0.28024616837501526,
0.10742831975221634,
0.03952183574438095,
-1.0020182132720947,
0.3045457899570465,
0.6588776707649231,
0.009255897253751755,
-0.141064301133... | |
I am a little curious about the cute little kaleidoscopic images associated with each user on this site.
How are those generated? Possibilities are:
1. A list of images is already there in some folder and it is chosen randomly.
2. The image is generated whenever a user registers.
In any case, I am more interested in ... | [
1.0037692785263062,
-0.19604837894439697,
0.20874260365962982,
0.530279278755188,
-0.14449632167816162,
-0.13751907646656036,
-0.09076426923274994,
0.17535828053951263,
-0.3651309013366699,
-0.6612464785575867,
0.19882313907146454,
0.0037347448524087667,
-0.21229058504104614,
0.20288532972... | |
based Identicons. | [
0.5801175832748413,
-0.13243643939495087,
-0.052288718521595,
0.26595792174339294,
-0.5368030667304993,
-0.16695620119571686,
-0.3671967089176178,
-0.13702929019927979,
0.38183528184890747,
-0.5146251916885376,
-0.11677978932857513,
0.3280353844165802,
-0.5072870254516602,
-0.2491564750671... | |
I was trying to add the XML schema to an existing EJB project. JAXB is used to bind the XML-Schema to a Java class. As we are going to use the search engine to crawl through DTO when EJB is in session.
I could not find any direct approach as to map entity class file to XML-Schema.
The only way we could achieve so fa... | [
0.45576992630958557,
0.12113642692565918,
0.38528284430503845,
0.019800012931227684,
-0.29288652539253235,
-0.24781812727451324,
-0.15827453136444092,
-0.11864562332630157,
-0.0026014521718025208,
-0.9227989315986633,
0.07513359189033508,
0.43408650159835815,
-0.30604687333106995,
0.091974... | |
XML and Java class file.
But now again the issue is to how map this to entity class.
This is what we want to achieve:
* XML Data Object with XML Schema, (This is already present in the JAXB specification).
* Entity Bean then Extends or has an interface to this JAXB object.
* All Persistence functions are managed by... | [
-0.08964190632104874,
0.011296380311250687,
0.4592571556568146,
0.14396604895591736,
-0.03200934827327728,
-0.21903057396411896,
-0.019147507846355438,
-0.08991758525371552,
-0.15227583050727844,
-0.5659811496734619,
-0.299232542514801,
0.42681851983070374,
-0.2437920719385147,
0.045853219... | |
Data from the Value Object and perform operations on it such as XSL transformations.
My argument is that the Entity Beans have no standard way for interfacing to JAXB objects.
Castor may be the solution, but then again we have to implement web services or using castor JDO’s.
I found XStream to be pretty useful as it... | [
0.34404635429382324,
0.10720932483673096,
0.2749292552471161,
0.22457413375377655,
-0.1665748506784439,
-0.276915967464447,
0.04971618950366974,
0.09932807832956314,
0.06599214673042297,
-0.39811643958091736,
0.14163392782211304,
0.5249187350273132,
-0.4556996822357178,
0.08264337480068207... | |
I am actually trying to achieve. I'm creating a search engine which will be evoked during the EJB in session and will use crawler thru the DTO's and get the snapshot in XML format. Search will be on different criteria.
Lucene is one of the search engine tools but then it uses its own properties and files (will act mor... | [
0.43699681758880615,
-0.04624992236495018,
0.31139057874679565,
0.21249699592590332,
-0.3748455345630646,
-0.1554415225982666,
-0.13418985903263092,
0.1521671861410141,
-0.05942166969180107,
-0.8404794931411743,
-0.0675988495349884,
0.3797474503517151,
0.025942832231521606,
0.0930697321891... | |
able to do as JAXB uses its own generated classes thru xml-schema. Like you said I have yet not found a way to instruct JAXB to bean classes.
Tightly coupling your data model (entity beans) to your XML interface might not be the best idea in the world; it prevents you from changing one without changing the other.
I'm ... | [
0.43023931980133057,
-0.23479734361171722,
0.2564929127693176,
0.2790846824645996,
0.16232523322105408,
-0.43087685108184814,
0.12079530954360962,
-0.1899530440568924,
-0.08792003244161606,
-0.7154620289802551,
-0.1415315866470337,
0.44030359387397766,
-0.27898722887039185,
-0.149740248918... | |
those with the extra information.
I can say that getting Entity beans instances from somewhere *other* than your persistence layer (such as deserializing them from XML) is going to be a *huge* problem for you.
Also note that using XML to communicate between Java applications (such as between a JSP/Servlet and EJB lay... | [
0.19416449964046478,
0.16676609218120575,
0.10851534456014633,
0.21046367287635803,
-0.20032359659671783,
-0.1960194855928421,
0.44530704617500305,
-0.017686419188976288,
-0.39380812644958496,
-0.6032684445381165,
-0.12293189764022827,
0.4476946294307709,
-0.2767132520675659,
-0.0992345958... | |
The default 64 MB max heap memory can be small for a large Java application. Are there any applet parameter to increment this for a signed applet?
For a Java program this is a simple command line parameter but how this work for an applet in the browser.
The [new plugin architecture in JDK6u10](http://www.oracle.com/te... | [
-0.1162414401769638,
0.06379770487546921,
0.23770734667778015,
-0.059872545301914215,
0.08023489266633987,
0.19823512434959412,
0.19315466284751892,
-0.041736237704753876,
-0.27438831329345703,
-0.538174033164978,
-0.05877494066953659,
0.6650014519691467,
-0.10582368820905685,
-0.262826979... | |
I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++ static libraries, C# assemblies, C++ windows executables) that are combined in various ways to produce several executables. For some reason, every time I open the solution, VS2005 wants to check out one of the projects for editing. The project... | [
0.3563736081123352,
0.12176124006509781,
0.30685722827911377,
0.03269727900624275,
-0.06334606558084488,
-0.26888835430145264,
0.30846887826919556,
-0.1503227949142456,
-0.30836614966392517,
-0.6568137407302856,
-0.09866335988044739,
0.40445831418037415,
-0.33395281434059143,
0.20758949220... | |
out is cppunit version 1.12.0 (the static lib version). How can I stop this annoying behavior?
Other potentially relevant (or not) details:
* Source control is Team Foundation Server (not Visual SourceSafe)
* no .suo or .ncb files are checked in
* the .vcproj and .vspscc files are being checked out
* When I close the... | [
0.018446609377861023,
0.09360074996948242,
0.6412709355354309,
-0.1613606959581375,
0.07183770835399628,
-0.27591294050216675,
0.25066065788269043,
0.08907098323106766,
-0.600020170211792,
-0.6668112874031067,
-0.31019723415374756,
0.31106457114219666,
-0.3784025311470032,
0.14232121407985... | |
a Visual Studio message saying "No Changes to Check In. All of the changes were either unmodified files or locks. The changes have been undone by the server"
There are two reasons I've encountered that cause this behavior.
The first is old source control bindings. If you have a project that used to be managed by anoth... | [
0.03529256954789162,
-0.12606288492679596,
0.12937548756599426,
-0.04577064514160156,
0.10848534852266312,
-0.21024657785892487,
0.3036732077598572,
-0.20749026536941528,
-0.4952852725982666,
-0.7219095826148987,
-0.25348997116088867,
0.26005658507347107,
-0.5106816291809082,
-0.0464826077... | |
from a .vcproj, C# projects are in XML, VB looks like something else, but the meanings are the same. Simply set all four values to the constant string "SAK" and Visual Studio will automatically handle source control. See [Alin Constantin's blog](http://alinconstantin.blogspot.com/2008/02/sak-source-control-strings-in-v... | [
0.5247796177864075,
0.29699423909187317,
0.0798102393746376,
0.10028950124979019,
-0.07058586925268173,
-0.1332516074180603,
0.17964409291744232,
0.022696897387504578,
-0.4870108962059021,
-0.06628787517547607,
-0.17345823347568512,
0.3196258544921875,
-0.33260563015937805,
0.1164180710911... | |
In regards to custom events in .NET, what is the preferred design pattern for passing event arguments? Should you have a separate [EventArgs](http://msdn.microsoft.com/en-us/library/system.eventargs.aspx) derived class for each event that can be raised, or it is acceptable to have a single class for the events if they ... | [
0.07484718412160873,
-0.43220004439353943,
0.07055588811635971,
0.3503366708755493,
-0.34872961044311523,
0.11421333253383636,
-0.006135435309261084,
-0.23544001579284668,
-0.4691944718360901,
-0.3737504780292511,
-0.05066299065947533,
0.47139841318130493,
-0.2300308644771576,
0.1177905499... | |
handler the possibility to cancel an action.
Or you can create your own EventArgs-derived classes if you have data specific to your application to pass to event handlers. There is no reason why two events from the same class or different classes shouldn't use the same EventArgs-derived class if they are sending the sa... | [
0.23403413593769073,
-0.7315252423286438,
-0.15717393159866333,
0.36359861493110657,
-0.11701137572526932,
-0.3167649507522583,
0.15636757016181946,
-0.22059385478496552,
-0.3980746865272522,
-0.3499554693698883,
-0.05799514055252075,
0.2715589106082916,
-0.578615665435791,
-0.136441662907... | |
A friend of mine was explaining how they do ping-pong pairing with TDD at his workplace and he said that they take an "adversarial" approach. That is, when the test writing person hands the keyboard over to the implementer, the implementer tries to do the bare simplest (and sometimes wrong thing) to make the test pass.... | [
0.1755509376525879,
0.12883111834526062,
-0.12751294672489166,
0.12115330249071121,
0.13167887926101685,
-0.14059382677078247,
-0.08321359753608704,
-0.18326812982559204,
0.10948440432548523,
-0.26230573654174805,
-0.015970949083566666,
0.5590309500694275,
-0.04486450180411339,
-0.11021663... | |
check for specific canned values rather than testing the actual behavior or expected state of components. It also helps drive the creation of more tests and ultimately better design and fewer bugs.
It sounded good, but in a short session with him, it seemed like it took a lot longer to get through a single round of te... | [
0.5555353760719299,
0.033818554133176804,
-0.49604830145835876,
0.5201311707496643,
-0.08847568929195404,
0.06494622677564621,
0.4489637017250061,
-0.21044345200061798,
0.11008840799331665,
-0.3605955243110657,
0.37854084372520447,
0.6716981530189514,
-0.04567138850688934,
-0.4166966676712... | |
its members. You have to be careful not to practice passive-aggressive implementations done with an air of superiority. Some developers are frustrated by implementations like
> `return "Sally";`
This frustration will lead to an unsuccessful team. I was among the frustrated and did not see it pay off. I think a bette... | [
0.21682551503181458,
-0.004145366605371237,
-0.10387062281370163,
0.17063209414482117,
-0.3588971197605133,
-0.21379844844341278,
0.237416610121727,
-0.02511429786682129,
-0.14067548513412476,
-0.13363291323184967,
-0.04816858842968941,
0.5277435779571533,
0.23282289505004883,
0.0023921504... | |
I wrote a small `PHP` application several months ago that uses the `WordPress XMLRPC library` to synchronize two separate WordPress blogs. I have a general "RPCRequest" function that packages the request, sends it, and returns the server response, and I have several more specific functions that customize the type of re... | [
0.2199660688638687,
0.1615678369998932,
0.8172134757041931,
-0.18217775225639343,
-0.35698750615119934,
0.10973592102527618,
0.3590448200702667,
-0.27493053674697876,
-0.10026146471500397,
-0.45952916145324707,
0.05790357664227486,
0.4006215035915375,
-0.26925399899482727,
0.26474702358245... | |
bytes: 0
data beginning 0 before byte index:
```
Kind of a cliffhanger ending, which is also strange. But since the error message isn't formatted in XML, my intuition is that it's the local XMLRPC library that is generating the error, not the remote server.
Even stranger, if I change the "getPostIDs()" call to "ge... | [
-0.0884660929441452,
0.04842912033200264,
0.5416648387908936,
0.07212674617767334,
-0.13038136065006256,
0.025963256135582924,
0.23187170922756195,
-0.07151380926370621,
-0.20763033628463745,
-0.49714550375938416,
-0.09495603293180466,
0.40821999311447144,
-0.1490800678730011,
0.2382779568... | |
array("null", $this->username, $this->password));
$this->blogID = $id['userid'];
}
public function RPCRequest($method, $params) {
$request = xmlrpc_encode_request($method, $params);
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Co... | [
-0.07590245455503464,
-0.12313846498727798,
0.7139270901679993,
-0.016111327335238457,
-0.03167455643415451,
0.12428011000156403,
0.11496780812740326,
-0.5887628197669983,
-0.1339876800775528,
-0.2945329546928406,
-0.49511000514030457,
0.39093640446662903,
-0.47229039669036865,
0.062747366... | |
=> $request
)));
$file = file_get_contents($this->url, false, $context);
return xmlrpc_decode($file);
}
public function getPostIDs($num_posts = 0) {
return $this->RPCRequest("mt.getRecentPostTitles",
array($this->blogID, $this->username,
$this->password,... | [
0.05860336497426033,
-0.21497417986392975,
0.8484033346176147,
-0.050292789936065674,
-0.1566341370344162,
-0.11341563612222672,
0.45699048042297363,
-0.3908748924732208,
-0.02682865783572197,
-0.5818822979927063,
-0.2705860137939453,
0.6180025339126587,
-0.3563328683376312,
0.091503039002... | |
is; the default parameter of 0 simply indicates to the RPC server that it should retrieve *all* posts, not just the most recent `$num_posts` posts. Only recently has this error started showing up.
I've tried googling the error without much luck. My question, then, is **what exactly does "expat reports error code 5" me... | [
0.20017945766448975,
0.23657572269439697,
0.036942072212696075,
0.20268051326274872,
-0.23204141855239868,
0.0591910257935524,
0.35936641693115234,
0.20805573463439941,
-0.015096726827323437,
-0.3735302686691284,
0.02782447822391987,
0.22283311188220978,
-0.19067680835723877,
0.30994197726... | |
hence the unclosed token error.
The problem with the cryptic and incomplete error message was due to an outdated version of the XML-RPC library being used. Once I'd upgraded the version of WordPress, it provided me with the complete error output, including the memory error. | [
-0.07103647291660309,
0.26150432229042053,
0.00046181492507457733,
-0.0025534257292747498,
-0.029390623793005943,
0.21392464637756348,
0.4242740869522095,
0.12147825211286545,
0.268960177898407,
-0.30168917775154114,
0.1347527951002121,
0.46338722109794617,
-0.18873392045497894,
0.05967206... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.