text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
is the case/turn it off:
1. In the Properties pages for any Web site or Web virtual directory, click the Home Directory or Virtual Directory tab.
2. Under Application Settings, click Configuration. An application must be created for the button to be active.
3. Click the Debugging tab.
4. Un-check the Enable ASP server... | [
0.19859842956066132,
0.030204415321350098,
0.637782871723175,
-0.2203248292207718,
0.31179866194725037,
-0.2919395864009857,
0.23774190247058868,
-0.16320909559726715,
0.08443782478570938,
-0.46840497851371765,
-0.44370630383491516,
0.7915910482406616,
-0.38557279109954834,
0.1209972500801... | |
A Y-combinator is a computer science concept from the “functional” side of things. Most programmers don't know much at all about combinators, if they've even heard about them.
* What is a Y-combinator?
* How do combinators work?
* What are they good for?
* Are they useful in procedural languages?
If you're ready for a... | [
0.35883718729019165,
-0.008539930917322636,
-0.1957351267337799,
0.14665503799915314,
-0.20856043696403503,
-0.3053632974624634,
0.4369422197341919,
0.12603101134300232,
-0.04925694689154625,
-0.0858648344874382,
-0.37686437368392944,
0.4379582405090332,
-0.410454660654068,
-0.027777247130... | |
What is the difference between Views and Materialized Views in Oracle?
Materialized views are disk based and are updated periodically based upon the query definition.
Views are virtual only and run the query definition each time they are accessed. | [
0.22722919285297394,
-0.2752218246459961,
0.4472581446170807,
0.5720953941345215,
-0.03629075363278389,
0.28977715969085693,
-0.40363186597824097,
0.15871661901474,
-0.18315249681472778,
-0.42893919348716736,
0.049365054816007614,
0.5199253559112549,
-0.14309541881084442,
0.139911651611328... | |
I have a custom user control with a textbox on it and I'd like to expose the baseline (of the text in the textbox) snapline outside of the custom control. I know that you create a designer (inherited from ControlDesigner) and override SnapLines to get access to the snaplines, but I'm wondering how to get the text basel... | [
0.32522091269493103,
-0.1270204335451126,
0.08325372636318207,
0.14661136269569397,
0.13466380536556244,
-0.28246885538101196,
-0.032803554087877274,
-0.1268644630908966,
-0.04795859381556511,
-0.6976504325866699,
0.09379246830940247,
0.7323477268218994,
-0.6165854334831238,
-0.05751625075... | |
IList snapLines = base.SnapLines;
MyControl control = Control as MyControl;
if (control == null) { return snapLines; }
IDesigner designer = TypeDescriptor.CreateDesigner(
control.textBoxValue, typeof(IDesigner));
if (designer == null) { return snapLines; }
designer.... | [
-0.2854142189025879,
-0.7319299578666687,
0.11199633032083511,
-0.10112293064594269,
-0.14692246913909912,
0.39408519864082336,
0.24964283406734467,
-0.35674574971199036,
0.03608035668730736,
-0.7283779978752136,
-0.22106905281543732,
0.2509125769138336,
-1.0065897703170776,
0.013936718925... | |
ControlDesigner boxDesigner = designer as ControlDesigner;
if (boxDesigner == null) { return snapLines; }
foreach (SnapLine line in boxDesigner.SnapLines)
{
if (line.SnapLineType == SnapLineType.Baseline)
{ | [
-0.09845755249261856,
-0.685445249080658,
0.1262897253036499,
-0.1590915024280548,
-0.012976978905498981,
0.20139913260936737,
0.304180771112442,
-0.26526397466659546,
0.11003430187702179,
-0.3862505853176117,
-0.14622558653354645,
0.19955651462078094,
-0.7598164081573486,
0.15310984849929... | |
snapLines.Add(new SnapLine(SnapLineType.Baseline,
line.Offset + control.textBoxValue.Top,
line.Filter, line.Priority));
break; | [
-0.21077746152877808,
-0.7079269886016846,
0.2796153128147125,
-0.06757239252328873,
-0.00929898489266634,
0.32349494099617004,
-0.011245389468967915,
0.006413897965103388,
-0.16675975918769836,
-0.37294480204582214,
-0.6608425378799438,
0.27725717425346375,
-0.5540483593940735,
-0.1437892... | |
}
}
}
return snapLines;
}
}
```
This way it's actually creating a temporary sub-designer for the subcontrol in order to find out where the "real" baseline snapline is.
This seemed reasonably performant in testing, but if perf becomes a concern (and if the internal textbox doesn't mov... | [
-0.113015316426754,
-0.30330532789230347,
0.27166831493377686,
-0.21633338928222656,
0.10774647444486618,
-0.06722631305456161,
0.15989220142364502,
-0.12212976813316345,
-0.04845790937542915,
-0.556546688079834,
-0.2378215789794922,
0.4895550310611725,
-0.46587038040161133,
-0.19714254140... | |
there are other layout-affecting controls in the way then the offset calculation becomes a bit more complicated. | [
0.21445222198963165,
0.08937856554985046,
0.5119372010231018,
0.2567276656627655,
0.05419107899069786,
-0.07757856696844101,
-0.42746245861053467,
-0.3713889420032501,
-0.20229557156562805,
-0.7217811346054077,
0.22122898697853088,
0.5084952712059021,
-0.036362193524837494,
-0.113054133951... | |
For example, if I declare a long variable, can I assume it will always be aligned on a "sizeof(long)" boundary? Microsoft Visual C++ online help says so, but is it standard behavior?
some more info:
a. It is possible to explicitely create a misaligned integer (\*bar):
> char foo[5]
>
>
> int \* bar = (int \*)(&foo... | [
0.12354517728090286,
-0.14842002093791962,
0.3574182987213135,
-0.11026168614625931,
0.281334787607193,
-0.22354993224143982,
-0.145560622215271,
-0.41055384278297424,
-0.3810884654521942,
-0.47597694396972656,
-0.03813399374485016,
0.43115702271461487,
-0.5778607130050659,
0.1845383942127... | |
is left up to the compiler to implement as it sees fit for the processor in question. For example, VC could easily implement different alignment requirements for an ARM processor than it does for x86 processors.
Microsoft VC implements what is basically called natural alignment up to the size specified by the #pragma ... | [
0.02113606221973896,
-0.23972412943840027,
0.43560895323753357,
0.005453590303659439,
0.0968923419713974,
0.09684859216213226,
-0.192548006772995,
-0.18362724781036377,
-0.29914841055870056,
-0.7461514472961426,
-0.2971722185611725,
0.3719571828842163,
-0.19169723987579346,
-0.045373387634... | |
alignment for different processors and different compilers, then you can use a packing size of 1 and pad your structures.
```
#pragma pack(push)
#pragma pack(1)
struct Example
{
short data1; // offset 0
short padding1; // offset 2
long data2; // offset 4
};
#pragma pack(pop)
```
In this code, ... | [
-0.09029774367809296,
-0.16078829765319824,
0.4659547507762909,
-0.26742273569107056,
-0.17288058996200562,
0.1536082625389099,
-0.1189408078789711,
-0.6480552554130554,
-0.1407020539045334,
-0.6351518034934998,
0.05657803267240524,
0.5950953960418701,
-0.5361009240150452,
-0.3834288418292... | |
a crash or a very slow execution. For example, the Alpha processor would throw a processor exception which would be caught by the OS. The OS would then inspect the instruction and then do the work needed to handle the misaligned data. Then execution continues. The `__unaligned` keyword can be used in VC to mark unalign... | [
0.13231010735034943,
0.06894279271364212,
0.3450015187263489,
0.1494487226009369,
0.30038687586784363,
-0.11642368137836456,
0.3470465838909149,
-0.02525729313492775,
-0.24173572659492493,
-0.5974958539009094,
-0.739624559879303,
0.2492326945066452,
-0.27419519424438477,
0.5859434008598328... | |
I have a question about using streams in .NET to load files from disk. I am trying to pinpoint a performance problem and want to be sure it's where I think it is.
```
Dim provider1 As New MD5CryptoServiceProvider
Dim stream1 As FileStream
stream1 = New FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Re... | [
0.32474252581596375,
-0.16876453161239624,
0.4866294860839844,
-0.25384074449539185,
-0.22536952793598175,
-0.022231053560972214,
0.04653637111186981,
-0.0008334307931363583,
-0.2871682047843933,
-0.6971009373664856,
-0.18366073071956635,
0.7105079889297485,
-0.2771831452846527,
0.18012879... | |
that the performance problem is in the hashing and not in the disk access.
FileStream simply exposes an IO.Stream around a file object, and uses buffers. It doesn't read the entire file in the constructor (the file could be larger than RAM).
The performance issue is most likely in the hashing, and you can perform som... | [
0.02489679865539074,
0.07565691322088242,
0.15374404191970825,
0.06178561970591545,
0.12223988026380539,
-0.12485920637845993,
0.09295767545700073,
-0.04651735723018646,
-0.13215428590774536,
-0.5905879735946655,
-0.11727900058031082,
0.8393535614013672,
-0.11050514131784439,
-0.1883057206... | |
.Read() method that ComputeHash will call. | [
0.007928217761218548,
0.048135995864868164,
0.05389498919248581,
0.4166416525840759,
0.1723378300666809,
-0.4096207022666931,
0.13271981477737427,
0.10596704483032227,
0.06947413831949234,
-0.48911458253860474,
-0.06018541753292084,
0.39397701621055603,
-0.4217011332511902,
0.1601268500089... | |
How do you apply stroke (outline around text) to a textblock in xaml in WPF?
Below is my more idiomatically WPF, full-featured take on this. It supports pretty much everything you'd expect, including:
* all font related properties including stretch and style
* text alignment (left, right, center, justify)
* text wrapp... | [
0.17686425149440765,
-0.08776616305112839,
0.6680057644844055,
-0.2863181233406067,
-0.3111923635005951,
0.1875431090593338,
0.052553676068782806,
-0.6725283861160278,
0.029193684458732605,
-0.865884006023407,
0.05133489519357681,
0.6578832864761353,
-0.24502238631248474,
-0.38825196027755... | |
the control:
```cs
using System;
using System.ComponentModel;
using System.Globalization;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Markup;
using System.Windows.Media;
[ContentProperty("Text")]
public class OutlinedTextBlock : FrameworkElement
{
public static readonly DependencyPr... | [
-0.2412605583667755,
-0.18004785478115082,
0.7737617492675781,
0.10087599605321884,
0.0816887766122818,
0.3903355896472931,
0.21100573241710663,
-0.5494081377983093,
0.02864418923854828,
-0.5530720353126526,
-0.27606481313705444,
0.6950289607048035,
-0.5400226712226868,
0.2651379108428955,... | |
FrameworkPropertyMetadataOptions.AffectsRender));
public static readonly DependencyProperty StrokeThicknessProperty = DependencyProperty.Register(
"StrokeThickness",
typeof(double),
typeof(OutlinedTextBlock),
new FrameworkPropertyMetadata(1d, FrameworkPropertyMetadataOptions.Affects... | [
-0.24310122430324554,
0.09101118892431259,
0.8642823696136475,
-0.15539106726646423,
-0.1520046442747116,
0.5594451427459717,
0.4876942038536072,
-0.686512291431427,
-0.03235932067036629,
-0.6754726767539978,
-0.1806129664182663,
0.64271479845047,
-0.5744355320930481,
-0.002358574187383055... | |
public static readonly DependencyProperty FontStretchProperty = TextElement.FontStretchProperty.AddOwner(
typeof(OutlinedTextBlock),
new FrameworkPropertyMetadata(OnFormattedTextUpdated));
public static readonly DependencyProperty FontStyleProperty = TextElement.FontStyleProperty.AddOwner(
... | [
-0.08736210316419601,
0.21304851770401,
0.548513650894165,
-0.02983207069337368,
0.10854978859424591,
0.39362001419067383,
0.37186193466186523,
-0.0972571149468422,
-0.04571487382054329,
-0.37444862723350525,
-0.5214290022850037,
0.6817466020584106,
-0.570838987827301,
0.32277387380599976,... | |
typeof(string),
typeof(OutlinedTextBlock),
new FrameworkPropertyMetadata(OnFormattedTextInvalidated));
public static readonly DependencyProperty TextAlignmentProperty = DependencyProperty.Register(
"TextAlignment",
typeof(TextAlignment),
typeof(OutlinedTextBlock),
ne... | [
-0.23222824931144714,
0.08184893429279327,
0.6143065690994263,
-0.1664227396249771,
0.21663299202919006,
0.2767481803894043,
0.39714667201042175,
-0.2857629060745239,
-0.027049848809838295,
-0.6046971082687378,
-0.5537539124488831,
0.5349476933479309,
-0.48706406354904175,
0.12621647119522... | |
new FrameworkPropertyMetadata(OnFormattedTextUpdated));
public static readonly DependencyProperty TextTrimmingProperty = DependencyProperty.Register(
"TextTrimming",
typeof(TextTrimming),
typeof(OutlinedTextBlock),
new FrameworkPropertyMetadata(OnFormattedTextUpdated));
public ... | [
-0.11343006044626236,
-0.19045375287532806,
0.8073370456695557,
-0.0014231893001124263,
0.07027129083871841,
0.04449161887168884,
0.5845853686332703,
-0.5344314575195312,
-0.09983460605144501,
-0.5646500587463379,
-0.5190434455871582,
0.7371290326118469,
-0.4752839505672455,
0.230334669351... | |
FormattedText formattedText;
private Geometry textGeometry;
public OutlinedTextBlock()
{
this.TextDecorations = new TextDecorationCollection();
}
public Brush Fill
{
get { return (Brush)GetValue(FillProperty); }
set { SetValue(FillProperty, value); }
}
public F... | [
-0.15331204235553741,
-0.40316563844680786,
1.1162049770355225,
-0.22234047949314117,
-0.21342138946056366,
0.3419494330883026,
0.24971435964107513,
-0.6003947257995605,
0.24185840785503387,
-0.8180133104324341,
-0.29282957315444946,
0.4620646834373474,
-0.2531968951225281,
0.0284968819469... | |
{ SetValue(FontFamilyProperty, value); }
}
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize
{
get { return (double)GetValue(FontSizeProperty); }
set { SetValue(FontSizeProperty, value); }
}
public FontStretch FontStretch
{
get { return (FontStretch)... | [
0.12782029807567596,
-0.1175374686717987,
0.6669212579727173,
-0.38073205947875977,
-0.17308180034160614,
0.41501298546791077,
0.3778112828731537,
-0.3483685851097107,
0.13939060270786285,
-0.6976406574249268,
-0.45826563239097595,
0.5507698059082031,
-0.49217644333839417,
-0.1497406512498... | |
get { return (FontStyle)GetValue(FontStyleProperty); }
set { SetValue(FontStyleProperty, value); }
}
public FontWeight FontWeight
{
get { return (FontWeight)GetValue(FontWeightProperty); }
set { SetValue(FontWeightProperty, value); }
}
public Brush Stroke
{
get ... | [
-0.146274596452713,
-0.36224424839019775,
0.9409695863723755,
-0.2020886391401291,
-0.270354688167572,
0.6802464127540588,
0.11118556559085846,
-0.663353443145752,
0.23918232321739197,
-0.7362398505210876,
0.015062120743095875,
0.6383373141288757,
-0.15028847754001617,
0.020085539668798447... | |
}
public double StrokeThickness
{
get { return (double)GetValue(StrokeThicknessProperty); }
set { SetValue(StrokeThicknessProperty, value); }
}
public string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
publ... | [
-0.2054925113916397,
-0.16483281552791595,
0.6317204236984253,
-0.19198590517044067,
-0.027354544028639793,
0.3400620222091675,
0.4417576789855957,
-0.44246065616607666,
0.061515625566244125,
-0.3669756054878235,
-0.4008086621761322,
0.904218852519989,
-0.38396215438842773,
-0.173238903284... | |
set { SetValue(TextAlignmentProperty, value); }
}
public TextDecorationCollection TextDecorations
{
get { return (TextDecorationCollection)this.GetValue(TextDecorationsProperty); }
set { this.SetValue(TextDecorationsProperty, value); }
}
public TextTrimming TextTrimming
{
... | [
-0.10742504149675369,
-0.29777833819389343,
0.9460774064064026,
-0.10629700124263763,
0.17835845053195953,
-0.13514961302280426,
0.46709683537483215,
-0.4360864460468292,
0.05483289435505867,
-0.49076661467552185,
-0.5144100785255432,
0.8258407711982727,
-0.42620769143104553,
-0.1029242873... | |
{
get { return (TextWrapping)GetValue(TextWrappingProperty); }
set { SetValue(TextWrappingProperty, value); }
}
protected override void OnRender(DrawingContext drawingContext)
{
this.EnsureGeometry();
drawingContext.DrawGeometry(this.Fill, new Pen(this.Stroke, this.StrokeTh... | [
-0.11463689804077148,
-0.3057180643081665,
0.7715549468994141,
-0.06876050680875778,
0.10143563151359558,
0.10750997066497803,
0.21842528879642487,
-0.6559504270553589,
-0.0009841576684266329,
-0.6919251680374146,
-0.4589415490627289,
0.7612894773483276,
-0.1455504596233368,
-0.27562543749... | |
the available size
// the Math.Min call is important - without this constraint (which seems arbitrary, but is the maximum allowable text width), things blow up when availableSize is infinite in both directions
// the Math.Max call is to ensure we don't hit zero, which will cause MaxTextHeight to throw
... | [
-0.19753628969192505,
-0.0658920407295227,
0.40732017159461975,
0.011223888024687767,
0.04791468009352684,
-0.05419434234499931,
0.40902042388916016,
-0.014801058918237686,
-0.37061184644699097,
-0.4524237811565399,
-0.3607564866542816,
0.685413122177124,
-0.04632667079567909,
0.0184813123... | |
return new Size(this.formattedText.Width, this.formattedText.Height);
}
protected override Size ArrangeOverride(Size finalSize)
{
this.EnsureFormattedText();
// update the formatted text with the final size
this.formattedText.MaxTextWidth = finalSize.Width;
this.formattedTe... | [
-0.24513646960258484,
-0.29319262504577637,
0.8691018223762512,
-0.15772521495819092,
0.41213271021842957,
-0.17382052540779114,
0.07993096858263016,
-0.5845118761062622,
0.04432636499404907,
-0.7725114226341248,
-0.6134761571884155,
0.5421488285064697,
-0.012254945002496243,
-0.0646814480... | |
return finalSize;
}
private static void OnFormattedTextInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
{
var outlinedTextBlock = (OutlinedTextBlock)dependencyObject;
outlinedTextBlock.formattedText = null;
outlinedTextBlock.textGeometry = null;
... | [
-0.3205350935459137,
0.004178925417363644,
0.469214528799057,
-0.4195617437362671,
0.1032034158706665,
0.0742071345448494,
0.5618910193443298,
-0.5397295951843262,
0.25573036074638367,
-0.6936523914337158,
-0.27217912673950195,
0.38010919094085693,
-0.24099089205265045,
0.2216436266899109,... | |
(OutlinedTextBlock)dependencyObject;
outlinedTextBlock.UpdateFormattedText();
outlinedTextBlock.textGeometry = null;
outlinedTextBlock.InvalidateMeasure();
outlinedTextBlock.InvalidateVisual();
}
private void EnsureFormattedText()
{
if (this.formattedText != null ||... | [
0.02695447951555252,
-0.001369895995594561,
0.43006476759910583,
-0.4400564730167389,
0.22772471606731415,
-0.35215070843696594,
0.7113041281700134,
-0.5946654081344604,
0.40800562500953674,
-0.6131861805915833,
-0.3303087651729584,
0.5751243233680725,
-0.46083638072013855,
0.0025905300863... | |
= new FormattedText(
this.Text,
CultureInfo.CurrentUICulture,
this.FlowDirection,
new Typeface(this.FontFamily, this.FontStyle, this.FontWeight, FontStretches.Normal),
this.FontSize,
Brushes.Black);
this.UpdateFormattedText();
}
p... | [
0.04252372309565544,
-0.1636369824409485,
0.5178524851799011,
-0.3874049484729767,
0.011746526695787907,
0.22667858004570007,
0.3035406470298767,
-0.48500552773475647,
0.13854660093784332,
-0.5027569532394409,
-0.2504453957080841,
0.5696657299995422,
-0.5024241209030151,
0.1657597720623016... | |
{
if (this.formattedText == null)
{
return;
}
this.formattedText.MaxLineCount = this.TextWrapping == TextWrapping.NoWrap ? 1 : int.MaxValue;
this.formattedText.TextAlignment = this.TextAlignment;
this.formattedText.Trimming = this.TextTrimming;
this.... | [
-0.06326519697904587,
-0.30170735716819763,
0.7357606291770935,
-0.389688104391098,
0.12821167707443237,
0.018190767616033554,
0.16038045287132263,
-0.5541804432868958,
-0.1250249445438385,
-0.43657442927360535,
-0.6543299555778503,
0.543631911277771,
-0.26869869232177734,
-0.1231297105550... | |
this.formattedText.SetFontFamily(this.FontFamily);
this.formattedText.SetFontStretch(this.FontStretch);
this.formattedText.SetTextDecorations(this.TextDecorations);
}
private void EnsureGeometry()
{
if (this.textGeometry != null)
{
return;
}
this... | [
0.0071131507866084576,
0.11383741348981857,
0.797474205493927,
-0.3657900094985962,
0.6198914647102356,
-0.24324887990951538,
0.6260649561882019,
-0.4646080434322357,
0.3672095537185669,
-0.5658016204833984,
-0.6195987462997437,
0.9644337296485901,
-0.3446630835533142,
-0.26842200756073,
... | |
}
}
``` | [
0.17493881285190582,
0.41805654764175415,
0.05209751054644585,
-0.04864929988980293,
0.437467485666275,
-0.15825650095939636,
0.13202530145645142,
0.5446501970291138,
0.35430577397346497,
-0.4846813380718231,
-0.2295716553926468,
0.546978771686554,
-0.3188462555408478,
0.2798506021499634,
... | |
My users would like to be able to hit `Ctrl`+`S` to save a form. Is there a good cross-browser way of capturing the `Ctrl`+`S` key combination and submit my form?
App is built on Drupal, so jQuery is available.
```
$(window).keypress(function(event) {
if (!(event.which == 115 && event.ctrlKey) && !(event.which == ... | [
0.4170543849468231,
-0.1272478699684143,
0.8384960889816284,
-0.1007244884967804,
-0.030696427449584007,
0.026105737313628197,
0.34789660573005676,
-0.39779573678970337,
0.035706814378499985,
-0.6519889831542969,
-0.05937252938747406,
0.7964504361152649,
-0.017981765791773796,
-0.019568556... | |
I remember seeing a while ago that there is some method in maybe the Reflection namespace that would recursively run `ToString()` on all of an object's properties and format it nicely for display.
Yes, I know everything I could want will be accessible through the debugger, but I'm wondering if anyone knows that comma... | [
0.39517852663993835,
-0.2412542700767517,
0.010967159643769264,
0.0976451113820076,
-0.20444077253341675,
-0.10836586356163025,
0.03495696187019348,
0.12689146399497986,
-0.12397352606058121,
-0.4539930820465088,
0.09538444131612778,
0.6393367052078247,
-0.23234760761260986,
0.083298824727... | |
that Microsoft didn't include it in the final version of Linq though, but the code is still out in the wild. I did a quick google search for it and here's a link to it:
[ObjectDumper Source Code](http://objectdumper.codeplex.com/) | [
0.4338243007659912,
-0.0944664254784584,
0.21047469973564148,
0.28347983956336975,
0.007541121914982796,
-0.6261686086654663,
0.12819349765777588,
0.24016614258289337,
-0.19011083245277405,
-0.029927516356110573,
0.08849570900201797,
0.22683165967464447,
-0.06434258073568344,
0.34062954783... | |
**How do I represent an aggregation relation between two classes in UML, such that each class has a link to the other class's interface, not the implementing class?**
E.g. I have a class Foo that implements iFoo, and Bar that implements iBar. Foo should have a member variable of type iBar, and Bar should have a member... | [
-0.09577658772468567,
-0.010804567486047745,
0.3131599426269531,
-0.25187429785728455,
-0.3422515392303467,
0.13276362419128418,
0.29982757568359375,
-0.30083245038986206,
-0.030989350751042366,
-0.5069672465324402,
0.04189785197377205,
0.28069746494293213,
-0.4536787271499634,
0.248350620... | |
will remove the title bar (at both design and
run time) - and also remove your ability to resize the form.
If you need a border you can set:
```
ControlBox = false
Text = ""
``` | [
0.6047477722167969,
0.0797845795750618,
0.7676938772201538,
0.1998489648103714,
0.45286792516708374,
-0.48624393343925476,
0.44031837582588196,
-0.25161394476890564,
0.05149656534194946,
-0.555791974067688,
-0.3852340579032898,
0.3559875786304474,
-0.3297823369503021,
-0.006740977987647057... | |
For deployment reasons, I am trying to use IJW to wrap a C# assembly in C++ instead of using a COM Callable Wrapper.
I've done it on other projects, but on this one, I am getting an EEFileLoadException. Any help would be appreciated!
Managed C++ wrapper code (this is in a DLL):
```
extern "C" __declspec(dllexport) ... | [
0.14187166094779968,
-0.09980162978172302,
0.3840993642807007,
-0.15011541545391083,
0.11313126236200333,
-0.025617850944399834,
0.38408032059669495,
-0.25407564640045166,
-0.14008836448192596,
-0.7449078559875488,
-0.15215732157230377,
0.5903870463371277,
-0.46558043360710144,
0.116866819... | |
EXE):
```
typedef void* (*CreateObjectPtr)();
typedef void (*TestFunctionPtr)();
int _tmain testwrapper(int argc, TCHAR* argv[], TCHAR* envp[])
{
HMODULE hModule = ::LoadLibrary(_T("MyWrapper"));
_ASSERT(hModule != NULL);
PVOID pFunc1 = ::GetProcAddress(hModule, "TestFunction");
_ASSERT(pFunc1 != NUL... | [
0.22511231899261475,
-0.18413281440734863,
0.4826028645038605,
-0.14157900214195251,
0.22322256863117218,
0.22198322415351868,
0.49504902958869934,
-0.4442054033279419,
-0.13251516222953796,
-0.3187045156955719,
-0.6244855523109436,
0.6880772113800049,
-0.28256097435951233,
0.0994198471307... | |
the following:
.NET Runtime version 2.0.50727.143 -
Fatal Execution Engine Error (79F97075) (80131506)
Unfortunately, Microsoft has no information on that error.
The problem was where the DLLs were located.
* c:\dlls\managed.dll
* c:\dlls\wrapper.dll
* c:\exe\my.exe
I confirmed this by copying managed.dll into c:\e... | [
-0.13081929087638855,
0.20810562372207642,
0.24675433337688446,
-0.07447837293148041,
0.15184654295444489,
-0.26550835371017456,
0.5716800093650818,
0.1373978704214096,
-0.23551857471466064,
-0.4413052499294281,
-0.19505371153354645,
0.7672103643417358,
-0.423855721950531,
0.21025066077709... | |
<summary>
/// Summary for AssemblyResolver
/// </summary>
public ref class AssemblyResolver
{
public:
static Assembly^ MyResolveEventHandler( Object^ sender, ResolveEventArgs^ args )
{
Console::WriteLine( "Resolving..." );
Assembly^ thisAssembly = Assembly::GetExecutingAssembly();
String^ thisPath = thisA... | [
-0.24719180166721344,
-0.13001658022403717,
0.5730944871902466,
-0.23974083364009857,
0.2795398235321045,
0.21256223320960999,
0.4590681791305542,
-0.29873430728912354,
-0.1826164722442627,
-0.694175660610199,
-0.6094712615013123,
0.2553865611553192,
-0.4187822937965393,
0.4220661818981170... | |
return new CMyWrapper( );
}
catch(System::Exception^ e)
{
System::Console::WriteLine(e->Message);
return NULL;
}
}
``` | [
-0.20683667063713074,
-0.16058427095413208,
0.5117303133010864,
-0.15199165046215057,
0.19723086059093475,
0.055760692805051804,
0.3171919882297516,
-0.10922104120254517,
-0.18841563165187836,
-0.600292980670929,
-0.43059927225112915,
0.3923302888870239,
-0.3590412139892578,
0.327005296945... | |
We have 18 databases that should have identical schemas, but don't. In certain scenarios, a table was added to one, but not the rest. Or, certain stored procedures were required in a handful of databases, but not the others. Or, our DBA forgot to run a script to add views on all of the databases.
What is the best way ... | [
0.3400520384311676,
-0.01813851296901703,
0.3931978642940521,
0.3082738518714905,
-0.045187242329120636,
-0.042232535779476166,
0.11086839437484741,
-0.19748057425022125,
-0.37828442454338074,
-0.6999196410179138,
0.06916026771068573,
0.39432889223098755,
-0.43661612272262573,
0.0033002479... | |
that can be checked into source control, and automatically built using your CI/build process. | [
0.8441257476806641,
0.1948900669813156,
0.06300575286149979,
0.23218539357185364,
0.5663154721260071,
-0.31374189257621765,
-0.2753269672393799,
-0.003283043159171939,
0.06214704364538193,
-0.7624244093894958,
-0.31005436182022095,
0.5146896243095398,
-0.0965343788266182,
0.076207943260669... | |
What is the preferred way to open a URL from a thick client application on Windows using C# and the .NET framework? I want it to use the default browser.
The following code surely works:
```
Process.Start("http://www.yoururl.com/Blah.aspx");
```
It opens the default browser (technically, the default program that han... | [
0.3937585949897766,
0.20899246633052826,
0.7424895167350769,
-0.19306987524032593,
-0.11144042015075684,
-0.3084530532360077,
0.12222107499837875,
0.24372388422489166,
-0.15826557576656342,
-0.8328472971916199,
-0.26937922835350037,
0.466219037771225,
0.03222241625189781,
0.535781562328338... | |
I was recently working on an application that sent and received messages over Ethernet and Serial. I was then tasked to **add** the monitoring of DIO discretes. I throught,
> "No reason to interrupt the main
> thread which is involved in message
> processing, I'll just create
> ***another thread*** that monitors D... | [
0.3070431649684906,
-0.032012782990932465,
0.25472694635391235,
0.16515912115573883,
-0.08234065771102905,
0.06822101771831512,
0.5178018808364868,
0.1805659383535385,
-0.26694339513778687,
-0.712188184261322,
-0.021751394495368004,
0.6627338528633118,
-0.3295382559299469,
0.24911515414714... | |
and Ethernet and Serial communication were restored to their correct functionality.
The whole fiasco, however, got me thinking. **Are their any general guidelines about when *not* to use multiple-threads and/or does anyone have anymore examples of situations when using multiple-threads is not a good idea?**
\*\*EDIT:... | [
0.6994514465332031,
-0.013925084844231606,
0.19076356291770935,
0.11888455599546432,
0.17551031708717346,
-0.3749403953552246,
0.23526041209697723,
-0.1189725399017334,
-0.6682581901550293,
-0.4204438626766205,
0.02687516249716282,
0.33805373311042786,
-0.5624618530273438,
0.15589573979377... | |
based app, no need for multi threading because the web server handles most of it.
3. On a multi-processor machine and desktop app, you are suggested to use multi threads and parallel programming. Make as many threads as there are processors.
4. On a multi-processor server and a web based app, no need again for multi th... | [
0.14958883821964264,
-0.037899646908044815,
0.39009159803390503,
0.41039910912513733,
-0.30535081028938293,
0.38091233372688293,
0.2376835197210312,
-0.2066544145345688,
-0.6504175066947937,
-0.7265834808349609,
-0.31996986269950867,
0.5385326147079468,
-0.5788134336471558,
-0.405214548110... | |
of the hardware switches. It takes time for the hardware to switch between threads in total. On a multi-core box, go ahead and use 1 thread for each core and you will greatly see a ramp up. | [
0.32893607020378113,
0.048882342875003815,
0.5172173380851746,
0.2829641103744507,
0.06569309532642365,
0.2359047383069992,
-0.030550647526979446,
-0.20866496860980988,
-0.5515832304954529,
-0.6873853206634521,
-0.0028159695211797953,
0.41155868768692017,
-0.3504219949245453,
0.00570873962... | |
I have this workspace downloaded off the web and I try running it on a tomcat server from a fresh installation of Eclipse Ganymede. This particular project came with its own workspace.
When I select Tomcat v6.0 I get a message
> Cannot create a server using the selected type
Older tomcat versions are available, th... | [
0.24256527423858643,
0.06939829885959625,
0.15344661474227905,
-0.021082473918795586,
-0.32231616973876953,
0.052523668855428696,
0.20423349738121033,
0.12020428478717804,
-0.31432461738586426,
-0.6603813171386719,
0.33675089478492737,
0.45222365856170654,
-0.2863259017467499,
0.3268874585... | |
little simpler. The problem was causesd by renaming the original folder that was referenced by the server definition.
Go to Window/Preferences/Server/Runtime Environments, remove the broken reference. Then, click 'Add' to create a new reference, select the appropriate tomcat version, click next and you'll see the inco... | [
0.3496345579624176,
-0.33606141805648804,
0.33189886808395386,
0.27834081649780273,
0.2019321173429489,
0.07186601310968399,
0.3499313294887543,
0.18338188529014587,
-0.4113638401031494,
-0.5184138417243958,
-0.267348051071167,
0.4929420053958893,
-0.5325788855552673,
0.2984485924243927,
... | |
Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and string concatenation mostly).
My question is how can I setup the execution of these scripts to make sure scripting errors don't have a major negative ... | [
0.6380063891410828,
0.19456662237644196,
-0.03794640675187111,
0.04370856657624245,
-0.11839299649000168,
-0.3409211337566376,
0.7892721891403198,
-0.2768058180809021,
-0.08123225718736649,
-0.7092000246047974,
0.13351789116859436,
0.5269060134887695,
-0.49121034145355225,
-0.1030423715710... | |
include exactly what they need and no more.
To guard against infinite loops, you'd need to put it in a separate process so that it could be killed.
To guard against creating threads, you'd need to extend SecurityManager (the default implementation allows untrusted code to access non-root thread groups).
Java security... | [
0.42412567138671875,
-0.2516973316669464,
-0.24218618869781494,
0.14782974123954773,
-0.13049271702766418,
-0.26142629981040955,
0.361651211977005,
-0.1876690834760666,
-0.4967479705810547,
-0.2407088577747345,
0.0379498265683651,
0.6186588406562805,
-0.7023756504058838,
-0.105111502110958... | |
had security work done on it, but doesn't include the compiler. | [
0.007499337662011385,
0.3996627926826477,
0.04488359019160271,
0.3240283131599426,
0.3988676071166992,
-0.10289886593818665,
0.23434634506702423,
-0.03572886064648628,
0.08131744712591171,
-0.1716018170118332,
-0.0009573252755217254,
0.23044997453689575,
-0.06666193157434464,
-0.2983615398... | |
Is there a freely available library to create a MPEG (or any other simple video format) out of an image sequence ?
It must run on Linux too, and ideally have Python bindings.
I know there's [mencoder](http://www.mplayerhq.hu/design7/news.html) (part of the mplayer project), and [ffmpeg](http://ffmpeg.mplayerhq.hu/), w... | [
0.42702698707580566,
0.007817288860678673,
0.2544589638710022,
0.19356387853622437,
-0.25288036465644836,
-0.3697667121887207,
-0.13819338381290436,
-0.03620197996497154,
-0.43450796604156494,
-0.5642949342727661,
0.028202779591083527,
0.38057777285575867,
-0.47275128960609436,
0.044074203... | |
Suppose I have a design like this:
Object GUI has two objects: object aManager and object bManager, which don't ever talk to each other.
Both aManager and bManager have object cManager as an attribute (or rather a pointer to cManager). So when aManager modifies its cManager, it's affecting bManager's cManager as well... | [
-0.12867602705955505,
-0.14578211307525635,
0.03741443529725075,
0.1580258011817932,
-0.3971492052078247,
0.030994262546300888,
-0.05899924039840698,
-0.15262797474861145,
-0.3866877257823944,
-0.5658730268478394,
0.3065360486507416,
0.40430131554603577,
-0.5266134142875671,
0.076779879629... | |
there a specific design pattern I should be using here?
I'm going to interpret this as simply as possible, if I'm not answering your question, I apologize.
When you really get the answer to this question, it's your first step to really thinking Object Orientedly.
In OO, when two objects both "has a" 'nother object, i... | [
0.09110067784786224,
0.15692579746246338,
0.4470677971839905,
0.26151883602142334,
-0.039155177772045135,
0.02903571166098118,
0.07683178037405014,
0.19353587925434113,
-0.15892645716667175,
-0.27662819623947144,
-0.20881503820419312,
0.3459821939468384,
-0.1299675554037094,
-0.07470446079... | |
being used by many other objects. (This is why immutable objects like String are so great, they are ALWAYS as valid as the second they were created)
The one exception is if you are coding in C++ because then you actually have to manually free objects, that implies an owner that can monitor each object's lifecycle--tha... | [
0.3161573112010956,
-0.05841292068362236,
-0.14598265290260315,
0.23283417522907257,
-0.08172579854726791,
-0.4043600857257843,
0.2349134087562561,
0.19510233402252197,
-0.4247561991214752,
-0.5585034489631653,
-0.08672499656677246,
0.432318776845932,
-0.42467543482780457,
0.05348606780171... | |
not let that object die until all other references have gone away.
You can also use reference counting. Whenever someone gets a reference to your object, it calls "addReference" or something, whenever it's done it removes the reference. If anyone calls removeReference when the count is 1, the object can clean itself u... | [
0.4573022127151489,
-0.04766704887151718,
0.04557831957936287,
0.08021778613328934,
-0.08433747291564941,
-0.31022948026657104,
0.3786868751049042,
0.013478165492415428,
-0.4410580098628998,
-0.5035485625267029,
-0.0357661210000515,
0.5256642699241638,
-0.6097743511199951,
0.29977741837501... | |
How can I convert a character to its ASCII code using JavaScript?
For example:
> get 10 from "\n".
```
"\n".charCodeAt(0);
``` | [
0.13405048847198486,
0.27449890971183777,
-0.06594285368919373,
-0.27408260107040405,
0.045084208250045776,
0.3000586926937103,
0.10024544596672058,
-0.3067013919353485,
0.22709742188453674,
-0.7076696157455444,
-0.20966437458992004,
0.27860280871391296,
-0.2244112640619278,
-0.12312293052... | |
**Here is my current question:**
I'm guessing that my problem (described below) is being caused by ASP.NET worker processes being recycled, per the answers below—I'm using InProc sessions storage and don't see much chance of moving away, due to the restriction for other types of storage that all session objects be ser... | [
0.24738849699497223,
0.2125742882490158,
0.19510523974895477,
-0.05860785394906998,
0.20666353404521942,
0.19953596591949463,
0.17424224317073822,
0.41878941655158997,
-0.9933984279632568,
-0.6424327492713928,
-0.062023747712373734,
0.2282010167837143,
-0.08674345165491104,
0.4408862292766... | |
every 1,740 minutes—which is much less frequent than the actual session loss. So, my question is now, what different cases can cause an ASP.NET worker process to be recycled?
**Here is my original question:**
I have a difficult-to-reproduce problem that occurs in my ASP.NET web application. The application has one ma... | [
0.366851270198822,
-0.10509701073169708,
0.3580581545829773,
0.011828023009002209,
-0.06464327126741409,
-0.004791770130395889,
0.28324389457702637,
0.06290904432535172,
-0.47253650426864624,
-0.5849072337150574,
0.01820005103945732,
0.43680015206336975,
0.07070108503103256,
-0.06545297056... | |
using the page, causing successful HTTP requests where the session created in the main page properly carries over to the subpage, one of the requests seems to cause a new ASP.NET session to be created—all the session variables are lost (causing an exception to be thrown in my code), and a new session id is reported in ... | [
0.4702773988246918,
-0.08473874628543854,
0.4561786353588104,
0.20916898548603058,
0.05524899810552597,
-0.34200385212898254,
0.5934385061264038,
0.2316875457763672,
-0.4259418845176697,
-0.47340086102485657,
-0.11729498207569122,
0.28482720255851746,
-0.324311763048172,
0.427333801984787,... | |
the amount of time it takes to get this to happen is variable but is never long enough to cause the session to time out, *and* the constant `Sys.Net.WebRequests` *should* refresh the session timer.
So, what else could be happening that would cause the HTTP requests to lose contact with the ASP.NET session? I unfortuna... | [
0.32763609290122986,
-0.13587330281734467,
0.292762815952301,
0.1605967879295349,
0.04947804659605026,
-0.3508569896221161,
0.6082258820533752,
-0.011561577208340168,
-0.346139132976532,
-0.7219079732894897,
0.061531372368335724,
0.4090898931026459,
-0.16614864766597748,
0.2905375361442566... | |
lost:
1. Editing Web.Config
2. IIS resetting
3. etc.
If the session state is important to your app then use either SQL state management, or the State Server which ships with ASP. NET.
Cheers,
RB. | [
0.13134858012199402,
0.42812880873680115,
0.22523145377635956,
-0.19110062718391418,
0.10039188712835312,
-0.06075224652886391,
0.5258070826530457,
-0.17178303003311157,
-0.22062669694423676,
-0.37977418303489685,
-0.07540382444858551,
0.44797176122665405,
-0.22091665863990784,
0.046848531... | |
I'd like to use regular expressions in selecting elements using the match function. I'd prefer not to use an external library (such as saxon) to do this.
There are some things in XSLT 2.0 that aren't supported in the built in libraries (there was discussion on the mono mailing list about this but I can't find the infor... | [
0.5316667556762695,
0.12657970190048218,
-0.1614760011434555,
0.030198635533452034,
-0.15422216057777405,
-0.20122116804122925,
0.34071430563926697,
-0.010198048315942287,
0.18025599420070648,
-0.5844034552574158,
0.1285422295331955,
0.6094973683357239,
-0.48818546533584595,
-0.18561512231... | |
are [no plans in that direction](https://stackoverflow.com/questions/1525299/xpath-and-xslt-2-0-for-net) for any of the XPath 2.0 or XSLT 2.0 functions in .NET.*** | [
0.4189271628856659,
-0.06595922261476517,
0.4843425750732422,
0.17133697867393494,
0.3196568787097931,
-0.21997012197971344,
0.06580141931772232,
0.015635648742318153,
-0.20789951086044312,
-0.4717693328857422,
-0.3085906505584717,
0.6346351504325867,
-0.2933052182197571,
-0.23212422430515... | |
I am attempting to get the [Resharper](http://www.jetbrains.com/resharper/) test runner to recognize my MSTest unit tests via [Gallio](http://www.gallio.org/).
I have the following installed:
VSTS 2005 8.0.50727.762
Resharper 4.1
Gallio 3.0.0.285
I am also running Windows XP x64.
The unit test options only shows NUn... | [
0.005409362725913525,
0.1240592673420906,
0.47269752621650696,
0.09210570901632309,
-0.2248096913099289,
0.05349345505237579,
0.558276355266571,
-0.10687089711427689,
-0.01637984812259674,
-0.7068303823471069,
0.02355249412357807,
0.7147935032844543,
-0.0870179757475853,
-0.118622824549674... | |
in either R# or Icarus:
> Failures Cannot
> run tests because the
> MSTest executable was not found
Thanks
It looks like this is a Gallio problem. It appears to only support the version of MSTest that comes with VS2k8. The XML format for vsmdi has changed between versions. | [
0.07894199341535568,
-0.31934013962745667,
0.4011532962322235,
0.35778045654296875,
-0.21144840121269226,
-0.21213629841804504,
0.7052269577980042,
-0.10316219180822372,
0.09175881743431091,
-0.6188274025917053,
0.07646001130342484,
0.26281362771987915,
-0.3744730055332184,
0.1400510072708... | |
I have the following script, where the first and third `document.writeline` are static and **the second is generated**:
```
<script language="javascript" type="text/javascript">
document.write("<script language='javascript' type='text/javascript' src='before.js'><\/sc" + "ript>");
document.write("<script language='jav... | [
0.2726707458496094,
0.05901429429650307,
0.5108315944671631,
-0.30387452244758606,
-0.03452252596616745,
-0.28434568643569946,
0.29011350870132446,
-0.1270681470632553,
-0.10417460650205612,
-0.7482736706733704,
-0.1414102166891098,
0.559420108795166,
-0.32011857628822327,
-0.0528719723224... | |
the other, sane browsers do?**
**Caveats**: The code snippet is a very simple repro. It is generated on the server and the second script is the only thing that changes. It's a long script and the reason there are two scripts before and after it are so that the browser will cache them and the dynamic part of the code w... | [
0.16244950890541077,
-0.11725271493196487,
0.4933949410915375,
-0.0727781280875206,
-0.11148900538682938,
-0.21953058242797852,
0.39387184381484985,
-0.21093034744262695,
-0.08935598284006119,
-0.8358924388885498,
-0.23843027651309967,
0.4961440861225128,
-0.3652353584766388,
0.04283398017... | |
type='text/javascript' src='after.js'><\/sc" + "ript>");
</script>
```
This will defer the loading of both *during* and *after* until the page has finished loading.
I think this is as good as I can get. Hopefully, someone will be able to give a better answer. | [
0.24296629428863525,
0.21719007194042206,
0.5237182378768921,
-0.057197894901037216,
-0.0742635428905487,
-0.3469276428222656,
0.49544960260391235,
-0.030728312209248543,
-0.19134168326854706,
-0.649817168712616,
-0.3128366768360138,
0.5449158549308777,
-0.08977870643138885,
-0.11504879593... | |
I am attempting to use the 'tempfile' module for manipulating and creating text files. Once the file is ready I want to save it to disk. I thought it would be as simple as using 'shutil.copy'. However, I get a 'permission denied' IOError:
```
>>> import tempfile, shutil
>>> f = tempfile.TemporaryFile(mode ='w+t')
>>> ... | [
0.20754724740982056,
0.37133902311325073,
0.5773813128471375,
-0.1545703411102295,
0.29339325428009033,
0.053186602890491486,
0.36444929242134094,
-0.18282681703567505,
-0.23620334267616272,
-0.49126121401786804,
-0.19048218429088593,
0.6246382594108582,
-0.3873350918292999,
0.237253427505... | |
```
Is this not intended when using the 'tempfile' library? Is there a better way to do this? (Maybe I am overlooking something very trivial)
The file you create with `TemporaryFile` or `NamedTemporaryFile` is automatically removed when it's closed, which is why you get an error. If you don't want this, you can use `m... | [
-0.02333073876798153,
0.14741180837154388,
0.44022759795188904,
-0.25125187635421753,
0.03585822880268097,
-0.20427606999874115,
0.2844584286212921,
-0.03834714740514755,
-0.3510560989379883,
-0.6723149418830872,
-0.45877084136009216,
0.5408579111099243,
-0.6302374005317688,
0.157145380973... | |
I'm trying to configure the Quick Launch menu to only display the ancestors and descendant nodes of the currently select node. The menu also needs to display all the childern of the root node. More simply:
Given a site map of:
**RootSite**
---**SubSite1** = navigation set at "Display the current site, the navigation... | [
-0.22871005535125732,
-0.05361095815896988,
0.24893532693386078,
-0.005792246200144291,
0.31608909368515015,
0.06732353568077087,
0.2857794761657715,
0.22903257608413696,
-0.10730776935815811,
-1.0125652551651,
-0.23966562747955322,
-0.036041341722011566,
0.007750431075692177,
0.2815964519... | |
navigation set at "Display the same navigation items as the parent site"
---**SubSite2** = navigation set at "Display the current site, the navigation items below the current site, and the current site's siblings"
-----**Heading1** = navigation set at "Display the same navigation items as the parent site"
SiteMapPro... | [
-0.2629213035106659,
-0.04130024462938309,
1.0708019733428955,
0.13085955381393433,
0.15862634778022766,
-0.1700984537601471,
0.33352360129356384,
-0.04176194965839386,
-0.05234944447875023,
-0.8184308409690857,
-0.27400216460227966,
0.6028923988342285,
-0.04289979115128517,
-0.27245363593... | |
navigation items as the parent site" and SubSite2 is set to "Display the current site, the navigation items below the current site, and the current site's siblings". I expect
Heading1 to inherit the navigation item of SubSite2 with the SubSite1 items collapsed from view. I've also played with the various
Trim... attrib... | [
-0.4197145104408264,
-0.17819097638130188,
0.8186711072921753,
-0.008446898311376572,
0.05270298570394516,
-0.2507656216621399,
0.15028855204582214,
-0.07684388011693954,
-0.06362372636795044,
-0.4718571603298187,
-0.12933938205242157,
0.3353172838687897,
-0.32382723689079285,
0.0145930591... | |
based on the native AspMenu control. I used this control to "intercept" the native SiteMapDataSource injected into through DataSourceId attribute in the markup and create a new XML data source to exhibit the desired behavior. I've included the final source code at the end of this wordy answer. Here are the bits from th... | [
-0.19498340785503387,
-0.3022620379924774,
0.7820636034011841,
0.11304251849651337,
0.15844932198524475,
0.07729026675224304,
0.3126685619354248,
-0.35986900329589844,
-0.14126800000667572,
-0.4707218408584595,
-0.2102159857749939,
0.5428370833396912,
-0.14158402383327484,
0.04663886874914... | |
<asp:MenuItemStyle CssClass="Nav" />
<asp:MenuItemStyle CssClass="SecNav" />
</LevelMenuItemStyles>
<StaticHoverStyle CssClass="leftNavHover"/>
<StaticSelectedStyle CssClass="leftNavSelected"/>
<DynamicMenuStyle CssClass="leftNavFlyOuts" />
<DynamicMenuItemStyle CssClass="leftNavFlyOutsItem"... | [
-0.6925987601280212,
-0.10833664983510971,
1.0821857452392578,
-0.2720831036567688,
-0.06420639902353287,
-0.13475565612316132,
0.36672651767730713,
-0.10785982012748718,
-0.24009990692138672,
-0.26748061180114746,
-0.10466013848781586,
0.4566696286201477,
0.10296575725078583,
-0.129444107... | |
a Sharepoint site to display exceptions in the same lovely way that ASP.NET does by making the web.config changes [here](http://blog.thekid.me.uk/archive/2007/02/15/a-solution-to-quot-an-unexpected-error-has-occurred-quot-in-wss-v3.aspx).
I decided to call my custom behavior a "compact menu" so I created a UseCompactM... | [
-0.004398438613861799,
0.04284864291548729,
0.47021356225013733,
-0.06267853081226349,
0.1716790348291397,
-0.09087300300598145,
0.46170341968536377,
-0.16321244835853577,
-0.07444769889116287,
-0.72213214635849,
-0.09263636916875839,
0.4235512614250183,
-0.22088497877120972,
0.21809820830... | |
in the customizing behavior. If you application doesn't follow this assumption, the control will not work as expected.
On the initial application page, only the direct child pages to the root page are displayed in the menu. Clicking on these menu nodes will open all the child nodes under it but keeps the sibling nodes... | [
0.02095361426472664,
-0.30173975229263306,
0.752562403678894,
0.22524502873420715,
0.30839231610298157,
0.08336181938648224,
0.29803407192230225,
-0.4056899845600128,
-0.3979990780353546,
-0.4213012158870697,
-0.2695336639881134,
0.6088696718215942,
-0.3926395773887634,
0.21009515225887299... | |
Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermission(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermission(SecurityAction.InheritanceDemand, ObjectModel = true)]
[Des... | [
-0.6707437634468079,
-0.1627722531557083,
0.46093660593032837,
-0.06805470585823059,
0.1715046763420105,
-0.1344226747751236,
0.2754577100276947,
-0.4435065686702728,
-0.014500213786959648,
-0.6214787364006042,
-0.3110557496547699,
0.5251830220222473,
-0.29156753420829773,
0.18518571555614... | |
private bool customSelectionEnabled = true;
private bool selectStaticItemsOnly = true;
private bool performTargetBinding = true;
//** Variables used for compact menu behavior **//
private bool useCompactMenus = false;
private static bool showStartingNode;
private static... | [
0.2930091321468353,
-0.2707858383655548,
0.26676347851753235,
0.12904739379882812,
0.09396722167730331,
-0.012346899136900902,
0.3889784812927246,
0.028836145997047424,
-0.23274925351142883,
-0.10602915287017822,
-0.5438311696052551,
0.7758293151855469,
-0.25640782713890076,
0.007246323395... | |
control performs compacting of the site map to display only ancestor and child nodes of the selected and first level root childern.
/// </summary>
[Category("Behavior")]
public bool UseCompactMenus
{
get
{
return this.useCompactMenus; | [
-0.2741294205188751,
-0.2607305347919464,
0.08749610930681229,
0.22644448280334473,
0.3598768413066864,
0.010135538876056671,
0.286670446395874,
-0.1933884173631668,
0.09132114052772522,
-0.3103608787059784,
-0.35540688037872314,
0.313903272151947,
-0.35667115449905396,
0.2830561697483063,... | |
}
set
{
this.useCompactMenus = value;
}
}
/// <summary>
/// Controls whether or not the control performs custom selection/highlighting. | [
0.1702471375465393,
-0.32937091588974,
0.06805392354726791,
-0.05755491927266121,
0.2548221945762634,
0.13814777135849,
-0.011936206370592117,
-0.3374076187610626,
-0.011436657048761845,
-0.5548366904258728,
-0.41410836577415466,
0.3781505525112152,
-0.38134294748306274,
-0.083738900721073... | |
/// </summary>
[Category("Behavior")]
public bool CustomSelectionEnabled
{
get
{
return this.customSelectionEnabled;
}
set | [
0.16332554817199707,
-0.44730305671691895,
0.15620969235897064,
0.13370971381664276,
-0.10198117047548294,
-0.21650391817092896,
0.2436555027961731,
0.09579947590827942,
-0.24023132026195526,
-0.20783956348896027,
-0.3131456971168518,
0.6032748818397522,
-0.37612253427505493,
0.00523220887... | |
{
this.customSelectionEnabled = value;
}
}
/// <summary>
/// Controls whether only static items may be selected or if
/// dynamic (fly-out) items may be selected too.
/// </summary> | [
0.2854774594306946,
-0.541323721408844,
0.1614743024110794,
0.43292537331581116,
0.19961068034172058,
-0.06561952084302902,
-0.02697094902396202,
-0.09411836415529251,
-0.4170895516872406,
-0.27382946014404297,
-0.20163072645664215,
0.2975658178329468,
-0.4306429922580719,
-0.0059375590644... | |
[Category("Behavior")]
public bool SelectStaticItemsOnly
{
get
{
return this.selectStaticItemsOnly;
}
set | [
-0.03737867996096611,
-0.5541936755180359,
-0.044544387608766556,
-0.0390743650496006,
-0.009297460317611694,
-0.12479587644338608,
0.1746281534433365,
-0.2728169858455658,
-0.3872642517089844,
-0.24528546631336212,
-0.35215842723846436,
0.7250080704689026,
-0.5108586549758911,
0.020370867... | |
{
this.selectStaticItemsOnly = value;
}
}
/// <summary>
/// Controls whether or not to bind the Target property of any menu
/// items to the Target property in the SiteMapNode's Attributes
/// collection. | [
0.1442181020975113,
-0.3575986921787262,
0.3569713830947876,
-0.08337771892547607,
0.18352670967578888,
-0.2510940134525299,
0.006367337424308062,
-0.21168942749500275,
-0.1158594861626625,
-0.7172346115112305,
-0.37405213713645935,
0.2574462890625,
-0.24010585248470306,
0.222675621509552,... | |
/// </summary>
[Category("Behavior")]
public bool PerformTargetBinding
{
get
{
return this.performTargetBinding;
}
set | [
-0.03781565651297569,
-0.483486533164978,
-0.04419037699699402,
-0.22343124449253082,
-0.21570563316345215,
-0.1121605932712555,
0.3766494691371918,
-0.2536534070968628,
-0.25544244050979614,
-0.1435125470161438,
-0.43581628799438477,
0.737162709236145,
-0.6061354875564575,
-0.070962928235... | |
{
this.performTargetBinding = value;
}
}
/// <summary>
/// Gets the ClientID of this control.
/// </summary>
public override string ClientID
{ | [
-0.2515202462673187,
-0.40278810262680054,
0.36531564593315125,
-0.049752868711948395,
0.247746080160141,
-0.28213876485824585,
0.1297588050365448,
-0.35097619891166687,
0.1810714453458786,
-0.341081827878952,
-0.17924587428569794,
0.6839810609817505,
-0.46449610590934753,
0.29656153917312... | |
[SharePointPermission(SecurityAction.Demand, ObjectModel = true)]
get
{
if (this.idPrefix == null)
{
this.idPrefix = SPUtility.GetNewIdPrefix(this.Context); | [
0.11119085550308228,
-0.6846768856048584,
0.6890880465507507,
-0.06590670347213745,
0.2612378001213074,
-0.21778786182403564,
0.3484622538089752,
-0.4488391578197479,
0.08613646030426025,
-0.34496644139289856,
-0.4321129322052002,
0.6428875923156738,
-0.28255775570869446,
-0.08354079723358... | |
}
return SPUtility.GetShortId(this.idPrefix, this);
}
}
[SharePointPermission(SecurityAction.Demand, ObjectModel = true)]
protected override void OnMenuItemDataBound(MenuEventArgs e)
{
base.OnMenuItemDataBound(e); | [
-0.012977417558431625,
-0.6518697738647461,
0.5403847098350525,
-0.27404001355171204,
0.6041415929794312,
-0.10929612815380096,
0.3104741871356964,
-0.3981630802154541,
0.10657508671283722,
-0.32313597202301025,
-0.4470546841621399,
0.8046388030052185,
-0.4035540819168091,
0.06088661029934... | |
if (this.customSelectionEnabled)
{
// store in the url->item dictionary
this.menuItemDictionary[e.Item.NavigateUrl] = e.Item;
}
if (this.performTargetBinding)
{ | [
-0.11842549592256546,
-0.3931603729724884,
0.4314117133617401,
0.07581494003534317,
0.29053041338920593,
0.0452519990503788,
0.6227174401283264,
-0.1270924061536789,
0.05611754208803177,
-0.42255228757858276,
-0.42492371797561646,
0.5677592158317566,
-0.3207993805408478,
0.0601586848497390... | |
// try to bind to the Target property if the data item is a SiteMapNode
SiteMapNode smn = e.Item.DataItem as SiteMapNode;
if (smn != null)
{
string target = smn["Target"]; | [
-0.08189033716917038,
-0.35231488943099976,
0.370999276638031,
-0.3757270574569702,
0.10786975175142288,
-0.12773805856704712,
0.46396052837371826,
-0.32600802183151245,
-0.0746215283870697,
-0.8071866631507874,
-0.5385664701461792,
0.2032216638326645,
-0.572266161441803,
0.373238831758499... | |
if (!string.IsNullOrEmpty(target))
{
e.Item.Target = target;
} | [
-0.2882162034511566,
-0.4954935908317566,
0.2709338963031769,
-0.2678763270378113,
0.39177244901657104,
0.2641981542110443,
0.12336692214012146,
-0.21259352564811707,
-0.019721411168575287,
-0.43130025267601013,
-0.31780457496643066,
0.4886966943740845,
-0.5228785276412964,
0.0608492046594... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.