text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm writing an analyzer,which shows the packets of a specific program.Some packets are very large and the listview shows only the first 15-20 characters :\ This is my code ``` string __str = String.Join(" ", data.Select(x => x.ToString("x2")).ToArray()); //covert the byte[](packet) to hex string strin...
[ 0.20832790434360504, -0.1053694635629654, 0.5502747297286987, -0.3810570538043976, 0.07217486947774887, 0.16661973297595978, 0.38707441091537476, -0.4529615342617035, -0.029683249071240425, -0.5459209084510803, -0.2782549262046814, 0.3827029764652252, -0.5449546575546265, -0.07617861777544...
ListViewItem item = new ListViewItem(__str); //create new item and place the packet as hex string item.SubItems.Add(__ascii); //add the ascii variant as substring FormMain.PFA(form => form.listViewAnalyzer.Items.Add(item)); //add the item ``` It must be a property that prohibits adding text with more ...
[ 0.40833017230033875, -0.2376481592655182, 0.7222797870635986, -0.06021784245967865, -0.4574313461780548, -0.10048336535692215, 0.3670738637447357, -0.44785311818122864, -0.37712132930755615, -0.5805726647377014, -0.18226684629917145, 0.2670864760875702, -0.4389824867248535, 0.0824526995420...
window. You could change your UI so that selecting the item in the listview displays the full details of the item in an outlook-style preview pane. Then you could have a large multiline textbox and anything else you wanted. I often do this by putting an object in the `ListViewItem.Tag` property, so that I can retrieve ...
[ 0.23471589386463165, -0.27055153250694275, 0.5333353877067566, 0.14202548563480377, -0.14397576451301575, -0.05958327278494835, 0.11178378015756607, 0.09372422844171524, -0.20232784748077393, -0.8350998163223267, 0.085878886282444, 0.6096941232681274, -0.0851362869143486, 0.174985021352767...
I have some div boxes which should show a speech box when on hover. With jQuery and CSS it’s nothing too hard. However, the popup speech appears under the neighbor div in IE7 — I can not make it to appear under it (see the shots). I tried to play with z-index at different spots with no success. **FF** [alt text http...
[ 0.18900306522846222, 0.023978080600500107, 0.7868459820747375, -0.14072807133197784, -0.23380549252033234, -0.13768434524536133, 0.3104401230812073, -0.3603203594684601, 0.03707394748926163, -0.732763946056366, -0.25523996353149414, 0.6352511644363403, -0.11357046663761139, 0.0328583195805...
}}" /> </a> <div class="container_speech_box popup"> <div class="two"> <b class="tl"><b class="tr"></b></b> <p> blabla </p> <b class="bl"></b><b class="br"><b class="point"></b></b> </div> </div> </span> {% endfor %} </div> ``` **CSS** ``` div.boardshot_list span...
[ -0.13274456560611725, -0.16045895218849182, 0.6142536997795105, -0.35046207904815674, -0.156068816781044, 0.3530120849609375, -0.14349283277988434, -0.41007527709007263, -0.20104272663593292, -0.5269346237182617, -0.32602745294570923, 0.5425915718078613, -0.1985892802476883, 0.202523514628...
display: block; height:11px; clear:both; visibility:hidden;} .container_speech_box div {width:300px; height:auto; font-family:verdana; font-size:11px;} b.tl {display:block; width:300px; height:8px; font-size:1px;} b.tr {display:block; width:292px; height:8px; font-size:1px; float:right;} b.bl {display:block; width:8px;...
[ -0.2601275146007538, 0.13663627207279205, 0.4939696490764618, -0.2708229124546051, -0.2240772396326065, 0.5823050141334534, 0.13206981122493744, -0.07301414012908936, -0.23609277606010437, -0.8330953121185303, -0.6795409917831421, 0.46244099736213684, -0.2507743239402771, 0.035483397543430...
top: 30px; left: 10px; font-family:"Palatino Linotype","Book Antiqua",Palatino,FreeSerif,serif; } div.boardshot_list.even { background-color: #f3f5f6; } div.boardshot_list .title span{ color: #bbb; font-weight: normal; } div.boardshot_list .img img { border:1px solid #373743; } ``` **JS** ``` <script type...
[ 0.053949516266584396, -0.25109297037124634, 0.8089085817337036, 0.004883029032498598, 0.13387149572372437, 0.3257295787334442, 0.2937939465045929, -0.4427509307861328, -0.32158198952674866, -0.49730777740478516, -0.4042142331600189, 0.3566548228263855, -0.3926003575325012, 0.00275919400155...
var popup = $('.popup', this).css('opacity', 0); // set the mouseover and mouseout on both element $([trigger.get(0), popup.get(0)]).mouseover(function () { // stops the hide event if we move from the trigger to the popup element if (hideDelayTimer) clearTimeout(hideDelayTimer); // don'...
[ 0.18238522112369537, -0.26684361696243286, 0.6511846780776978, -0.23651261627674103, 0.3918364644050598, 0.17224723100662231, 0.3598876893520355, -0.1959819495677948, -0.17577232420444489, -0.25486207008361816, -0.47817304730415344, 0.40052494406700134, -0.4999866783618927, -0.036765284836...
} else { beingShown = true; // reset position of popup box popup.css({ top: -10, left: 20, display: 'block' // brings the popup back in to view })
[ -0.09578816592693329, -0.27898842096328735, 0.5237671732902527, 0.11220047622919083, 0.4069248139858246, 0.3471197187900543, 0.501734733581543, 0.055854033678770065, -0.247019961476326, -0.7893946170806885, -0.3695894479751587, 0.28408050537109375, -0.25759875774383545, -0.1029016673564910...
// (we're using chaining on the popup) now animate it's opacity and position .animate({ top: '-=' + distance + 'px', opacity: 0.9 }, time, 'swing', function() { // once the animation is complete, set the tracker variables beingShown = false;
[ 0.28286489844322205, -0.4394720196723938, 0.6782498359680176, 0.03427547961473465, 0.1993711292743683, 0.31098952889442444, 0.2666395604610443, -0.5546640753746033, 0.044880207628011703, -0.6256024837493896, 0.012610427103936672, 0.5267780423164368, -0.24999402463436127, -0.286901175975799...
shown = true; }); } }).mouseout(function () { // reset the timer if we get fired again - avoids double animations if (hideDelayTimer) clearTimeout(hideDelayTimer); // store the timer so that it can be cleared in the mouseover if required hideDelayTimer = setTimeout(func...
[ 0.2706570327281952, -0.2836179733276367, 0.5929319858551025, -0.3145044445991516, 0.40985769033432007, 0.03189513087272644, 0.7442172169685364, -0.38245657086372375, -0.09069976210594177, -0.4254644811153412, -0.28806790709495544, 0.640950083732605, -0.3713168799877167, -0.0294740498065948...
hideDelayTimer = null; popup.animate({ opacity: 0 }, time, 'swing', function () { shown = false; popup.css('display', 'none'); }); }, hideDelay); }); }); }); </script> ``` I think this is due
[ 0.12140005826950073, -0.14018042385578156, 0.4090573489665985, -0.3429361879825592, 0.18413576483726501, -0.02802065759897232, 0.5810153484344482, -0.20588679611682892, 0.0878743827342987, -0.26718759536743164, -0.505203902721405, 0.31313490867614746, -0.4674357771873474, 0.270800739526748...
to a `z-index` bug in Internet Explorer. Positioned elements (i.e. elements with a `position` other than `static`) establish their own stacking context. <http://www.quirksmode.org/bugreports/archives/2006/01/Explorer_z_index_bug.html> In my experience, it’s as if all your `div.boardshot_list span.img_box` have a z-in...
[ -0.06805384159088135, -0.04342300444841385, 0.3883257210254669, 0.03349031135439873, 0.15389612317085266, -0.012163897976279259, -0.059938717633485794, 0.009531266987323761, -0.4816921353340149, -0.5405145287513733, -0.11553411185741425, 0.25090593099594116, -0.5859844088554382, 0.29180416...
brings the popup back in to view }) $(this).css('z-index', '1'); ``` Don’t forget to reset it to `0` when the pop-up disappears.
[ -0.1513664573431015, 0.026227885857224464, 0.5976716876029968, -0.2120753973722458, 0.5170416831970215, -0.18735793232917786, 0.29610779881477356, 0.34205085039138794, -0.19952820241451263, -0.6440619826316833, -0.6491401791572571, 0.44070538878440857, -0.4692411720752716, 0.07880852371454...
I have a panel that draws alot of things. To make drawing effecient I am using a BufferedImage so that I dont have to draw everything, everytime something happens. My paintComponent only has to 'if' statements: ``` if(!extraOnly) //paint something paint something if(listener.getRectangle() != null) // Paint somethi...
[ 0.2329176515340805, -0.020242640748620033, 0.3862450122833252, -0.26968252658843994, -0.4630025625228882, 0.1271313577890396, 0.31871819496154785, -0.15613119304180145, -0.10825494676828384, -1.0620319843292236, 0.1840842217206955, 0.48333436250686646, -0.16178594529628754, 0.1157379746437...
of my application in a MVC pattern, I am also unsure of using state pattern is wrong. Shouldn't state be part of the model and not the view? I see nothing wrong with having state in the view. This is clearly not the same state as in the model though. An example would be a webbrowser. The model in this case is the web...
[ 0.1591116189956665, -0.2512442171573639, 0.4525829553604126, 0.11011138558387756, -0.23970678448677063, -0.04403139650821686, 0.4096987247467041, -0.04403119534254074, -0.2530030608177185, -0.5927193760871887, 0.11543943732976913, 0.6159600019454956, -0.2231839895248413, 0.4113672971725464...
is the solution to this. The state would only have to be updated if the underlying DOM is changed.
[ -0.26346299052238464, -0.1036563366651535, 0.4963558614253998, 0.09477106481790543, 0.4150686264038086, -0.18314824998378754, 0.21228280663490295, -0.15289291739463806, -0.19105999171733856, -0.309726357460022, -0.2597768008708954, 0.6999108195304871, -0.018203476443886757, 0.1889911293983...
I have a table (`SQL Sever`) which references paths (`UNC` or otherwise), but now the path is going to change. In the path column, I have many records and I need to change just a portion of the path, but not the entire path. And I need to change the same string to the new one, in every record. How can I do this with...
[ 0.15827922523021698, 0.3419552743434906, 0.45447027683258057, -0.019151300191879272, 0.10982733219861984, -0.09472126513719559, 0.0678512454032898, -0.2588459849357605, -0.276987224817276, -0.8238620758056641, 0.2646890878677368, 0.5872260332107544, -0.44734275341033936, 0.1879164576530456...
I'm trying to create a sound volume control and for that I've created a storyboard which is animating the volume visually. And I've put this inside an common slider control. And I want to databind the value of the slider directly to the storyboards timeline position. If the slider is value 0, then the storyboard should...
[ 0.052321918308734894, 0.0904163271188736, 0.8361868858337402, 0.4176243245601654, 0.31527474522590637, 0.08602471649646759, -0.3514057993888855, -0.18994466960430145, -0.029872700572013855, -0.5725035071372986, 0.07677610963582993, 0.6802101731300354, 0.1407427191734314, 0.3088819086551666...
<ControlTemplate.Resources> <Storyboard x:Key="SoundControl_Animation"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00...
[ 0.08667690306901932, -0.41450396180152893, 0.33420127630233765, 0.27075713872909546, 0.08844185620546341, -0.04887152090668678, 0.2072039395570755, -0.3043912351131439, -0.2012992799282074, -0.7284799814224243, -0.00683631980791688, 0.5923252105712891, 0.08378781378269196, -0.0658433586359...
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/> <SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/> </DoubleAnimationUsingKeyFrames>
[ 0.07677089422941208, -0.3654877543449402, 0.55403071641922, -0.053321581333875656, -0.07267606258392334, 0.12726420164108276, 0.3527139723300934, -0.4104490876197815, -0.4086933732032776, -0.48417043685913086, 0.08018296211957932, 0.10750624537467957, -0.41667863726615906, 0.15058684349060...
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
[ 0.27555152773857117, -0.4601731300354004, 0.4549658000469208, -0.0034951274283230305, -0.08657184988260269, 0.06643801927566528, 0.4022504389286041, -0.38248804211616516, -0.2766685485839844, -0.8240929245948792, 0.0036887831520289183, 0.30266422033309937, -0.22719761729240417, -0.00838152...
</DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.495"/>
[ 0.16927742958068848, -0.5746630430221558, 0.5111991167068481, 0.09265976399183273, -0.07613585144281387, 0.012720390222966671, 0.41306400299072266, -0.26659268140792847, -0.2984216511249542, -0.824540913105011, -0.05919458344578743, 0.28547146916389465, -0.08039785176515579, -0.06759253889...
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </ControlTemplate.Resources>
[ 0.20000526309013367, -0.39509040117263794, 0.28170573711395264, 0.34083518385887146, 0.21807551383972168, 0.08662408590316772, 0.2390601634979248, -0.3140926659107208, -0.39650759100914, -0.46078842878341675, 0.05203983560204506, 0.15788224339485168, -0.11698668450117111, 0.299811363220214...
<Grid Width="Auto" Height="Auto"> <Grid.ColumnDefinitions> <ColumnDefinition Width="51.333"/> <ColumnDefinition Width="*"/>
[ -0.3340165615081787, -0.171175017952919, 0.28371191024780273, -0.23769758641719818, -0.11787846684455872, 0.46695756912231445, -0.14822711050510406, -0.3824448585510254, -0.5355496406555176, -0.7530016303062439, -0.08769325166940689, 0.36781045794487, 0.032299596816301346, -0.1304590106010...
</Grid.ColumnDefinitions> <Grid x:Name="GridRoot" Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"> <Grid.RowDefinitions>
[ -0.4156072735786438, -0.2679358720779419, 0.5371493101119995, -0.17612972855567932, 0.10535816103219986, 0.36743712425231934, -0.3958708941936493, -0.12396712601184845, -0.22516579926013947, -0.7638087868690491, -0.03831544145941734, 0.02185126580297947, 0.02059474028646946, 0.198622643947...
<RowDefinition Height="Auto"/> <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/> <RowDefinition Height="Auto"/>
[ -0.3034832179546356, 0.060624536126852036, -0.01901833340525627, -0.20653317868709564, 0.05821763724088669, 0.080853670835495, 0.08851955831050873, -0.347256064414978, -0.19284629821777344, -0.35831332206726074, -0.2437126338481903, 0.7790581583976746, -0.2299196422100067, -0.3673143386840...
</Grid.RowDefinitions> <!-- TickBar shows the ticks for Slider --> <TickBar Visibility="Collapsed" x:Name="TopTick" Height="4" SnapsToDevicePixels="True" Placement="Top" Fill="{DynamicResource GlyphBrush}"/> <Border
[ -0.03346995636820793, -0.34555935859680176, 0.632647693157196, 0.3606831431388855, 0.028855709359049797, 0.22237351536750793, -0.1939094066619873, -0.33039525151252747, -0.5383185148239136, -0.3306123614311218, 0.3049686849117279, 0.1949106752872467, -0.22276489436626434, 0.207354724407196...
Grid.Row="1" Margin="0" x:Name="Border" Height="4" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/> <!-- The Track lays out the repeat buttons and thumb --> ...
[ -0.08557318896055222, -0.2633567154407501, 0.6017376184463501, 0.3537229299545288, 0.19088521599769592, 0.13243889808654785, -0.11191219836473465, -0.5440807938575745, -0.08000635355710983, -0.4542691111564636, 0.27711889147758484, 0.3383117616176605, -0.03854167461395264, 0.07418455183506...
<Track.Thumb> <Thumb Style="{DynamicResource SimpleSliderThumb}"/> </Track.Thumb>
[ -0.1636752188205719, -0.34893718361854553, 0.3745405972003937, 0.2711029350757599, 0.4028920531272888, 0.04121677204966545, 0.11920350044965744, -0.25791507959365845, -0.6294844746589661, -0.24267543852329254, 0.08718463778495789, 0.8041644096374512, -0.2837475538253784, -0.129249230027198...
<Track.IncreaseRepeatButton> <RepeatButton Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="Slider.IncreaseLarge"/> </Track.IncreaseRepeatButton>
[ 0.136539027094841, -0.5219420194625854, 0.6235560178756714, -0.2343834638595581, -0.019224965944886208, 0.26930612325668335, 0.23882298171520233, -0.44239357113838196, -0.4859764575958252, -0.17432697117328644, -0.0891643539071083, 0.6587737202644348, -0.5283927321434021, -0.17498171329498...
<Track.DecreaseRepeatButton> <RepeatButton Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="Slider.DecreaseLarge"/> </Track.DecreaseRepeatButton>
[ 0.12086985260248184, -0.7543292045593262, 0.4747205674648285, -0.2799502909183502, 0.11356309801340103, 0.31462815403938293, 0.3305025100708008, -0.26271116733551025, -0.4558117687702179, -0.20032310485839844, -0.01732104830443859, 0.6090294122695923, -0.5827606320381165, -0.14096684753894...
</Track> <TickBar Visibility="Collapsed" Grid.Row="2" x:Name="BottomTick" Height="4" SnapsToDevicePixels="True" Placement="Bottom" Fill="{TemplateBinding Foreground}"/> </Grid> <Path Stretch="Fill"
[ 0.25405240058898926, -0.4656141400337219, 0.07513651251792908, 0.19480980932712555, 0.20013479888439178, 0.2611256539821625, 0.1691555678844452, -0.44652798771858215, -0.28763511776924133, -0.5387843251228333, -0.06118997558951378, 0.4552520215511322, -0.04294038191437721, -0.0054879426024...
Data="F1 M-65.067448,318.22277 C-65.067448,318.22277 -58.87652,318.2416 -58.87652,318.2416 -58.797256,318.31822 -54.599352,312.8803 -54.599352,312.8803 -54.599352,312.8803 -54.601205,330.97579 -54.601205,330.97579 -54.601205,330.97579 -58.83846,325.45217 -58.83846,325.45217 -58.83846,325.45217 -64.980101,325.3728 -64.9...
[ -0.6582233905792236, -0.38518914580345154, 1.0729910135269165, 0.022662613540887833, 0.26702484488487244, 0.5730994343757629, -0.08539383858442307, -0.6266895532608032, -0.2795386016368866, -0.626798689365387, 0.15283121168613434, 0.7233975529670715, 0.1840890794992447, -0.0232626143842935...
StrokeThickness="2.5" Data="M75.569117,15.851553 C75.569117,15.851553 85.628643,23.181896 75.250364,31.167364" HorizontalAlignment="Stretch" Height="20" Stroke="#FF848484" x:Name="path2"/> <Path Margin="0,4,12.156,4" Fill="{x:Null}" Stretch="Fill" StrokeThickness="3" Data="M75.569117,15.851553 C...
[ -0.6468742489814758, -0.3137003779411316, 0.9961288571357727, 0.0579250231385231, 0.13070876896381378, 0.4264453947544098, -0.28367480635643005, -0.764030933380127, -0.2523708641529083, -0.6815545558929443, 0.43659231066703796, 0.7600828409194946, 0.23663701117038727, -0.019617022946476936...
<Trigger Property="TickPlacement" Value="TopLeft"> <Setter Property="Visibility" Value="Visible" TargetName="TopTick"/> </Trigger> <Trigger Property="TickPlacement" Value="BottomRight">
[ 0.013756691478192806, -0.34107640385627747, 0.17482039332389832, 0.03172033280134201, 0.011752682738006115, -0.16362392902374268, -0.07194536924362183, -0.49208274483680725, -0.39131322503089905, -0.09516528248786926, -0.33218932151794434, 0.36713382601737976, -0.17961478233337402, -0.2371...
<Setter Property="Visibility" Value="Visible" TargetName="BottomTick"/> </Trigger> <Trigger Property="TickPlacement" Value="Both">
[ 0.2402234524488449, -0.19600120186805725, -0.07397495955228806, -0.12269972264766693, -0.01958005502820015, 0.08506271988153458, -0.027048025280237198, -0.4843086898326874, -0.24751169979572296, -0.4256163537502289, -0.12655507028102875, 0.37087416648864746, -0.3013155162334442, -0.2580945...
<Setter Property="Visibility" Value="Visible" TargetName="TopTick"/> <Setter Property="Visibility" Value="Visible" TargetName="BottomTick"/> </Trigger> <Trigger Property="IsEnabled" Value="false">
[ -0.03600279986858368, -0.21364253759384155, 0.0933699756860733, -0.046667106449604034, 0.04080895707011223, -0.009071854874491692, 0.2807331085205078, -0.5438542366027832, -0.3201603293418884, -0.36666736006736755, -0.17361347377300262, 0.5273550152778625, -0.20621925592422485, -0.29798573...
<Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/> <Setter Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/> </Trigger> <!-- Use a
[ -0.20257683098316193, -0.47130388021469116, 0.3866066336631775, -0.014036884531378746, -0.15072417259216309, 0.118008553981781, 0.35291993618011475, -0.428308367729187, -0.16604115068912506, -0.5268247127532959, -0.07843288779258728, 0.3938966691493988, -0.444301575422287, -0.0359730087220...
rotation to create a Vertical Slider form the default Horizontal --> <Trigger Property="Orientation" Value="Vertical"> <Setter Property="LayoutTransform" TargetName="GridRoot"> <Setter.Value>
[ -0.09449823945760727, -0.20769566297531128, 0.7617272138595581, -0.20834605395793915, -0.09420540183782578, 0.26463308930397034, -0.23054037988185883, -0.20945796370506287, -0.3388080894947052, -0.45734119415283203, -0.1875528246164322, 0.33083441853523254, -0.24671928584575653, -0.0273198...
<RotateTransform Angle="-90"/> </Setter.Value> </Setter>
[ 0.10701174288988113, -0.3463384807109833, 0.7382240891456604, -0.18576869368553162, -0.109775610268116, 0.20032033324241638, -0.5649971961975098, -0.21562136709690094, -0.1344156712293625, -0.4291144609451294, 0.3106682002544403, 0.4422247111797333, -0.02132364735007286, 0.0684852153062820...
<!-- Track rotates itself based on orientation so need to force it back --> <Setter TargetName="PART_Track" Property="Orientation" Value="Horizontal"/> </Trigger>
[ -0.005463635548949242, -0.3140847086906433, 0.5706655979156494, 0.1320563405752182, 0.013770611956715584, 0.3413182199001312, 0.11061236262321472, -0.4707682728767395, -0.1877114474773407, -0.13407458364963531, -0.20152395963668823, 0.4774588346481323, -0.1772153675556183, -0.0046475301496...
</ControlTemplate.Triggers> </ControlTemplate> ``` And the control itself it put on the Canvas like this: ``` <Slider Margin="47.75,9.75,0,0" Style="{DynamicResource btn_SoundVolumeSlider}" Grid.Column="3" d:LayoutOverrides="Height" VerticalAlignment="Top" HorizontalAlignment="Stretch" SmallChange="0...
[ -0.18457289040088654, -0.5050996541976929, 0.7158445119857788, 0.11956481635570526, 0.15538637340068817, 0.1171080619096756, -0.11193874478340149, -0.43642401695251465, -0.3010514974594116, -0.5768532752990723, 0.19575904309749603, 0.7653689980506897, -0.0930110439658165, 0.092189624905586...
I have recently started using [Google Webmaster Tools](https://www.google.com/webmasters/tools). I was quite surprised to see just how many links google is trying to index. ``` http://www.example.com/?c=123 http://www.example.com/?c=82 http://www.example.com/?c=234 http://www.example.com/?c=991 ``` These are all c...
[ 0.8420925736427307, 0.34794682264328003, 0.5510032773017883, -0.030245298519730568, -0.2961791157722473, 0.13980424404144287, 0.3507585823535919, 0.02275894396007061, -0.5354955792427063, -0.49371007084846497, 0.16849154233932495, 0.4486202895641327, -0.36425942182540894, 0.239861696958541...
the same page - give or take. I dont want people finding them as they are and clicking on them. By best idea so far is to render a page that contains a query string as follows : ``` // DO NOT TRY THIS AT HOME. See edit below <% if (Request.QueryString != "") { %> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"...
[ 0.027282949537038803, 0.08486034721136093, 0.538139820098877, 0.013649795204401016, -0.0664716437458992, -0.23085549473762512, 0.4662236273288727, 0.11824077367782593, -0.03600454330444336, -0.8517150282859802, -0.030688825994729996, 0.6045502424240112, -0.41088008880615234, 0.192212596535...
another page that does not have NOINDEX. Apparently it figures they're the same thing and the NOINDEX takes precedence. My site completely disappeared from Google as a result. Caveat: it could have been something else i did at the same time, but i wouldn't risk this approach. This is the sort of thing that `rel="canoni...
[ 0.16956275701522827, -0.036159414798021317, 0.7770898938179016, 0.00518669793382287, -0.0738520622253418, -0.3635602295398712, 0.48516252636909485, 0.33983319997787476, -0.2515948712825775, -0.42702630162239075, 0.1427338421344757, 0.5165567994117737, -0.24755574762821198, 0.69113737344741...
I have a rather unique class that allows its child classes to declare virtual fields. The child can declare virtual fields stored as XML by calling a method of the parent class like this: ``` class Child1 < Parent create_xml_field ["readings", "usage"] end ``` I have managed to get it working via a nasty work aroun...
[ 0.17265379428863525, 0.03700266033411026, 0.3783663809299469, -0.02792833186686039, 0.058508921414613724, 0.14136852324008942, 0.15009178221225739, -0.22669623792171478, 0.22292104363441467, -0.671705961227417, 0.08320753276348114, 0.3781737685203552, -0.06378686428070068, 0.25637623667716...
f=f.to_sym self.class_eval do define_method(f) { ... } # define getter define_method(f) { ... } # define setter attr_accessible(f) # add to mass assign OK list, does not seem to work! end end end protected def after_initialize init_xml_fields end end ``` ...
[ 0.12444145977497101, 0.05175435543060303, 0.5716782212257385, -0.13324129581451416, 0.022218747064471245, -0.2528733015060425, 0.5540163516998291, -0.11075271666049957, 0.035669852048158646, -0.36890652775764465, -0.21666716039180756, 0.6091390252113342, -0.35954347252845764, 0.13408994674...
am having trouble making it work. Also, the work around doesn't work with mass-assignment of form parameters. Does anyone have experience calling attr\_acessible dynamically to allow mass-assignment in the child class? Thank you in advance! **This post was edited for clarity!** Here's how I'd implement the metaprogra...
[ 0.031015854328870773, 0.10730106383562088, 0.37194448709487915, 0.20702911913394928, -0.2792429029941559, -0.132994145154953, 0.4970129132270813, -0.330575168132782, -0.22323621809482574, -0.6749310493469238, -0.3224504590034485, 0.5497397184371948, -0.2954472303390503, -0.0002221477043349...
def add_yaml_fields *args write_inheritable_array(:yaml_fields, args) attr_accessor(*args) attr_accessible(*args) before_save :serialize_yaml_fields end end def serialize_yaml_fields self.yamlable_column = read_inheritable_attribute(:yaml_fields)\ .inject({}) { |h, a| h[a] = s...
[ 0.05675988644361496, 0.21324153244495392, 0.5964013338088989, -0.44024714827537537, -0.1580289751291275, 0.1073981523513794, 0.2914653420448303, -0.5848901867866516, -0.300944447517395, -0.344721257686615, -0.22053197026252747, 0.45415687561035156, -0.5703513622283936, 0.06445017457008362,...
you want to know why your particular code didn't work, you'll have to post more of it. --- I should probably expand a bit on class inheritable attributes. They are a bit like class variables, a bit like class instance variables. If you define an inheritable attribute in a class, all its subclasses will share it. But...
[ 0.37113240361213684, -0.06894292682409286, -0.20014876127243042, 0.38352304697036743, -0.039624057710170746, -0.30863630771636963, 0.15754365921020508, 0.23235708475112915, -0.07613562047481537, -0.6267245411872864, 0.08327092975378036, 0.41731467843055725, -0.3070325255393982, 0.382826745...
class will simply override the value from the parent. With inheritable arrays and hashes, `write_inheritable_*` will concat / merge to the parent class's values. --- So, in practice, my `add_yaml_fields` works like this: ``` class Parent add_yaml_attributes :foo class Child1 < Parent add_yaml_attributes :bar ...
[ -0.0745718702673912, 0.21135938167572021, 0.15536093711853027, -0.16385813057422638, 0.2128761112689972, 0.4417375326156616, -0.02063107118010521, -0.15554778277873993, -0.010383342392742634, -0.6489301323890686, -0.12309226393699646, 0.35414713621139526, -0.3341861665248871, 0.23233678936...
It seems to me as if anything is now possible with computer graphics. Is seems as if we can depict cloth, water, skin, anything, completely convincingly. Are there areas that are are still a challenge, or is the focus now on finding faster algorithms and cutting rendering times? Raster graphics are basically a huge co...
[ 0.4287703335285187, -0.015920545905828476, 0.21766753494739532, 0.5017417669296265, -0.1453416347503662, -0.12280634790658951, 0.03547827899456024, 0.33021217584609985, -0.22997963428497314, -0.996360182762146, 0.2382849156856537, 0.6397390961647034, -0.21918195486068726, -0.01864467747509...
I'm trying to pass data from one page to another. > www.mints.com?name=something How to read `name` using JavaScript? Please see [this, more current solution](https://stackoverflow.com/a/55576345/18771) before using a custom parsing function like below, or a 3rd party library. The a code below works and is still use...
[ 0.42131373286247253, -0.0137330936267972, 0.29048773646354675, -0.11421304196119308, -0.16451306641101837, 0.040391743183135986, 0.5366111397743225, -0.09266411513090134, -0.26268842816352844, -0.5338531136512756, 0.029642557725310326, 0.13840503990650177, -0.42739126086235046, 0.199915856...
1 || url.length + 1, query = url.slice(queryStart, queryEnd - 1), pairs = query.replace(/\+/g, " ").split("&"), parms = {}, i, n, v, nv; if (query === url || query === "") return; for (i = 0; i < pairs.length; i++) { nv = pairs[i].split("=", 2); n = decodeURIComponent(n...
[ -0.006453436799347401, -0.34897640347480774, 0.49834612011909485, -0.2751321494579315, 0.0833296924829483, 0.12706555426120758, 0.09439632296562195, -0.5145632028579712, -0.07027597725391388, -0.4258766174316406, -0.616357684135437, 0.40698006749153137, -0.6308352947235107, 0.3567880988121...
if (!parms.hasOwnProperty(n)) parms[n] = []; parms[n].push(nv.length === 2 ? v : null); } return parms; } ``` Use as follows: ``` var urlString = "http://www.example.com/bar?a=a+a&b%20b=b&c=1&c=2&d#hash"; urlParams = parseURLParams(urlString); ``` which returns a an object like this: ``` { ...
[ -0.2314450740814209, 0.4387730062007904, 0.5052914619445801, -0.4625369608402252, -0.20316940546035767, 0.2989066541194916, 0.3273880183696747, -0.5432538986206055, -0.43826696276664734, -0.06993697583675385, -0.4801124334335327, 0.2189972996711731, -0.3727635443210602, 0.1844465136528015,...
an URL param can occur multiple times! */ "d" : [null] /* parameters without values are set to null */ } ``` So ``` parseURLParams("www.mints.com?name=something") ``` gives ``` {name: ["something"]} ``` --- **EDIT**: The [original version of this answer](https://stackoverflow.com/revisions/8146...
[ 0.07685384154319763, 0.11819877475500107, 0.41134029626846313, 0.0426282174885273, -0.3138523995876312, 0.09707409888505936, 0.5163366794586182, -0.3035506308078766, -0.3379233479499817, 0.1333215981721878, -0.396298885345459, -0.04556258022785187, -0.3326783776283264, 0.27571114897727966,...
I am having trouble getting routing to work on mono. The default route works fine but nothing else does. These are the routes I have setup: ``` routes.MapRoute( "HelloRoute", "Hello/{name}", new { controller = "Home", action = "Hello" } ); routes.MapRoute(
[ 0.07744544744491577, -0.007460030727088451, 0.2380463182926178, -0.11918580532073975, 0.09953216463327408, -0.13597679138183594, 0.35165947675704956, -0.08989249169826508, -0.33162519335746765, -1.0130095481872559, -0.04152120649814606, 0.39405447244644165, -0.44635292887687683, 0.08158333...
"Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } ); ``` and on my HomeController I have the corresponding action: ``` public ActionResult Index () { ViewData["Message"] = "Welcome to ASP.NET MVC on Mono!"; return V...
[ 0.013654237613081932, -0.4420403242111206, 0.6898322105407715, -0.2541670501232147, 0.1390950083732605, 0.1261533796787262, 0.4460977613925934, -0.21163317561149597, -0.4314720332622528, -0.6201621294021606, -0.4520062506198883, 0.7589963674545288, -0.3498974144458771, 0.17605023086071014,...
public ActionResult Hello(string name) { ViewData["Message"] = "hello "+name; return View (); } ``` now if I navigate to <http://localhost/> I get the message Welcome to... but if I go to <http://localhost/Hello/World> I get an error: ``` value name controller does not match any of the values...
[ -0.47614574432373047, -0.28203466534614563, 0.5965574979782104, -0.126146137714386, -0.10601199418306351, 0.20566946268081665, 0.5207509398460388, -0.3089596927165985, -0.5941855311393738, -0.4913986325263977, -0.38372132182121277, 0.4855118691921234, -0.40355953574180603, 0.09385899454355...
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext httpContext) [0x00000] at System.Web.HttpApplication+c\_\_Iterator2.MoveNext () [0x00000] at System.Web.HttpApplication.Tick () [0x00000] am I doing something obviously wrong? Apart from the aditional route, action and view ...
[ 0.20872798562049866, 0.013325952924787998, 0.30628302693367004, 0.0027465536259114742, -0.18815991282463074, 0.020010391250252724, 0.3749677240848541, -0.7025702595710754, -0.39962875843048096, -0.37666165828704834, 0.24736528098583221, 0.320796936750412, -0.44335052371025085, 0.4138630628...
I searched the web, but I find a bunch of very different diagrams. Most of them don't even look like object diagrams. They have no object's value. I want to know how I must draw an object diagram in such a way, that my prof won't tell me it's absolutely wrong. Any good tutorial link is highly appreciated! [![alt text](...
[ 0.04753297194838524, 0.2795175313949585, 0.24706877768039703, -0.062755286693573, -0.24662478268146515, -0.3417935371398926, 0.359009712934494, 0.1866716891527176, -0.417723149061203, -0.6749012470245361, -0.02078947424888611, 0.3417888581752777, 0.03806876763701439, 0.27144676446914673, ...
I am a newbie in WCF, currently I am developing a TCP WCF service and I am not sure that I understand passing parameters correctly or not so I recommend you to comment and give a standardized way. To get things clear I developed a small service for testing purpose that has single method and depends on an external .Net...
[ 0.4444092810153961, -0.13865061104297638, 0.16286058723926544, -0.14342887699604034, -0.14375059306621552, -0.21156413853168488, 0.4391745626926422, -0.3293793797492981, 0.021219749003648758, -0.655031681060791, 0.06687988340854645, 0.4243227541446686, -0.3015018403530121, 0.22179469466209...
calculationType ct, action a); [OperationContract] int Test2(DataSeries s); } ``` Where `actionType`,`calculationType`,`action` are enums declared inside the the external dll and `DataSeries` is a class declared inside the dll. The origianl defination for the `DataSeries` class in the dll is mark...
[ 0.045604780316352844, -0.03796401619911194, 0.30549925565719604, -0.13058792054653168, -0.259229838848114, 0.028408044949173927, 0.1308862417936325, -0.40703827142715454, -0.11019188165664673, -0.2756798565387726, -0.10053947567939758, 0.6322384476661682, -0.28557685017585754, 0.0168421771...
is going on? Another Experiment: Removing the 3rd party from the client side and using the service as it is I found that the vs2008 generates the enums and the `DataSeries` class and markes them with the proper attributes? like ``` [System.CodeDom.Compiler.GeneratedCodeAttribute ("System.Runtime.Serializat...
[ 0.15755285322666168, -0.3822029232978821, 0.6480875015258789, -0.07651765644550323, -0.038012757897377014, 0.17267963290214539, 0.4586637318134308, -0.41574326157569885, -0.3098975718021393, -0.19266349077224731, -0.2748394012451172, 0.6251336336135864, -0.1950116902589798, -0.086033694446...
[System.Runtime.Serialization.EnumMemberAttribute()] Sell = 2, } ``` [DataContract](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.datacontractattribute?view=net-6.0), [DataMember](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.datamemberattribute?view=...
[ 0.05390426144003868, -0.06706599146127701, 0.2850611209869385, -0.014352887868881226, -0.10449623316526413, -0.03251989185810089, 0.18070049583911896, -0.3312315046787262, -0.2671934962272644, -0.5817640423774719, -0.35523849725723267, 0.46089640259742737, -0.23075436055660248, 0.273868858...
and mark your classes with SerializableAttribute. You could also read this [post](https://web.archive.org/web/20190205023902/http://geekswithblogs.net/claraoscura/archive/2007/05/28/112799.aspx) for comparison between different bindings.
[ 0.20830106735229492, -0.04703998193144798, -0.05980563908815384, 0.3364745080471039, -0.05942089483141899, -0.2037080079317093, 0.4243832528591156, 0.3030053377151489, -0.3851945400238037, -0.33853673934936523, -0.1299469918012619, 0.11838207393884659, 0.2772502601146698, 0.455155164003372...
I have installed TFS on a single server and configured it completely as mentioned in the documentations and created a Project using MSF for agile process. Now when I'm trying to browse to the reports of the project site (<http://tfs/Sites/MyProject>) I get the following error: **The path of the item '/MyProject/Bug R...
[ 0.29218626022338867, 0.03469609096646309, 0.4843290448188782, -0.028284193947911263, -0.22325074672698975, -0.1304970532655716, 0.6065292954444885, 0.054734427481889725, -0.46405237913131714, -0.9478411078453064, -0.0493389293551445, 0.3940041959285736, -0.4384378492832184, 0.2017998397350...
mode to Native and now I get the following error: **The item '/MyProject/Bug Rates' cannot be found. (rsItemNotFound)** I also tried repairing the TFS, but it didn't solve the problem either. I assume you are writing a server type application (lets leave Web apps for a while - there are some good off the shelf solut...
[ 0.28530851006507874, -0.34315356612205505, 0.5126506090164185, -0.07282598316669464, -0.1744643896818161, -0.48902854323387146, 0.8131488561630249, 0.14151981472969055, -0.22792774438858032, -0.6582775712013245, -0.1542690247297287, 0.9912375807762146, -0.35772499442100525, 0.1187566742300...
or command type pattern, and are then executed on one or more queue's. So, first problem - need to store events/commands in a manner that will survive in the cluster (ie. when a new node takes over as master , it looks at the next command that needs executing and begins). Lets start with a single threaded server imp...
[ 0.013580714352428913, -0.2456974983215332, 0.485215425491333, 0.21886873245239258, -0.24158629775047302, 0.07815833389759064, -0.043928977102041245, 0.05623868480324745, -0.47407957911491394, -0.639448344707489, -0.11952917277812958, 0.3539385497570038, -0.3233444094657898, 0.1381217837333...
current command ? Where possible, handle side effects in a transactional manner, so that they are all or nothing. ie. if the command changes state variables, but crashes half way through execution, being able to return to the "previous" state is great. This allows the new master node to resume the crashed command and j...
[ -0.15346522629261017, -0.22381627559661865, 0.3702450692653656, 0.2149682193994522, 0.10755395144224167, -0.0709526464343071, 0.24246729910373688, 0.04935026168823242, -0.5870882868766785, -0.6336891055107117, -0.20892712473869324, 0.4631412625312805, -0.09755408763885498, 0.34424299001693...
task. This also introduces other issues which will effect your design. Those state variables are not necessarily databases updates. They could be shared state (say a finite state machine for an internal component) that needs to also be distributed in the cluster. So the pattern for managing changes such that the maste...
[ 0.16151063144207, -0.13831256330013275, 0.3834148347377777, 0.11036384105682373, 0.09641600400209427, -0.13035814464092255, 0.20130124688148499, -0.11266636103391647, -0.6515707969665527, -0.826007604598999, -0.07994573563337326, 0.6051186919212341, -0.2510945498943329, 0.21739423274993896...
through some sort of mediator or facade that only updates the local in memory copies with the updates after updating across the cluster (or the minimum number of members across the cluster for data consistency). Some of these issues are also present for master worker systems. Also need good error management as the nu...
[ 0.2585676610469818, -0.02411796897649765, 0.3121379017829895, 0.23485155403614044, -0.059062790125608444, -0.0861799567937851, 0.4117516577243805, 0.3158770501613617, -0.43304964900016785, -0.9145163893699646, 0.1261661946773529, 0.5378937125205994, -0.1309627890586853, 0.11184865236282349...
representation of end points. ie. client connected to master node needs to be able to reconnect to the new master, and then listen for results ? Or do you simply cancel all pending results and let the clients resubmit ? If you allow pending requests to be processed, a nice way to identify endpoints (clients) is needed ...
[ 0.010175633244216442, -0.29801568388938904, 0.32188037037849426, 0.36740460991859436, -0.1792854219675064, 0.050884541124105453, -0.07837976515293121, -0.29638075828552246, -0.5702903270721436, -0.6994567513465881, 0.13303600251674652, -0.06076333671808243, -0.32748451828956604, 0.35539019...
for java) to push events in a transactional manner. Terracotta (again for java) solves a lot of this for you - just update the memory - terracotta is your facade/mediator here. They have just inject the aspects for your. Terracotta (i don't work for them) - introduces the concept of "super static", so you get these c...
[ -0.08580169081687927, -0.1950005739927292, 0.10726531594991684, 0.1153654083609581, -0.281749427318573, 0.06092827022075653, 0.03799191117286682, 0.2213737964630127, -0.49007874727249146, -0.4094448685646057, 0.03197629749774933, 0.45791250467300415, -0.40304651856422424, -0.09953335672616...
session variable replication and a good load balancer works. In someways, using this via a REST (or your web service method of choice) is a an easy way to write a multi-threaded service. But it will have performance implications. Again depends on your problem domain. Messages serves (say jms) are often used to introdu...
[ 0.16185714304447174, -0.2786346673965454, 0.06777863949537277, 0.38259655237197876, -0.5302119851112366, -0.408395379781723, 0.5124868750572205, 0.1245347410440445, -0.5407760143280029, -0.6191712617874146, 0.1279602348804474, 0.5836851000785828, -0.4218522012233734, 0.41886451840400696, ...
Jms queue's etc can provide a simple way to distribute cmds in the cluster, indept of master / slave. (again it depends on if you are doing LOB or writing a server / product from scratch). (if i get time later I will tidy up, maybe put some more detail in fix spelling grammar etc)
[ 0.11471223831176758, -0.13777506351470947, 0.321374773979187, 0.18601886928081512, -0.1652195155620575, -0.024272330105304718, 0.12582595646381378, 0.1908690482378006, -0.2667649984359741, -0.9637168645858765, 0.004791380371898413, 0.09728113561868668, -0.19285328686237335, -0.051970683038...
Office 2007 and the Ribbon introduced the concept of "[Key Tips](http://blogs.msdn.com/outlook/archive/2008/10/20/ribbon-key-tips.aspx)". > In short, every single command in the > Ribbon receives a letter which you can > press to activate that command. ... > The letters are indicated by small > "KeyTips" which indicat...
[ -0.73626708984375, -0.22681613266468048, 0.9861059188842773, 0.0004809269157703966, 0.03559104725718498, -0.07823813706636429, -0.2234940379858017, -0.2514137029647827, -0.2154494673013687, -0.16337504982948303, -0.22188781201839447, 0.5348249673843384, 0.09598992764949799, -0.092877857387...
2007 http://blogs.msdn.com/blogfiles/outlook/WindowsLiveWriter/RibbonKeyTips\_8F7C/clip\_image002\_thumb.jpg](http://blogs.msdn.com/blogfiles/outlook/WindowsLiveWriter/RibbonKeyTips_8F7C/clip_image002_thumb.jpg) **Are there any WPF Open Source examples of "Key Tips"?** How would you go about implementing something li...
[ -0.11558277904987335, -0.17956481873989105, 0.39574551582336426, 0.21056436002254486, -0.012874400243163109, -0.390064001083374, 0.16752150654792786, 0.025398612022399902, -0.47342562675476074, -0.05670821666717529, 0.23750290274620056, 0.6163438558578491, 0.19605347514152527, 0.1903738230...
new type of server I have write", but I want it to be HA problem). In a server implementation, the requests from clients are usually (in some form or another) converted to some event or command type pattern, and are then executed on one or more queue's. So, first problem - need to store events/commands in a manner t...
[ -0.03953918069601059, -0.12898318469524384, 0.5773477554321289, -0.15290583670139313, -0.2576523721218109, 0.014484857209026814, 0.10203392058610916, -0.08836095780134201, -0.5198057889938354, -0.8551145195960999, -0.1507447361946106, 0.18474933505058289, -0.5743231177330017, 0.39973434805...
but its got its own set of issues0. When a command is being processed need some sort of transaction processing. Another concern is managing side effects and how do you handle failure of the current command ? Where possible, handle side effects in a transactional manner, so that they are all or nothing. ie. if the comm...
[ 0.03992311656475067, 0.05349738150835037, 0.13712453842163086, 0.2055055946111679, -0.008920994587242603, -0.23043476045131683, 0.36322301626205444, -0.019756827503442764, -0.6444416046142578, -0.5924972891807556, 0.01143556647002697, 0.478823184967041, 0.00026254632393829525, 0.2757984995...
into smaller tasks that can again be run on any node. ie. store the main request start and end tasks, with lots of little tasks that handle say only one side effect per task. This also introduces other issues which will effect your design. Those state variables are not necessarily databases updates. They could be shar...
[ 0.11277774721384048, -0.32048624753952026, 0.17051579058170319, 0.09771096706390381, 0.14094612002372742, -0.054625630378723145, 0.18169595301151276, -0.0868540108203888, -0.5156539678573608, -0.8759432435035706, -0.010972198098897934, 0.17275798320770264, -0.3581182658672333, 0.2104338258...
across the cluster. Using some form of immutable (at least from the master thread doing the update) data storage is useful. ie. all updates are effectively done on new copies that must go through some sort of mediator or facade that only updates the local in memory copies with the updates after updating across the clus...
[ 0.22904126346111298, 0.08156034350395203, 0.4803900718688965, 0.19140362739562988, 0.09394491463899612, -0.3335842788219452, 0.3252887427806854, 0.15751010179519653, -0.529146134853363, -0.9143181443214417, -0.11083415150642395, 0.5014676451683044, -0.22184491157531738, 0.3294413387775421,...
now involved). I use the state pattern a lot. Instead of one line updates, for side effects you want to send requests/responses, and use conversation specific fsm's to track the progress. Another issue is the representation of end points. ie. client connected to master node needs to be able to reconnect to the new ma...
[ -0.021893275901675224, -0.24751447141170502, 0.5250591039657593, 0.22479194402694702, -0.0371832549571991, -0.09443441033363342, 0.10365601629018784, -0.06870139390230179, -0.45165014266967773, -0.6291168928146362, 0.053414467722177505, 0.3334072232246399, -0.11873624473810196, 0.442022323...
need cleanup code etc (ie. don't want data waiting for a client to reconnect to wait forever). Lots of queue are used. A lot of people will therefore using some message bus (jms say for java) to push events in a transactional manner. Terracotta (again for java) solves a lot of this for you - just update the memory - ...
[ 0.06851000338792801, -0.29964905977249146, 0.11693069338798523, 0.20738665759563446, -0.10810408741235733, 0.04851622134447098, 0.01556331105530262, 0.1843658983707428, -0.5988282561302185, -0.5110561847686768, 0.13724060356616974, 0.5752108097076416, -0.2959795594215393, 0.126685380935668...
how this will effect testing and development workflow - ie. use lots of composition, instead of inheritance of concrete implementations for good reuse. For web apps - a good app server can help with session variable replication and a good load balancer works. In someways, using this via a REST (or your web service met...
[ 0.17442546784877777, 0.07213449478149414, 0.12098295986652374, 0.32628917694091797, -0.2396910935640335, -0.18716509640216827, 0.3960117697715759, -0.08745349198579788, -0.4785706400871277, -0.7955865859985352, -0.10751388967037201, 0.4413700997829437, -0.2858801782131195, -0.0377063602209...
a lot of msg routing (again apache camel or similar does a great job) ie. say a sticky consumer against a cluster of jms producers etc. that can also allow for good failover. Jms queue's etc can provide a simple way to distribute cmds in the cluster, indept of master / slave. (again it depends on if you are doing LOB o...
[ 0.04290473461151123, -0.19898638129234314, 0.0059462981298565865, 0.3577835261821747, -0.3068626821041107, -0.24284127354621887, 0.31848058104515076, 0.22727616131305695, -0.21542885899543762, -0.8580819964408875, -0.04512360692024231, 0.44888952374458313, -0.32893335819244385, -0.16458243...
I have an array of strings in python which each string in the array looking something like this: ``` <r n="Foo Bar" t="5" s="10" l="25"/> ``` I have been searching around for a while and the best thing I could find is attempting to modify a HTML hyperlink regex into something that will fit my needs. But not really...
[ 0.25758203864097595, 0.25359222292900085, 0.19921955466270447, -0.26029646396636963, -0.14619407057762146, 0.1383691132068634, 0.3108550012111664, -0.07918329536914825, -0.26687905192375183, -0.52932208776474, 0.19173692166805267, 0.5992537140846252, -0.40228909254074097, -0.14079406857490...
get you most of the way there: ``` >>> print re.findall(r'(\w+)="(.*?)"', string) [('n', 'Foo Bar'), ('t', '5'), ('s', '10'), ('l', '25')] ``` [re.split](http://docs.python.org/library/re.html#re.split) and [re.findall](http://docs.python.org/library/re.html#re.findall) are complementary. Every time your thought pr...
[ 0.18107695877552032, -0.03918267413973808, 0.48957639932632446, -0.1367257982492447, 0.18783198297023773, 0.12202644348144531, 0.15194866061210632, -0.29796433448791504, -0.24375218152999878, -0.6482782959938049, -0.5077117085456848, 0.7057334780693054, -0.005611398257315159, -0.1366520226...
I have created a [Windows Forms](http://en.wikipedia.org/wiki/Windows_Forms) application in .NET 2 using C# that runs continuously. For most accounts I am pleased with it, but it has been reported to me that it has failed occasionally. I am able to monitor its performance for 50% of the time and I have never noticed a ...
[ 0.4803538918495178, 0.43050169944763184, 0.18409352004528046, -0.3072287440299988, 0.03679740056395531, -0.37490829825401306, 0.3834751844406128, -0.09572692215442657, -0.1380172073841095, -0.9146239757537842, 0.034220315515995026, 0.491678386926651, -0.14963583648204803, -0.06252336502075...
connections, etc. or can I rely on the dispose method to take care of all garbage collection? Also: Is there a way that I could monitor resources used by the application? Best practice is to make sure that all objects implementing the [IDisposable](http://msdn.microsoft.com/en-us/library/system.idisposable.aspx) inter...
[ 0.43687155842781067, -0.14201387763023376, 0.3141387104988098, 0.1717127114534378, 0.2790740430355072, -0.4208061695098877, 0.20850884914398193, -0.29492226243019104, -0.26425477862358093, -0.9171746969223022, -0.40660834312438965, 0.5803361535072327, -0.1981041431427002, 0.304271996021270...
Dispose will be called on this form. You want to make sure that your disposable resources gets disposed at the same time. To do this you should override the forms [Dispose(bool disposing)](http://msdn.microsoft.com/en-us/library/a4zkb31d.aspx) method. The implementation should look something like this: ``` protected o...
[ 0.25251656770706177, 0.0034085179213434458, 0.21827726066112518, 0.26727017760276794, 0.06362821161746979, -0.3305312395095825, -0.021901611238718033, -0.4901512563228607, -0.31242090463638306, -0.7918363213539124, -0.04925236478447914, 0.4722762107849121, -0.2680141031742096, 0.4244549572...
will take care of disposing components when the container itself is disposed.
[ 0.3565024733543396, 0.4656514525413513, 0.2214135378599167, 0.08059343695640564, 0.40013960003852844, -0.21790443360805511, -0.2699607014656067, -0.062236640602350235, 0.010472753085196018, -0.5267374515533447, -0.45288631319999695, 0.3319670855998993, 0.177047997713089, -0.147910445928573...
My silverlight app needs to get back to the host from whence it came for its data. How do I get the webclient to connect back to the root of that site. For example, my silverlight xap is sitting in an Amazon S3 bucket and loaded via an HTML file in that same bucket. I want to do a <http://mybucket.s3.amazonaws.com/> a...
[ 0.4797525107860565, 0.19994209706783295, 0.39998188614845276, -0.011477630585432053, -0.4056936204433441, -0.05437156558036804, 0.2306031882762909, -0.35634171962738037, -0.22632814943790436, -0.5894039273262024, 0.1474858671426773, 0.23601141571998596, -0.33074209094047546, 0.160447359085...
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <TextBlock Text="{Binding Source}" /> </Grid> </UserControl> ```
[ -0.3423011004924774, 0.303257018327713, 0.591191828250885, -0.15398965775966644, -0.5487810373306274, -0.18584471940994263, -0.20846836268901825, -0.3176916539669037, -0.1940692514181137, -0.22141678631305695, -0.5574406385421753, 0.14253078401088715, -0.2513551414012909, 0.175941437482833...
Can we implement a enterprise wide intranet application completely with WinForms instead of Browser based Web apps? What are pros and cons and which is preferred over other? When `==` is used on an expression of type `object`, it'll resolve to [`System.Object.ReferenceEquals`](https://msdn.microsoft.com/en-us/library/s...
[ -0.005469113122671843, -0.1867920309305191, 0.3723698854446411, 0.35760974884033203, 0.21879564225673676, -0.20750321447849274, 0.29049503803253174, -0.06416326016187668, -0.07734452933073044, -0.7994965314865112, -0.382438063621521, 0.33654525876045227, -0.3480563759803772, 0.022101741284...
I'm surprised this doesn't happen automatically, but I would like my applications window to open automatically when the Dock icon is clicked. Just to clarify, when i open the app, the window automatically opens, but when I click the cross for the window but leave the App running, the window won't open when i click the...
[ 0.16142693161964417, 0.10056480020284653, 0.5747954249382019, 0.050993382930755615, 0.20434348285198212, -0.30995362997055054, 0.6348862051963806, -0.26839572191238403, -0.35347113013267517, -0.8354231715202332, -0.5427107810974121, 0.7927097678184509, -0.2862747013568878, -0.0665234699845...
clicked then it will create a new document. If there are no open windows when the dock icon of a non-document based app is clicked then it will do nothing.
[ 0.2970193922519684, -0.12005887180566788, 0.6557411551475525, 0.05277621001005173, 0.14038558304309845, -0.3673962652683258, 0.31842610239982605, 0.24846675992012024, -0.2396364063024521, -0.6579970121383667, -0.248001828789711, 0.4011535942554474, -0.46714526414871216, 0.25257131457328796...
Given a Vehicle class and a VehicleProperty class... ``` public class Vehicle { public virtual int Id { get; protected set; } public virtual string Registration { get; set; } private List<VehicleProperty> _properties = new List<VehicleProperty>(); public virtual IEnumerable<VehicleProperty> Properties...
[ 0.17061391472816467, 0.11152749508619308, 0.46037057042121887, 0.2520604729652405, 0.1158422902226448, 0.4723569452762604, -0.08151967078447342, -0.26612016558647156, -0.10913854837417603, -0.5237725973129272, -0.5614233016967773, 0.7576850056648254, 0.16373714804649353, 0.4395438730716705...
_properties.Add(new VehicleProperty {Name = name, Value = value}); } } public class VehicleProperty { public virtual string Name { get; set; } public virtual string Value { get; set; } } ``` How can I map the two classes so that the VehicleProperty table has a composite key of [VehicleId] and [Name]. Veh...
[ -0.027981825172901154, 0.05494505167007446, 0.2853951156139374, 0.19490596652030945, 0.006384630687534809, 0.31477275490760803, 0.12594065070152283, -0.2926011383533478, -0.17871512472629547, -0.7342538237571716, 0.059230927377939224, 0.7790699005126953, -0.07412822544574738, 0.36364957690...