text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
in other words, you can cast a function pointer to a different function pointer type, cast it back again, and call it, and things will work.
The definition of *compatible* is somewhat complicated. It can be found in section 6.7.5.3, paragraph 15:
> For two function types to be compatible, both shall specify compatibl... | [
0.36259523034095764,
-0.2185080349445343,
0.6767258644104004,
0.006214649882167578,
0.18138813972473145,
-0.01122280117124319,
0.11815622448921204,
-0.17963248491287231,
0.04477781429886818,
-0.5147070288658142,
0.003704455215483904,
0.7551741600036621,
-0.39249056577682495,
-0.13978558778... | |
type is specified by a
> function declarator that is not part of a function definition and that contains an empty
> identifier list, the parameter list shall not have an ellipsis terminator and the type of each
> parameter shall be compatible with the type that results from the application of the
> default argu... | [
-0.12980219721794128,
-0.1773674488067627,
0.593457043170929,
0.1468607485294342,
-0.011838334612548351,
0.12028738856315613,
0.06378781795501709,
-0.33001694083213806,
0.3109089434146881,
-0.5304675102233887,
-0.25619304180145264,
0.5613617897033691,
-0.5274181962013245,
-0.01345588359981... | |
type of each prototype parameter shall be
> compatible with the type that results from the application of the default argument
> promotions to the type of the corresponding identifier. (In the determination of type
> compatibility and of a composite type, each parameter declared with function or array
> type is... | [
-0.07727161049842834,
-0.12034054845571518,
0.5398480892181396,
-0.00511867506429553,
0.07278771698474884,
0.21668383479118347,
0.06530173122882843,
-0.5672982335090637,
0.06280315667390823,
-0.5079942345619202,
-0.11635690182447433,
0.45759278535842896,
-0.43718090653419495,
0.10402537882... | |
determining whether two types are compatible are described in section 6.2.7, and I won't quote them here since they're rather lengthy, but you can read them on the [draft of the C99 standard (PDF)](http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf).
The relevant rule here is in section 6.7.5.1, paragraph 2:
>... | [
0.2824786305427551,
0.1611584722995758,
0.5570002198219299,
-0.17777740955352783,
0.1875298023223877,
-0.15027163922786713,
0.0174001082777977,
-0.4425535202026367,
0.03198256716132164,
-0.4938788115978241,
-0.06995311379432678,
0.6765197515487671,
-0.3761216402053833,
-0.10580168664455414... | |
undefined behavior.
In practice, though, you can safely get away with casting function pointers in some cases. In the x86 calling convention, arguments are pushed on the stack, and all pointers are the same size (4 bytes in x86 or 8 bytes in x86\_64). Calling a function pointer boils down to pushing the arguments on t... | [
0.0668511688709259,
-0.03840628266334534,
0.2586815357208252,
-0.09137657284736633,
-0.31209686398506165,
-0.07737066596746445,
0.30352431535720825,
-0.23140783607959747,
-0.29789113998413086,
-0.43678566813468933,
0.016588974744081497,
0.23915018141269684,
-0.4805346429347992,
0.341357260... | |
at worst, succeed silently with a huge gaping security hole. In Windows programming, you often pass function pointers around. Win32 expects all callback functions to use the `stdcall` calling convention (which the macros `CALLBACK`, `PASCAL`, and `WINAPI` all expand to). If you pass a function pointer that uses the sta... | [
0.06917031854391098,
0.15825310349464417,
-0.08654128015041351,
-0.26753726601600647,
-0.156492680311203,
-0.2029448002576828,
0.7424596548080444,
-0.0012039795983582735,
-0.16271574795246124,
-0.6217519044876099,
-0.20113244652748108,
0.4646551311016083,
-0.4547570049762726,
0.19384096562... | |
and again, much badness will result.
Another bad idea that might sometimes work but is also undefined behavior:
* Casting between function pointers and regular pointers (e.g. casting a `void (*)(void)` to a `void*`). Function pointers aren't necessarily the same size as regular pointers, since on some architectures t... | [
0.2988053858280182,
-0.014799199067056179,
-0.159465953707695,
0.04892059043049812,
-0.25371766090393066,
-0.1095501184463501,
0.590773344039917,
0.02629956230521202,
-0.347575843334198,
-0.5906814932823181,
0.04859616234898567,
0.528653621673584,
-0.4594135582447052,
0.2428998351097107,
... | |
I've been working with Bea's solution [here](http://bea.stollnitz.com/blog/?p=53) for a while and finding it very helpful. Problem now I'm having is when I drag-n-drop items within or to another ListView control and I want to scroll up/down "during" the drag (moving an item from index 30 to index 1), it's not happening... | [
0.36082693934440613,
-0.2779814600944519,
0.5776267051696777,
0.19374772906303406,
-0.27533653378486633,
0.16955021023750305,
-0.030395347625017166,
-0.04133190959692001,
-0.2554660141468048,
-0.7832509875297546,
0.380811870098114,
0.26858288049697876,
-0.2280067503452301,
0.16131572425365... | |
is being dragged over, and I'm getting that.
```
Dim pt As Point = e.GetPosition(DirectCast(Me.targetItemsControl, UIElement))
' Perform the hit test against a given portion of the visual object tree.
Dim result As HitTestResult = VisualTreeHelper.HitTest(Me.targetItemsControl, pt)
```
Now from there I can get the ... | [
0.1640920490026474,
-0.3113558888435364,
0.6598687171936035,
-0.18813785910606384,
-0.5028868317604065,
0.19546444714069366,
0.03509629890322685,
-0.3961580693721771,
-0.13166531920433044,
-0.5036112666130066,
0.05407025292515755,
0.6986774802207947,
-0.19713081419467926,
-0.22489948570728... | |
the mouse is on the control. I've attempted with the below un-finished non-working code
```
If lvi IsNot Nothing Then
If pt.Y <= 25 Then
Dim lv As ListView = TryCast(targetItemsControl, ListView)
If lv IsNot Nothing Then
Dim index As Integer = lv.Items.IndexOf(lvi)
If index ... | [
-0.043861210346221924,
-0.41414135694503784,
0.9784997701644897,
-0.3537095785140991,
0.10086088627576828,
-0.10746781527996063,
0.0879596397280693,
-0.008487311191856861,
-0.30213454365730286,
-0.6567289233207703,
0.12691429257392883,
0.8007256388664246,
-0.14593584835529327,
-0.061958946... | |
lv.ScrollIntoView(lv.Items(index - 1))
End If
End If
Else
If pt.Y >= Me.targetItemsControl.ActualHeight - 25 Then
Debug.Print("Scroll Down")
End If
End If
End If
```
Can someone point me in the right direction to get this ItemsControl or ListView to scroll when ... | [
0.1618645340204239,
0.014549159444868565,
0.8377934694290161,
-0.1273988038301468,
-0.3478136360645294,
-0.06100187450647354,
0.22465455532073975,
0.07809919118881226,
-0.18592634797096252,
-0.9029809832572937,
0.2430408000946045,
0.48885565996170044,
0.009396400302648544,
0.30271971225738... | |
I'm using a slightly modified version of Bea's Drag and Drop found [here](http://hinshlabs.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=31504), which is in VB instead of C#. When I used ScrollIntoView as described above, I could scroll down but not up. So I messed around and came up with this as my DropTarget\_P... | [
0.20781417191028595,
-0.430449515581131,
0.6509966850280762,
0.016795629635453224,
-0.3354211449623108,
0.02380845881998539,
-0.09336923062801361,
-0.012291434220969677,
-0.3534036874771118,
-0.44570112228393555,
-0.16886751353740692,
0.35680899024009705,
-0.3454458713531494,
0.20197544991... | |
If (TypeOf m_targetItemsControl Is ListBox) Then
Dim lb As ListBox = CType(m_targetItemsControl, ListBox)
Dim temp As Integer = m_insertionIndex
Dim scroll As ScrollViewer = Utilities.GetScrollViewer(lb)
If scroll.VerticalOffset = temp Then | [
0.34266480803489685,
-0.5432328581809998,
0.7740305066108704,
-0.43676450848579407,
-0.023586567491292953,
0.19812732934951782,
0.04003702104091644,
-0.5963661670684814,
-0.08609791845083237,
-0.46388494968414307,
-0.08907658606767654,
0.6365142464637756,
-0.28506848216056824,
-0.062628157... | |
temp -= 1
End If
If temp >= 0 And temp <= (lb.Items.Count - 1) Then
lb.ScrollIntoView(lb.Items(temp))
End If | [
0.059641338884830475,
-0.2830345034599304,
0.6975510716438293,
0.09093064069747925,
-0.14083604514598846,
0.09074100106954575,
0.1721978485584259,
-0.4246387779712677,
-0.1688435673713684,
-0.5276973843574524,
-0.31565091013908386,
0.3206130564212799,
-0.25624990463256836,
0.19357074797153... | |
End If
Me.ShowDraggedAdorner(e.GetPosition(Me.m_topWindow))
Me.UpdateInsertionAdornerPosition()
End If
e.Handled = True
End Sub
```
and I had to include this utility function, taken from [here](http://www.developingfor.net/wpf/fun-with-the-wpf-scrollviewer.html)
```
Pu... | [
0.07153405249118805,
-0.14413274824619293,
1.0384385585784912,
-0.08923409879207611,
-0.17725099623203278,
-0.22674836218357086,
0.25998103618621826,
-0.5239723920822144,
0.04291950538754463,
-0.6120733618736267,
-0.34013885259628296,
0.5250501036643982,
-0.11005806922912598,
0.24124415218... | |
Dim scroll As ScrollViewer = CType(scroll_border.Child, ScrollViewer)
If (TypeOf scroll Is ScrollViewer) Then
Return scroll
Else
Return Nothing
End If
Else
Return Nothing
End If
End Function
```
which is great and all. Then running out what theuberk men... | [
0.13377445936203003,
-0.18033592402935028,
1.186130404472351,
-0.330649733543396,
0.1407431811094284,
-0.141547292470932,
0.2142074555158615,
-0.46942654252052307,
0.18585453927516937,
-0.4691755473613739,
0.05269928649067879,
0.7809127569198608,
-0.1459316462278366,
0.567793071269989,
0... | |
the spirit of making this easy for someone else later, I added a variable to the DragDropAdorner class:
```
Private m_mouseDelta As Point
```
Added this to the last line of DragSource\_PreviewMouseLeftButtonDown:
```
Me.m_mouseDelta = e.GetPosition(m_sourceItemContainer)
```
And turned ShowDraggedAdor... | [
-0.25200942158699036,
-0.5013938546180725,
1.0798343420028687,
-0.2534332573413849,
-0.31995904445648193,
-0.11365202814340591,
0.12519000470638275,
-0.10914346575737,
-0.0717385932803154,
-0.3206702470779419,
-0.4147152602672577,
0.5650771260261536,
-0.37227511405944824,
0.227645739912986... | |
(currentPosition.Y - m_mouseDelta.Y))
End Sub
``` | [
-0.3600367307662964,
0.01431239116936922,
0.623058557510376,
-0.3577011227607727,
0.30649521946907043,
-0.27821990847587585,
0.5004639029502869,
-0.010740233585238457,
-0.0756872296333313,
-0.27584531903266907,
-0.4810028672218323,
0.2342890501022339,
-0.23157146573066711,
0.22207461297512... | |
Hear lately I've been listening to Jeff Atwood and Joel Spolsky's radio show and they have been talking about dogfooding (the process of reusing your own code, see Jeff Atwood's blog [post](http://www.codinghorror.com/blog/archives/001217.html)). So my question is should programmers use decompilers to see how that prog... | [
1.0706223249435425,
0.23339396715164185,
-0.479245126247406,
0.3081340789794922,
0.0033051830250769854,
-0.19850540161132812,
0.39690932631492615,
-0.1876557469367981,
-0.13699950277805328,
-0.5016945600509644,
0.08432339131832123,
0.5726872086524963,
-0.3677555024623871,
-0.00731226801872... | |
feel free to retag it.
**Edit:** Just to clarify I was asking about decompilers as a last resort, say you can't get the source code for some reason. Sorry, I should have supplied this in the original question.
Yes, It can be useful to use the output of a decompiler, but not for what you suggest. The output of a compil... | [
0.6310642957687378,
0.02651161700487137,
0.1506260335445404,
0.2404206395149231,
-0.029230069369077682,
-0.14126358926296234,
0.3779325783252716,
0.3009485602378845,
-0.1795959770679474,
-0.5344838500022888,
-0.2904934883117676,
0.5534511208534241,
-0.2520602345466614,
-0.06747400760650635... | |
this unless you already have the source.
If you do have the source, then there are lots of good reasons to use a decompiler in your development process.
Most often, the reasons for using the output of a decompiler is to better optimize code. Sometimes, with high optimization settings, a compiler will just get it wro... | [
0.49460288882255554,
0.03328130021691322,
0.013793633319437504,
0.5518040657043457,
0.3257044851779938,
-0.08057404309511185,
0.11142639815807343,
-0.16914817690849304,
-0.25700125098228455,
-0.6577843427658081,
-0.29881417751312256,
0.5869124531745911,
-0.30980175733566284,
0.054349232465... | |
in a few different ways and compare the compiled results. As a last resort, this may be the simplest way to start when implementing a code block in assembly language, by duplicating the compiler's output. | [
0.3519487679004669,
0.30216601490974426,
-0.22849199175834656,
0.1440816968679428,
-0.08193709701299667,
-0.11022008955478668,
0.5002486705780029,
-0.181465283036232,
-0.0032730887178331614,
-0.41884028911590576,
-0.29362279176712036,
0.30151158571243286,
-0.45519596338272095,
0.0186882112... | |
I've been given the task of finding and evaluating some authentication libraries for use in one of our products and one of the selling features being pushed by some solutions is "two-factor authentication".
What is this method and how does it work? Are there better methods (such as three-factor authentication, I guess... | [
0.3977260887622833,
-0.05514594167470932,
0.16941769421100616,
0.30627134442329407,
0.22331900894641876,
-0.06447216868400574,
-0.14103026688098907,
-0.24939829111099243,
0.009579760953783989,
-0.474912166595459,
0.20962604880332947,
0.3735693097114563,
-0.03711304813623428,
-0.13573223352... | |
person as an individual with
> definitively granted access rights.
> There are different factor types for
> authentication:
>
>
> * **Human factors** are inherently bound to the individual, for example
> biometrics ("Something you are").
> * **Personal factors** are otherwise mentally or physically allocated to
>... | [
-0.18075573444366455,
-0.25764140486717224,
0.21918608248233795,
0.3806561827659607,
0.029842181131243706,
-0.09595561772584915,
0.29948651790618896,
-0.28226780891418457,
-0.2651892304420471,
-0.8097149133682251,
-0.36952832341194153,
0.1339266449213028,
0.0073849051259458065,
-0.00550537... | |
what people are willing to put up with.
People get irritated with strong passwords that change every 4 months, so you might find employees happier with laptops that have fingerprint scanners and they can use a weak password and a fingerprint - two factor authentication may be easier for users.
But others might not li... | [
0.39973700046539307,
-0.05702618509531021,
0.2333064079284668,
0.5169599056243896,
0.2550230026245117,
-0.10754725337028503,
0.42543691396713257,
-0.3004349172115326,
-0.28763073682785034,
-0.6230026483535767,
-0.028116926550865173,
0.58514803647995,
-0.05740298330783844,
-0.35626694560050... | |
and something you know such as a password.
But the costs and irritation go up as you add more levels.
-Adam | [
0.7304887175559998,
0.34126096963882446,
-0.37860307097435,
0.4228667914867401,
0.4236592948436737,
-0.11143844574689865,
0.05073763057589531,
0.40796634554862976,
0.05427975580096245,
-0.21859319508075714,
-0.28193527460098267,
0.6152613759040833,
0.3634324073791504,
0.028812972828745842,... | |
I’m using ReadDirectoryChangesW to spy a folder, if I’m copying a large file to the folder, I can receive multiple FILE\_ACTION\_MODIFIED messages, it seems each time windows writes a large chunk of the file, you get the file modified notification for each time. I tried to use CreateFile API to check if the file can op... | [
0.5833856463432312,
0.04502871260046959,
0.3855196237564087,
0.06640281528234482,
-0.0735715702176094,
-0.14454881846904755,
0.35199233889579773,
0.1852227747440338,
-0.15840111672878265,
-0.6896097660064697,
0.23512469232082367,
0.42094531655311584,
-0.3836705684661865,
0.3134045898914337... | |
question is, how to know a file is finished copying?
This is a solution of a very hacky nature, but in a very hairy situation you can run a polling loop to check the size (or modified date) of the file. If it doesn't change for a while, you can *somewhat* safely assume that the file is finished copying.
**EDIT:** This... | [
0.4675530791282654,
-0.14292025566101074,
0.2847035825252533,
0.15958648920059204,
0.2569640874862671,
-0.3392413854598999,
0.2171115279197693,
-0.08618631958961487,
-0.22605189681053162,
-0.4457494020462036,
0.20414991676807404,
0.643562912940979,
-0.05691094323992729,
0.01768813841044902... | |
First off, I'm not a C++ programmer (but I am learning). I have finally managed to modify and compile some C++ source code using Visual C++ 2008 Express Edition. I've tried to get the same code compiled in the full version of Visual C++ 2003 without success (I get a wide variety of errors, but no luck).
The problem is... | [
-0.12302549928426743,
0.12683476507663727,
0.2178030163049698,
-0.0742611438035965,
-0.32714879512786865,
-0.3200104236602783,
0.3591122627258301,
-0.05261523649096489,
-0.1970919519662857,
-0.7108383774757385,
0.22819744050502777,
1.0552085638046265,
-0.23762284219264984,
0.09847868978977... | |
course, I've tried setting the full path, moving the file around, etc...but no luck. I guarantee that the file exists and has the correct permissions.
I thought perhaps that there is something wrong with the manifest that is getting compiled along with the DLL in Vista. So I removed it using a resource editor, but the... | [
0.30518683791160583,
-0.09572787582874298,
0.36839380860328674,
0.1108051985502243,
-0.1432833969593048,
-0.3821542263031006,
0.2664574682712555,
-0.40159285068511963,
-0.008780245669186115,
-0.7502005100250244,
0.059256862848997116,
0.7851088047027588,
-0.062149833887815475,
-0.2878560721... | |
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</depend... | [
-0.17894020676612854,
0.27951252460479736,
0.2497301548719406,
-0.1576538383960724,
0.1521344631910324,
0.1729309856891632,
0.2918376922607422,
-0.3125506341457367,
-0.2940627634525299,
-0.3618599474430084,
0.052978966385126114,
0.713541567325592,
-0.3521207273006439,
0.19266356527805328,
... | |
with Win2k not having the Microsoft.VC90.CRT installed, but why does my DLL have this dependency? I've set the "Common Language Runtime Support" to "No Common Language Runtime Support" in the project properties, so why does it still require the CLR? Is there a way to change the manifest to use an older Visual C++ runti... | [
0.24313515424728394,
0.19927574694156647,
0.1601930856704712,
0.03616836294531822,
-0.27299439907073975,
-0.3562712073326111,
0.10148295015096664,
-0.0710720419883728,
-0.13354167342185974,
-0.6694596409797668,
0.02775135077536106,
0.6198105812072754,
-0.1492653489112854,
0.056731693446636... | |
used it myself, but other developers in my workplace have experimented with it and had fairly positive impressions. | [
0.6253724694252014,
0.03658059239387512,
-0.09394531697034836,
0.05427686870098114,
0.13528575003147125,
0.03283395990729332,
-0.2216261327266693,
0.1322804093360901,
0.2697913348674774,
-0.3015435039997101,
0.2329191416501999,
0.4786798059940338,
-0.06369176506996155,
-0.24986039102077484... | |
I wrote this simple test code, by adapting a piece from a book, to help me understand the working of generic methods in Java. The line that I marked is *supposed* to work, why isn't it?
```
import java.util.*;
class Test {
public static void main(String args[]){
List<Number> input = null;
List<Number> output... | [
0.4537099003791809,
-0.0656527653336525,
-0.11012864112854004,
-0.18039539456367493,
-0.2223042994737625,
0.23472678661346436,
0.6685648560523987,
-0.414025217294693,
0.08725622296333313,
-0.567351222038269,
-0.019721049815416336,
0.3405146300792694,
-0.5700168013572693,
0.0327401086688041... | |
the code works when changing `List<? super E>` to `List<E>`, that's great, but I'm still not sure if I may have missed something or if the book I took this from may have a mistake. Please read the question as it appears there:
16. Given a method declared as:
> public static < E extends Number > List
> < ? super E > ... | [
0.38919228315353394,
0.051600512117147446,
0.2680554687976837,
-0.12024639546871185,
0.01884574256837368,
0.026801439002156258,
0.3428545296192169,
-0.446338951587677,
-0.42169344425201416,
-0.4934273660182953,
-0.09361003339290619,
0.5605790615081787,
-0.2339937835931778,
0.12855783104896... | |
all that apply.)
```
A. ArrayList<Integer> input = null;
ArrayList<Integer> output = null;
B. ArrayList<Integer> input = null;
List<Integer> output = null;
C. ArrayList<Integer> input = null;
List<Number> output = null;
D. List<Number> input = null;
ArrayList<Integer> output = null;
E. List<Number> inp... | [
-0.0635092630982399,
0.23938757181167603,
0.1646544337272644,
-0.20782651007175446,
-0.12783552706241608,
0.16613924503326416,
0.2342997044324875,
-0.643264651298523,
-0.19353029131889343,
-0.2941974997520447,
-0.5761299729347229,
0.4807552099227905,
-0.522672176361084,
-0.0312247537076473... | |
`List<Integer>`, and that can't
be assigned to a variable of type `List<Number>`. Of course all these would probably cause a
`NullPointerException` since the variables are still null—but the question only asked us
to get the code to compile.
None of the options mentioned on the book have worked on my code. Can I safel... | [
0.3362191617488861,
0.12433816492557526,
-0.14082200825214386,
-0.08464567363262177,
0.06947475671768188,
0.17184394598007202,
0.4392072558403015,
-0.29285988211631775,
-0.2951662242412567,
0.1203744113445282,
0.407838374376297,
0.5911958813667297,
-0.3413102924823761,
0.22672779858112335,... | |
declare the return type as
```
List<E> i.e. List<Number>
```
(Verbose formatting because inline code does not show generics correctly.)
If the book claims assigning the return value of the method is possible in the way you describe it then indeed it seems to be a mistake in the book. It would be correct if the met... | [
0.08386430144309998,
0.09559986740350723,
0.2693350911140442,
-0.07470720261335373,
-0.24363717436790466,
-0.24398648738861084,
0.34960782527923584,
-0.22122575342655182,
-0.01681533083319664,
-0.17430025339126587,
-0.2738429307937622,
0.4924023151397705,
-0.45637568831443787,
-0.127549007... | |
I have a view in one of my Oracle Database that is taking too long to execute. When the statement runs, it does not seem to stop.
Is there anyway that we can verify the performance of this view or how we can check to see if the statement session is 'hanging'?
Thanks,
N2EE
UPDATE
======
I realised that the issue is ... | [
0.4884202480316162,
-0.16753995418548584,
-0.03538079559803009,
0.33989953994750977,
-0.058211009949445724,
0.016725899651646614,
0.40381577610969543,
-0.00860435888171196,
-0.18842124938964844,
-0.47749900817871094,
0.3684632480144501,
0.4446345269680023,
-0.23451627790927887,
0.331443935... | |
easy with the following statement:
```
set autotrace traceonly
```
Then type in the query, and you will get statistics on your query like this:
```
SQL> set autotrace traceonly
SQL> select * from o_drops;
4461 rows selected.
Execution Plan
----------------------------------------------------------
Plan hash valu... | [
-0.5857289433479309,
-0.12101834267377853,
0.41342493891716003,
0.11261499673128128,
0.2819523811340332,
-0.02873690240085125,
0.317423552274704,
-0.44562193751335144,
-0.11023876070976257,
-0.7433004975318909,
-0.41090431809425354,
0.8663105964660645,
-0.33214160799980164,
-0.497208774089... | |
| TABLE ACCESS FULL| O_DROPS | 4287 | 280K| 11 (10)| 00:00:01 |
-----------------------------------------------------------------------------
Statistics
----------------------------------------------------------
1 recursive calls
0 db block gets
333 consistent gets
48 p... | [
-0.6870975494384766,
0.027953118085861206,
0.6989668011665344,
0.2447618991136551,
0.06550507247447968,
0.14900216460227966,
0.30296382308006287,
-0.3643410801887512,
-0.302630215883255,
-0.7046443819999695,
-0.24953651428222656,
0.37764546275138855,
-0.01991548016667366,
0.154064208269119... | |
2316 bytes received via SQL*Net from client
299 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
4461 rows processed
```
If one of the resources is very high, it could work to rewrite the query and/or add indexes to the
table you are using. | [
0.3172055184841156,
0.0784410759806633,
0.3288385570049286,
0.25231656432151794,
-0.38750898838043213,
0.2937251031398773,
0.009257695637643337,
-0.3160286247730255,
0.11068881303071976,
-0.6784491539001465,
0.26808974146842957,
-0.23037374019622803,
-0.016212230548262596,
0.32283890247344... | |
I have often thought it would be a good idea to allow the use of arrays as proper objects with their own methods instead of relying on helper classes like Arrays, Arrays and ArrayUtils.
For example:
```
ints.sort(); // Arrays.sort(ints);
int[] onemore = ints.add(8); // int[] onemore = ArrayUtils.add(i... | [
0.09412037581205368,
0.08854834735393524,
0.03312329202890396,
-0.30378004908561707,
-0.2539348900318146,
-0.2297375649213791,
0.2477506548166275,
-0.37104135751724243,
-0.31319719552993774,
-0.6249250769615173,
-0.08859050273895264,
0.5164418816566467,
-0.5911604166030884,
-0.034066565334... | |
a good or bad idea, and why?
How easy would this be to implement?
Some other examples might include (but don't get hung up on them, they're extraneous to the question itself):
```
int[] ints = {5,4,3,2,1};
// Arrays.sort (ints);
ints.sort();
// int pos = Arrays.asList(ints).indexOf (5);
// int pos = ArraysUtils.in... | [
0.16522802412509918,
0.08735742419958115,
0.26676538586616516,
-0.22918835282325745,
0.21425478160381317,
0.2354303002357483,
0.5457404255867004,
-0.4924439489841461,
-0.08436113595962524,
-0.2792125940322876,
-0.44572699069976807,
0.5246165990829468,
-0.4257093071937561,
0.048741288483142... | |
(obj);
```
Arrays are not classes in Java for a good reason - they map well onto people's understanding of how an array should work from experience with C-style languages. There are also performance reasons for making arrays low-level containers rather than objects. Because of this, sometimes there are performance ben... | [
0.0360725075006485,
0.1049484834074974,
-0.3102191388607025,
0.18636226654052734,
-0.2770226299762726,
-0.19729214906692505,
0.20851238071918488,
-0.07832679152488708,
-0.45005354285240173,
-0.5820146203041077,
-0.2695583999156952,
0.37356558442115784,
-0.40829139947891235,
-0.026189705356... | |
if i want to test the result of an expression and the function would return NaN
how would i check that?
examples:
`$('amount').value.toInt()!='NaN'`
^ does not work and i assume that the returned value is not a string,
`$('amount').value.toInt()!=NaN`
^ doesnt seem to work either and this one seems obviou... | [
-0.12209684401750565,
-0.0005846677231602371,
-0.18663202226161957,
0.05336109176278114,
-0.3129778206348419,
0.1962810754776001,
0.1550898253917694,
-0.3391643166542053,
-0.20400507748126984,
-0.5044355988502502,
0.257214218378067,
0.6148859262466431,
-0.10046707093715668,
0.3131123185157... | |
different semantics for non-number arguments, but it's not supported in all browsers yet as of 2015).
There are two built-in properties available with a NaN value: the global [`NaN`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN) property (i.e. `window.NaN` in browsers), and [`Nu... | [
-0.2706121504306793,
-0.08013693988323212,
0.10784706473350525,
-0.0474882535636425,
-0.2729547917842865,
0.36745497584342957,
0.19761976599693298,
0.285973459482193,
-0.4699048697948456,
-0.6972227096557617,
-0.13562020659446716,
0.4969909191131592,
-0.25262877345085144,
0.169677227735519... | |
I found it is hard to keep my environment variables sync on different machines. I just want to export the settings from one computer and import to other ones.
I think it should be possible, but don't know how to do it. Can anyone help me? Thanks.
You can use RegEdit to export the following two keys:
```
HKEY_LOCAL_M... | [
0.04190497472882271,
0.17177821695804596,
0.5220813155174255,
0.107728511095047,
0.27058812975883484,
0.24797378480434418,
0.24251441657543182,
0.2941879630088806,
-0.14899542927742004,
-0.9104257225990295,
-0.09679470956325531,
0.8905134797096252,
-0.42259684205055237,
0.15894027054309845... | |
Here's what I'm trying to do:
* A single build script
* That script builds two executables from the same Visual Studio project.
* The first compiled .exe has a small amount of code **disabled**.
* The other compiled .exe has everything **enabled**.
I've been reading up on [conditional compilation](http://msdn.microso... | [
0.46284282207489014,
0.08046987652778625,
-0.2130245864391327,
-0.07022186368703842,
-0.18010365962982178,
0.0053018201142549515,
0.32559165358543396,
-0.0831204429268837,
-0.2817007005214691,
-0.8151207566261292,
0.03126955404877663,
0.6879947185516357,
-0.33189326524734497,
0.01529002282... | |
your project file. Set the parameters in a PropertyGroup that is optionally included based on the configuration. The configuration can then also define the output path for the two different versions of the assembly.
For the version that needs to remove some code use a configuration that includes the PropertyGroup.
`... | [
0.3313891887664795,
-0.10840938985347748,
0.3431425988674164,
-0.15287034213542938,
0.18475694954395294,
-0.04941290244460106,
0.20307613909244537,
-0.3295859098434448,
-0.183084636926651,
-0.9761766791343689,
-0.2304576188325882,
0.40908318758010864,
-0.18392662703990936,
0.08604816347360... | |
Targets="Build"
Properties="Configuration=Release" />
<MSBuild Projects="MyProject.csproj"
Targets="Build"
Properties="Configuration=CompiledOutDebug" />
</Target>
``` | [
0.271226167678833,
0.033308736979961395,
0.24906814098358154,
-0.16461831331253052,
-0.14275580644607544,
0.09242389351129532,
0.11820187419652939,
-0.2123340666294098,
-0.3844020366668701,
-0.8989676833152771,
-0.349370539188385,
0.11921072006225586,
-0.327545166015625,
-0.027135038748383... | |
I am trying to get a `FileInputStream` object on an image that the user selects from the picture gallery. This is the android `URI` returned by `android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI`
```
content://media/external/images/media/3
```
When I try to construct a java URI object from this object, I... | [
0.2623692452907562,
0.02617677114903927,
0.6290572285652161,
-0.11683790385723114,
0.07026449590921402,
0.08562137931585312,
0.4048214256763458,
-0.3771757483482361,
-0.26980629563331604,
-0.6473217010498047,
-0.09481199830770493,
0.5583826303482056,
-0.4138689637184143,
0.0264732427895069... | |
= new ByteArrayInputStream(bytes.toByteArray());
```
You could use the `toString` method of the android `Uri` in combination of the `String` based constructor of the Java `URI`.
```
android.net.Uri auri = new android.net.Uri(what ever);
java.net.URI juri = new java.net.URI(auri.toString());
```
[Android URI](http:/... | [
0.11846272647380829,
-0.036654550582170486,
0.737877607345581,
-0.1973361223936081,
0.047372378408908844,
0.24862386286258698,
0.18925321102142334,
0.014826501719653606,
-0.15985311567783356,
-0.6865532398223877,
-0.22822967171669006,
0.6100097298622131,
-0.47256600856781006,
0.42272743582... | |
I have a branch that should be available to other contributors and that should constantly stay up to date with the master.
Unfortunately, every time I do 'git rebase' and then try to push, it results in 'non-fast forward' message and abortion of pushing. The only way to push here is to use --force. Does that mean I sh... | [
0.7534882426261902,
-0.010090172290802002,
0.0400792695581913,
-0.03944685310125351,
-0.05993854999542236,
-0.25132256746292114,
0.32682785391807556,
0.009237837046384811,
-0.1376332938671112,
-0.6001171469688416,
-0.18789750337600708,
0.2925507724285126,
-0.00039225866203196347,
0.0069294... | |
This is to prevent the history from showing:
```
Description: tree -> mywork -> merge -> mywork -> merge -> mywork -> merge
Commit SHA1: aaaa -> bbbb -> cccc -> dddd -> eeee -> ffff -> gggg
```
After a rebase, it may look like this (or similar):
```
Description: tree -> rebase
Commit SHA1: aaaa -> hhhh
```... | [
-0.07322069257497787,
0.1068643182516098,
0.27075254917144775,
-0.12499866634607315,
-0.12122052162885666,
0.17195157706737518,
-0.13762861490249634,
-0.24939219653606415,
-0.47306230664253235,
-0.7893605828285217,
-0.17383712530136108,
0.2880041003227234,
-0.2480369210243225,
0.3400985300... | |
git is being responsible by not just overwriting those commits out there (bbbb-gggg in the example above).
---
**Shared Repo Model**
If you are using a shared repository, then things like this can get mighty confusing. Let me explain why. Say another developer pulled down the branch, and they have commits **aaaa -> ... | [
0.05821039527654648,
-0.11262912303209305,
0.06231292337179184,
0.10616739839315414,
-0.3474920690059662,
-0.20697925984859467,
0.21645472943782806,
0.13176578283309937,
-0.4459869861602783,
-0.7691030502319336,
-0.09563892334699631,
0.25617915391921997,
-0.36868223547935486,
0.25550204515... | |
both histories are RELINKED together, and you end up with a **mess**
Something like this (messy):
```
Description: tree -> rebase -> mywork -> merge -> mywork -> merge -> mywork -> merge -> devwork -> merge
Commit SHA1: aaaa -> hhhh -> bbbb -> cccc -> dddd -> eeee -> ffff -> gggg -> iiii -> jjjj
```
I... | [
0.33903247117996216,
0.04950157180428505,
0.2457796037197113,
0.11445171386003494,
-0.09879043698310852,
0.004694314673542976,
0.14620622992515564,
-0.5194271206855774,
-0.34762418270111084,
-0.912004828453064,
-0.14638446271419525,
0.3603213429450989,
-0.301433265209198,
0.253506422042846... | |
are using a different (more gittish) model where you just want people to be able to pull from your repo. In this case, git push --force isn't too bad, because then they can deal with keeping up with it. They can rebase **their changes** to be on top of your changes before giving their patches to you. It prevents your r... | [
0.09503432363271713,
-0.29896309971809387,
0.6668315529823303,
-0.4803157448768616,
-0.3155432641506195,
0.24237796664237976,
0.03985753655433655,
-0.4456290602684021,
-0.5206531286239624,
-0.5817310810089111,
-0.2322617620229721,
0.607105016708374,
-0.34500762820243835,
-0.103855647146701... | |
refs/heads/,
> refs/remotes/, and refs/tags/) be
> mirrored to the remote repository.
> Newly created local refs will be
> pushed to the remote end, locally
> updated refs will be force updated on
> the remote end, and deleted refs will
> be removed from the remote end. This
> is the default if the configuratio... | [
0.09815569221973419,
-0.21560008823871613,
0.751879870891571,
0.15639030933380127,
-0.32294920086860657,
-0.31588417291641235,
0.11420272290706635,
0.01095626875758171,
-0.2839846909046173,
-0.8617636561393738,
-0.19654332101345062,
0.500241219997406,
-0.12984484434127808,
0.53657943010330... | |
the most ROI can be reaped by using it that way. | [
0.5223467350006104,
-0.0394090972840786,
0.30664315819740295,
0.6745910048484802,
0.05709012597799301,
0.005476990714669228,
-0.3238281011581421,
0.18977634608745575,
-0.21891449391841888,
-0.568336009979248,
0.10021888464689255,
0.5159319639205933,
-0.05787751451134682,
0.1950396001338958... | |
i'm now starting designing with proper mark-up and organization.
and now, i have problem with my div border. it does not enclose all ot the div's content.
this is my html snippet:
```
<div id="paneMiddle">
<div id="subPaneLatestItems">
<p id="latestItemsTitle">Latest Shop Items:</p>
<div>
... | [
0.06894604861736298,
-0.17765606939792633,
0.8363006711006165,
-0.14463578164577484,
-0.03907803073525429,
0.23482514917850494,
0.04929761216044426,
-0.2062208503484726,
-0.13359716534614563,
-0.9088130593299866,
0.011222369968891144,
0.183851420879364,
-0.016521431505680084,
0.00945921894... | |
css:
```
div#paneMiddle>div{
/*All divs that are children of div#paneMiddle*/
width:590px;
margin:5px 5px 5px 5px;
position:relative;
border-color:#FFCC33;
border-style:solid;
border-width:thin;
position:relative;
}
```
why doesn't this work?
thanks
See if adding the clearfix class to your div fixes anything
<http:... | [
-0.1837218701839447,
0.0017459953669458628,
0.5252318382263184,
-0.07311820238828659,
-0.17346520721912384,
0.23630423843860626,
0.12471729516983032,
-0.04761199653148651,
-0.32382500171661377,
-0.776933491230011,
-0.3161410391330719,
0.022347448393702507,
-0.18506751954555511,
0.070107661... | |
What's the best way to close resources in a BlackBerry application? I use the resources throughout the life of the application and would just like to register some listener to be called when the app is just about to quit. Is there a simple hook that's called before the app is closed?
Overwrite the `MainScreen.close()` ... | [
0.30365630984306335,
0.21888640522956848,
0.5671830177307129,
-0.009733159095048904,
0.12864404916763306,
-0.05457974225282669,
0.3915473222732544,
0.08459554612636566,
-0.08117040246725082,
-0.34731540083885193,
0.020239584147930145,
0.6851969361305237,
-0.3822828233242035,
-0.04378369078... | |
for file access. | [
0.013813630677759647,
0.1584605723619461,
0.037622202187776566,
0.2857365310192108,
0.3224760591983795,
-0.16334058344364166,
-0.0682380422949791,
-0.11915737390518188,
-0.33633771538734436,
-0.24350135028362274,
-0.4443149268627167,
0.40727704763412476,
0.1845521330833435,
0.1273767352104... | |
I have just gotten started with an Eclipse RCP application, it is basically just one of the provided "hello world" samples.
When the application boots up, I would like to look at my command-line parameters and start some services according to them. I can get the command-line parameters in *IApplication.start*:
```
pu... | [
0.4047137200832367,
-0.15182507038116455,
0.44168707728385925,
-0.10073427855968475,
-0.2576870322227478,
-0.08829279989004135,
0.24128206074237823,
-0.33561626076698303,
-0.1900012046098709,
-0.6399074792861938,
-0.10076826810836792,
0.47524043917655945,
-0.171327143907547,
0.161172062158... | |
ExportClassDigestApplication implements IApplication {
public Object start(IApplicationContext context) throws Exception {
context.applicationRunning();
List<ExtensionBean> extensionBeans = ImpCoreUtil.loadExtensionBeans("com.xab.core.containerlaunchers");
for (ExtensionBean bean... | [
-0.1879582554101944,
-0.32081183791160583,
0.20737159252166748,
-0.28232043981552124,
0.06772676110267639,
0.21791008114814758,
0.3083527982234955,
-0.22572362422943115,
-0.2376842349767685,
-0.4172093868255615,
-0.35525912046432495,
0.37708431482315063,
-0.6240031719207764,
0.111216500401... | |
public boolean isClassAccepted(Class clz) {
return true;
}
};
PrintWriter writer = new PrintWriter( new File( "C:/classes.csv"));
Bundle[] bundles = InternalPlatform.getDefault().getBundleContext().getBundles();
```
---
[Proper way](http://dev.eclipse.org/newslis... | [
0.16340741515159607,
-0.42711663246154785,
0.508965015411377,
0.21423178911209106,
-0.16398124396800995,
-0.3144274652004242,
0.1358359009027481,
-0.6017516851425171,
-0.08515110611915588,
-0.4347488582134247,
-0.4357830286026001,
0.42119622230529785,
-0.3141447901725769,
-0.04035469517111... | |
it to a place classes in your plug-in can easily access
>
>
> Note the bundle context provided to a plug-in is specific to it and should never be shared with other plug-ins. | [
0.31689101457595825,
-0.24597406387329102,
0.026590459048748016,
0.14637847244739532,
0.2205260545015335,
-0.41670680046081543,
-0.04500897601246834,
0.2227761447429657,
0.16072560846805573,
-0.507320761680603,
-0.4700796604156494,
0.1076614037156105,
-0.1890089213848114,
0.064829200506210... | |
Zend Framework makes development a lot easier; for instance there is a getPost function from the Zend\_Http that handles POST parameters.
Is there anything similar to handle file uploads? I can access $\_FILES directly, but I would rather use a built in function to keep things consistent.
you can use Zend\_Form\_Eleme... | [
0.6649183630943298,
-0.15972544252872467,
0.2210475653409958,
0.009689289145171642,
-0.3647441864013672,
-0.30478930473327637,
0.18732060492038727,
-0.5921842455863953,
0.05611393228173256,
-0.735837996006012,
0.030363209545612335,
0.6444718241691589,
-0.20685623586177826,
0.09769316017627... | |
I've heard rumors that the Windows Workflow team is re-implementing a lot of the existing framework for the next release. My company has a couple projects that would probably work really well with Workflow, and I'm familiar with the basics of the framework now, but I'm concerned that if we try to start implementing the... | [
0.7707980871200562,
0.30633971095085144,
0.024997448548674583,
0.1823732554912567,
-0.03771206736564636,
-0.6863288283348083,
0.3045542538166046,
0.3467305600643158,
-0.3204402029514313,
-0.9093571901321411,
0.13600608706474304,
0.5652198195457458,
0.18805193901062012,
0.27611225843429565,... | |
in 2011](http://realworldsa.dotnetdevelopersjournal.com/goodbyewindowsworkflowfoundationseeyouin2011.htm)
I've been looking at WF solutions as well, but am not convinced that it gives me anything too special just yet. After reading the blog post and associated links I'd be waiting for the 4.0 release before investing... | [
0.160439133644104,
-0.4765642583370209,
0.6901324987411499,
-0.21296153962612152,
0.1241520419716835,
0.11521352827548981,
0.1505468636751175,
0.05021291226148605,
-0.3814469873905182,
-0.7591143250465393,
0.15803655982017517,
0.3102726936340332,
-0.016660768538713455,
0.3216349482536316,
... | |
I'M NOT ASKING ABOUT THE CODE. I just want to know what are and all the steps involved in the connection other than coding. I'm using j2sdk1.4.0 and MySQL Server 4.1. Am very new to this area.
Thanks in advance
If your code cannot find the class, then that's always going to be an issue with your classpath (and this is... | [
0.3375382721424103,
0.08068621903657913,
-0.16621989011764526,
0.00008761905337451026,
-0.24767524003982544,
-0.2417425960302353,
0.34729403257369995,
0.36978626251220703,
-0.14938360452651978,
-0.7364680171012878,
0.13470351696014404,
0.47503069043159485,
-0.05883137509226799,
0.310840994... | |
What is the best/recommended generate UIs based on XML parameters?
Objective is:
* Adding new objects/parameters to UI should easy and fast without disturbing the other elements.
The UI is currently built and rendered using JSP/Servlets.
The above said bug has been solved very lately by the addition of Unicode filen... | [
-0.011301691643893719,
-0.10108952969312668,
0.7810957431793213,
0.22681058943271637,
-0.1378856599330902,
-0.0583050474524498,
0.27893489599227905,
0.04526232182979584,
-0.18330763280391693,
-1.0024422407150269,
-0.4278796911239624,
0.4790853261947632,
-0.21408718824386597,
-0.17594593763... | |
Is there a gcc equivalent of VC++ warning C4018: signed/unsigned mismatch? We have an automated build on windows which runs with /WX and I'd like to be able to catch those warnings when building on Linux as well.
`-Wsign-compare` | [
0.41767624020576477,
0.2617713212966919,
0.009632659144699574,
0.04254927486181259,
0.033231399953365326,
-0.24113425612449646,
0.3411412239074707,
0.29595574736595154,
-0.11463357508182526,
-0.5216156840324402,
-0.060530975461006165,
0.6901858448982239,
-0.08635390549898148,
0.15518374741... | |
Currently developing an ASP.NET WebApplication with VS2008. I stopped development for a few weeks, and when I came back, my project is exhibiting the following problem:
The whole project compiles fine (all targeted to Framework3.5SP1). However, when I launch it (with ASP.NET Development Server), I get a message (from ... | [
0.17737604677677155,
0.08710457384586334,
0.486726313829422,
0.010132938623428345,
-0.11922028660774231,
-0.10521119832992554,
0.32379403710365295,
-0.10740047693252563,
-0.39091745018959045,
-0.7932796478271484,
-0.12177640944719315,
0.14800135791301727,
-0.2090928852558136,
0.07181960344... | |
Framework Version 2? But all my projects are targetted to 3.5
Is there a simple way to prevent this from happening?
I should add:
re-installed .net framework version 3.5 + sp1, still same issue. important to note here is that i'm not using full blown IIS, just the "Asp.net development server" supplied with VS2008. (... | [
0.24851055443286896,
-0.07951512932777405,
0.4596392512321472,
-0.13439874351024628,
-0.4741400480270386,
-0.29731062054634094,
0.5813291668891907,
-0.2556504011154175,
0.05973473936319351,
-0.5916740894317627,
-0.059015821665525436,
0.5986826419830322,
-0.5921220183372498,
-0.101604029536... | |
is now integrated.
Therefore you just use 2.0 in IIS.
You should try to install .NET Framework 3.5 on that server, the IIS server will automatically use the correct version. | [
0.31393879652023315,
-0.2444201409816742,
0.3242797553539276,
-0.12030426412820816,
-0.16674084961414337,
-0.597540020942688,
0.24134284257888794,
-0.09877990931272507,
-0.034243568778038025,
-0.8599715828895569,
-0.19390003383159637,
0.47444477677345276,
-0.5194008350372314,
0.02031291276... | |
I want to know as to how to configure known types in WCF. For example, I have a **Person** class and an **Employee** class. The **Employee** class is a sublass of the **Person** class. Both class are marked with a `[DataContract]` attribute.
I dont want to hardcode the known type of a class, like putting a `[ServiceKn... | [
0.12044203281402588,
0.14976710081100464,
0.3339226245880127,
-0.06945781409740448,
-0.19348998367786407,
0.05642319843173027,
0.2883252501487732,
-0.1160213053226471,
0.07836373150348663,
-1.0372179746627808,
-0.015385190024971962,
0.5531525611877441,
-0.14507940411567688,
0.3417775928974... | |
<add type="Person, WCFWithNoLibrary, Version=1.0.0.0,Culture=neutral,PublicKeyToken=null">
<knownType type="Employee, WCFWithNoLibrary, Version=1.0.0.0,Culture=neutral, PublicKeyToken=null" />
</add>
</declaredTypes>
</dataContractSerializer>
</system.runtime.serialization>
<system.servi... | [
-0.043541595339775085,
0.08258884400129318,
0.2945491075515747,
-0.28891828656196594,
-0.1489766240119934,
0.423203706741333,
0.2914626896381378,
-0.38542917370796204,
-0.1741265058517456,
-0.6830145716667175,
-0.04799490422010422,
0.32309406995773315,
-0.4694824814796448,
0.25432744622230... | |
`http://www.herbertsabanal.net:person`.
> The InnerException message was 'Error
> in line 1 position 247. Element
> `'http://www.herbertsabanal.net:person'`
> contains data of the
> `'http://www.herbertsabanal.net/Data:Employee'`
> data contract. The deserializer has no
> knowledge of any type that maps to
> th... | [
-0.15698331594467163,
-0.2922629415988922,
-0.0829516053199768,
-0.10780952870845795,
-0.18363595008850098,
0.6834685802459717,
0.1343296617269516,
-0.41462811827659607,
-0.014894701540470123,
-0.4353656470775604,
0.18013210594654083,
0.6101535558700562,
-0.3097028434276581,
0.437875926494... | |
{
string _name;
int _age;
[DataMember(Name="Name", Order=0)]
public string Name
{
get { return _name; }
set { _name = value; }
}
[DataMember(Name="Age", Order=1)] | [
-0.03525847569108009,
-0.12475158274173737,
0.43514561653137207,
-0.09136117994785309,
0.38632723689079285,
0.052623093128204346,
0.09523972123861313,
-0.1522943675518036,
-0.10534515976905823,
-0.5640385150909424,
-0.6157544851303101,
0.429561585187912,
0.02855495736002922,
0.441552281379... | |
public int Age
{
get { return _age; }
set { _age = value; }
}
}
[DataContract(Namespace="http://www.herbertsabanal.net/Data", Name="Employee")]
class Employee : Person
{
string _id;
[DataMember]
public string ID | [
-0.14156046509742737,
-0.0636017769575119,
0.02705574221909046,
0.00662422738969326,
0.35198044776916504,
0.27527469396591187,
0.04321746155619621,
-0.0949673056602478,
-0.20642517507076263,
-0.7129614353179932,
-0.24622514843940735,
0.29602423310279846,
0.036173898726701736,
0.41961565613... | |
{
get { return _id; }
set { _id = value; }
}
}
```
Btw, I didn't use class libraries (WCF class libraries or non-WCF class libraries) for my service. I just plain coded it in the host project.
I guess there must be a problem at the config file (please see config file above). Or I ... | [
0.2414616197347641,
0.1950194239616394,
0.018578417599201202,
-0.08494780957698822,
0.05929774418473244,
-0.26013022661209106,
0.5238406658172607,
0.11877936124801636,
-0.1381884068250656,
-0.7246250510215759,
0.05605017766356468,
0.5337162017822266,
-0.3294476270675659,
0.0934425815939903... | |
pretty much appreciated.
I guess I have found the answer now.
The configuration file I posted above looks like this:
```
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.serialization>
<dataContractSerializer>
<declaredTypes>
<add type="Person, WCFWithNoLibrary, Version=1.0.... | [
-0.09248828142881393,
-0.03785175830125809,
0.2124844491481781,
-0.21455734968185425,
-0.09490761905908585,
0.3591066002845764,
0.15249305963516235,
-0.18657739460468292,
-0.03647695854306221,
-0.7298210859298706,
-0.12131241708993912,
0.37455281615257263,
-0.19888325035572052,
0.110632956... | |
**Employee** class. And no need for the longer Version and Culture values.... The correct configuration should be:
```
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.serialization>
<dataContractSerializer>
<declaredTypes>
<add type="WCFWithNoLibrary.Person, WCFWithNoLibrary... | [
0.060145627707242966,
-0.3978963792324066,
0.29071658849716187,
-0.24631090462207794,
0.018379833549261093,
0.20036661624908447,
-0.027494391426444054,
-0.23685115575790405,
-0.1977371871471405,
-0.9236145615577698,
-0.16958096623420715,
0.2831946611404419,
-0.47153258323669434,
0.04094481... | |
version, culture, publickeytokens would be required. | [
0.2772478759288788,
-0.2241615206003189,
0.3181498050689697,
0.3798753619194031,
-0.05695086345076561,
-0.010691492818295956,
0.2107825130224228,
0.06334922462701797,
-0.09818539768457413,
-0.4474513828754425,
-0.40262141823768616,
0.25307559967041016,
-0.2182946354150772,
0.13887979090213... | |
Has anybody forked PHP4 to continue support for this version?
**EDIT:** This isn't a question about migrating to PHP5.
There have been no known forks of PHP4 to continue its support.
PHP4's code is pretty large, and with all its extensions it would be a pretty large project to support as a legacy application. | [
0.5796512365341187,
0.06690893322229385,
0.14197039604187012,
-0.05260928347706795,
-0.17608126997947693,
-0.18698063492774963,
0.35862451791763306,
0.2646465003490448,
-0.5597925186157227,
-0.2581915855407715,
0.20353709161281586,
0.42445632815361023,
-0.1716512143611908,
0.22794465720653... | |
I started to make some thing in WPF and I have a question. I think the answer might be easy and even obvious, but somehow...
I have two controls on a form enclosed by a grid. I want two position the second control above the first one (it's transparent). Coming from WinForms development that isn't that hard, so it won'... | [
0.45845428109169006,
-0.2062477022409439,
0.19926346838474274,
0.002274669473990798,
-0.0028029007371515036,
0.03041205182671547,
-0.24353520572185516,
-0.32147595286369324,
-0.2790853679180145,
-0.9382140040397644,
0.26829764246940613,
0.4577068090438843,
-0.17567171156406403,
0.159124329... | |
the order you define them (last defined at the top).
Try something like this:
```
<Grid>
<Rectangle Fill="Blue"/>
<Ellipse Fill="Red"/>
</Grid>
```
BTW - learning XAML is much easier to do in an interactive tool like [Kaxaml](http://www.kaxaml.com/). | [
0.06286975741386414,
-0.11458604782819748,
0.1144169270992279,
-0.025522025302052498,
-0.1316307634115219,
-0.216647669672966,
-0.14240720868110657,
0.08236245065927505,
-0.20841704308986664,
-0.7288491129875183,
-0.3870384395122528,
0.2666046917438507,
-0.30230915546417236,
0.013615297153... | |
Is there a way to find out if two arbitrary regular expressions are equivalent? Looks like complex problem to me, but there might be some DFA simplification mechanism or something?
To test equivalence you can compute the [minimal DFAs](http://www.google.de/search?hl=en&q=minimal+dfa) for the expressions and compare the... | [
0.0768408253788948,
0.022576648741960526,
0.19481711089611053,
0.1023552343249321,
-0.38051825761795044,
0.2712487578392029,
0.1826276183128357,
-0.3019197881221771,
-0.04401364177465439,
-0.5376948714256287,
0.06644536554813385,
0.407485693693161,
-0.2303531914949417,
-0.2660103738307953,... | |
I have an eclipse Tomcat project that has several dependencies on other eclipse projects.
For example imagine the main project is called server and has several dependencies:
* server
(depends on):
* data-lib
* server-utils
* messaging-utils
Currently every time I change data-lib,server-utils,messaging-utils I have... | [
0.40090253949165344,
0.22336173057556152,
0.27392494678497314,
-0.1539667546749115,
-0.5817239284515381,
0.097859226167202,
0.18291808664798737,
0.07831080257892609,
-0.2580016851425171,
-0.7826551198959351,
0.17158140242099762,
0.47546201944351196,
-0.207848459482193,
0.28200048208236694,... | |
it for now). Its easy enough to create the build file for server -- it will end up creating a .war file. But I want it to automatically build the dependent libs. I want to do this while preserving my development workspace in Eclipse.
What is the easiest and cleanest way to do this? Currently my thought is each individ... | [
0.48959648609161377,
0.23068805038928986,
0.48682257533073425,
0.019944848492741585,
-0.38748088479042053,
0.05185243487358093,
0.044605571776628494,
-0.11854620277881622,
-0.06512794643640518,
-0.8496633768081665,
0.14835552871227264,
0.5007966756820679,
-0.10215399414300919,
0.0072210710... | |
Ant based script, I would go with [Apache Ivy](http://ant.apache.org/ivy/). The basic idea is that each of your submodule has its own build.xml file and publishes (via Ivy) their "publications" (like a Jar file) to a repository on the file system. The other modules then import these "publications" to build the final pr... | [
0.687191903591156,
0.03054330125451088,
0.05579351261258125,
-0.05168406292796135,
-0.16919615864753723,
-0.10906239598989487,
0.13527384400367737,
-0.16918735206127167,
0.07220511883497238,
-0.48196980357170105,
0.08581797033548355,
0.12504766881465912,
-0.1398160308599472,
-0.10925774276... | |
I don't want to reinvent the wheel, I must display remote files and folders (like SQL Management studio does), should I develop my own interface and logic or there is an alternative? I need multiple selection.
I'm using VS2008 .Net Framework 3.5 SP1
Thanks
EDIT:
I built a multi-ambient music server that is running ... | [
0.17788389325141907,
0.11420116573572159,
0.284068763256073,
0.23665082454681396,
-0.1578253209590912,
-0.3028887212276459,
0.24942712485790253,
-0.017107149586081505,
-0.2956307530403137,
-0.7555422782897949,
0.2193978726863861,
0.7318138480186462,
-0.17674918472766876,
0.2767197489738464... | |
I would go with [Apache Ivy](http://ant.apache.org/ivy/). The basic idea is that each of your submodule has its own build.xml file and publishes (via Ivy) their "publications" (like a Jar file) to a repository on the file system. The other modules then import these "publications" to build the final product. | [
0.7957763671875,
0.12938478589057922,
0.11278439313173294,
-0.07819817215204239,
-0.03883003816008568,
-0.29281672835350037,
-0.10692545026540756,
-0.22180935740470886,
0.17555497586727142,
-0.26863548159599304,
0.0569576732814312,
0.2076627016067505,
0.04818626865744591,
0.116011641919612... | |
I'm using a TIdTCPCmdServer to handle all communication with client applications. I would like my server to log all kind of stuff including network traffic. Is there any easy or clever way to see how much bytes the TCPCmdServer actually received and sent? I can only think of code like
```
ASender.SendReply;
Inc (FTraf... | [
0.2233290821313858,
0.018666401505470276,
0.7091784477233887,
0.2281225174665451,
-0.04201684519648552,
-0.18179480731487274,
0.2225446254014969,
0.24129515886306763,
-0.44077014923095703,
-0.6687919497489929,
0.27885380387306213,
0.6955491304397583,
-0.37644726037979126,
0.124972298741340... | |
you both very much for your answers. I chose to implement it the way mghie described it - by implementing a custom interceptor class for my connections. Just for those interested in the solution, i will provide some source code here:
```
type
TCountTrafficInterceptor = class (TIdConnectionIntercept)
public
typ... | [
0.2517831027507782,
-0.07949777692556381,
0.5022580027580261,
0.08883938938379288,
-0.007666499353945255,
0.34560316801071167,
0.3073003888130188,
-0.4157935380935669,
-0.15532638132572174,
-0.5854113101959229,
-0.10114800184965134,
0.6702162623405457,
-0.4518004357814789,
-0.0230859443545... | |
FTraffic := TrafficVar;
end;
procedure TCountTrafficInterceptor.Send (var ABuffer : TIdBytes);
begin
inherited Send (ABuffer);
FTraffic^ := FTraffic^ + Length (ABuffer);
end;
procedure TCountTrafficInterceptor.Receive (var ABuffer : TIdBytes);
begin
inherited Receive (ABuffer);
FTraffic^ := FTraffic^ + Length... | [
0.10054764151573181,
-0.3303777873516083,
0.7749500870704651,
-0.049003660678863525,
-0.3780687749385834,
0.21852213144302368,
0.5183854699134827,
-0.23224501311779022,
-0.3829289376735687,
-0.545397937297821,
-0.25574666261672974,
0.5024588704109192,
-0.6071671843528748,
0.023942116647958... | |
I'm sure many have noticed that when you have a large application (i.e. something requiring a few MBs of DLLs) it loads much faster the second time than the first time.
The same happens if you read a large file in your application. It's read much faster after the first time.
What affects this? I suppose this is the h... | [
0.1371288299560547,
0.1396367996931076,
0.10803678631782532,
0.22176828980445862,
0.04021133854985237,
-0.16983342170715332,
-0.04119548946619034,
0.2877771258354187,
-0.772338330745697,
-0.697658360004425,
-0.09173695743083954,
0.7832543849945068,
-0.06473970413208008,
0.141051784157753,
... | |
some apps, files are slow-loading again after a minute or so, so the cache fills in a minute?
Windows's memory manager is actually pretty slick -- it services memory requests AND acts as the disk cache. With enough free memory on the system, lots of files that have been recently accessed will reside in memory. Until th... | [
0.12278950214385986,
0.09801845252513885,
0.5384092926979065,
0.23622043430805206,
-0.017514668405056,
-0.38327690958976746,
0.1820095032453537,
0.07722808420658112,
-0.4132426381111145,
-0.6641272306442261,
-0.2428545355796814,
0.8785027861595154,
-0.24321113526821136,
-0.1659140884876251... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.