text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
tags in the JSP (e.g. ). Is this a good practice? If not, what's the appropriate design?
4) It is unclear how to properly handle foreign key dependencies in the Value Objects. For example, certain VOs have a type field that, in database terms, represent a foreign key relationship into a type table. In the UI, this tra... | [
0.39353296160697937,
-0.049779560416936874,
0.628199577331543,
0.03653934225440025,
0.10404539108276367,
-0.4178089201450348,
0.04413612559437752,
-0.547180712223053,
-0.10323730111122131,
-0.3896160423755646,
-0.30960822105407715,
0.476019024848938,
-0.4744192957878113,
-0.092946968972682... | |
of the type, or both? Who is responsible for translating between the two, and when?
5) The VOs have a field for their database ID. I thought VOs don't have identities? What's up with this?
I hope these questions are generic enough to be of general interest. It seems this would come up all the time in this type of arc... | [
0.7062996029853821,
0.3281351923942566,
0.3023134768009186,
0.37832120060920715,
0.08593322336673737,
-0.038488563150167465,
0.4426305890083313,
0.10583164542913437,
-0.14209726452827454,
-0.6677967309951782,
-0.029482124373316765,
0.30595797300338745,
-0.2629183232784271,
0.02739006280899... | |
a long-term refactoring that I can't do right now.
1.
Considering the DAO - VO transformation; whether this is usefull depends on how Hibernate is used. If the entire Web request handling is in a single Hibernate session you should not really need separate VO's.
If, however, your DAO layer opens a session to retrieve... | [
0.22500695288181305,
-0.1665167361497879,
0.25357362627983093,
-0.022846246138215065,
-0.3197527229785919,
-0.445917010307312,
0.3577095866203308,
-0.2615053355693817,
-0.23461732268333435,
-0.5413806438446045,
-0.1969415694475174,
0.4194061756134033,
-0.2613922953605652,
-0.05126944184303... | |
short, before you start ditching those VO's have a good, hard look at you database transaction and session boundaries.
3.
As for using a VO in a Form; if the VO maps nicely to the JSP I would say why not? I'm either impressed that the data model so closely matches the process it supports, and a bit suspicious that the... | [
0.2361476570367813,
-0.34573203325271606,
0.2323540300130844,
0.006658598314970732,
-0.1837526112794876,
-0.30628302693367004,
0.01596439816057682,
-0.244948148727417,
-0.12137992680072784,
-0.469280868768692,
-0.07531256973743439,
0.5698592662811279,
-0.42647695541381836,
-0.2820766270160... | |
will be read in that phase.
5. The service layer must have a facility to know which database objects to alter, and the id is designed to do just that. The service layer will have to retrieve the DAO from the database and write the fields from the VO in the DAO, though it obviously does not need to update the id of the... | [
0.006297588814049959,
0.08034815639257431,
0.6730451583862305,
0.1522814780473709,
0.3206202983856201,
-0.094450443983078,
-0.025918418541550636,
-0.4849390983581543,
-0.05158603936433792,
-0.4971596300601959,
-0.5972011089324951,
0.5132186412811279,
-0.030106931924819946,
-0.2642374336719... | |
an object with such an id exists.
Depending on whether the VO accepts the id of the foreign object or requires an object you should then either:
* set the id, or
* get the foreign object as a VO by id using the service layer and
put it in your VO, and store it using the service layer
Your business layer is responsib... | [
0.246327206492424,
0.14431673288345337,
0.7194038033485413,
0.16011054813861847,
0.13057100772857666,
-0.08615425229072571,
0.18476171791553497,
-0.1050846055150032,
-0.07394363731145859,
-0.6266983151435852,
-0.5646809935569763,
0.4769648611545563,
-0.26011037826538086,
0.1035251915454864... | |
if I read your question right your VOs refer to other objects in the database by id. In that case you enter the id. If you get a String from the client you should look it up in the business layer (using the service layer) and put the id of the found object in the VO. Or, if no ID is found, return a decent error message... | [
0.5521063804626465,
-0.10435602813959122,
0.24027270078659058,
0.038599416613578796,
0.05598136782646179,
-0.3189462423324585,
0.2803078591823578,
0.07460284233093262,
0.05999713018536568,
-0.5619504451751709,
-0.0016273524379357696,
0.7026231288909912,
-0.30678004026412964,
0.034930527210... | |
make mistakes and they can be very hard to find. And customers and bosses alike don't seem to appreciate the introduction of bugs in stuff that used to work.
By the way; my conservatism in the DAO-VO thing come from fixing problems due to similar problems in EJB2 to Hibernate transitions. The devil is in the details,... | [
0.4322601556777954,
0.3753981292247772,
-0.056290075182914734,
0.2850742042064667,
0.03505110368132591,
-0.009237467311322689,
0.3462859094142914,
0.4489510655403137,
-0.17472824454307556,
-0.5161834359169006,
0.13144706189632416,
0.3571365475654602,
-0.03723154962062836,
0.003012481611222... | |
This is a specific version of [this question](https://stackoverflow.com/questions/119540/business-logic-database-or-application-layer).
I want to check if I am inserting a duplicate row. Should I check it programmatically in my application layer:
```
if (exists(obj))
{
throw new DuplicateObjectException();
}
Hi... | [
-0.0150474663823843,
0.44860926270484924,
0.39571258425712585,
-0.0026378424372524023,
0.32308027148246765,
0.08662325143814087,
0.3677785396575928,
-0.05824825167655945,
-0.5928372740745544,
-0.5704886317253113,
-0.09188965708017349,
0.31216123700141907,
-0.6280228495597839,
0.04362519457... | |
and handle the exception its violation will raise, or I'd better check anyway?
**EDIT2:** Of course I do check+insert within a transaction, locking the table to ensure no other process is writing another record in the meantime
First, you **must** have a primary key or unique constraint on the database to enforce this ... | [
0.27758002281188965,
0.46646299958229065,
0.1668291836977005,
0.2610340714454651,
-0.10234968364238739,
-0.19109100103378296,
0.21030758321285248,
-0.2564225196838379,
-0.24887700378894806,
-0.45539018511772156,
0.05350594222545624,
0.7113502621650696,
-0.2649134695529938,
-0.0530941262841... | |
to perform an exists check before every insert, when the database is going to be performing its own constraint checking anyway.
Also, it is theoretically possible for the exists check to be wrong anyway - if someone else manages to commit a record with the same key value in the small interval between your exists check... | [
0.3896710276603699,
0.04581227898597717,
-0.04665276035666466,
0.27365660667419434,
0.24052461981773376,
-0.23963280022144318,
0.4670121371746063,
-0.28900381922721863,
-0.27784428000450134,
-0.2149377465248108,
0.09161798655986786,
0.6321987509727478,
-0.374886155128479,
-0.02263516373932... | |
How do I stop a function/procedure in a superclass from been overridden in a subclass in Delphi (2007)?
I want to mark it so it can not be altered, I believe there is a final keyword but can not for the life of me find the documentation for it, so I am not 100% sure that's what I need.
The keyword is `final` as you th... | [
-0.02028772421181202,
-0.030063405632972717,
0.12104295939207077,
-0.25567930936813354,
-0.096819669008255,
-0.3621378242969513,
0.3926714360713959,
-0.39920613169670105,
-0.40690964460372925,
-0.3489367365837097,
-0.3030846118927002,
0.36346331238746643,
-0.20818398892879486,
0.1893896907... | |
procedure SomeVirtualMethod; virtual;
end;
TOtherClass = class(TSomeClass)
protected
procedure SomeVirtualMethod; override; final;
end;
``` | [
0.06852660328149796,
-0.34905338287353516,
0.18246176838874817,
-0.14891844987869263,
0.17190223932266235,
-0.038110457360744476,
0.49448829889297485,
-0.09005089104175568,
-0.14517717063426971,
-0.022150574252009392,
-0.1744781881570816,
0.4955465495586395,
-0.2730780243873596,
0.26831626... | |
I am wondering if it is possible to use LINQ to pivot data from the following layout:
```
CustID | OrderDate | Qty
1 | 1/1/2008 | 100
2 | 1/2/2008 | 200
1 | 2/2/2008 | 350
2 | 2/28/2008 | 221
1 | 3/12/2008 | 250
2 | 3/15/2008 | 2150
```
into something like this:
```
CustID | Jan- 2... | [
-0.3179931044578552,
0.3666508197784424,
0.8656209111213684,
-0.18938905000686646,
-0.0776398777961731,
0.3222731053829193,
-0.2190927267074585,
-0.08453533053398132,
-0.2520401179790497,
-0.14229480922222137,
0.19171543419361115,
0.1301981806755066,
-0.0034002340398728848,
0.2299077063798... | |
100 | 350 | 250
2 | 200 | 221 | 2150
```
Something like this?
```
List<CustData> myList = GetCustData();
var query = myList
.GroupBy(c => c.CustId)
.Select(g => new {
CustId = g.Key,
Jan = g.Where(c => c.OrderDate.Month == 1).Sum(c => c.Qty),
Feb = g.Whe... | [
-0.03319089859724045,
0.014595144428312778,
0.7137545347213745,
-0.3429335653781891,
0.05299350991845131,
0.3199427127838135,
0.2397575080394745,
-0.32593756914138794,
-0.37538599967956543,
-0.3924520015716553,
-0.07887087017297745,
0.28071361780166626,
-0.1574718952178955,
0.3497048616409... | |
c.OrderDate.Month == 2).Sum(c => c.Qty),
March = g.Where(c => c.OrderDate.Month == 3).Sum(c => c.Qty)
});
```
`GroupBy` in Linq does not work the same as SQL. In SQL, you get the key and aggregates (row/column shape). In Linq, you get the key and any elements as children of the key (hierarchical shape). T... | [
-0.13268637657165527,
0.07006999850273132,
0.7438632249832153,
0.0008571114158257842,
-0.10218846797943115,
0.2773655354976654,
-0.022677108645439148,
-0.40295836329460144,
-0.5366381406784058,
-0.09197047352790833,
-0.10918482393026352,
0.11066534370183945,
-0.14469626545906067,
0.1683992... | |
I have a 'Purchase Order' class. It contains information about a single purchase order. I have a DAO class for database methods.
Where should the responsibility reside for the methods that will load and update the purchase order?
Should the PurchaseOrder class have '.update', 'insert', 'delete', and '.load' methods t... | [
0.2634616792201996,
0.16758377850055695,
0.06073791906237602,
0.10952968150377274,
0.11597385257482529,
0.18810820579528809,
-0.20326709747314453,
-0.2865646481513977,
0.10114094614982605,
-0.5419367551803589,
-0.09204430878162384,
0.6524003744125366,
0.11408681422472,
-0.01093462575227022... | |
of having some sort of data access layer, it handles the management of the object and the object itself can concentrate on just being a purchase order.
This also makes the system easier to test, as you can create mock Purchase orders and test the logic of how the system handles them without getting entangled in persis... | [
0.3236307203769684,
-0.12715138494968414,
0.1556057631969452,
0.45487284660339355,
-0.03727099299430847,
-0.045320261269807816,
0.06805803626775742,
-0.08396043628454208,
-0.36710962653160095,
-0.3717615306377411,
-0.062342215329408646,
0.6108700633049011,
0.09004629403352737,
0.0955241546... | |
I have quickly read over the [Microsoft Lambda Expression](http://msdn.microsoft.com/en-us/library/bb397687.aspx) documentation.
This kind of example has helped me to understand better, though:
```
delegate int del(int i);
del myDelegate = x => x * x;
int j = myDelegate(5); //j = 25
```
Still, I don't understand w... | [
0.17575661838054657,
0.05459671467542648,
0.27580124139785767,
0.16681000590324402,
-0.0673067569732666,
-0.24220098555088043,
0.13615068793296814,
-0.16963453590869904,
-0.4007015526294708,
-0.38412168622016907,
-0.06198999658226967,
0.47420576214790344,
-0.22764819860458374,
0.1738620996... | |
which allows for a lot of the magic like LINQ to SQL.
The following is an example of a [LINQ to Objects](http://msdn.microsoft.com/en-us/library/bb397919.aspx) expression using anonymous delegates then lambda expressions to show how much easier on the eye they are:
```
// anonymous delegate
var evens = Enumerable
... | [
0.3106452524662018,
-0.019230075180530548,
0.38604414463043213,
0.15607833862304688,
0.008451022207736969,
0.06379919499158859,
0.11504994332790375,
-0.4757649302482605,
-0.4508253037929535,
-0.46195605397224426,
-0.01596647873520851,
0.45054134726524353,
-0.22975173592567444,
0.0349875018... | |
.ToList();
// lambda expression
var evens = Enumerable
.Range(1, 100)
.Where(x => (x % 2) == 0)
.ToList();
```
Lambda expressions and anonymous delegates have an advantage over writing a separate function: they implement [closures](http://en.wikipedia.org/wiki/Closure_... | [
0.05979037284851074,
-0.09580320119857788,
0.5741164684295654,
-0.32856327295303345,
0.10381025075912476,
0.01566695235669613,
0.2557424306869507,
-0.2092735469341278,
-0.44025537371635437,
-0.2397611141204834,
-0.4531167149543762,
0.35412347316741943,
-0.5621531009674072,
-0.0877986773848... | |
a very powerful new feature of C# 3.0 that allow an API to look at the structure of an expression instead of just getting a reference to a method that can be executed. An API just has to make a delegate parameter into an `Expression<T>` parameter and the compiler will generate an expression tree from a lambda instead o... | [
0.21596674621105194,
0.06753905862569809,
0.1944730579853058,
0.11125238239765167,
0.005486095789819956,
-0.23909838497638702,
0.018663723021745682,
-0.4099641442298889,
-0.14742659032344818,
-0.5355265140533447,
0.031057441607117653,
0.5918430685997009,
-0.40204769372940063,
-0.0675298795... | |
turn C# expressions in to the SQL expressions desired for filtering / ordering / etc. on the server side. | [
0.04439960792660713,
-0.12620580196380615,
0.1032920852303505,
0.031067626550793648,
-0.08575858175754547,
-0.20884279906749725,
-0.041501130908727646,
0.0675010085105896,
0.04793255403637886,
-0.49464672803878784,
-0.49503767490386963,
0.4916009306907654,
-0.5958760976791382,
-0.217353925... | |
If I spawn a new thread, and then within it I push a new controller onto my UINavigationController, using code like this...
(a) not working
```
-(void)myCallbackInThread
{
// move on...
UIApplication* app = [UIApplication sharedApplication];
[app changeView];
}
```
then I find that the view appears, but... | [
-0.09748613089323044,
-0.2794739902019501,
0.8994684219360352,
-0.05145925655961037,
0.06470279395580292,
0.2438642382621765,
0.4976285994052887,
-0.12888166308403015,
-0.27876877784729004,
-0.9394077658653259,
-0.1323152631521225,
0.6598910093307495,
-0.4268251061439514,
0.275475680828094... | |
in [app changeView], but the reason it stops responding is most likely that you have no run loop dispatching events on your new, secondary thread (more on this below). In general, however, it is a very bad idea to update the GUI from a secondary thread. As you've already discovered, all of these events should go throug... | [
-0.12356863915920258,
-0.31602418422698975,
0.5643787980079651,
0.05432766675949097,
-0.13259896636009216,
0.004349579103291035,
0.3338377773761749,
-0.2818256616592407,
-0.1890764683485031,
-0.9242420792579651,
-0.22915126383304596,
0.7407255172729492,
-0.5967493653297424,
-0.237769678235... | |
the main run loop which is able to then handle your gui input and other events. The event dispatcher is also run and managed by UIApplication on the main thread.
So basically, don't perform any GUI management activities on a secondary thread. Dispatch those to the main thread. And if you need processing on a secondary... | [
0.0343148298561573,
-0.31526732444763184,
0.07801766693592072,
0.1756076216697693,
-0.03950182721018791,
-0.048864006996154785,
0.35877275466918945,
0.07230457663536072,
-0.4338681995868683,
-0.6510471105575562,
-0.2843620479106903,
0.7124202251434326,
-0.4742382764816284,
-0.0204434450715... | |
I have recently been exposed to naked objects. It looks like a pretty decent framework. However I do not see it in widespread use like say, Spring. So why is this framework not getting any mainstream application credit. What are its shortcomings as you see?
From my experience using NOF 3.0.3...
The good:
* Automagica... | [
0.5883252620697021,
0.02989409863948822,
0.2790822982788086,
-0.005947778932750225,
-0.2660766839981079,
-0.34789547324180603,
0.3586801588535309,
-0.13697366416454315,
-0.36225199699401855,
-0.4672994613647461,
0.06463523954153061,
0.43227216601371765,
-0.3148480951786041,
0.1979115903377... | |
framework favors convention OVER configuration: lots of annotations no freaking XML config giles.
* Works great for prototyping along with db4o for persistence.
* Out of the box functionality for Hibernate.
* In my case, I required like 30 mins from Download to Hello world app. (IntelliJ IDEA IDE)
* Deployment as JNLP,... | [
0.45957908034324646,
-0.09457666426897049,
0.13263443112373352,
0.18982388079166412,
-0.41884684562683105,
-0.2048644870519638,
0.6420174837112427,
-0.04244266450405121,
-0.1705644577741623,
-0.9232214689254761,
-0.09415332973003387,
0.34027916193008423,
0.02293861098587513,
-0.28037935495... | |
flaming going on around the Drag and Drop GUI, but if your prospective end users simply ***can't*** work with the DnD UI then you are in deep trouble anyway.
The bad:
* None that I can think of.
The kinda ugly:
* No Swing components allowed, so say goodbye to JGoodies and all your favorite Swing component sets. The... | [
0.5401775240898132,
0.16067177057266235,
0.5460556745529175,
0.40589800477027893,
-0.33540600538253784,
-0.3298090994358063,
0.34138134121894836,
0.08604022860527039,
-0.19642792642116547,
-0.609541654586792,
0.06543849408626556,
0.46189388632774353,
-0.17819438874721527,
0.030220776796340... | |
validation code for getters n setters only fires if the domain object is modified from the UI. (This is probably wrong due to my n00bness, lets hope a NOF committer corrects me)
* If an object is modified from a non-ui thread, lets say a b.g. worker, such object will
not update its view on screen. This invalidates a... | [
0.2627858519554138,
-0.18375419080257416,
0.20823492109775543,
-0.07972569018602371,
-0.2316565364599228,
-0.13756664097309113,
0.5370256900787354,
-0.2757253050804138,
-0.3146776258945465,
-0.45149677991867065,
-0.19286289811134338,
0.5149335861206055,
-0.4108210504055023,
0.0747425481677... | |
I'm trying to create a table with two columns comprising the primary key in MySQL, but I can't figure out the syntax. I understand single-column PKs, but the syntax isn't the same to create a primary key with two columns.
```
CREATE TABLE table_name
(
c1 INT NOT NULL,
c2 INT NOT NULL,
PRIMARY KEY (c1, c2)
... | [
-0.1696755439043045,
0.42525261640548706,
0.27879711985588074,
-0.14584243297576904,
-0.10173632949590683,
0.09777742624282837,
-0.03974173963069916,
-0.11906587332487106,
-0.3131931722164154,
-0.5687918663024902,
-0.10581669956445694,
0.21308806538581848,
-0.3830021619796753,
0.1248493939... | |
I can't seem to get my application up and running on my dev server and I'm not sure why.
I have compiled my code in VS 2008 with a target framework of 3.5. I am using 3.5 mainly because I have implemented LINQ rather extensively. Compiling and runs local without any problems.
The hang up is that my server only has t... | [
0.4372149109840393,
0.35779935121536255,
0.4895188808441162,
-0.1632278561592102,
-0.5092031359672546,
-0.2140827178955078,
0.7774909734725952,
-0.17509500682353973,
-0.041926972568035126,
-0.8297314047813416,
0.20667743682861328,
0.7647680044174194,
-0.17626839876174927,
0.139385193586349... | |
installed.
Today I am trying to publish to the server and I can't get past this error in my WEB.CONFIG
Configuration Error
Parser Error Message: Child nodes not allowed.
providerOption name="CompilerVersion" value="v3.5"/
EDIT ADD ON QUESTION:
I have seen some posts about possibly setting my references to "copy ... | [
0.7323630452156067,
0.07301949709653854,
0.2541075348854065,
0.05865612253546715,
0.15347124636173248,
-0.3639236390590668,
0.4569145441055298,
0.31370124220848083,
-0.02764669619500637,
-0.8218994140625,
-0.05959981307387352,
0.7705590724945068,
-0.41406118869781494,
0.11638963967561722,
... | |
I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statements.
Here are two possible ways of doing it. Which one is the standard/best way of doing it?
First way:
```
IF EXISTS (SELECT 1
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE... | [
0.09693925827741623,
0.06861472129821777,
0.4134216010570526,
0.015896718949079514,
-0.17712928354740143,
-0.3134591579437256,
0.05295374244451523,
-0.27230966091156006,
-0.0024667982943356037,
-0.5928541421890259,
0.23602835834026337,
0.38547155261039734,
-0.09637736529111862,
-0.01487114... | |
IS NOT NULL
SELECT 1 AS res ELSE SELECT 0 AS res;
```
**MySQL** provides the simple
```
SHOW TABLES LIKE '%tablename%';
```
statement. I am looking for something similar.
For queries like this it is always best to use an `INFORMATION_SCHEMA` view. These views are (mostly) standard across many different databa... | [
0.01560627669095993,
0.006960253696888685,
0.32638442516326904,
-0.12770676612854004,
-0.08816095441579819,
-0.08100149780511856,
0.2092292606830597,
0.05227808281779289,
-0.16163761913776398,
-0.7706000804901123,
-0.12909087538719177,
0.24802732467651367,
-0.2188771367073059,
0.2347711771... | |
WHERE TABLE_SCHEMA = 'TheSchema'
AND TABLE_NAME = 'TheTable'))
BEGIN
--Do Stuff
END
``` | [
-0.3955269753932953,
0.15973040461540222,
0.49568235874176025,
-0.17200657725334167,
0.27270784974098206,
-0.2983478009700775,
0.018074559047818184,
-0.24466323852539062,
-0.06166285648941994,
-0.48259052634239197,
-0.7553684711456299,
0.34034571051597595,
-0.28919094800949097,
0.088039547... | |
For reasons unknown, the VB6 compiler often likes to reorder the contents of .vbp files and the control descriptor block at the top of .frm files (The code that describes the properties of controls on the form. Code that you don't see in the IDE but you do see in a text editor and *when doing diffs against the previous... | [
0.2922273278236389,
0.3431743383407593,
0.22627703845500946,
0.17492234706878662,
-0.24771398305892944,
-0.32131657004356384,
0.5106196999549866,
-0.07110477238893509,
-0.26039406657218933,
-0.5196277499198914,
-0.07290107011795044,
0.5282915830612183,
-0.24796098470687866,
0.4904207587242... | |
to rearrange things for seemingly no apparent reason. Some things I've noticed:
* When you use the SSTab control, VB
likes to rearrange properties for
tabs, especially the TabEnabled
property.
* For project files, it randomly
rearranges the order in which files
appear and I think I remember seeing
cases where simil... | [
0.4275539815425873,
-0.2556774616241455,
-0.0372169055044651,
0.13637195527553558,
-0.013275034725666046,
-0.24249781668186188,
0.22232453525066376,
-0.11764929443597794,
-0.7422491312026978,
-0.6793422698974609,
-0.17207355797290802,
0.057865507900714874,
-0.46070998907089233,
0.515151143... | |
something, so that they remain consistent. One possible way to handle this could be to write an IDE add-on that automatically does this everytime you save changes to a project file, or come up with some batch process that will just recurse over your source directories and clean up all the VBP's in one go.
* The IDE see... | [
0.5895072817802429,
-0.17380157113075256,
0.11801832169294357,
0.1659955084323883,
0.039482492953538895,
-0.17669858038425446,
0.3265843987464905,
0.00904003344476223,
-0.47881123423576355,
-0.47927990555763245,
0.0027262591756880283,
0.3542305827140808,
-0.4039473831653595,
0.256426602602... | |
diff files in
SourceSafe.
* Control coordinates, such
Top, Left, Height, and Width, can differ between
two revisions of the same form. This is due
to different developers using
different screen resolutions and/or
different screen DPI settings while working on the same form.
If you aren't doing this already, I
highly r... | [
0.7489813566207886,
-0.2120758295059204,
0.8618606925010681,
0.1464966982603073,
-0.04038653150200844,
-0.20584701001644135,
0.19525805115699768,
-0.4192745089530945,
0.11542217433452606,
-0.8960509300231934,
0.12290485203266144,
0.6390408873558044,
-0.04807040095329285,
0.0118421390652656... | |
VB forms at
120dpi, there is a really really good
chance they won't display correctly
on a display set to 96dpi.
* There are probably other things I
can't remember right now...
As for the order of controls being changed in form files, this is normal, and you usually don't want to try rearrange the order of controls b... | [
0.6296414732933044,
-0.12415304780006409,
0.9757785797119141,
0.005623256787657738,
0.01856132410466671,
-0.12680962681770325,
0.19034302234649658,
-0.48047637939453125,
-0.435788631439209,
-0.5280469655990601,
0.04109495133161545,
0.5314231514930725,
-0.13364912569522858,
0.27576628327369... | |
relative Z-order on the form, which could lead to unintended results in how your forms are displayed. | [
-0.04291129112243652,
-0.12728886306285858,
0.5434179902076721,
0.13166920840740204,
-0.21222960948944092,
-0.12540605664253235,
0.18942630290985107,
0.11143819242715836,
-0.005931410007178783,
-0.610000491142273,
-0.4121484160423279,
0.3047181963920593,
-0.0778966173529625,
0.345539331436... | |
Recently I was working with generating a PDF from Crystal Reports through a webform. It was failing, which I determined to be caused by the permissions settings on the c:\windows\temp dir. I gave the Network Service account full access to this folder, which promptly fixed the issue. But is there a reason the Network Se... | [
0.12295109778642654,
0.20953036844730377,
0.3444598317146301,
0.13648100197315216,
0.05436396971344948,
-0.5238978862762451,
0.24096651375293732,
0.18244683742523193,
-0.4852999150753021,
-0.34007275104522705,
0.14070162177085876,
0.44209545850753784,
-0.0031055223662406206,
0.117972634732... | |
option will tend to be the more secure one. I don't think there's any other reason.
I've had the same issue as you, and in my environment just gave the permission and moved on.
[This post](https://stackoverflow.com/questions/167605/should-the-network-service-account-receive-temp-file-permissions-by-default#172337) su... | [
-0.2641470432281494,
-0.1826920509338379,
0.37513741850852966,
-0.23011687397956848,
0.18639110028743744,
-0.21835315227508545,
0.4542335271835327,
0.08281863480806351,
-0.23919899761676788,
-0.6540287137031555,
-0.25471019744873047,
0.7892574071884155,
-0.12712779641151428,
0.195000514388... | |
I am building an application using Spring MVC. I want to make certain changes to my Model for every Controller in the application. In particular, I want to insert certain extra data into the model which will be present for all pages of the application.
I could do this several ways: just add the data at the end of ever... | [
0.11764662712812424,
-0.26851195096969604,
0.7090347409248352,
0.2698728144168854,
0.010378163307905197,
0.2451847493648529,
0.07935035973787308,
-0.12365750968456268,
-0.47015970945358276,
-0.585848331451416,
0.1830631047487259,
0.39761459827423096,
-0.06538315862417221,
0.114453583955764... | |
"elegance" constraint: I don't want to write code in each and every Controller, I want this behavior defined in [one-and-only-one](http://en.wikipedia.org/wiki/Don%27t_repeat_yourself) place. Ideally, it would be controlled by my IOC bean config file.
Does anyone have a recommendation of how to achieve this elegantly?... | [
0.06564333289861679,
-0.29161468148231506,
0.35170814394950867,
0.21460144221782684,
-0.14371049404144287,
-0.3807451128959656,
0.16939422488212585,
-0.629406750202179,
-0.27777209877967834,
-0.4758242666721344,
0.2548085153102875,
0.35577523708343506,
-0.5654022097587585,
-0.1156057193875... | |
in your config file. | [
0.3277393877506256,
0.050000034272670746,
0.11538460850715637,
0.14224794507026672,
0.7085570693016052,
-0.3874702453613281,
-0.23788821697235107,
0.47558245062828064,
-0.230725958943367,
-0.4957163333892822,
0.010979806073009968,
0.3672550320625305,
-0.2798079550266266,
-0.047901526093482... | |
Is it possible to use a ".net configuration" file for a .NET console application?
I'm looking for an equivalent to web.config, but specifically for console applications...
I can certainly roll my own, but If I can use .NET's built in configuration reader then I would like to do that...I really just need to store a c... | [
0.12577226758003235,
-0.20283544063568115,
0.28842151165008545,
0.3365744650363922,
0.17105865478515625,
-0.2188134491443634,
-0.1890811324119568,
0.20914512872695923,
0.017635051161050797,
-0.9626930356025696,
0.06085231900215149,
0.6655152440071106,
-0.2453300803899765,
0.160438895225524... | |
We're working with a semi-centralized git repository here where I work. Each developer has their own subtree in the central git repository, so it looks something like this:
```
master
alice/branch1
alice/branch2
bob/branch1
michael/feature
release/1.0
release/1.1
```
Working locally in my tree I have `topic/feature`,... | [
0.32489362359046936,
0.029631340876221657,
0.22174955904483795,
-0.2998930513858795,
0.16416914761066437,
0.11454590409994125,
0.19975250959396362,
0.07346495240926743,
-0.3932308554649353,
-0.7686325311660767,
-0.20849600434303284,
0.3557990789413452,
-0.22874581813812256,
0.2065765112638... | |
but I'm not sure how exactly to do it. I'm also not sure how to modify my current branch definitions to use the different remote.
My current `.git/config` looks something like:
```
[remote "origin"]
url = git://central/git/project
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "topic/feature"]
remote... | [
0.23485061526298523,
-0.26701924204826355,
0.4138930141925812,
0.07956324517726898,
0.11742512881755829,
-0.15923750400543213,
0.0410163551568985,
0.18827377259731293,
-0.2473619282245636,
-0.44755250215530396,
-0.08386225253343582,
0.30199703574180603,
0.11004148423671722,
0.5012877583503... | |
branch names the same. It appears it will be the least work and least prone to future problems.
If you can, I suggest you use the same branch names locally & remotely. Then `git push` will push all of your local branches to corresponding branches in the central repository.
To use different prefixes in local and remote... | [
0.17870424687862396,
-0.40232956409454346,
0.6612342596054077,
0.0020757780876010656,
0.23346999287605286,
0.13718797266483307,
0.13740459084510803,
0.3448365330696106,
-0.5641106367111206,
-0.6231751441955566,
-0.42171838879585266,
0.2501554787158966,
-0.18101705610752106,
0.4457704126834... | |
I was looking into the possibility of using CouchDB. I heard that it was similar to Lotus Notes which everyone loves to hate. Is this true?
Development of Lotus Notes began over 20 years ago, with [version 1 released in 1989](http://www.ibm.com/developerworks/lotus/library/ls-NDHistory/). It was developed by Ray Ozzie,... | [
-0.1146179735660553,
0.25859367847442627,
0.23471739888191223,
-0.1170535534620285,
-0.28406402468681335,
0.04151147976517677,
-0.3850678503513336,
0.4429927170276642,
-0.2342091053724289,
-0.5742306709289551,
0.28022950887680054,
0.0003004281024914235,
-0.3163679540157318,
0.0211878903210... | |
replication model and active active clustering across heterogeneous platforms (someone once showed a domino cluster with an [xbox and a huge AIX server](http://www.nashcom.de/nshweb/pages/xbox.htm)).
* A built in native directory for managing users that can also be accessed over LDAP.
* A built in native mail system th... | [
0.02201213128864765,
-0.13823971152305603,
-0.023505350574851036,
0.23063117265701294,
-0.17931042611598969,
-0.11155413091182709,
0.03989674150943756,
-0.057239532470703125,
-0.42120441794395447,
-0.9027684330940247,
-0.042292218655347824,
-0.11055412888526917,
-0.23004595935344696,
0.553... | |
Notes Domino (any document in a database can be mailed to any other database with a simple doc.send() command).
* A built in HTTP stack that allows server hosted databases to be accessed over the web.
* A host of integration options for accessing, transferring and interoperating with RDBMS and ERP systems, with a close... | [
0.05786610394716263,
0.1649789959192276,
0.2615368664264679,
-0.09481339901685715,
-0.14139698445796967,
-0.36258465051651,
0.24053096771240234,
-0.04583440348505974,
-0.1917915791273117,
-0.3550853729248047,
0.009862699545919895,
0.2616387903690338,
-0.5221033692359924,
-0.050465714186429... | |
to date versions. IBM puts a huge amount of effort into this and it has a large bearing on how the product currently operates.
-
CouchDB was created by Damien Katz, starting development in 2004. He had previously worked for IBM on Notes Domino, developing templates and eventually completely rewriting one of the core ... | [
0.3132472634315491,
0.3261953294277191,
0.314719557762146,
-0.0033851261250674725,
-0.0038205499295145273,
-0.1101825013756752,
-0.2246675044298172,
-0.1532774418592453,
0.07253693044185638,
-0.5539863109588623,
-0.1059287041425705,
0.4091956913471222,
-0.26607879996299744,
0.1230110377073... | |
values are simple name value pairs, where the values can be strings, numbers, dates or arrays of those.
Views are indexes of the documents in the database, displaying certain value, calculating others and excluding undesired docs. Once the index is build they are incrementally updated when any document in the databas... | [
0.2237074226140976,
0.05462425574660301,
0.6909770369529724,
0.10952068865299225,
0.03375706076622009,
0.24637781083583832,
-0.18488669395446777,
-0.2595362663269043,
-0.21580035984516144,
-0.41911840438842773,
-0.1336427479982376,
0.6500759124755859,
-0.07846691459417343,
0.16995604336261... | |
complex. CouchDB can then run a second reducing function on the mapped index of the view.
In Notes Domino views are built by running a select function (written in Notes Domino formula language) on each document in the database. The select function simply defines if the document should be in the view or not. Notes Domi... | [
0.13199776411056519,
-0.08005654066801071,
0.5464314818382263,
-0.1300688534975052,
-0.07858285307884216,
0.04972003400325775,
-0.22475263476371765,
-0.3535776138305664,
0.08030721545219421,
-0.5973515510559082,
0.21380865573883057,
0.49628615379333496,
-0.3966606557369232,
0.1766729503870... | |
a replication system.
-
**Summary** ( ***TL;DR*** ) : CouchDB is brand new software that is developing a core that has a similar conceptual but far more sophisticated design to that used in Lotus Notes Domino. Lotus Notes Domino is a mature fully featured product that is capable of being deployed today. CouchDB is st... | [
0.59659343957901,
-0.05438826233148575,
0.2801719605922699,
0.07938835769891739,
0.027028806507587433,
-0.3798287808895111,
-0.16567569971084595,
0.21066512167453766,
-0.2869737446308136,
-0.6057230830192566,
0.22416476905345917,
0.16492322087287903,
-0.01826624758541584,
0.205713614821434... | |
CouchDB, but there are also features in Notes Domino that are anachronistic in today's world. | [
0.2961791753768921,
-0.3161347508430481,
0.3012135922908783,
0.21132253110408783,
0.0471484437584877,
-0.4889030456542969,
-0.2771387994289398,
0.20663614571094513,
-0.12293004989624023,
-0.4127594828605652,
-0.030827518552541733,
0.20847776532173157,
-0.011013246141374111,
0.2585332691669... | |
I recently began profiling an osgi java application that I am writing using VisualVM. One thing I have noticed is that when the application starts sending data to a client (over JMS), the number of loaded classes starts increasing at a steady rate. The Heap size and the PermGen size remains constant, however. The numbe... | [
0.2113638073205948,
0.031692132353782654,
0.24558278918266296,
0.002735186368227005,
-0.3820202350616455,
-0.0907670110464096,
0.31187307834625244,
0.010754784569144249,
-0.3785132169723511,
-0.6759653687477112,
0.2857610583305359,
0.46547555923461914,
-0.15012502670288086,
0.3032853007316... | |
screenshot of my profiling application go [here](http://sites.google.com/site/javaperformacescreenshot/Home/profile.png)
> Are you dynamically creating new classes on the fly somehow?
Thanks for your help. I figured out what the problem is. In one of my classes, I was using Jaxb to create an XML string. In doing this,... | [
0.22504515945911407,
-0.14267781376838684,
0.19455553591251373,
-0.04654362052679062,
-0.32349687814712524,
-0.21481890976428986,
0.23744413256645203,
0.007844499312341213,
-0.24316786229610443,
-0.8394361138343811,
0.30320438742637634,
0.5131692290306091,
-0.25811612606048584,
0.208348631... | |
I have a class holding complex scientific computations. It is set up to only allow a user to create a properly instantiated case. To properly test the code, however, requires setting internal state variables directly, since the reference documents supply this data in their test cases. Done improperly, however, it can i... | [
0.1421043425798416,
0.35092979669570923,
-0.02812095917761326,
0.13941732048988342,
0.1412763148546219,
-0.12137430906295776,
0.1850811094045639,
-0.27458456158638,
0.023437462747097015,
-0.23678696155548096,
-0.13512061536312103,
0.5874699354171753,
-0.03201927989721298,
0.265257835388183... | |
a way to do something *wrong*.)
It would be nice to be able to tell Intellisense to not show the function, for instance.
The best solution I have at the moment is to just name the function something like: DangerousSet().
What other options do I have?
**Follow-Up**
I found Amy B's answer most useful to my situation. Tha... | [
0.33721718192100525,
-0.14829911291599274,
0.196707084774971,
0.26698997616767883,
-0.22853603959083557,
-0.04020017012953758,
0.49612295627593994,
-0.360162615776062,
-0.3255746066570282,
-0.4079248309135437,
0.12924188375473022,
0.617449164390564,
-0.05580219253897667,
-0.146641045808792... | |
suggestion that the problem is in the source documents is not something I can control. International experts publish highly technical books and journal articles for use by their community. The fact that they don't address my particular needs is a fact of life. There simply are no alternative documents.
Suppose you want... | [
0.34931525588035583,
0.04694611206650734,
0.2556445002555847,
0.16298869252204895,
0.20645640790462494,
-0.051725834608078,
0.36940059065818787,
-0.2116307020187378,
0.03485044836997986,
-0.5796912908554077,
-0.1198090985417366,
0.6191772818565369,
-0.2872972786426544,
0.12325635552406311,... | |
ComplexCalculationTest : ComplexCalculation
{
public void SetFavoriteNumber(int newFavoriteNumber)
{
this.favoriteNumber = newFavoriteNumber;
}
}
```
And write your test:
```
public void Test()
{
ComplexCalculationTest myTestObject = new ComplexCalculationTest();
myTestObj... | [
-0.06292001903057098,
-0.10525292158126831,
1.0748621225357056,
-0.3720652163028717,
0.1728634238243103,
0.19360049068927765,
0.4835839569568634,
-0.47100740671157837,
0.4366808235645294,
-0.6094846129417419,
-0.21505938470363617,
1.0736050605773926,
-0.16631552577018738,
0.206065565347671... | |
know you said *internal*, but I don't think you meant [internal](http://msdn.microsoft.com/en-us/library/7c5ka91b(VS.80).aspx). | [
0.016489433124661446,
0.08535496890544891,
-0.03915015235543251,
0.0882222130894661,
0.37190189957618713,
-0.0006520341266877949,
0.3881281316280365,
0.21618878841400146,
-0.29381582140922546,
-0.5227038860321045,
-0.22868473827838898,
0.689343273639679,
0.08415442705154419,
-0.00193796178... | |
I'd like to be able to add a class to images that adds a border that makes them look like a stack of photos. Anyone know how to do this?
Clarifications: Ideally something like the stack shown [here](http://designreviver.com/tutorials/create-an-interactive-stack-of-photos/) but it doesn't need to be interactive and onl... | [
0.7619819641113281,
-0.19329075515270233,
0.33370518684387207,
0.1601187288761139,
-0.08123312890529633,
-0.32941165566444397,
-0.08501824736595154,
-0.012573285028338432,
-0.5040068030357361,
-0.6090402007102966,
0.2275254726409912,
0.44741854071617126,
-0.06185939162969589,
-0.2829605937... | |
stacked" look?
The "messy photo pile" effect seems to me to break down into three components:
1. Put a background behind the image for the "polaroid" look (explained in other comments
2. Put a drop shadow behind the image for the "depth" effect (explained above and in other comments
3. Rotating images. I've never don... | [
0.4808921217918396,
-0.12440559267997742,
0.7615845799446106,
-0.0039309062995016575,
0.06440822780132294,
-0.22138045728206635,
-0.26785174012184143,
-0.3166964054107666,
-0.6613029837608337,
-0.03615855425596237,
0.08238951116800308,
0.3764832019805908,
-0.40139713883399963,
-0.052416615... | |
As a programmer I found it very hard to use my laptop and workstation with two different input devices, Can anyone suggest a good solution to use single mouse and keyboard to control my two machines
I am not looking for a Virtual Machine or RDP solution to see my machines in a single monitor,
[Synergy.](http://synergy... | [
0.2937183380126953,
0.06877394765615463,
0.24231605231761932,
-0.1095176488161087,
0.05331782251596451,
0.22718307375907898,
-0.1073894053697586,
-0.251590758562088,
-0.3485405147075653,
-0.7430422306060791,
0.320695161819458,
0.364214688539505,
-0.5174003839492798,
0.001055735512636602,
... | |
own monitor(s).
> Redirecting the mouse and keyboard is
> as simple as moving the mouse off the
> edge of your screen. Synergy also
> merges the clipboards of all the
> systems into one, allowing
> cut-and-paste between systems.
> Furthermore, it synchronizes screen
> savers so they all start and stop
> togeth... | [
0.07753156125545502,
-0.07985056936740875,
0.7874141335487366,
0.04918894171714783,
0.1253088116645813,
0.022496238350868225,
0.2767356038093567,
-0.2932787537574768,
-0.4186258316040039,
-0.7347068190574646,
-0.053283367305994034,
0.5575940012931824,
-0.4373781979084015,
-0.06568744778633... | |
I've been using Xcode for the usual C/C++/ObjC development. I'm wondering what are practical considerations, opinions of Xcode, Eclipse or NetBeans usage on a Mac for Java development?
Please don't include my current usage of Xcode in your analysis.
I like [NetBeans](http://netbeans.org/) on OS X for Java.
It seems ... | [
0.4448879659175873,
0.3145821690559387,
-0.05370070040225983,
-0.054104700684547424,
-0.21603789925575256,
-0.30395400524139404,
0.014179807156324387,
0.23595023155212402,
-0.1944391131401062,
-0.8648975491523743,
0.02440323308110237,
0.5874683856964111,
-0.4479169249534607,
-0.04058364778... | |
I am hosting a WCF service in a Windows Service on one of our servers. After making it work in basicHttpBinding and building a test client in .NET (which finally worked) I went along and try to access it from PHP using the SoapClient class. The final consumer will be a PHP site so I need to make it consumable in PHP.
... | [
0.47036558389663696,
0.27142104506492615,
0.4273739457130432,
-0.06709030270576477,
-0.4762037396430969,
-0.10769011080265045,
0.3217807114124298,
0.11742217093706131,
0.02796001173555851,
-0.8479709625244141,
0.2108047604560852,
0.17297030985355377,
-0.18532104790210724,
0.496895313262939... | |
newbie in WCF I might have asked a dumb thing (or I might have a wrong assumption somewhere). Please be gentle :D
And no, <http://172.27.7.123:8000/WordService?wsdl> does not show anything different than <http://172.27.7.123:8000/WordService> :(
Am I forced to host it in IIS? Am I forced to use a regular WebService?
... | [
0.12358095496892929,
-0.07216251641511917,
0.5887937545776367,
-0.2790606915950775,
-0.1433548778295517,
-0.2022470086812973,
0.497270405292511,
-0.19213783740997314,
-0.21058383584022522,
-0.7918704152107239,
-0.13270680606365204,
0.4362165629863739,
-0.36737188696861267,
0.38763654232025... | |
behaviorConfiguration="SimpleServiceBehaviour">
<endpoint
address=""
binding="basicHttpBinding"
<!-- Namespace.Interface that defines our service contract -->
contract="WcfService1.IService1"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior n... | [
-0.2938750386238098,
-0.25742220878601074,
0.4007287621498108,
-0.09835482388734818,
-0.05149170383810997,
0.1631278544664383,
0.5183291435241699,
-0.639519214630127,
-0.16048583388328552,
-0.582522988319397,
-0.03651698678731918,
0.8014143109321594,
-0.20895907282829285,
-0.14791026711463... | |
httpGetEnabled="true"
<!-- Conform to WS-Policy 1.5 when generating metadata -->
policyVersion="Policy15"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
```
Don't forget to remove the XML comments as they're invalid where they are. | [
0.1510404348373413,
-0.2197885662317276,
0.4667282998561859,
-0.15460337698459625,
-0.3692195415496826,
-0.2757144570350647,
0.5774872303009033,
0.0006277976790443063,
-0.090476393699646,
-0.7826697826385498,
-0.19230082631111145,
0.6730020046234131,
-0.15655995905399323,
-0.07992628216743... | |
I need to do some communications over a serial port in Ruby. From my research, it appears that there aren't many modern libraries for serial communications and the newest material I can find is from 2006. Are there any gems that I'm not aware of?
I ultimately need to maintain communications with a serial device attach... | [
0.2619529366493225,
0.5916141271591187,
0.3284553587436676,
0.054393187165260315,
0.045475345104932785,
-0.26839593052864075,
0.3844575583934784,
0.0671345517039299,
-0.43498894572257996,
-0.6471679210662842,
0.17270423471927643,
0.6895232796669006,
-0.21214963495731354,
0.2663197219371795... | |
"5"
end
return when serial.read == "DONE"
end
end
```
The serial port specification has not changed in forever, I wouldn't worry about how old the libraries are.
I'm assuming you saw [this](http://www.rubyinside.com/cross-platform-ruby-serial-port-library-328.html) article from 2006 about ruby and serial po... | [
0.13555364310741425,
0.1695154905319214,
0.46095359325408936,
-0.010204123333096504,
-0.18531091511249542,
-0.16069413721561432,
0.5076090097427368,
0.038060348480939865,
-0.41359201073646545,
-0.486396849155426,
0.09322600811719894,
0.4761240482330322,
0.11130372434854507,
0.6510525941848... | |
I need to be able to GZip compress a file in an Excel VBA function. Specifically I need to be able to use the 'deflate' algorithm.
Is there a way to do this without having to exec a command line application? With no dependency on external tools the code will be more robust.
Ideally the code would make use of pre-inst... | [
0.40159672498703003,
0.22704562544822693,
0.3353603780269623,
0.021858109161257744,
-0.19267535209655762,
0.05166797339916229,
0.1333279013633728,
-0.28302669525146484,
0.003985464107245207,
-0.7112699151039124,
-0.06212092936038971,
0.9691409468650818,
-0.3078171908855438,
-0.032653413712... | |
DLLs, EXEs, registry entries etc. required.
**Edit** Can I make use of the .NET GZipStream to do this?
VBA (which is really a dialect of VB6) is slow for these kind of applications. I remember I once implemented Shannon-Fano algorithm on VB6 and on C, the C version was about 10 times faster, even after being turned in... | [
0.19736172258853912,
-0.0972866341471672,
0.19006255269050598,
0.10675730556249619,
-0.3425230383872986,
-0.11617469787597656,
-0.026855725795030594,
0.10855953395366669,
-0.2100946456193924,
-0.8200008869171143,
-0.0972796306014061,
0.6161556839942932,
-0.4472410976886749,
0.1985840201377... | |
such a DLL from your VBA code to do the compression on your behalf.
I understand your being reluctant on using something external to your application, though in this case you might have to apply an exception for performance's sake.
In an effort to completely spoil your fun, examine file ZIPFLDR.DLL on windows\system3... | [
0.41247767210006714,
-0.19369101524353027,
0.057790160179138184,
0.18717001378536224,
-0.4042316675186157,
-0.2238580733537674,
0.05599582567811012,
-0.2959103584289551,
-0.38484305143356323,
-0.44416871666908264,
0.0695568397641182,
0.4247174859046936,
-0.4461204409599304,
-0.007542585954... | |
on VB6 using windows built-in capabilities to zip (in ZIP rather than GZIP format, of course): [Using Windows XP "Compressed Folder" shell extension to work with .zip files](http://www.mvps.org/emorcillo/en/code/vb6/index.shtml)
Found both thru googling, you should be able to find more/better examples. | [
0.0764094665646553,
-0.03511623293161392,
0.21436268091201782,
0.16242273151874542,
-0.19910936057567596,
-0.23839186131954193,
0.22394730150699615,
0.02161240763962269,
-0.6627852320671082,
-0.36054760217666626,
-0.2475205659866333,
0.35127806663513184,
-0.2650507390499115,
0.212226107716... | |
I have a few questions about optimizing this type of load.
One builds a new table of data to be loaded into a partitioned table and then builds the indexes on this new table.
1. Should you build the index with the COMPUTE STATISTICS option or use the Cascade option of the DBMS\_Stats?
2. Should you gather stats on t... | [
0.1901085376739502,
-0.31159234046936035,
0.07550057768821716,
0.17427685856819153,
-0.13054724037647247,
-0.005716849584132433,
-0.058182358741760254,
-0.5135826468467712,
-0.18928372859954834,
-0.8147797584533691,
0.1497328132390976,
0.4715019166469574,
-0.3621159493923187,
0.06843455880... | |
name and then set granularity to 'GLOBAL AND PARTITION' does that do Global at all? Does it do *just* that one partition?
> Should you build the index with the COMPUTE STATISTICS option or use the Cascade option of the DBMS\_Stats?
If this is a data warehouse then first consider not gathering statistics at all, and us... | [
-0.11446315795183182,
-0.45162367820739746,
0.12086907029151917,
0.2726753354072571,
-0.06908713281154633,
0.0007534481701441109,
-0.17396968603134155,
-0.2738596796989441,
-0.3070262372493744,
-0.7471739053726196,
0.06762008368968964,
0.4140198826789856,
-0.3197663128376007,
0.04772844538... | |
partition statistics on the new data -- gather statistics on the partitioned table afterwards to gather table statistics
> If you do it after the swap and you specify the partition name in the parameter list, what interplay does the granularity parameter have? For instance, if I specify a partition name and then set g... | [
-0.0703216940164566,
-0.4346719980239868,
0.08713687211275101,
0.37533462047576904,
0.011074032634496689,
-0.17886964976787567,
-0.33347371220588684,
-0.05098522827029228,
-0.24133293330669403,
-0.7394683361053467,
0.1707914173603058,
0.6686820983886719,
-0.2743602395057678,
0.073484413325... | |
There are many techniques to enforce strong passwords on website:
* Requesting that passwords pass a regex of varying complexity
* Setting the password autonomously, so that casual users have a strong password
* Letting passwords expire
* etc.
On the other hands there are drawbacks, because all of them make life less... | [
0.41989555954933167,
0.08349914848804474,
0.011386961676180363,
0.22079607844352722,
-0.05231551453471184,
-0.5283042788505554,
0.43908941745758057,
-0.008651988580822945,
-0.41397878527641296,
-0.3393608331680298,
-0.13923341035842896,
0.4985465109348297,
-0.13419418036937714,
-0.12374699... | |
possible to enforce strong passwords, but there are lots of things you can do to encourage them as much as possible.
* Rate each password and give the user feedback in the form of a score or a graphical bar, etc.
* Set a minimum password score to weed out the *awful* ones
* Have a list of common words that are either ... | [
0.23511441051959991,
-0.016892582178115845,
0.30836743116378784,
0.04593424126505852,
-0.10755172371864319,
-0.39362722635269165,
0.7282226085662842,
-0.004454594571143389,
-0.14392989873886108,
-0.5405181050300598,
-0.03659776225686073,
0.522857666015625,
0.0597044862806797,
-0.1880994290... | |
can give users direct feedback about how long the password they've chosen will live for (and dynamically update it so they can see how adding characters affects the date). | [
0.31220895051956177,
-0.3732506334781647,
0.14810973405838013,
0.37588340044021606,
0.5004259347915649,
0.06188107281923294,
0.0034191568847745657,
0.14945265650749207,
-0.09170373529195786,
-0.48171135783195496,
-0.40602239966392517,
0.2913631200790405,
0.35650333762168884,
0.029275024309... | |
I have an application that takes the quality results for a manufacturing process and
creates graphs both to show Pareto charts of the bad, and also to show production throughput.
To automate the task of testing these statistical procedures I would like to deterministically be able to add records into the database and... | [
0.6652494668960571,
0.3721911907196045,
-0.19910480082035065,
0.23832114040851593,
-0.012925528921186924,
0.17251890897750854,
-0.12080284208059311,
0.16606956720352173,
-0.28205591440200806,
-0.6343606114387512,
0.5164186358451843,
0.46767958998680115,
-0.22869013249874115,
0.332157224416... | |
a list with i number good, j number bad1, k number bad 2, etc. And then somehow randomly sort the list before insertion into the database.
So, my question, is there a standard algorithm to take a sorted list of values and create a randomly sorted list?
You'll want to use a [shuffle algorithm.](http://en.wikipedia.org/... | [
0.4368020296096802,
-0.24920539557933807,
-0.3266138434410095,
0.16920985281467438,
0.1499563604593277,
-0.03952242434024811,
-0.017656708136200905,
-0.5013981461524963,
-0.44666004180908203,
-0.6933537125587463,
-0.002262301743030548,
-0.005771417170763016,
-0.5519243478775024,
0.00333678... | |
I have a some JPA entities that inherit from one another and uses discriminator to determine what class to be created (untested as of yet).
```
@Entity(name="switches")
@DiscriminatorColumn(name="type")
@DiscriminatorValue(value="500")
public class DmsSwitch extends Switch implements Serializable {}
@MappedSuperclass... | [
0.21041961014270782,
-0.3125247657299042,
0.5472853183746338,
0.1134815365076065,
0.07274021208286285,
-0.33714792132377625,
0.09799990803003311,
-0.4023131728172302,
-0.029776155948638916,
-0.8757038116455078,
0.17729249596595764,
0.5229583978652954,
-0.1797257959842682,
0.372285753488540... | |
Unfortunately, you'll have to transform your mappedsuperclass as an entity to involve it in a relationship. | [
-0.11242847144603729,
-0.1397504061460495,
0.11497809737920761,
0.35170888900756836,
0.058123551309108734,
-0.04321708530187607,
0.4063323438167572,
0.2613086998462677,
-0.01059181708842516,
-0.7209616303443909,
-0.09166961163282394,
0.24423834681510925,
0.09350484609603882,
0.108783103525... | |
Here's a link to Windows [documentation](http://msdn.microsoft.com/en-us/library/ms683218(VS.85).aspx).
Basically I would like to get similar data, but on Linux. If not all is possible, then at least some parts.
If you enable `CONFIG\_TASK\_IO\_ACCOUNTING`, you will have the information available in /proc/<pid>/io. Th... | [
0.24545039236545563,
0.095447838306427,
0.1507304310798645,
0.08586911857128143,
-0.027008522301912308,
0.07503250986337662,
-0.23996961116790771,
0.2660578787326813,
-0.3952270448207855,
-0.7540391087532043,
-0.25737109780311584,
0.5242044925689697,
-0.27698996663093567,
-0.10323584824800... | |
Has anyone else seen people do this:
```
private string _name;
public string Name{ get{ return _name; } set{ _name = value;}}
```
I understand using accessors if you are going to exercise some sort of control over how it gets set or perform some sort of function on it when there is a get. But if you are just going to... | [
0.3623274862766266,
0.0048101963475346565,
-0.25754883885383606,
0.16731570661067963,
-0.0317702442407608,
-0.4358023703098297,
0.3711104989051819,
-0.11908262968063354,
-0.5389528870582581,
-0.27320045232772827,
-0.03126693516969681,
0.5505022406578064,
-0.38665246963500977,
0.31311178207... | |
as a property from the very beginning, you can make whatever changes to the property accessor functions that you need and the class's interface remains unchanged.
Note that as of C# 3.0, you can implement a property without creating a backing field, e.g.:
```
public string Name { get; set; }
```
This removes what i... | [
0.35353362560272217,
-0.029928704723715782,
0.15216077864170074,
-0.06424391269683838,
-0.017766909673810005,
-0.4575091600418091,
0.2880518138408661,
-0.014884907752275467,
-0.16311194002628326,
-0.4346991777420044,
-0.3285324275493622,
0.6429340839385986,
-0.156818225979805,
0.5621039867... | |
Do .net applications run on linux?
Are there any free/paid interop libraries available ?
[Mono](http://www.mono-project.com/) is a .NET-compatible platform, including compiler and runtime. The [Mono Migration Analyzer](http://www.mono-project.com/Moma) helps figure out compatibility issues. | [
0.6899923086166382,
0.052964504808187485,
-0.4245213568210602,
0.11791619658470154,
-0.09231407195329666,
-0.1992550939321518,
0.04014039412140846,
-0.16689850389957428,
-0.38230404257774353,
-0.13490934669971466,
-0.4101261496543884,
0.3029079735279083,
-0.48849549889564514,
0.04605040699... | |
A team member has run into an issue with an old in-house system where a user double-clicking on a link on a web page can cause two requests to be sent from the browser resulting in two database inserts of the same record in a race condition; the last one to run fails with a primary key violation. Several solutions and ... | [
0.17309419810771942,
-0.13100950419902802,
-0.2668052911758423,
0.16976426541805267,
0.17914791405200958,
-0.42893049120903015,
0.3967321515083313,
-0.23579096794128418,
0.03545519337058067,
-0.5141908526420593,
-0.08256743103265762,
0.26997819542884827,
-0.42560938000679016,
-0.3113037943... | |
but not entirely eliminate it.
2. Wrap the request execution on the sever side in a transaction. This has been deemed too expensive of an operation due to server load and lock levels on the table in question.
3. Catch the primary key exception thrown by the failed insert, identify it as such, and eat it. This has the d... | [
0.3381141722202301,
-0.02954469993710518,
0.2416723221540451,
0.05380799621343613,
0.09275789558887482,
-0.3344002962112427,
0.19249825179576874,
-0.3209436237812042,
-0.365551233291626,
-0.1585737019777298,
-0.47512808442115784,
0.6043652296066284,
-0.4969800114631653,
-0.0724276378750801... | |
update to ensure it returns 1 record affected.
Are the other options that haven't been considered? Are there pros and cons of the options presented that were overlooked? Which is the lesser of all evils?
You need to implement the Synchronizer Token pattern.
How it works is: a value (the token) is generated on the ser... | [
0.2974708676338196,
-0.14572811126708984,
0.47069716453552246,
0.20073454082012177,
0.028420355170965195,
0.06158667802810669,
0.1466672718524933,
-0.16078336536884308,
-0.29932457208633423,
-0.5917757153511047,
0.1431591808795929,
0.355875164270401,
-0.3224535584449768,
0.1604040116071701... | |
so subsequent requests containing the old token will fail.
There's a more thorough explanation about half-way down [this page](http://www.corej2eepatterns.com/Design/PresoDesign.htm).
I'm not sure what technology you're using, but Struts provides framework level support for this pattern. See example [here](http://sal... | [
0.25268206000328064,
-0.2609543204307556,
0.5424383282661438,
0.07895209640264511,
0.08552516251802444,
0.015496430918574333,
0.4604016840457916,
-0.47827717661857605,
-0.5534387826919556,
-0.3599793016910553,
-0.15266741812229156,
0.28979185223579407,
-0.11752533167600632,
-0.021275123581... | |
I am trying to set attributes for an IFRAME html control from the code-behind aspx.cs file.
I came across a [post](https://web.archive.org/web/20210128094503/http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx) that says you can use FindControl to find the non-asp controls using:
The aspx file contains:
... | [
-0.1422412395477295,
0.11146021634340286,
0.37234896421432495,
-0.0736590251326561,
0.029401294887065887,
0.1992393583059311,
0.3461053967475891,
-0.21573279798030853,
-0.07775629311800003,
-0.687196671962738,
-0.25073906779289246,
0.21337124705314636,
-0.28531116247177124,
-0.095795512199... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.