text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
neck for compiler authors to support multiple inheritance. So when someone like Guido van Rossum designs python, or when Anders Hejlsberg designs c#, they know that supporting multiple inheritance is going to make the compiler implementations significantly more complex, and presumably they don't think the benefit is wo... | [
0.5813167095184326,
0.07696978747844696,
-0.14389808475971222,
0.09263633191585541,
-0.3414095938205719,
-0.025614947080612183,
0.10580607503652573,
-0.0006031473749317229,
-0.7520425319671631,
-0.13360708951950073,
-0.11221393942832947,
0.4610147178173065,
-0.2914852201938629,
-0.01664773... | |
Where can I find a list of all the C# Color constants and the associated R,G,B (Red, Green, Blue) values?
e.g.
Color.White == (255,255,255)
Color.Black == (0,0,0)
etc...
Run this program:
```
using System;
using System.Drawing;
using System.Reflection;
public class Test
{
static void Main()
{
var ... | [
0.48403939604759216,
-0.1138722151517868,
0.15189218521118164,
-0.18689760565757751,
0.06884945183992386,
0.28045183420181274,
0.47907763719558716,
-0.5876390337944031,
0.035519104450941086,
-0.5555729866027832,
-0.28365010023117065,
0.6025963425636292,
-0.44727179408073425,
0.420646160840... | |
Console.WriteLine("Color.{0} = ({1}, {2}, {3})", prop.Name,
color.R, color.G, color.B);
}
}
}
```
Or alternatively:
```
using System;
using System.Drawing;
public class Test
{
static void Main()
{
foreach (KnownColor known in Enum.GetValues(typeof(KnownColor... | [
-0.11040311306715012,
-0.24740292131900787,
0.2282147854566574,
-0.12671522796154022,
0.39046838879585266,
0.21319971978664398,
0.23074498772621155,
-0.06836704164743423,
0.23197175562381744,
-0.6592451333999634,
-0.25144851207733154,
0.4694436490535736,
-0.2980898916721344,
0.355802237987... | |
= Color.FromKnownColor(known);
Console.WriteLine("Color.{0} = ({1}, {2}, {3})", known,
color.R, color.G, color.B);
}
}
}
``` | [
-0.0727539211511612,
-0.05932890623807907,
0.2534591257572174,
-0.34205400943756104,
0.5121191740036011,
0.23789338767528534,
0.15192028880119324,
-0.18032395839691162,
0.10582629591226578,
-0.5591664910316467,
-0.3532475531101227,
0.7370370626449585,
-0.293593168258667,
0.3417357504367828... | |
My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don't appear horizontally next to each other. Suggestions?
`<div style='width:30%; text-align:center; float:left; clear:both;'>` Is what I have now.
You can use divs ... | [
0.1941419243812561,
0.0885034129023552,
0.6206235289573669,
-0.17204760015010834,
-0.1761808693408966,
0.1596752405166626,
0.15256837010383606,
-0.35300561785697937,
-0.14355802536010742,
-0.7586053013801575,
-0.03591855615377426,
0.5009245276451111,
-0.010945331305265427,
-0.3075161576271... | |
Suppose a database table has a column "Name" which is defined as key for the table.
Usual name values will be "Bill", "Elizabeth", "Bob", "Alice". Lookups on the table will be done by the name key as well.
Does hashing the values optimize the operations in any way? i.e. entering each name as some hashed value of the n... | [
0.07578419148921967,
0.0368991382420063,
0.4129340350627899,
0.04683218151330948,
0.122905433177948,
0.09287923574447632,
-0.1030888557434082,
-0.16138939559459686,
-0.5303822159767151,
-0.2774351239204407,
-0.11159005016088486,
0.36018285155296326,
-0.5086582899093628,
0.2401205450296402,... | |
it should absolutely be something that the database handles. | [
0.4923686981201172,
0.21038852632045746,
0.010927927680313587,
0.3326464295387268,
0.2539748251438141,
-0.4286608397960663,
-0.36437395215034485,
0.07548541575670242,
-0.1696120649576187,
-0.08965494483709335,
-0.09664598852396011,
0.43383365869522095,
-0.0049333455972373486,
0.16114056110... | |
Have you ever tried this before?
```
static void Main(string[] args)
{
int x = 10;
x = x++;
Console.WriteLine(x);
}
```
Output: 10.
but for
```
static void Main(string[] args)
{
int x = 10;
x++;
Console.WriteLine(x);
}
```
Output: 11.
Could anyone explain why this?
X++ will increment th... | [
0.03256271034479141,
0.07112045586109161,
0.47416964173316956,
-0.2414102405309677,
0.12019818276166916,
0.09997338056564331,
0.4192245602607727,
0.09677968919277191,
-0.5678874254226685,
-0.5039761662483215,
-0.1671113669872284,
0.4846484959125519,
-0.39651572704315186,
0.0631653442978859... | |
because 10 is the return value of (x++).
You could instead do this for the same result:
```
static int plusplus(ref int x)
{
int xOld = x;
x++;
return xOld;
}
static void Main(string[] args)
{
int x = 10;
x = plusplus(x);
Console.WriteLine(x);
}
```
It is also worth mentioning that you would hav... | [
-0.11582443863153458,
-0.06704540550708771,
0.5830641984939575,
-0.5695039629936218,
0.1190078929066658,
0.2274930477142334,
0.23993223905563354,
-0.1225367933511734,
-0.27946150302886963,
-0.333679735660553,
-0.4293193817138672,
0.5942309498786926,
-0.5351571440696716,
0.01221724227070808... | |
I am learning to use LabVIEW as part of my honours project, and was wondering what benefits the graphical programming language has over a textual one?
Its all about the equipment drivers and user capabilities. NI (Labview) has a well supported set of lab equipment drivers that are easily interfaced. A test operator (no... | [
0.4705792963504791,
0.19209758937358856,
0.18946455419063568,
0.003041820367798209,
-0.07618661224842072,
-0.27922290563583374,
-0.07439394295215607,
-0.04888343811035156,
0.18215133249759674,
-0.7063776254653931,
-0.11351944506168365,
0.6098955273628235,
0.26621013879776,
0.03585414215922... | |
usable and best of all, free. | [
0.2590210437774658,
0.20472866296768188,
-0.42879125475883484,
0.4800518751144409,
-0.14736635982990265,
-0.004353744443506002,
-0.07146735489368439,
0.27675387263298035,
0.07075157761573792,
-0.3411521911621094,
-0.2675337791442871,
0.3309310972690582,
-0.015307367779314518,
-0.0201171915... | |
How do I load a true color image into a CImageList?
Right now I have
```
mImageList.Create(IDB_IMGLIST_BGTASK, 16, 1, RGB(255,0,255));
```
Where `IDB_IMGLIST_BGTASK` is a 64x16 True color image. The ClistCtrl I am using it in shows 16 bpp color. I don't see a Create overload that allows me to specify both the bpp a... | [
0.2892065942287445,
0.0050782691687345505,
0.7733536958694458,
-0.13922399282455444,
-0.013942121528089046,
0.2684854567050934,
0.16029812395572662,
-0.4823620915412903,
-0.2870190143585205,
-0.7397223711013794,
-0.15451769530773163,
0.6218653917312622,
-0.5184807181358337,
0.1498570591211... | |
I have the HTML given below:
```
<ul id="thumbsPhotos">
<li src="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatePhoto (this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" src=""><img src="" width="56" height="56"></li>
... | [
-0.17450562119483948,
0.048556312918663025,
1.2017011642456055,
-0.27770549058914185,
-0.19934992492198944,
-0.15168315172195435,
-0.024997469037771225,
-0.6152721047401428,
-0.28952279686927795,
-0.11213020980358124,
0.05720170959830284,
0.5584897994995117,
-0.4050150513648987,
-0.2194009... | |
a regex which might do it for you...
```
// find:
<li ([^>]*)src="(.*?)"(.*?)>
// replace:
<li $1title="$2"$3>
```
**Update**: tested and it works on your example.
If you wanted to run this on the client side using Javascript (for whatever whacky reason), you could do this:
```
var ul = document.getElementById("t... | [
0.10028082132339478,
-0.28540608286857605,
0.920415997505188,
0.3013252317905426,
0.3285343647003174,
0.11106400191783905,
0.35222864151000977,
-0.12316856533288956,
-0.10035411268472672,
-0.5495997667312622,
0.045737799257040024,
0.7729567885398865,
-0.3671480417251587,
-0.200065851211547... | |
What are the differences between a wiki and a CMS? Is there any?
**CMS:**
1. A CMS focuses on **content** which is then published through standardized templates -- think of an online newspaper as driven by a huge CMS system.
2. It's about standardized **publishing information**.
3. CMS'es usually have a **limited grou... | [
0.32011428475379944,
-0.049497295171022415,
0.2603702247142792,
0.6203291416168213,
-0.3886265456676483,
-0.2955566346645355,
0.042276594787836075,
0.2618383765220642,
-0.4203433096408844,
-0.7217515707015991,
-0.3915451765060425,
0.31478437781333923,
-0.08938750624656677,
-0.2505311965942... | |
websites counts as improving the topic).
3. Wikis are generally **much more open to "the public"** (or everybody in the company, vs. just the "internal communication" department).
4. Wikis are *meant* to be **living, dynamic things,** maintained by *everybody*.
5. Much **emphasis on content:** less slick templates but ... | [
0.37474989891052246,
-0.03592374548316002,
0.3323608934879303,
0.4747110903263092,
-0.17423653602600098,
-0.5715921521186829,
0.5217370986938477,
0.41774243116378784,
-0.5574847459793091,
-0.7394278645515442,
-0.5438476800918579,
0.23276877403259277,
-0.021255476400256157,
-0.0676815286278... | |
I want to use Perl to extract information from a [Certificate Signing Request](http://en.wikipedia.org/wiki/Certificate_signing_request), preferably without launching an external openssl process. Since a CSR is stored in a base64-encoded ASN.1 format, I tried the [Convert::PEM](http://search.cpan.org/~btrott/Convert-PE... | [
0.33927229046821594,
0.053670331835746765,
0.009980323724448681,
0.0796518549323082,
-0.14649105072021484,
-0.003952637314796448,
0.13447439670562744,
-0.2860988676548004,
-0.24029307067394257,
-0.3231670558452606,
-0.18609774112701416,
0.5643444657325745,
-0.013296988792717457,
-0.1094057... | |
I know how to find out the current domain name in PHP already, the problem is when I put this code into a file and then include it from another server it shows the domain name of where the file is located. Is there any way for it to find out the domain or the site containing the include() code?
You can run it locally u... | [
0.5352046489715576,
0.27971506118774414,
0.43711456656455994,
0.03454674780368805,
-0.10501714050769806,
-0.33204495906829834,
0.34385666251182556,
-0.033498696982860565,
-0.18407036364078522,
-0.4385516345500946,
0.056253038346767426,
0.33369365334510803,
-0.14449796080589294,
0.237877622... | |
When creating a new build in Team Foundation Server, I get the following error when attempting to run the new build:
> The path
> C:\Build\ProductReleases\FullBuildv5.4.2x\Sources
> is already mapped to workspace
> BuildServer\_23.
I am unable to see a workspace by that name in the workspaces dialog.
Use the comma... | [
0.2883484661579132,
0.10427098721265793,
0.09967705607414246,
-0.22363874316215515,
-0.08393606543540955,
-0.10442580282688141,
0.45350614190101624,
-0.3094887435436249,
-0.34273868799209595,
-0.9238753914833069,
-0.259501576423645,
0.73887699842453,
-0.41637444496154785,
-0.15616382658481... | |
delete the workspace with the following command:
```
C:\YourWorkspaceFolder>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME
``` | [
-0.041170019656419754,
0.10417328029870987,
0.4478018581867218,
-0.15354877710342407,
0.3082271218299866,
0.2599143087863922,
0.40024447441101074,
0.23281079530715942,
-0.25944018363952637,
-0.3840487599372864,
-0.7327657341957092,
0.3788098692893982,
-0.46682828664779663,
0.68450772762298... | |
While opening any MS Access database, a security warning appears saying that the file can be harmful to the computer. However, is there a way to remove this message. Or should it remain a necessary evil
You can probably sign your program. I don't know for sure. Read [this article](http://www.howto-outlook.com/howto/sel... | [
0.307121217250824,
0.13441558182239532,
0.46261104941368103,
0.05192515254020691,
0.33386701345443726,
-0.5916628837585449,
0.6279320120811462,
0.3035912811756134,
-0.14730492234230042,
-0.5412051677703857,
0.023843957111239433,
0.6494516134262085,
-0.14459292590618134,
0.18317680060863495... | |
I could write myself a helper class that does this when given a functor, but I was wondering if there's a better approach, or if there's something already in the standard library (seems like there should be).
Answers I've found on StackOverflow are all for C# which doesn't help me.
Thanks
No - there isn't. Apache `co... | [
0.24752330780029297,
0.18989437818527222,
-0.010847911238670349,
-0.012687886133790016,
-0.10016001760959625,
-0.15047642588615417,
0.6798746585845947,
0.0733957588672638,
-0.23426130414009094,
-0.4471544325351715,
-0.23177064955234528,
0.4482575058937073,
-0.34976598620414734,
0.051653347... | |
I maintain a vb.net forms application that prints various labels to label printers. (Label printers are just like any printer, just smaller print area/lower resolution)
The system uses a legacy printing method that's supported in the printer hardware, but has been out of general use for over a decade. I'm adding logi... | [
0.7833322286605835,
0.09687129408121109,
0.4721513092517853,
-0.04377057030797005,
-0.032648418098688126,
-0.1700185388326645,
-0.03641356900334358,
-0.1377740204334259,
-0.20139864087104797,
-0.7550199627876282,
0.2139720916748047,
0.33895963430404663,
-0.14839507639408112,
0.202955171465... | |
I can integrate into my code (dll is OK, just not a separate executable) and can not have a per user license. (Lots of users on my system)
Since what I need is fairly simple I went ahead and rolled my own simple desinger. Found at [a great little class](http://www.codeproject.com/KB/dotnet/Resize_Control_at_Runtime.asp... | [
0.6832646131515503,
-0.3131093680858612,
0.2943357527256012,
0.3413667380809784,
-0.1074875220656395,
-0.006292921025305986,
0.23970992863178253,
-0.09887388348579407,
-0.1311911791563034,
-0.7160384654998779,
0.2580728232860565,
0.8966397047042847,
-0.3910674750804901,
0.08099985122680664... | |
I am mostly use to using Subversion for my source control. However, my current position has me using TFS. The UI of the TFS explorer and its integration with Visual Studio has me a little disoriented. I miss having tools like SmartSVN where I could see at a glance what I've modified and is pending checkin.
What tool s... | [
0.5874801874160767,
-0.029451165348291397,
0.21062913537025452,
-0.021190181374549866,
-0.17315563559532166,
-0.3491601049900055,
0.2714698314666748,
0.11003466695547104,
-0.18526828289031982,
-0.9882522225379944,
-0.03690176457166672,
0.6104423999786377,
-0.3356262445449829,
0.12859466671... | |
changes and auto refreshes the list of files.
There's always [SVNBridge](http://codeplex.com/svnbridge) | [
0.1970997005701065,
-0.1745753288269043,
0.6491429209709167,
-0.12029846012592316,
0.03726785629987717,
-0.33718839287757874,
0.46926555037498474,
0.10250338912010193,
-0.5846385359764099,
-0.651995062828064,
-0.28697770833969116,
0.3466383218765259,
-0.1616027057170868,
0.0573459789156913... | |
This question has been asked before ([link](https://stackoverflow.com/questions/2556/whats-the-best-online-payment-processing-solution)) but I have slightly different requirements. First, I'm in Canada so that rules out Google Checkout and probably a few others. I just need a basic service that provides "Buy Now" funct... | [
0.887404203414917,
0.08334121853113174,
0.34244710206985474,
0.35175058245658875,
0.24500516057014465,
-0.07698573917150497,
0.24771463871002197,
0.39293092489242554,
-0.2919200658798218,
-0.5634436011314392,
0.11859733611345291,
-0.1396782249212265,
0.34854528307914734,
-0.116365753114223... | |
their lack of discount codes is really starting to restrict what I can do.
What have you used, or what would you recommend I investigate further?
I have used [Beanstream](https://www.beanstream.com) in Canada. They provide a hosted service, where you provide a link to a custom Beanstream page in your site; they do all... | [
0.891109049320221,
0.31243765354156494,
0.19823743402957916,
0.2315920740365982,
0.14152123034000397,
0.2885047495365143,
0.048860929906368256,
0.6061323285102844,
-0.6914108395576477,
-0.561528205871582,
0.4635583460330963,
0.002228471217676997,
0.26194536685943604,
-0.22459034621715546,
... | |
more.
They also provide a gateway API if you want to accept credit cards yourself, but I find the hosted service far more convenient. | [
0.8615164756774902,
0.05805056914687157,
0.08430163562297821,
0.2888585031032562,
0.26651623845100403,
-0.14481087028980255,
0.05420093238353729,
0.37044474482536316,
-0.2855181097984314,
-0.5091213583946228,
0.13012941181659698,
0.4564574658870697,
0.4420270025730133,
0.28697651624679565,... | |
I'm trying to drag a `CALayer` in an iOS app.
As soon as I change its position property it tries to animate to the new position and flickers all over the place:
```
layer.position = CGPointMake(x, y)
```
How can I move `CALayers` instantly? I can't seem to get my head around the Core Animation API.
You want to wra... | [
0.28252407908439636,
0.12624885141849518,
0.6428856253623962,
0.06685449928045273,
0.15039925277233124,
0.2597050666809082,
-0.04074134677648544,
-0.10050295293331146,
0.14970313012599945,
-0.6931528449058533,
-0.1618794947862625,
0.45251965522766113,
-0.4615752398967743,
0.247588440775871... | |
We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers.
Now we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram
```
External Internal
inter... | [
0.34083765745162964,
0.005417943000793457,
0.4382285475730896,
0.0033876795787364244,
0.0715474784374237,
-0.13454484939575195,
0.010354161262512207,
0.15473315119743347,
-0.25579196214675903,
-0.7191774845123291,
-0.19507111608982086,
0.15085244178771973,
-0.12216997891664505,
0.222599312... | |
DMZ Intranet
```
Now the problem is that the asp.net membership and role providers on the web server cant connect to the sql server because of the internal firewall.
Have you ever faced such a scenario before? Will you recommend opening up ports in the internal firewall so that the webse... | [
0.279102623462677,
-0.07798317074775696,
0.21203938126564026,
0.12624990940093994,
-0.011212238110601902,
-0.4028281271457672,
-0.05353185161948204,
-0.014101228676736355,
-0.3291776776313782,
-0.7072637677192688,
-0.08504900336265564,
0.4467350244522095,
-0.15797220170497894,
0.3350684642... | |
to the SQL server? What other alternatives do I have (otherthan wring a custom provider myself)?
Changing your DMZ policy and opening ports is usually REALLY hard. You might have better success doing what I did: expose a WCF service inside the network and communicate with it over HTTP on port 80.
Zero friction with th... | [
0.2357260286808014,
0.023360256105661392,
0.42846256494522095,
0.1333896666765213,
0.010131524875760078,
-0.26949721574783325,
0.21347063779830933,
-0.0005054447683505714,
-0.10475079715251923,
-0.7537950277328491,
0.2685984671115875,
0.9186115264892578,
-0.16889367997646332,
0.37755498290... | |
</providers>
</roleManager>
``` | [
0.4339873194694519,
0.20086126029491425,
-0.26624342799186707,
0.05935946851968765,
-0.034588735550642014,
0.0706944614648819,
0.22576116025447845,
0.16995398700237274,
-0.3777052164077759,
-0.8306837677955627,
-0.18875721096992493,
0.3879814147949219,
0.09847629070281982,
-0.0179290324449... | |
Is there a way in C# or .NET in general to create an attribute on a method which triggers an event when the method is invoked? Ideally, I would be able to run custom actions before and after the invocation of the method.
I mean something like this:
```
[TriggersMyCustomAction()]
public void DoSomeStuff()
{
}
```
I ... | [
0.18827371299266815,
-0.2302824854850769,
0.01171474251896143,
0.007593145594000816,
-0.008412601426243782,
-0.29241156578063965,
0.39001941680908203,
-0.17014877498149872,
-0.11011312901973724,
-0.3868867754936218,
-0.010211982764303684,
0.755316436290741,
-0.07825188338756561,
-0.1273211... | |
how to do this is with [PostSharp](https://www.postsharp.net/). It post-processes your IL and can do things like what you asked for. | [
0.9536195993423462,
-0.1375911980867386,
0.4538103938102722,
0.0019832528196275234,
-0.2007187306880951,
-0.31741830706596375,
-0.2865135073661804,
-0.11847029626369476,
0.12437733262777328,
-0.7190219163894653,
0.046346958726644516,
0.027467723935842514,
-0.1296893060207367,
-0.3334692418... | |
I am currently working on automating/improving the release process for packaging my shop's entire product. Currently the product is a combination of:
* Java server-side codebase
* XML configuration and application files
* Shell and batch scripts for administrators
* Statically served HTML pages
* and some other stuff... | [
0.6932177543640137,
0.36934494972229004,
0.11450359970331192,
-0.29295676946640015,
0.004669189918786287,
-0.06761162728071213,
0.06214173138141632,
0.035594623535871506,
-0.1638924926519394,
-0.7066798806190491,
-0.31699246168136597,
0.2711973190307617,
-0.1620800495147705,
0.112743109464... | |
organic, just-in-time manner, and is pretty horrible to maintain. For example, some Java methods create Date objects for the time of release, the arguments for which are updated by a textual replacement, without compiler validation... just, urgh.
I'm trying avoid giving examples of actual software used (i.e. CVS, SVN,... | [
0.3360483944416046,
0.3098573088645935,
0.008444509468972683,
0.15602916479110718,
0.2105068564414978,
-0.17866969108581543,
0.09863297641277313,
0.2848494052886963,
-0.18389523029327393,
-0.507723331451416,
-0.08332932740449905,
0.1646563559770584,
-0.03831643611192703,
0.2902244031429291... | |
down conventions.
My questions is, are there any best practices or hints and tips for maintaining and updating versioning information across different technologies, filetypes, platforms and version control systems?
Indeed, to complete Craig Angus's answer, the rule of thumb here should be to ***not include any meta-in... | [
0.3798748552799225,
0.22187040746212006,
0.3650282025337219,
0.26507309079170227,
0.42098158597946167,
-0.06357698142528534,
-0.12606434524059296,
-0.0010961026418954134,
-0.5545569062232971,
-0.3070371747016907,
-0.19455020129680634,
0.2853794991970062,
-0.1972620189189911,
0.114489443600... | |
or for testing or for preparing a release into production), it is the versionning tool which gives you all the details.
When you prepare a delivery (a set of packaged files), you should ask that VCS tool about every meta-information you want to keep, and write them in a special file itself included into the said set o... | [
0.7250786423683167,
-0.142024964094162,
0.04400283470749855,
0.03836241364479065,
0.33620500564575195,
-0.1489543616771698,
-0.07558000832796097,
-0.05249098315834999,
-0.4385347366333008,
-0.45568138360977173,
-0.5458391308784485,
0.44529691338539124,
0.28554409742355347,
0.15479446947574... | |
your delivery). That way you can make 10 or 20 delivers a day, it does not matter: they are easily disposable.
* imported into the VCS in order to serve as official deliveries, and in order to be deployed easily since all you need is to ask the versionning tool for the right version of the right deliver, and you can be... | [
0.5920270681381226,
-0.3140411078929901,
0.2403528392314911,
-0.08626233786344528,
-0.08611112833023071,
0.21394185721874237,
-0.014263280667364597,
0.06016123667359352,
-0.432496041059494,
-0.6001700758934021,
-0.44483160972595215,
0.2755308747291565,
0.1521739810705185,
0.236649885773658... | |
I am trying to write a query for SQL Server 2005 but I can't figure out how to do it. I have a table with the following fields:
**MessageID int
CategoryID int
Priority tinyint
MessageText NVARCHAR(MAX)**
I need a query that will return \* for each row that has the highest priority within a Category. For exam... | [
-0.34356027841567993,
0.052769798785448074,
0.6801658868789673,
-0.21891260147094727,
-0.4442974030971527,
0.1951189786195755,
0.25728392601013184,
-0.2420925348997116,
-0.2905902564525604,
-0.4501674771308899,
0.3095177114009857,
0.4553181827068329,
-0.1346038430929184,
0.1902466416358947... | |
#736 occurred
6, 300, 3, Error #54 occurred
7, 300, 2, Error #888 occurred
then the result would be:
**MessageID, CategoryID, Priority, MessageText**
3, 100, 3, Error #976 occurred
4, 200, 4, Error #194 occurred
6, 300, 3, Error #54 occurred
Notice that it returns one row per category, and that it... | [
-0.4818647503852844,
0.0035062916576862335,
0.7021546363830566,
0.04383836314082146,
-0.12064915150403976,
0.5114331841468811,
0.2679170072078705,
-0.24775049090385437,
-0.5306079387664795,
-0.40388092398643494,
-0.1808171421289444,
0.25953686237335205,
-0.4370672106742859,
0.1493553966283... | |
, m.MessageText
, Rank() OVER
(PARTITION BY m.CategoryID ORDER BY m.Priority DESC) AS p_rank
FROM [Message] m
GROUP BY
m.CategoryID
, m.Priority
, m.MessageID
, m.MessageText
) highest_priority_messages
WHERE
p_rank = 1
``` | [
-0.6685551404953003,
0.02104337327182293,
0.6014941334724426,
-0.0849287137389183,
-0.012793269008398056,
0.2943076193332672,
0.07330283522605896,
-0.2579071819782257,
-0.5744056701660156,
-0.4445854723453522,
-0.7459335923194885,
0.16367202997207642,
-0.38806459307670593,
0.41923487186431... | |
How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the whole word is on the same line.
According to comments on [this page](http://www.thefutureoftheweb.com/blog/breaking-long-ur... | [
0.16517455875873566,
-0.1538347750902176,
0.41673678159713745,
0.1365222930908203,
-0.4627288281917572,
-0.382391095161438,
0.5337626338005066,
-0.16026900708675385,
-0.2616812288761139,
-0.2024744302034378,
-0.2952045500278473,
0.425542414188385,
-0.16051700711250305,
-0.07578076422214508... | |
you choose it? Is there a preferred solution or best practice?
---
See related SO Discussion [here](https://stackoverflow.com/questions/904/in-html-how-to-word-break-on-a-dash).
~~Unfortunately, `­`'s support is so inconsistent between browsers that it can't really be used.~~
~~QuirksMode is right -- there's no g... | [
-0.08934257924556732,
-0.11683157086372375,
0.4973117709159851,
0.032835010439157486,
-0.25806814432144165,
-0.1557459682226181,
0.48734650015830994,
-0.05754581093788147,
-0.2552867531776428,
-0.5530120134353638,
-0.2849160432815552,
0.4913102388381958,
-0.014772811904549599,
-0.306131690... | |
I seem to remember reading that it's possible to declare taglib directives such as:
```
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
```
in web.xml. This eliminates the need to duplicate this directive in every JSP file where the taglib is used. Could someone tell me *how* these directives can be... | [
0.6557771563529968,
0.004826743621379137,
-0.03349059075117111,
-0.26342952251434326,
-0.15836362540721893,
-0.5239725112915039,
0.059790048748254776,
-0.3339817225933075,
0.03725401684641838,
-0.5228196382522583,
-0.2512478530406952,
0.5397627949714661,
-0.6980002522468567,
-0.01763374358... | |
page. But no matter how you do it, the taglib directive has to be on the page somehow.
That tag you need to include on each page looks like this:
```
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
```
If you have a custom taglib in a custom location, you can also specify a location relative to the... | [
0.04946628212928772,
0.002890641801059246,
0.8368514776229858,
-0.04703513905405998,
-0.11643865704536438,
-0.4230612814426422,
0.02721778303384781,
-0.27064481377601624,
-0.19642023742198944,
-0.9322049021720886,
-0.34127873182296753,
0.25263601541519165,
-0.43416574597358704,
0.062010690... | |
/WEB-INF and its subdirectories, /META-INF as well for JAR files.
It looks like this, in web.xml:
```
<taglib>
<taglib-uri>
http://www.example.com/taglib
</taglib-uri>
<taglib-location>
/taglib.tld
</taglib-location>
</taglib>
```
And the taglib is referenced in the JSP page like this (the taglib di... | [
-0.016768550500273705,
0.0879068523645401,
0.4777320325374603,
-0.10811499506235123,
-0.3100910484790802,
-0.30352288484573364,
-0.03370491415262222,
-0.12177920341491699,
-0.10907802730798721,
-0.8987868428230286,
-0.3297671675682068,
0.2986076772212982,
-0.3454441428184509,
0.09525405615... | |
**NOTE:** Using .NET 2.0, and VS2005 as IDE
Hello all,
I'm working on logging webservice calls to our database, and finally got the SoapExtension configured and running using a very stripped-down implementation that was ported over from another project. I've set it up in the configuration file so it will run for all ... | [
0.08753954619169235,
0.02955867350101471,
0.541681706905365,
-0.2242220938205719,
-0.07086942344903946,
-0.09362400323152542,
0.5384616255760193,
-0.10907891392707825,
-0.16272109746932983,
-0.7378751635551453,
0.0470854789018631,
0.443254292011261,
-0.3276194632053375,
0.341377317905426,
... | |
System.Web.Services.Protocols.SoapServerMessage.get_MethodInfo()
at MyService.SOAPLoggingExtension.LogInput(SoapMessage message)
at MyService.SOAPLoggingExtension.ProcessMessage(SoapMessage message)
at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
at Syst... | [
-0.47321617603302,
0.12573376297950745,
0.6460140943527222,
-0.18431663513183594,
0.22355476021766663,
-0.009248249232769012,
0.553717851638794,
-0.5911790132522583,
-0.22430428862571716,
-0.7605798244476318,
-0.3715989887714386,
0.36993756890296936,
-0.010198489762842655,
0.38015481829643... | |
null) ? null : message.MethodInfo.Name;
```
When message.MethodInfo is called, it bubbles over to SoapServerProtocol.get\_MethodInfo(), and the null reference exception gets thrown in there. I've googled, and checked around here on Stack Overflow, but haven't been able to find out why the MethodInfo property would be... | [
0.12095578759908676,
0.1627265065908432,
0.431799978017807,
-0.3314495086669922,
0.06035778671503067,
-0.16343991458415985,
0.44912591576576233,
-0.07418645173311234,
-0.12498420476913452,
-0.5985988974571228,
0.1213461309671402,
0.5582463145256042,
-0.4183475375175476,
0.4108821451663971,... | |
understand why, the SoapMessage object is not completely initialized at the BeforeDeserialize stage. Both the Action and MethodInfo properties throw errors at this stage.
However, during the AfterSerialize stage, these objects seem to be properly initialized. By moving the line which reads the message name to a later ... | [
0.09969501942396164,
-0.26481762528419495,
0.6399289965629578,
0.04189353808760643,
-0.0889500305056572,
-0.10695264488458633,
0.10758307576179504,
-0.4152664244174957,
-0.07047218084335327,
-0.4983287453651428,
-0.3481845557689667,
0.3162023723125458,
-0.13400745391845703,
0.0587166659533... | |
What's the best way to initialize an array in PowerShell?
For example, the code
```
$array = @()
for($i=0; $i -lt 5;$i++)
{
$array[$i] = $FALSE
}
```
generates the error
```
Array assignment failed because index '0' was out of range.
At H:\Software\PowerShell\TestArray.ps1:4 char:10
+ $array[$ <<<< i] ... | [
-0.11394552141427994,
-0.19202716648578644,
0.21241247653961182,
-0.1835508644580841,
-0.007890446111559868,
-0.14241863787174225,
0.25463539361953735,
-0.5873540043830872,
-0.012862379662692547,
-0.46776819229125977,
-0.1001373752951622,
0.5732520818710327,
-0.23507042229175568,
-0.027145... | |
I want to use jQuery to parse RSS feeds. Can this be done with the base jQuery library out of the box or will I need to use a plugin?
**WARNING**
> [The Google Feed API](https://developers.google.com/feed/) is officially **deprecated** and **doesn't work anymore**!
---
No need for a whole plugin. This will return yo... | [
0.47970476746559143,
-0.012687024660408497,
0.5379783511161804,
-0.05515129864215851,
-0.21614672243595123,
-0.10964398831129074,
0.30887144804000854,
-0.15161707997322083,
-0.07632455229759216,
-0.4471627473831177,
-0.11941080540418625,
0.6008093357086182,
-0.790198802947998,
-0.104337759... | |
Is it possible to get the system proxy configuration in Java?
In the Java Control Panel, you can set a proxy configuration. How can I access to that proxy configuration in order to open URL connections behind a proxy?
oh, just look at [that](https://stackoverflow.com/questions/376101/setting-jvm-jre-to-use-windows-pro... | [
0.11556313186883926,
-0.04967011511325836,
0.11411533504724503,
0.027352022007107735,
0.05035896599292755,
-0.321821928024292,
0.30512747168540955,
0.020106058567762375,
-0.3272911012172699,
-0.6894890069961548,
0.03784826025366783,
0.3840181529521942,
-0.2878475487232208,
0.06578250229358... | |
QA tester was reading HTML/JS code to write a functional test of a web form, and saw:
```
if (form_field == empty)
{
...do stuff for empty field
}
else if (form_field != empty)
{
...do stuff for non-empty field
}
else
{
...do stuff that will never be done
}
```
After a couple embarrassing attempts, tester realized t... | [
0.2872697412967682,
-0.010391080752015114,
-0.06438960880041122,
-0.3605397641658783,
-0.23269909620285034,
-0.2010566145181656,
0.6282482147216797,
-0.2704426348209381,
0.23079629242420197,
-0.3262186050415039,
-0.06264282763004303,
0.4783257246017456,
-0.4130941927433014,
-0.063124336302... | |
non-JS people learn
> lessons here?)
This is a language-agnostic problem. It's quite easy to write the following in Java, for example:
```
if(x)
{
//do something
}
else if(!x)
{
//do something else
}
else
{
//never, ever, do anything
}
```
The key thing to remember is that the "if(!x)" is not required. Makin... | [
0.11157768964767456,
0.1402876228094101,
-0.17312905192375183,
-0.22219009697437286,
-0.03357509523630142,
-0.3593662679195404,
0.5195905566215515,
0.14755317568778992,
-0.12565316259860992,
-0.326219379901886,
-0.2095814198255539,
0.5165741443634033,
-0.46009284257888794,
-0.0162329040467... | |
Point it out to him and he should kick himself. If he doesn't, question his role on the team.
> What approaches should be used to
> find/address the problem (code
> coverage, code review, blackbox
> testing, etc.)
Static code analysis tools can catch this sort of issue. However, I'm not aware of any for Javascript... | [
0.3674929141998291,
-0.0029369473922997713,
0.006883097346872091,
0.14532196521759033,
-0.2937827408313751,
-0.2506922483444214,
0.24085523188114166,
0.18894600868225098,
-0.33700430393218994,
-0.5950237512588501,
0.04368061572313309,
0.3622206151485443,
-0.24855086207389832,
-0.1487390398... | |
I was asked to recall a message I sent out to remove some personal info from it and replace it with a generic made up person as an example.
Does message recall really work?
It's my opinion because you get told a message has been recalled it just causes you to want to find out what was in the original message. All yo... | [
0.21409469842910767,
0.1375306397676468,
0.24659234285354614,
0.243464857339859,
-0.36842843890190125,
-0.058112550526857376,
0.12426851689815521,
0.18613995611667633,
-0.3702205717563629,
-0.3919975757598877,
0.2509136199951172,
0.23117674887180328,
-0.22407826781272888,
0.445506930351257... | |
be the ones you really need to recall.
**EDIT** Also people with smartphones which is common now don't seem to get email retrieved from their phone either
In most cases, it's too late, it just let's me know there was an email you didn't want me to read. | [
0.46225595474243164,
0.062070172280073166,
0.2843914330005646,
0.14997009932994843,
-0.05316200852394104,
-0.22182588279247284,
0.3689906597137451,
0.4745090901851654,
-0.41193705797195435,
-0.6548373103141785,
-0.019956093281507492,
0.3904220759868622,
0.04790705069899559,
-0.120317906141... | |
We have a netbeans project that has an xsd that we use to create a wsdl and we use the wsdl to create a webservice. Since we are using types in our xsd jaxb is used and one of our webservice methods looks like this:
```
public void someMethod( org.netbeans.xml.schema.line.Line x )...
```
So that leaves us a problem... | [
0.5511054992675781,
-0.07037272304296494,
0.062247663736343384,
0.24127763509750366,
-0.1708480417728424,
-0.5427945852279663,
0.018699733540415764,
0.16955016553401947,
-0.0006475298432633281,
-0.4370047152042389,
-0.07227183133363724,
0.2889871597290039,
-0.5718361139297485,
0.2891803085... | |
when the webservice calls are processed? How can we accomplish one of these, what are some other alternatives?
You can build one with the [`HttpListener`](http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx) class to listen for incoming requests and the [`HttpWebRequest`](http://msdn.microsoft.com/en-u... | [
0.2594428062438965,
-0.4475853443145752,
0.32437586784362793,
0.3231951594352722,
-0.2287941724061966,
-0.1490783989429474,
0.19867557287216187,
-0.15665268898010254,
-0.15163129568099976,
-0.8738495707511902,
-0.1423024833202362,
0.6716237664222717,
-0.22160829603672028,
0.168453678488731... | |
I'm developing a website (using asp.net by the way) and I'm having a problem with IE6.
When I use some icons near links, using background-image and padding-left on the links, the icons display nice on FF and Chrome but in IE6 they take a kind of "gray" background, and sometimes the flash strangely.
Any ideas? is ther... | [
0.5327293276786804,
0.16492705047130585,
0.0878211185336113,
-0.21394997835159302,
-0.5676376819610596,
-0.2903141975402832,
0.3363252282142639,
0.15167056024074554,
-0.43355807662010193,
-0.6863813400268555,
0.014674048870801926,
0.40346744656562805,
-0.4185604453086853,
0.121394954621791... | |
freaks out and renders that part the light gray I believe you are seeing. The javascript fix applies a filter to all the .pngs in the page. However, this does not work on .pngs that have been set as backgrounds via css. | [
0.17761410772800446,
-0.1130690649151802,
0.1206890270113945,
0.2798846662044525,
-0.09082727879285812,
-0.16678386926651,
0.3102705478668213,
0.3176194131374359,
-0.1549714207649231,
-0.48048973083496094,
-0.08134183287620544,
-0.0026623078156262636,
-0.25529155135154724,
0.10677824914455... | |
Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts....
Correction: Whether they're precompiled depends on the database. In SQL Server, for instance, they're not. Sto... | [
-0.02223573997616768,
0.006032219156622887,
0.46017810702323914,
0.11516574770212173,
-0.20685844123363495,
-0.08727237582206726,
0.14633628726005554,
-0.2169894129037857,
-0.4636765420436859,
-0.4001542627811432,
0.15405239164829254,
0.5263440608978271,
-0.23826977610588074,
-0.4904414713... | |
that extend many of the performance benefits of stored procedures to all SQL statements. SQL Server 2000 and SQL Server 7.0 do not save a partially compiled plan for stored procedures when they are created. A stored procedure is compiled at execution time, like any other Transact-SQL statement. SQL Server 2000 and SQL ... | [
0.18293404579162598,
0.0043413592502474785,
0.14292113482952118,
0.06480616331100464,
0.2330649048089981,
0.03511349484324455,
0.07141397148370743,
-0.06596571952104568,
-0.3958929479122162,
-0.46702492237091064,
-0.49092426896095276,
0.26273801922798157,
-0.24317684769630432,
-0.261616736... | |
When you use the PHP [copy](http://us2.php.net/manual/en/function.copy.php) function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file?
The obvious solution would be to call [file\_exists](http://us2.p... | [
0.039518844336271286,
0.08246789872646332,
0.03692224249243736,
0.193311870098114,
0.45788195729255676,
-0.3397873342037201,
0.332024484872818,
-0.17983239889144897,
-0.03488077223300934,
-0.4987596571445465,
0.029381532222032547,
0.6382536888122559,
-0.2017897665500641,
0.0682359188795089... | |
set the mode to 'x'. This tells [fopen](http://us2.php.net/manual/en/function.fopen.php) to create the file, but only if it doesn't exist. If it exists, [fopen](http://us2.php.net/manual/en/function.fopen.php) will fail, and you'll know that you couldn't create the file. If it succeeds, you will have a created a file a... | [
0.35270819067955017,
0.09926055371761322,
0.38456934690475464,
0.03478259965777397,
0.2045997828245163,
-0.36124753952026367,
0.654217541217804,
-0.05216594412922859,
0.05529004707932472,
-0.6463657021522522,
-0.21702761948108673,
0.6813089847564697,
-0.359568327665329,
0.21431957185268402... | |
create-only mode (mode 'x'). If it succeeds, the file did not
// exist before, and we've successfully created it, meaning we own the
// file. After that, we can safely copy over our own file.
$filename = 'sourcefile.txt'
$copyname = 'sourcefile_copy.txt'
if ($file = @fopen($copyname, 'x')) {
// We've successfull... | [
0.46550753712654114,
-0.019707512110471725,
0.6784849166870117,
-0.008923886343836784,
0.37136363983154297,
-0.4220162630081177,
0.1840871274471283,
-0.19803045690059662,
0.1596444696187973,
-0.49378907680511475,
-0.46794310212135315,
0.6563137173652649,
-0.4640883207321167,
0.140366852283... | |
// Now we copy over the file we created.
if (!@copy($filename, $copyname)) {
// The copy failed, even though we own the file, so we'll clean
// up by itrying to remove the file and report failure.
unlink($copyname);
return false;
}
return true;
}
``` | [
0.4807042181491852,
0.37070903182029724,
0.5424244999885559,
-0.12056193500757217,
0.432889461517334,
-0.3479635715484619,
0.4237981140613556,
-0.07354677468538284,
-0.12155777215957642,
-0.5490772128105164,
-0.3923819661140442,
0.720187783241272,
-0.20707157254219055,
0.6673726439476013,
... | |
I find it curious that the most obvious way to create `Date` objects in Java has been deprecated and appears to have been "substituted" with a not so obvious to use lenient calendar.
How do you check that a date, given as a combination of day, month, and year, is a valid date?
For instance, 2008-02-31 (as in yyyy-mm-... | [
0.366832971572876,
0.023166833445429802,
0.4258895516395569,
0.03591055050492287,
-0.11317404359579086,
-0.23394769430160522,
0.1832209676504135,
-0.11298929899930954,
-0.2993594706058502,
-0.283983439207077,
-0.027988629415631294,
0.40186643600463867,
-0.11108829081058502,
0.0406424030661... | |
calendar instance and set the time using your date, this is how you get the validation.
```
Calendar cal = Calendar.getInstance();
cal.setLenient(false);
cal.setTime(yourDate);
try {
cal.getTime();
}
catch (Exception e) {
System.out.println("Invalid date");
}
``` | [
0.3613717257976532,
-0.0558847114443779,
0.611748993396759,
-0.12799055874347687,
0.17989462614059448,
-0.07216303795576096,
0.2168729156255722,
-0.019969861954450607,
-0.22300194203853607,
-0.4952389597892761,
-0.06368321180343628,
0.7106564044952393,
-0.2751270830631256,
0.09704872965812... | |
I need a simple app to edit database tables. Are there any code generators that will generate winforms in c#? I have CodeSmith, are there any templates around that would help in doing this?
SQL Management Studio.
Serious answer, .NetTiers for codesmith might help you out. | [
0.49337542057037354,
0.25423482060432434,
0.004956808406859636,
0.5593363642692566,
-0.021029915660619736,
-0.07858496904373169,
0.39550408720970154,
0.25150442123413086,
-0.06712333112955093,
-0.8189054727554321,
0.2916068136692047,
0.5143778920173645,
0.02837667241692543,
-0.000106079620... | |
So, from my experience, masterpages sometimes can lag when you do updates. This is not a new occurance, you make a change, you build, you go to test and the MasterPage is still looking for the old control.
Anyone have any tips/tricks they use when this happens? Usually it goes away after a while, but I don't have a w... | [
0.29641076922416687,
-0.22531108558177948,
0.41528454422950745,
0.13246414065361023,
-0.14366275072097778,
-0.40633827447891235,
0.617336094379425,
-0.20994196832180023,
-0.2481183260679245,
-0.6674442887306213,
-0.13054287433624268,
0.7661424279212952,
-0.14569266140460968,
0.169036537408... | |
an IISReset)
* Call IISRESET directly from the command line | [
-0.1357826590538025,
-0.022502854466438293,
0.1602596789598465,
0.058295026421546936,
-0.07044447958469391,
-0.32005199790000916,
0.6986948847770691,
-0.07323325425386429,
0.10942447930574417,
-0.6123218536376953,
-0.6753425598144531,
0.12085338681936264,
-0.23175066709518433,
0.2664749920... | |
In Java, given a timestamp, how to reset the time part alone to 00:00:00 so that the timestamp represents the midnight of that particular day ?
In T-SQL, this query will do to achieve the same, but I don't know how to do this in Java.
`SELECT CAST( FLOOR( CAST(GETDATE() AS FLOAT ) ) AS DATETIME) AS 'DateTimeAtMidnigh... | [
0.4086056649684906,
-0.285622775554657,
0.413765013217926,
-0.1772063672542572,
0.23015499114990234,
-0.09193175286054611,
0.03945561498403549,
-0.16584450006484985,
-0.18066053092479706,
-0.6323915719985962,
0.004538106266409159,
0.346578985452652,
-0.20522011816501617,
0.1757580339908599... | |
// set cal to date
cal.set(Calendar.HOUR_OF_DAY, 0); // set hour to midnight
cal.set(Calendar.MINUTE, 0); // set minute in hour
cal.set(Calendar.SECOND, 0); // set second in minute
cal.set(Calendar.MILLISECOND, 0); | [
0.49259713292121887,
-0.4233704209327698,
0.2942136228084564,
-0.1131092980504036,
-0.00872752070426941,
0.4535607695579529,
0.0219496451318264,
-0.019658654928207397,
0.3340691328048706,
-0.5729156136512756,
0.09491204470396042,
0.5455180406570435,
-0.0523209422826767,
0.24455036222934723... | |
// set millis in second
Date zeroedDate = cal.getTime(); // actually computes the new Date
```
I love Java dates.
Note that if you're using actual java.sql.Timestamps, they have an extra nanos field. Calendar of course, knows nothing of nanos so will blindly ignore it and effectively drop it when creatin... | [
0.5946046710014343,
-0.15923012793064117,
0.16077882051467896,
0.027504729107022285,
0.019410032778978348,
-0.06667465716600418,
0.114601731300354,
0.05114276707172394,
-0.011122925207018852,
-0.8423760533332825,
0.4360823929309845,
0.35225674510002136,
-0.13224105536937714,
0.289300769567... | |
called from multiple threads to avoid creating new Calendar instances. | [
0.29395583271980286,
-0.08616697043180466,
0.003392627229914069,
0.34319308400154114,
-0.009358419105410576,
0.1450895220041275,
0.13484764099121094,
0.0679352805018425,
-0.42251989245414734,
-0.5272153615951538,
-0.22761507332324982,
0.3062158524990082,
-0.25949373841285706,
0.27006641030... | |
I'm writing a class that renders some content in WPF, and I want to give the user control over how the content is rendered. The rendering is mostly stroking lines, so I decided to look to the System.Windows.Forms.Shapes.Line class to get an idea of what properties I might want to implement. This led me to implement mos... | [
0.30204758048057556,
-0.0873260498046875,
0.7257264256477356,
-0.11677223443984985,
-0.2501697838306427,
0.18834266066551208,
-0.20748335123062134,
-0.5143162608146667,
0.19857347011566162,
-0.8280951976776123,
0.2058962881565094,
0.5318182110786438,
-0.130318284034729,
0.1514902263879776,... | |
lose the ability to set coercion and property changed callbacks, but it looks like the overload that takes a PropertyMetadata allows this. The only downside I can see is if the implementation of Shape changes, it will affect our class, but I'm uncertain how often I expect the .NET interfaces to change significantly.
W... | [
0.4974372684955597,
-0.050166767090559006,
0.01786203496158123,
0.358365923166275,
0.11089450120925903,
-0.4833482801914215,
0.30440542101860046,
-0.30254003405570984,
-0.013863415457308292,
-0.7514779567718506,
0.25057271122932434,
0.7754900455474854,
0.029189303517341614,
0.1629809886217... | |
[following](http://www.drwpf.com/blog/Home/tabid/36/EntryID/20/Default.aspx) post by Dr WPF about the subject!
Here is a few of the "tips" he provide:
* You should always know what the owner class does with any property you borrow.
* You should pay attention to default values and inheritance. Sometimes you need a boo... | [
0.5246292352676392,
0.16160650551319122,
0.15935800969600677,
-0.020698826760053635,
-0.17330864071846008,
-0.34970623254776,
0.3571193218231201,
0.04008978232741356,
-0.419750452041626,
-0.4234006404876709,
-0.380440890789032,
0.506630003452301,
0.01556033082306385,
0.3741529583930969,
... | |
with your ability to use the property as you wish. Always know what the owner class does with the property.
* The owner class may provide a validation routine for the property that prevents you from entering the value you want to specify. Again, always know what the owner class does with the property.
The property may ... | [
0.683837354183197,
-0.1256239116191864,
0.3225298821926117,
0.3042052090167999,
0.3454415202140808,
-0.423096239566803,
0.5138290524482727,
0.03645997866988182,
-0.49375370144844055,
-0.6179263591766357,
-0.22420598566532135,
0.5175908207893372,
0.06743542850017548,
0.2690916657447815,
-... | |
the owner class does with the property.
* If you use a property in a scenario where the framework itself is trying to use the property (such as TextSearch.TextPath on an ItemsControl), you are liable to find yourself in contention with the framework. | [
-0.0487465001642704,
-0.05594770982861519,
-0.10249689966440201,
0.2846943140029907,
-0.2577732503414154,
-0.3751923739910126,
0.3105441927909851,
-0.14476121962070465,
-0.10326578468084335,
-0.6617465615272522,
-0.44342780113220215,
0.5704825520515442,
-0.11565804481506348,
0.299763530492... | |
I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can show or hide based upon some UI logic in the code behind. I am usual... | [
0.38555753231048584,
0.12234000116586685,
0.39993369579315186,
0.08480103313922882,
-0.1365966796875,
-0.037737973034381866,
0.15483994781970978,
-0.17109735310077667,
-0.2812662422657013,
-0.5295707583427429,
0.02236844226717949,
0.2002888321876526,
-0.21447548270225525,
0.196040928363800... | |
just set each TR to runat server and show/hide each of them individually, but there must be a better way. I have seen the PlaceHolder control used for this scenario, but wanted to know if anyone does this or has any other suggestions.
I don't think there is a single answer that is true for all scenarios - we don't have... | [
0.440999835729599,
-0.20912116765975952,
0.12159035354852676,
0.4445698857307434,
-0.04130382463335991,
0.047620873898267746,
-0.20799946784973145,
-0.32519158720970154,
-0.2616656720638275,
-0.48267862200737,
0.2757331430912018,
0.6381614804267883,
0.0697614774107933,
0.10659961402416229,... | |
When I have a table and need to hide an individual table row, I have no compunctions with adding and id and runat="server" to the tr either.
Or, for times when I need to make a great big table of editor controls (this fits 90% of the times when I would want to hide a single table row) I've even made a control that aut... | [
-0.17512774467468262,
0.16815423965454102,
0.4790421724319458,
0.09125949442386627,
0.18182416260242462,
-0.01149702724069357,
0.11719083040952682,
-0.003887619823217392,
-0.2409956008195877,
-0.454805850982666,
0.042124077677726746,
0.8003560304641724,
-0.19438987970352173,
-0.27454075217... | |
the text box or other editor control. The positive side effect is that my custom control gives me an ID I can set Visible on as well. | [
0.10906074196100235,
-0.018109451979398727,
0.3880595564842224,
0.2130039632320404,
0.17837406694889069,
-0.18012285232543945,
0.114827960729599,
0.043853454291820526,
-0.06866677105426788,
-0.4882468581199646,
-0.1923845112323761,
0.6751275658607483,
-0.2736871838569641,
-0.17270562052726... | |
Our automated builds and tests are taking an increasing amount of resources, especially since we support many platforms and test in both debug and optimized. So, I'm looking for some tool support that would allow a more incremental "pipeline" approach so we could get feedback and results faster. Some ideal characterist... | [
0.4546360671520233,
0.1191185936331749,
0.06775134056806564,
0.086769238114357,
-0.005126188043504953,
0.01906452141702175,
0.34158220887184143,
-0.33574390411376953,
0.039232876151800156,
-0.5160796046257019,
0.2292127013206482,
0.8349832892417908,
-0.1612766534090042,
-0.2609124779701233... | |
Support for multiple build and test tools (including custom).
4. Support for multiple platforms (Linux, Mac, possibly Windows).
5. Some archiving ability would be great, things like log files, build/test output, etc. Naturally, this can get unmanageably large so some data would ideally be purged after X many days or Y ... | [
0.0686378926038742,
-0.17594914138317108,
0.03007863648235798,
0.19989930093288422,
0.22638942301273346,
0.09241627156734467,
0.0075350599363446236,
-0.02630694955587387,
-0.20059387385845184,
-0.551907479763031,
0.00043208218994550407,
0.3590044677257538,
-0.07179728895425797,
0.238628387... | |
I have ListView with Grouping Items. Grouping uses custom GroupStyle (Expander). I would like to have check box which will Expand and collapse all groups when. It works fine untill I click manually on the group header and expand or collapse that group. After clicking that particular group stops to respond on check box ... | [
0.08783001452684402,
0.1489371806383133,
0.45652708411216736,
-0.15798038244247437,
-0.6122480630874634,
-0.10392241925001144,
0.4018741846084595,
-0.3505697250366211,
-0.2423618733882904,
-0.6573468446731567,
-0.007045404054224491,
0.2394573986530304,
-0.2274138480424881,
0.32477000355720... | |
<x:XData>
<Info xmlns="">
<Item Name="Item 1" Category="Cat1" />
<Item Name="Item 2" Category="Cat1" />
<Item Name="Item 3" Category="Cat2" /> | [
-0.1251295655965805,
-0.2547464966773987,
0.22693459689617157,
0.06955458968877792,
-0.47241148352622986,
0.2178463339805603,
-0.04477967694401741,
-0.26322466135025024,
-0.48475542664527893,
-0.31142428517341614,
-0.30627912282943726,
0.038814544677734375,
-0.39705711603164673,
0.18122032... | |
<Item Name="Item 4" Category="Cat2" />
<Item Name="Item 5" Category="Cat2" />
<Item Name="Item 6" Category="Cat3" />
</Info>
</x:XData> | [
-0.21248582005500793,
-0.17369341850280762,
0.14705373346805573,
0.1973128616809845,
-0.2752665579319,
0.35768723487854004,
0.12432197481393814,
-0.07117259502410889,
-0.6064586043357849,
-0.2825033962726593,
-0.3516165018081665,
-0.028505073860287666,
-0.23802340030670166,
0.2182132601737... | |
</XmlDataProvider>
<CollectionViewSource x:Key='src' Source="{Binding Source={StaticResource MyData}, XPath=Item}">
<CollectionViewSource.GroupDescriptions>
<PropertyGroupDescription PropertyName="@Category" />
</CollectionViewSource.GroupDescriptions>
</Collecti... | [
0.19759199023246765,
-0.31557223200798035,
0.554542064666748,
0.10043728351593018,
-0.09483469277620316,
-0.14590579271316528,
-0.1814846247434616,
-0.6453924179077148,
-0.30179986357688904,
-0.4063546061515808,
-0.09151411801576614,
0.43433284759521484,
-0.14378753304481506,
0.32605209946... | |
ItemsSource='{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ItemsSource}'
DisplayMemberPath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DisplayMemberPath}">
<ListView.GroupStyle>
<GroupStyle> | [
-0.1804812252521515,
-0.19605882465839386,
0.45919495820999146,
-0.06866911053657532,
-0.08052340149879456,
0.37072476744651794,
0.13051070272922516,
-0.38364073634147644,
-0.320529580116272,
-0.7886660099029541,
-0.2262285351753235,
-0.10011351853609085,
-0.09796657413244247,
0.1811856627... | |
<GroupStyle.ContainerStyle>
<Style TargetType="{x:Type GroupItem}">
<Setter Property="Margin" Value="0,0,0,5" />
<Setter | [
0.06817985326051712,
-0.2404136210680008,
0.22062936425209045,
0.007461788598448038,
-0.025757262483239174,
-0.08649703860282898,
-0.28067004680633545,
-0.5499353408813477,
-0.10313281416893005,
-0.24342647194862366,
0.0020732171833515167,
0.1252274364233017,
-0.16406549513339996,
-0.08657... | |
Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}"> | [
0.17388920485973358,
-0.3436211347579956,
-0.22359760105609894,
-0.04938497021794319,
0.033951420336961746,
-0.1494692713022232,
0.0158129520714283,
-0.7374784350395203,
0.23243632912635803,
-0.5493355393409729,
-0.07717416435480118,
0.3016800582408905,
-0.384436696767807,
0.18963943421840... | |
<Expander IsExpanded="{Binding IsChecked, ElementName=chkExpandAll, Mode=OneWay}">
<Expander.Header> | [
-0.07344529032707214,
-0.40429985523223877,
0.33113861083984375,
-0.1431267261505127,
0.0647687166929245,
-0.4134540557861328,
0.012300520204007626,
-0.21447725594043732,
-0.30331993103027344,
-0.61154705286026,
-0.308484822511673,
0.11022333055734634,
-0.6275442242622375,
0.34789198637008... | |
<DockPanel>
<TextBlock FontWeight="Bold" Text="{Binding Path=Name}" Margin="5,0,0,0" Width="100" /> | [
0.1487802267074585,
0.0905158519744873,
0.8426838517189026,
-0.24374127388000488,
-0.005782383494079113,
0.5290253758430481,
-0.12114933878183365,
-0.4865947365760803,
-0.4859749376773834,
-0.483415424823761,
0.09115244448184967,
0.4455684423446655,
0.14211979508399963,
-0.1895772963762283... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.