text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
<TextBlock FontWeight="Bold" Text="{Binding Path=ItemCount}" />
[ 0.08099555969238281, 0.031209735199809074, 0.19065818190574646, -0.17502157390117645, -0.2850402295589447, 0.13584963977336884, 0.18690453469753265, -0.3240475356578827, -0.13017866015434265, -0.5409336090087891, -0.09245294332504272, 0.29365310072898865, -0.1720910221338272, -0.1597824841...
</DockPanel> </Expander.Header> <Expander.Content>
[ 0.2937736213207245, -0.1464540809392929, 0.26120084524154663, -0.34119826555252075, 0.16985787451267242, 0.20508158206939697, -0.5318838953971863, 0.15298762917518616, -0.8708107471466064, -0.8473376631736755, -0.4431822896003723, 0.345424085855484, -0.32264357805252075, 0.1245317682623863...
<ItemsPresenter /> </Expander.Content>
[ 0.15933668613433838, -0.034390889108181, 0.37851080298423767, 0.02084892988204956, -0.07128045707941055, 0.04629160091280937, -0.13305340707302094, 0.060338277369737625, -0.8660834431648254, -0.4830869138240814, -0.44377610087394714, 0.10858489573001862, -0.05482765659689903, 0.40817528963...
</Expander> </ControlTemplate>
[ -0.1923084855079651, -0.2542407512664795, 0.3665637671947479, -0.05261113867163658, 0.27063342928886414, -0.2396174967288971, -0.2526274621486664, -0.39917904138565063, -0.09913446754217148, -0.6271077394485474, -0.1710437536239624, 0.4936458170413971, -0.40773624181747437, 0.1638478189706...
</Setter.Value> </Setter> </Style>
[ 0.28523823618888855, -0.06000477075576782, 0.08242254704236984, 0.11748944967985153, -0.056453704833984375, -0.07483642548322678, -0.1509752720594406, -0.3412179946899414, -0.1255011409521103, -0.45374470949172974, -0.36953485012054443, 0.18728502094745636, -0.4012744426727295, -0.24638052...
</GroupStyle.ContainerStyle> </GroupStyle> </ListView.GroupStyle> </ListView> </ControlTemplate> </Window.Resources> <StackPanel> <CheckBox Name="chkExpandAll" IsChecked="True" Content="Expand All" /> <ListView ItemsSource='{Binding Source...
[ 0.04410973936319351, -0.2734634280204773, 0.6417065858840942, -0.0947447270154953, 0.0013054946903139353, -0.11278682947158813, 0.02259996347129345, -0.4347911477088928, -0.5123952627182007, -0.6045113801956177, -0.09534762799739838, 0.007277705240994692, -0.16312922537326813, 0.0177200231...
solution for the problem. What needs to be done is specify Mode=TwoWay and UpdateSourceTrigger=Explicit, so this way it is not breaking Binding and everything works fine. Bellow is an example of working code. ``` <Window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas....
[ -0.2968722879886627, 0.023375514894723892, 0.5434299111366272, 0.009497188962996006, 0.036434534937143326, -0.16679738461971283, 0.2288965880870819, -0.41963163018226624, -0.14204327762126923, -0.5069277286529541, -0.26274916529655457, 0.5217117667198181, -0.234401136636734, 0.114031009376...
<Item Name="Item 1" Category="Cat1" /> <Item Name="Item 2" Category="Cat1" /> <Item Name="Item 3" Category="Cat2" /> <Item Name="Item 4" Category="Cat2" />
[ -0.3071443438529968, -0.17857776582241058, 0.2854921221733093, 0.19266155362129211, -0.5454069972038269, 0.4399246573448181, 0.2579628527164459, -0.32862046360969543, -0.7196295261383057, -0.30485472083091736, -0.34858396649360657, 0.2186804860830307, -0.3736923038959503, 0.208291649818420...
<Item Name="Item 5" Category="Cat2" /> <Item Name="Item 6" Category="Cat3" /> </Info> </x:XData> </XmlDataProvider> <CollectionViewSource x:Key='src' Source="{Binding Source={StaticResource MyData}, XPath=Item}"> <CollectionViewSource.GroupDes...
[ -0.10785215348005295, -0.22788099944591522, 0.5535469055175781, 0.09938938915729523, -0.3772653639316559, 0.0183958038687706, -0.08259256184101105, -0.5040114521980286, -0.5583996772766113, -0.32887381315231323, -0.32553330063819885, 0.10206731408834457, -0.1410399228334427, 0.310389965772...
<PropertyGroupDescription PropertyName="@Category" /> </CollectionViewSource.GroupDescriptions> </CollectionViewSource> <ControlTemplate x:Key="ListTemplate" TargetType="ListView"> <ListView BorderThickness="0" ItemsSource='{Binding RelativeSource={Relative...
[ 0.11322595179080963, -0.4719598889350891, 0.7762109041213989, 0.046750377863645554, 0.04965728148818016, -0.08555011451244354, 0.0822887122631073, -0.584196150302887, -0.14151330292224884, -0.47980108857154846, -0.11322251707315445, 0.48130959272384644, -0.005059121176600456, 0.33190608024...
Path=DisplayMemberPath}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}">
[ 0.06540510058403015, -0.4836977422237396, 0.34460318088531494, -0.10695106536149979, -0.0905786007642746, -0.07449863851070404, 0.1160324364900589, -0.2654644846916199, -0.049159932881593704, -0.7260818481445312, 0.01921757310628891, 0.10062599927186966, -0.37055322527885437, -0.2991709113...
<Setter Property="Margin" Value="0,0,0,5" /> <Setter Property="Template"> <Setter.Value>
[ 0.21788951754570007, -0.20355108380317688, 0.24027684330940247, 0.05908249318599701, 0.17431943118572235, -0.06722238659858704, -0.3521876931190491, -0.7822061777114868, -0.03571268543601036, -0.5364067554473877, -0.06718315929174423, 0.3308638334274292, -0.11162776499986649, 0.04313556477...
<ControlTemplate TargetType="{x:Type GroupItem}"> <StackPanel>
[ -0.17875820398330688, -0.18980015814304352, -0.13149020075798035, -0.13862159848213196, 0.13076616823673248, -0.14347954094409943, -0.01570083759725094, -0.2741549015045166, -0.019192993640899658, -0.31126683950424194, -0.1132870689034462, 0.1466161161661148, -0.3824431598186493, -0.118784...
<Expander Name="exp" IsExpanded="{Binding IsChecked, ElementName=chkExpandAll, Mode=TwoWay, UpdateSourceTrigger=Explicit}"> <Expander.Header>
[ -0.1365395188331604, -0.3699197769165039, 0.35512617230415344, -0.22030270099639893, 0.1467580795288086, -0.24449460208415985, -0.06772594153881073, -0.22974465787410736, -0.3318120837211609, -0.5603830814361572, -0.5231461524963379, 0.30814141035079956, -0.6447213888168335, 0.192183479666...
<DockPanel> <TextBlock FontWeight="Bold" Text="{Binding Path=Name}" Margin="5,0,0,0" Width="100" />
[ 0.1487802267074585, 0.0905158519744873, 0.8426838517189026, -0.24374127388000488, -0.005782383494079113, 0.5290253758430481, -0.12114933878183365, -0.4865947365760803, -0.4859749376773834, -0.483415424823761, 0.09115244448184967, 0.4455684423446655, 0.14211979508399963, -0.1895772963762283...
<TextBlock FontWeight="Bold" Text="{Binding Path=ItemCount}" />
[ 0.08099555969238281, 0.031209735199809074, 0.19065818190574646, -0.17502157390117645, -0.2850402295589447, 0.13584963977336884, 0.18690453469753265, -0.3240475356578827, -0.13017866015434265, -0.5409336090087891, -0.09245294332504272, 0.29365310072898865, -0.1720910221338272, -0.1597824841...
</DockPanel> </Expander.Header> <Expander.Content>
[ 0.2937736213207245, -0.1464540809392929, 0.26120084524154663, -0.34119826555252075, 0.16985787451267242, 0.20508158206939697, -0.5318838953971863, 0.15298762917518616, -0.8708107471466064, -0.8473376631736755, -0.4431822896003723, 0.345424085855484, -0.32264357805252075, 0.1245317682623863...
<ItemsPresenter /> </Expander.Content>
[ 0.15933668613433838, -0.034390889108181, 0.37851080298423767, 0.02084892988204956, -0.07128045707941055, 0.04629160091280937, -0.13305340707302094, 0.060338277369737625, -0.8660834431648254, -0.4830869138240814, -0.44377610087394714, 0.10858489573001862, -0.05482765659689903, 0.40817528963...
</Expander> </StackPanel>
[ -0.3862169086933136, -0.17729856073856354, 0.18701238930225372, -0.3588699698448181, 0.16311977803707123, -0.07299508154392242, -0.1987316906452179, -0.11003406345844269, -0.5885206460952759, -0.6290695667266846, -0.4890094995498657, 0.15033483505249023, -0.24891136586666107, -0.1224212199...
</ControlTemplate> </Setter.Value> </Setter>
[ -0.13781322538852692, -0.13949547708034515, 0.32902073860168457, 0.33480581641197205, 0.10486825555562973, -0.14402766525745392, -0.414542555809021, -0.4392189681529999, 0.031002672389149666, -0.3264792561531067, 0.0026298193261027336, 0.507090151309967, -0.5243932008743286, 0.054930418729...
</Style> </GroupStyle.ContainerStyle> </GroupStyle> </ListView.GroupStyle> </ListView>
[ 0.37683266401290894, -0.22645708918571472, 0.35451000928878784, -0.05692306160926819, -0.4661886990070343, -0.4084222912788391, 0.1281386911869049, -0.3579500615596771, -0.5029875040054321, -0.30351024866104126, -0.1960527002811432, -0.0974077507853508, -0.04195018112659454, -0.31945902109...
</ControlTemplate> </Window.Resources> <StackPanel> <CheckBox Name="chkExpandAll" Content="Expand All" /> <ListView ItemsSource='{Binding Source={StaticResource src}}' DisplayMemberPath="@Name" BorderThickness="1" Template="{StaticResource ListTemplate}" /> </StackPanel> </Window> ```
[ -0.0056600202806293964, -0.3108590245246887, 0.6698389053344727, -0.051920775324106216, -0.012154385447502136, -0.06716025620698929, 0.027800288051366806, -0.45770686864852905, -0.44588103890419006, -0.5957388281822205, -0.11314071714878082, 0.365170419216156, -0.10822981595993042, 0.11712...
I'm wonder what the best way to convert a byte array (length 4) to an integer is in vb.net? I'm aware of BitConverter, but it seems like quite a waste to do a function call to do something that should be able to be done by copying 4 bytes of memory. Along the same lines, what about converting a single/double from it's ...
[ 0.4837205410003662, 0.09284254163503647, 0.17462818324565887, -0.07555045187473297, -0.3059347867965698, 0.07600542157888412, -0.012326544150710106, 0.027707071974873543, -0.5764812231063843, -0.33591076731681824, 0.10799527168273926, 0.7267768979072571, -0.27312493324279785, 0.16786590218...
unavoidable for this. BitConverter is a well-thought-out, tested function. Of course, you can avoid it by doing something like (in C#): ``` myInt = (*pbyte) | (*(pbyte + 1) << 8) | (*(pbyte + 2) << 16) | (*(pbyte + 3) << 24); ``` (which is, incidentally, *exactly* what BitConverter does for you when converting a b...
[ -0.06294655799865723, -0.10197160392999649, 0.11834744364023209, -0.11099836975336075, -0.1312369406223297, 0.04159284755587578, 0.2360900342464447, 0.09110868722200394, -0.10759708285331726, -0.5675942897796631, -0.08342958241701126, 0.4707328975200653, -0.23362019658088684, 0.13816437125...
call, but you will be significantly worse off in the end (even assuming you don't introduce any bugs). In general, the .NET Framework is very, very well designed, and you shouldn't think twice about using its functionality, unless you encounter actual (performance) issues with it.
[ 0.3867373764514923, 0.09260539710521698, 0.14580078423023224, 0.07607876509428024, -0.05369780585169792, -0.5128443241119385, 0.5552098155021667, -0.019726580008864403, -0.020645415410399437, -0.4611740708351135, -0.3170910179615021, 0.7750663161277771, -0.28177210688591003, -0.25800949335...
Using DTS I'm dynamically creating an access database. After the file is created (which works at this point) I'm having the DTS package post it via HTTP to another site. (This HTTP is just how it has to be done -- part of the spec.) But when the package posts the file, the posted version comes out as a 0 byte file. Th...
[ 0.55939781665802, -0.026857616379857063, 0.0013188293669372797, -0.02700779214501381, -0.15474747121334076, -0.07189365476369858, 0.19288891553878784, 0.21922434866428375, -0.09961704909801483, -0.907253086566925, 0.008711758069694042, 0.6334155201911926, -0.23443365097045898, 0.1095662936...
the DTS package must complete for the access file to be closed. **The Question is:** How do I get Access to close the Access file before the step to post the file executes? Just in case it is needed, the steps are: * Create the Access file, set a pre-defined access connection object to this new file * Create the Tab...
[ 0.28371912240982056, -0.24351119995117188, 0.5880143642425537, 0.18511037528514862, -0.015367954038083553, 0.023763101547956467, 0.3064071536064148, 0.0741458535194397, -0.06499242782592773, -0.8697295188903809, -0.4302433431148529, 0.5843997001647949, -0.05818615481257439, 0.2594558596611...
the file (or after I'm done writing to the file) have the workflow close the connection I can accomplish this by checking the "Close Connection on completion" checkbox on the options tab of the Workflow Properties dialog. Thank you all!
[ 0.2884867191314697, 0.297573447227478, 0.9804665446281433, 0.05134863778948784, 0.04869101196527481, -0.6408872604370117, 0.5253211855888367, 0.301388680934906, -0.14920754730701447, -0.7014155983924866, -0.31881266832351685, 0.5310496091842651, 0.3652866780757904, 0.32851922512054443, 0...
I am looking for a good way to transfer non-trivial (10G > x >10MB) amounts of data from one machine to another, potentially over multiple sessions. I have looked briefly at * \*ftp (sftp, tftp, ftp) * http * torrents (out because I will not have a seed network in general) * rsync (not sure if I can really adapt this...
[ 0.3865988552570343, 0.1652911901473999, 0.1572405844926834, 0.2104974389076233, 0.05280672013759613, -0.18504895269870758, 0.15011143684387207, 0.25964638590812683, -0.4859885573387146, -0.9150524735450745, 0.28884756565093994, 0.37078559398651123, -0.08142083138227463, 0.0497773252427578,...
stage I care much more about the protocol itself, rather than a particular client/server implementation that works well. (And yea I know I can write my own over udp, but I'd prefer *almost anything else*!!) I use rsync (over SSH) to transfer anything that I think might take more than a minute. It's easy to rate-limi...
[ 0.19037401676177979, -0.08231737464666367, 0.6239033937454224, -0.17835070192813873, 0.04516096040606499, -0.13520438969135284, 0.14933794736862183, -0.08699660748243332, -0.0352230928838253, -0.7045446634292603, -0.1275257021188736, 0.26865026354789734, -0.04201871156692505, -0.0485631078...
great for one-to-one or one-to-a-few transfers.
[ 0.3100532591342926, -0.7485133409500122, -0.06493103504180908, 0.3995630741119385, -0.009314043447375298, 0.02543141134083271, -0.25080811977386475, 0.16862577199935913, -0.36597350239753723, -0.2888139486312866, 0.18075667321681976, 0.264484167098999, -0.0015304931439459324, -0.2742140293...
Is there a way to cast a user control as a specific user control so I have access to it's public properties? Basicly I'm foreaching through a placeholder's controls collection and I'm trying to access the user control's public properties. ``` foreach(UserControl uc in plhMediaBuys.Controls) { uc.PulblicPropertyIWa...
[ -0.4484548568725586, 0.10172245651483536, 0.3422955870628357, 0.21192018687725067, 0.3356432616710663, -0.002315424382686615, -0.04066469147801399, 0.02224223129451275, 0.09923107922077179, -0.479120671749115, -0.41647911071777344, 0.3520035743713379, -0.27790844440460205, 0.41975995898246...
I'm getting the strangest results. I have a class with a composite key. If i do the following query: > from LOVEJB l order by l.canonicalId > desc my results are not ordered by the '**canonicalId**' column I asked for. Instead, the canonical id result is like: > 823 823 822 823 ,,, Can someone give me some pointer...
[ 0.09197516739368439, 0.28914180397987366, 0.46627113223075867, 0.22743861377239227, -0.3393232226371765, -0.035553574562072754, 0.4519410729408264, 0.016649169847369194, -0.3098497688770294, -0.9443183541297913, 0.17635641992092133, 0.18369515240192413, 0.01292420458048582, 0.3247290551662...
Is it possible to use the asp templating engine (With the partial code-behind class, dynamic <% ... %> blocks and such) to generate non HTML? I want to have a clean and maintainable way to generate code dynamically. (Specifically, I want to generate LaTeX code populated with values from a database.) Currently my LaTe...
[ 0.4875330626964569, -0.09578034281730652, 0.23354357481002808, 0.022572094574570656, -0.2581092119216919, -0.1808425933122635, 0.2039044201374054, -0.028696002438664436, -0.288836270570755, -0.6005750894546509, -0.12760715186595917, 0.3873006999492645, -0.3054473102092743, -0.0018690127180...
the output isn't HTML, or b) how to actually render the result into a .tex file. The generating code itself is located in a C# .dll. We're using .NET 3.5 Is this possible? Thanks in advance. The T4 templating that comes with Visual Studio 2008 natively or with Visual Studio 2005 SDK, you can pretty much generate anyt...
[ 0.46910879015922546, 0.07436040788888931, 0.053630564361810684, 0.123690165579319, -0.42574945092201233, -0.053726620972156525, 0.3308398127555847, -0.2818692922592163, -0.13674305379390717, -0.44086411595344543, -0.1629542112350464, 0.5001947283744812, -0.16491545736789703, -0.26864367723...
to generate T4 templates outside of Visual Studio, there is custom MSBuild task to invoke a T4 template ([link](https://web.archive.org/web/20200803154046/http://geekswithblogs.net/EltonStoneman/archive/2008/07/25/an-msbuild-task-to-execute-t4-templates.aspx)) Here is a sample of the "Execute" code of the MSBuild task...
[ 0.4650515913963318, -0.03648283705115318, 0.2321764975786209, -0.06439966708421707, -0.17732125520706177, -0.08250270038843155, 0.4354031980037689, -0.625968873500824, -0.3107856512069702, -0.5316464304924011, -0.4334425926208496, 0.47634297609329224, -0.6226599216461182, -0.07379300147294...
Path.GetTempFileName(); File.WriteAllText(this._tempFilePath, template); //shell out to the exe: ProcessHelper.Run(this, TextTransform.ToolPath, TextTransform.ExeName, string.Format(TextTransform.ArgumentFormat, this.OutputPath, this._tempFilePath)); success = true; return success; } ```
[ 0.11537293344736099, -0.06679660081863403, 0.6351826786994934, -0.21217305958271027, 0.39723116159439087, 0.14295083284378052, 0.6175755858421326, -0.5125169157981873, -0.012370076030492783, -0.6903993487358093, -0.2879323661327362, 0.8752952218055725, -0.2295757532119751, 0.04332428425550...
What is [`java.awt.Component.getName()`](http://docs.oracle.com/javase/6/docs/api/java/awt/Component.html#getName%28%29) used for? It always seems to be `null` in the applications I build with NetBeans. I'm thinking of storing some help text per component in it -- I don't want to use the tooltip, I have another panel w...
[ 0.09765508770942688, -0.09647757560014725, 0.09371375292539597, -0.14555220305919647, 0.034315552562475204, 0.16149647533893585, -0.14806613326072693, -0.25999829173088074, -0.09192482382059097, -0.4972124993801117, -0.23025576770305634, 0.5729835033416748, -0.3142143487930298, -0.00111732...
in AWT and Swing debug logging code. I suspect strongly that the getName() method is also used by some AWT/Swing testing frameworks. So if you're not dependent on any of the above uses of getName(), you might try using it for your help messages, though I would not recommend it. Maybe you should reconsider your desi...
[ 0.7264862060546875, -0.16711236536502838, -0.14750061929225922, 0.08001397550106049, -0.11956596374511719, -0.4583272635936737, 0.24314989149570465, -0.06517956405878067, -0.16580165922641754, -0.308615118265152, 0.06769679486751556, 0.47089990973472595, -0.2033141553401947, -0.26067057251...
I am a support engineer and our company's product allows XSLT transforms to customize outputs. I made a xsl transform for this purpose. It works well for source files of typical size (several 100k), but occasionally a really huge (10M) source file will come by. In such case, the output is not generated even if I let i...
[ 0.6066384315490723, 0.03971662372350693, 0.18986620008945465, -0.17433306574821472, -0.23409514129161835, -0.02308063581585884, 0.30624252557754517, -0.18926377594470978, 0.19968640804290771, -0.5370801091194153, 0.1755964457988739, 0.7021616101264954, -0.003387689823284745, -0.01255411561...
with .Net 2.0, it is plenty fast (about 1-2 minutes). The long term solution obviously is, wait for the next release. For the short term I am wondering the following: 1) Is XSLT flexible enough that there are more efficient and less efficient ways to acheive the same result? For example, is it possible that the way I...
[ 0.4525824785232544, -0.39671963453292847, 0.4464820921421051, 0.030674224719405174, -0.06527603417634964, -0.32141417264938354, 0.11123988032341003, -0.20573054254055023, -0.19224321842193604, -0.8045423626899719, 0.06565199047327042, 0.37290847301483154, -0.3118491470813751, -0.2599844038...
the transform engine interprets the xsl? If 2 is the case, I don't want to waste a lot of time trying to improve the xsl (I am not a big xsl genius, it was hard enough for me to achieve what little I did...). Thanks! > To detect when to start a new section, I did this: > > > > ``` > <xsl:if test="@TheFirstCol>prec...
[ 0.014864064753055573, -0.5524405241012573, 0.35980939865112305, -0.13082855939865112, -0.4702562391757965, -0.14499713480472565, 0.49077025055885315, -0.42775294184684753, 0.30031490325927734, -0.6843165755271912, 0.08942257612943649, 0.897472083568573, -0.3942221403121948, -0.140629917383...
<xsl:output method="text"/> <xsl:key name="kC1Value" match="@c1" use="."/> <xsl:template match="/"> <xsl:for-each select="*/x[generate-id(@c1) = generate-id(key('kC1Value',@c1)[1])]"> <xsl:value-of select="concat('&#xA;',@c1)"/> <xsl:for-each select="key('kC1Value',@c1)"> <xsl:valu...
[ -0.3338404893875122, -0.2498413473367691, 0.6370654106140137, -0.007871429435908794, -0.11263927072286606, -0.10565313696861267, -0.13796480000019073, -0.6263944506645203, -0.00406845984980464, -0.5970074534416199, -0.3051880896091461, 0.4679320752620697, -0.18337130546569824, -0.054116625...
1.1) has a notoriously inefficient implementation of the `generate-id()` function. The following may be faster with XslTransform: Solution2: ========== ``` <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:key name="kC1Value" match="@c1" use="."/> ...
[ -0.3497413992881775, -0.657325267791748, 0.6202993392944336, -0.1684897243976593, -0.13028433918952942, -0.26667171716690063, 0.1299477219581604, -0.621441662311554, 0.17041833698749542, -0.689644455909729, -0.36593151092529297, 0.6137661337852478, -0.6470549702644348, -0.04717984050512314...
</xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:template> </xsl:stylesheet> ``` When applied on the following small XML document: ``` <t> <x c1="1" c2="0" c3="0" c4="0" c5="0"/> <x c1="1" c2="0" c3="1" c4="0" c5="0"/> <x c1="1" c2="2" c3="0" c4="0" c5="0"/> <x c1="1" c2="1" c3="1" c4="0" c...
[ -0.25723686814308167, 0.415798157453537, 0.2539725601673126, 0.02171226032078266, 0.155520960688591, 0.30457833409309387, 0.04372942075133324, -0.8095728754997253, -0.11034836620092392, -0.30356040596961975, -0.24059170484542847, 0.4798479378223419, 0.08282129466533661, -0.3360109627246856...
c3="0" c4="0" c5="0"/> <x c1="3" c2="0" c3="1" c4="0" c5="0"/> <x c1="3" c2="2" c3="0" c4="0" c5="0"/> <x c1="3" c2="1" c3="1" c4="0" c5="0"/> <x c1="4" c2="0" c3="0" c4="0" c5="0"/> <x c1="4" c2="0" c3="1" c4="0" c5="0"/> <x c1="4" c2="2" c3="0" c4="0" c5="0"/> <x c1="4" c2="1" c3="1" c4="0" c5="0"/> <x c1="5"...
[ -0.2489536702632904, 0.5525486469268799, 0.09475066512823105, 0.1328694224357605, 0.010543656535446644, 0.4859026074409485, 0.26656851172447205, -0.6633745431900024, -0.20807480812072754, 0.0023821601644158363, -0.2507554888725281, 0.5224155783653259, 0.08015572279691696, -0.11348377168178...
c1="6" c2="0" c3="1" c4="0" c5="0"/> <x c1="6" c2="2" c3="0" c4="0" c5="0"/> <x c1="6" c2="1" c3="1" c4="0" c5="0"/> <x c1="7" c2="0" c3="0" c4="0" c5="0"/> <x c1="7" c2="0" c3="1" c4="0" c5="0"/> <x c1="7" c2="2" c3="0" c4="0" c5="0"/> <x c1="7" c2="1" c3="1" c4="0" c5="0"/> <x c1="8" c2="0" c3="0" c4="0" c5="0...
[ -0.41486841440200806, 0.26444941759109497, 0.21585197746753693, 0.0364101305603981, 0.14734740555286407, 0.5175729393959045, 0.04710559919476509, -0.9034201502799988, -0.5154505968093872, -0.3113475739955902, -0.1529550701379776, 0.7794278264045715, 0.03829373046755791, -0.1827051937580108...
0 0 1 1 0 0 2 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0 0 3 0 0 0 0 0 1 0 0 2 0 0
[ -0.20734991133213043, 0.4084881842136383, 0.23220442235469818, -0.36647558212280273, -0.6133489012718201, 0.1532198041677475, 0.289539098739624, -0.2832193076610565, 0.27727964520454407, -0.4348580539226532, -0.10760605335235596, -0.5038630366325378, -0.23623454570770264, 0.565420150756835...
0 1 1 0 0 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0 0 4 0 0 0 0 0 1 0 0 2 0 0 0
[ -0.1616102010011673, 0.4196262061595917, 0.2773880958557129, -0.2865063548088074, -0.5808961987495422, 0.1556812971830368, 0.22166487574577332, -0.2512994706630707, 0.21245013177394867, -0.42087772488594055, -0.12423040717840195, -0.5191988348960876, -0.24376662075519562, 0.577540457248687...
1 1 0 0 5 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 6 2 0 0 0 1 1
[ -0.2688257694244385, 0.34536686539649963, 0.2512877881526947, -0.25466933846473694, -0.4259932041168213, 0.07965034991502762, 0.13992096483707428, -0.385610431432724, 0.2243727445602417, -0.46006396412849426, -0.11683567613363266, -0.5343204140663147, -0.1915697604417801, 0.596906483173370...
0 0 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0 0 7 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0
[ -0.21100212633609772, 0.4557735323905945, 0.3310188353061676, -0.374910831451416, -0.5216227769851685, 0.12689109146595, 0.24164055287837982, -0.1216074526309967, 0.21902385354042053, -0.39485347270965576, -0.17776796221733093, -0.4968150556087494, -0.12893012166023254, 0.6124767661094666,...
0 8 0 0 0 0 0 1 0 0 2 0 0 0 1 1 0 0 ``` From the above small XML file I generated a 10MB XML file by copying every element 6250 times (using another XSLT transformation :) ). With the 10MB xml file and with XslCompiledTransform (.Net 2.0 + ) the two solutions had the following tra...
[ -0.38029944896698, -0.022565707564353943, 0.8040071129798889, -0.17086158692836761, 0.01511096116155386, 0.2903280556201935, 0.16054701805114746, -0.6488824486732483, 0.003491239622235298, -0.6572322249412537, 0.06943303346633911, 0.08511291444301605, -0.2816793918609619, -0.04037614911794...
XslTransform (.Net 1.1) Solution2 ran for 1622sec.; that is about 27 minutes.
[ -0.12408657371997833, -0.40542739629745483, 0.492300808429718, 0.2985594868659973, -0.05797397717833519, -0.10169105976819992, 0.7507379055023193, -0.03526189178228378, 0.04540547356009483, -0.5928952693939209, 0.042230699211359024, 0.3113554120063782, -0.2035149186849594, -0.6075853109359...
I am attempting to send an email using VB.NET. There are two requirements: 1. The email be saved in their "Sent Items" folder in Outlook (their only email client). 2. A PDF (generated on the fly) is attached to the email. I am currently creating a new [MailMessage](http://msdn.microsoft.com/en-us/library/system.net....
[ 0.2955242693424225, 0.05037887766957283, 0.4545237123966217, -0.046009764075279236, -0.15124255418777466, -0.1901109218597412, 0.3233458995819092, -0.10637844353914261, 0.0382976271212101, -0.7681044340133667, 0.020904541015625, 0.24809542298316956, -0.24240601062774658, 0.0957635864615440...
much easier alternative, how about BCC the user (which will get to their Inbox) and configure an Outlook rule to move it to sent items?
[ 0.2685704231262207, -0.30032938718795776, 0.10243166983127594, 0.339934766292572, 0.05357532203197479, -0.025284186005592346, -0.0248178131878376, 0.08605668693780899, -0.13916392624378204, -0.44627630710601807, 0.15267688035964966, 0.4697803854942322, -0.20119336247444153, -0.363785356283...
As a followup to my [question about the java.awt.Component.getName() property](https://stackoverflow.com/questions/227143/java-what-is-javaawtcomponentgetname-and-setname-used-for), I'm wondering if there is a way of squirreling an arbitrary object somewhere in a Component, similar to the [tag property in .NET](http://...
[ 0.18967242538928986, -0.0252069178968668, 0.11732975393533707, 0.053549982607364655, 0.02681102603673935, -0.25284457206726074, 0.20741313695907593, -0.18255631625652313, -0.40599721670150757, -0.5922914147377014, -0.012760910205543041, 0.24895010888576508, -0.17156550288200378, 0.13099756...
don't want to use a tooltip). My answer currently is to use the Name (getName()/setName()) to store the help text, and this will work, but the Name has to be a string. If I wanted to get fancier and store anything other than a string, I think I'd be stuck. I generally create a hash and put (component, cookie) whenever ...
[ 0.4786098599433899, -0.1077614352107048, 0.7235884070396423, 0.20981217920780182, 0.1644027680158615, -0.17370814085006714, 0.4069676697254181, 0.09157957881689072, -0.12570981681346893, -0.7334287166595459, -0.25957581400871277, 0.6217338442802429, -0.2619277536869049, 0.1432177722454071,...
I've subclassed the control and just added a field. It's a quick and dirty fix since subclassing the component is just like a few lines of code and can go in the same class the file where you are generating your screen. This is only useful if you just need to store your data connected to a single type of control.
[ 0.49667471647262573, -0.14775601029396057, 0.371433287858963, 0.2748631536960602, -0.12091206759214401, 0.015840565785765648, 0.004236980341374874, -0.10116828233003616, -0.0632619634270668, -0.3730367422103882, 0.3420455753803253, 0.544066309928894, -0.1888153851032257, 0.2126605361700058...
I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don't work with the current implementation of Google Talk. Has anybody had any luck with this? Would you mind documenting a brief tutorial? As a simple task, I'...
[ 0.673574686050415, 0.060211945325136185, 0.07779321074485779, 0.21001507341861725, -0.13431641459465027, 0.08631157875061035, 0.3098905384540558, 0.41117578744888306, -0.3073759973049164, -0.56883305311203, 0.25114724040031433, 0.5575312376022339, -0.09509545564651489, -0.00442264089360833...
the times that I can then aggregate. Thanks. wokkel is the future of twisted words. [metajack](http://metajack.im/) wrote a really nice [blog post](http://metajack.im/2008/09/25/an-xmpp-echo-bot-with-twisted-and-wokkel/) on getting started. If you want a nice, functional sample project to start with, check out my [wh...
[ 0.3317975103855133, 0.18826913833618164, 0.2945142686367035, 0.20821057260036469, -0.2727015018463135, 0.08694950491189957, 0.4140586256980896, 0.38179507851600647, -0.21485285460948944, -0.4176642894744873, 0.0521320179104805, 0.2472037374973297, 0.19330726563930511, 0.133813738822937, ...
I need to round a value up to the nearest multiple of 2.5. For example: 6 --> 7.5 7.6 --> 10 etc. This seems like the best way to do this? ``` Function RoundToIncrement(ByVal originalNumber As Decimal, ByVal increment As Decimal) As Decimal Dim num = Math.Round(originalNumber / increment, Midpo...
[ -0.09276174008846283, 0.11469904333353043, 0.7312589883804321, -0.3656030297279358, 0.037400711327791214, 0.22849756479263306, 0.06278729438781738, -0.4665617048740387, -0.25381556153297424, -0.13262797892093658, 0.046275027096271515, 0.5958054065704346, 0.1749616414308548, 0.3349943757057...
End If Return num End Function ``` Divide the number by 2.5, round up to the nearest integer, then multiply the result by 2.5. You're close. ``` Function RoundToIncrement(ByVal orignialNumber As Decimal, ByVal increment As Decimal) As Decimal Return Math.Ceiling( orignialNumber / increment ) * incre...
[ -0.2040698528289795, 0.10766220837831497, 0.6461063623428345, -0.10119697451591492, -0.03566640615463257, -0.015477044507861137, -0.01473970990628004, -0.21046696603298187, -0.3540307283401489, -0.21983371675014496, -0.2531743049621582, 0.3941534459590912, 0.3137107789516449, 0.20591321587...
Consider the following code: ``` abstract class SomeClassX<T> { // blah } class SomeClassY: SomeClassX<int> { // blah } class SomeClassZ: SomeClassX<long> { // blah } ``` I want a collection of SomeClassX<T>'s, however, this isn't possible since SomeClassX<int> != SomeClassX<long> and List<SomeClassX<>> isn'...
[ -0.07643381506204605, 0.018931683152914047, 0.41872167587280273, -0.15805883705615997, -0.17764808237552643, 0.047057755291461945, -0.16374826431274414, -0.2507377564907074, -0.3912140429019928, -0.4120849072933197, 0.05215178430080414, 0.29693374037742615, -0.0639592856168747, 0.190992712...
Return Math.Ceiling( orignialNumber / increment ) * increment End Function ``` Math.Ceiling will always round non-integers up, so you don't need the post-adjustment.
[ 0.030892223119735718, 0.17409667372703552, 0.6734296679496765, -0.13023623824119568, -0.045471932739019394, -0.11759493499994278, 0.049020469188690186, 0.0027640031185001135, -0.4251072406768799, -0.2678135633468628, -0.11315739899873734, 0.4547901749610901, 0.04655912145972252, -0.0009799...
I am planning a PHP application that needs to store date/times in an MSSQL database. (For the curious, it is a calendar application.) What is the preferred format to store this information? MSSQL has its own datetime data type, which works well in the database itself and is very readable. However, there aren't any MSS...
[ 0.3472488224506378, 0.0004013993311673403, 0.24611125886440277, 0.27630889415740967, -0.034484174102544785, -0.1404358595609665, -0.17916236817836761, 0.3374294340610504, -0.1374550312757492, -0.6323444843292236, 0.36149758100509644, 0.3625377118587494, -0.11473089456558228, 0.069290585815...
for working with the data. Would you store this information as datetime data type, as UNIX timestamps (as int, bigint, or varchar datatype), as both formats side by side, or as something else entirely? I would store the dates in the MS-SQL format to assist in using the date manipulation functions in T-SQL to their ful...
[ 0.08993396162986755, 0.07085874676704407, 0.5115610361099243, -0.07469359785318375, -0.08336550742387772, 0.07261722534894943, -0.35919299721717834, -0.018510915338993073, -0.1509813517332077, -0.5634524822235107, 0.02059262990951538, 0.226477712392807, 0.04129059240221977, 0.3239705860614...
into a MsSQL Date, you can either do it in PHP: ``` $msSQLDate = date("Y-m-d H:i:s", $unixDate ); ``` or in MsSQL ``` INSERT INTO TableName ( fieldName ) VALUES ( DATEADD(s,'1970-01-01 00:00:00', ? ) ) ``` Where parameter one is int($unixDate)
[ -0.4252913296222687, -0.11689615249633789, 0.5302607417106628, -0.1430969387292862, 0.15280397236347198, 0.1183583065867424, -0.00293908198364079, 0.09635001420974731, -0.09710932523012161, -0.48561689257621765, -0.2665589451789856, 0.1903095245361328, -0.2394091635942459, 0.12210586667060...
I have a search form on each of my pages. If I use form helper, it defaults to `$_POST`. I'd like the search term to show up in the URI: ``` http://example.com/search/KEYWORD ``` I've been on Google for about an hour, but to no avail. I've only found articles on how `$_GET` is basically disabled, because of the nati...
[ 0.2866327166557312, 0.23221437633037567, 0.5354512333869934, -0.09540627151727676, 0.006463048979640007, -0.2449437379837036, 0.5348687171936035, 0.10623740404844284, -0.052114225924015045, -0.8545066118240356, -0.24104464054107666, 0.5473264455795288, -0.1258559674024582, 0.36918634176254...
{ redirect('ad/search/.'$this->input->post('keyword')); } function search() { // do stuff; } ?> ``` I have used this a lot of times before.
[ 0.16378067433834076, 0.0547945573925972, 0.4315969944000244, -0.4068832993507385, 0.09376180171966553, -0.46161946654319763, 0.16377218067646027, -0.18237704038619995, -0.029657606035470963, -0.49871551990509033, -0.30797824263572693, 0.5537837147712708, -0.23581643402576447, 0.27288615703...
Would NTFS allocation blocks of 16KB or 32KB make compile time faster in comparison to the default 4KB? I can't imagine that would make much of a difference - disk block size is pretty far removed from compile speed. With the amount of caching a modern OS does, it seems unlikely to be significant. The real answer, of ...
[ 0.17355966567993164, 0.13001605868339539, -0.09640064090490341, 0.08056779205799103, -0.041971269994974136, -0.0028216515202075243, 0.32218092679977417, -0.18262602388858795, -0.34389570355415344, -0.6651630401611328, 0.08300965279340744, 0.35104480385780334, -0.18995389342308044, -0.01213...
I'm working on a JSP where I need to call methods on object that come from a Bean. The previous version of the page does not use JSTL and it works properly. My new version has a set up like this: ``` <jsp:useBean id="pageBean" scope="request" type="com.epicentric.page.website.PageBean" /> <c:set var="pageDividers" val...
[ 0.08459993451833725, 0.13865570724010468, 0.553176760673523, -0.14743223786354065, -0.2424018234014511, -0.2859732508659363, 0.02780917100608349, -0.22010591626167297, -0.3881644904613495, -0.7291001081466675, -0.0020852251909673214, 0.4467167854309082, -0.36684054136276245, 0.190531685948...
default namespace is not specified How do I correctly access or call the methods of my `pageDividers` object? When using the dot operator for property access in JSTL, `${pageDividers.size}` (no **()** needed) results in a call to a method named `getSize()`. Since java.util.List offers a method called `size()` (rath...
[ -0.0942089855670929, -0.17311115562915802, 0.6683210730552673, -0.06995581090450287, -0.13803787529468536, -0.2467804104089737, 0.13320566713809967, -0.24268385767936707, -0.2920075058937073, -0.8264610171318054, -0.3232012391090393, 0.5160210132598877, -0.2086414396762848, 0.1305884867906...
be used with any collection type, and with Strings too.
[ 0.3129239082336426, -0.2191716581583023, -0.22473236918449402, -0.10573912411928177, -0.10547059029340744, -0.38178732991218567, -0.09792342782020569, 0.028394309803843498, -0.08956225216388702, -0.4592975378036499, -0.5358563661575317, 0.032909248024225235, -0.278045654296875, -0.11646118...
Building a client-side swing application what should be notified on a bus (application-wide message system, similar in concept to JMS but much simpler) and what should be notified using direct listeners? When using a bus, I always have an unescapable feeling of "I have no idea who uses that and where". Also, no set or...
[ 0.6281114220619202, 0.09303370118141174, 0.4522511959075928, 0.062092963606119156, -0.4459706246852875, -0.141696035861969, 0.12060915678739548, -0.6408211588859558, -0.33442339301109314, -0.3797019124031067, -0.0026232488453388214, 0.4896700084209442, -0.2629103362560272, -0.1010925993323...
can to tell, but B has no interest in). So, are there any rule of the thumb regarding this? Any suggestion how to balance? Event buses are very, very useful tools for providing decoupling in certain architectures. Listeners are easy to implement, but they have significant limitations when your object and dependency gr...
[ 0.4620174467563629, 0.05850920453667641, 0.07195845991373062, 0.11123314499855042, -0.14368057250976562, -0.4164016544818878, 0.3680935204029083, -0.3846675157546997, -0.3355264663696289, -0.39160314202308655, -0.04644664749503136, 0.6561026573181152, -0.35614079236984253, -0.0566010847687...
shooting off into a million places). I make this kind of decision based on project size and scalability. If it's a big app, or there are aspects of the app that can by dynamic (like plugin modules, etc...) then a bus is a good way to keep the architecture clean (OSGI-like module containers are another approach, but he...
[ 0.5259889960289001, -0.16398367285728455, -0.0686379224061966, 0.207039937376976, -0.2532911002635956, -0.21425285935401917, 0.07662852108478546, -0.3111880421638489, -0.3397805094718933, -0.600292980670929, -0.031192418187856674, 0.5044744610786438, -0.13924111425876617, -0.18759854137897...
I have a WPF app that makes use of a Winforms User Control that I have created using C++/CLI. When my app goes to parse the XAML for my main window, it throws an exception. The information appears to be somewhat abbreviated, but it says: ``` A first chance exception of type 'System.Windows.Markup.XamlParseException' o...
[ 0.06133196875452995, 0.20503394305706024, 0.4204093813896179, -0.10687051713466644, -0.022233476862311363, -0.15215922892093658, 0.4028691351413727, -0.21654020249843597, -0.25469136238098145, -0.550665020942688, -0.054039690643548965, 0.42471885681152344, -0.4064581096172333, 0.0393083281...
bad, so I put a breakpoint in it, but the breakpoint does not appear to be enabled when I start to run the app, and is never hit, which I understand to mean the DLL containing that line is not loaded. Which would most likely cause an exception to be thrown when an object of a type in the DLL is instantiated - the body ...
[ 0.009589293971657753, 0.07215779274702072, 0.2844626009464264, -0.014699146151542664, 0.0048788078129291534, -0.12238558381795883, 0.5997784733772278, 0.008172869682312012, -0.0857570618391037, -0.34940019249916077, -0.31212419271469116, 0.5459127426147461, -0.4536510407924652, 0.013750806...
XAML, and that all works fine. So it's something in this DLL. I have a reference to the DLL in my WPF C# app, and when I load the DLL in Object Browser all the required classes and namespaces show up fine. The app compiles fine, the problem just shows up when parsing the XAML. Anybody seen something like this? Any ide...
[ -0.09583064168691635, 0.5364365577697754, 0.6199014186859131, -0.15136487782001495, -0.21802784502506256, -0.24372179806232452, 0.21618697047233582, 0.09621451795101166, -0.6117884516716003, -0.4353140890598297, -0.21685443818569183, 0.5948805809020996, -0.6107260584831238, 0.0955556109547...
<myns:CMyClass x:Name="m_MyClass" /> </int:WindowsFormsHost> ... </window> ``` I have experienced problems like that (but not with the exact same error message). It seems as if WPF cannot instantiate your Winforms User Control. The challenge is to find out why. Here are my suggestions that you could try: 1....
[ 0.10540497303009033, -0.010358226485550404, 0.2899552583694458, -0.05946073681116104, -0.19431959092617035, -0.20323480665683746, 0.2873643636703491, -0.0918763056397438, -0.2758422791957855, -0.8940569162368774, -0.15496675670146942, 0.5093494653701782, -0.256308376789093, 0.1616792529821...
out dependencies on native DLLs, you should use the tool [Dependency Walker (depends.exe)](http://www.dependencywalker.com/). .NET Reflector will only examine managed dependencies. 3. Comment out code of your Winforms User Control step by step and try again. 4. Use Gflags.exe to turn on *Loader Snaps* (cf. [Debugging L...
[ 0.05236285552382469, -0.09309922158718109, 0.40921977162361145, -0.20317453145980835, -0.19014160335063934, -0.04329119622707367, 0.3824269771575928, -0.2454080730676651, -0.3961765468120575, -0.31519371271133423, -0.1388235092163086, 0.8986596465110779, -0.6802006363868713, -0.07827914506...
For an iPhone app that submits images to a server I need somehow to tie all the images from a particular phone together. With every submit I'd like to send some unique phone id. Looked at ``` [[UIDevice mainDevice] uniqueIdentifier] and [[NSUserDefaults standardDefaults] stringForKey:@"SBFormattedPhoneNumber"]...
[ 0.4256869852542877, 0.06637845933437347, 0.38014036417007446, 0.2853859066963196, -0.031542010605335236, -0.15843623876571655, 0.45742589235305786, -0.22279740869998932, -0.34371721744537354, -0.6449682116508484, -0.039866168051958084, 0.5329616665840149, -0.4287000596523285, -0.2683185040...
I am trying to create controller actions which will return either JSON or partial html depending upon a parameter. What is the best way to get the result returned to an MVC page asynchronously? In your action method, return Json(object) to return JSON to your page. ``` public ActionResult SomeActionMethod() { return...
[ 0.03139050677418709, -0.2187720090150833, 0.44436752796173096, -0.22020067274570465, -0.28197452425956726, 0.11184905469417572, 0.2890206575393677, -0.08145400136709213, -0.33738455176353455, -0.5791776776313782, -0.22735822200775146, 0.5626052021980286, -0.4263302981853485, -0.10967245697...
just use the ContentResult: ``` public ActionResult SomeActionMethod() { return Content("hello world!"); } ``` ContentResult by default returns a text/plain as its contentType. This is overloadable so you can also do: ``` return Content("<xml>This is poorly formatted xml.</xml>", "text/xml"); ```
[ -0.15317942202091217, -0.10370299220085144, 0.49097391963005066, -0.10434624552726746, -0.16885915398597717, -0.40021151304244995, 0.3139124810695648, 0.2951643168926239, -0.13150636851787567, -0.8108294010162354, -0.5810208320617676, 0.6316131949424744, -0.3596545159816742, 0.078023940324...
My coworkers and I were having a discussion about this yesterday. It seems that no matter how well we prepare and no matter how much we test and no matter what the client says immediately before the site becomes public, initial site launches almost always seem to be somewhat rocky. Some clients are better than others, ...
[ 0.7600776553153992, 0.25162985920906067, -0.2508864104747772, 0.20937961339950562, 0.22928254306316376, -0.44274967908859253, 0.5714684128761292, 0.03594581410288811, -0.22787480056285858, -0.2644015848636627, 0.03802667558193207, 0.48987218737602234, 0.24719388782978058, 0.262269556522369...
work exactly the way we wanted them to, but suddenly are not satisfactory to the client when it's time to make the site public. And I'm talking about clients that have been familiar with the site during most of the development process. Meaning, the public launch is definitely not the first time they've seen the site. ...
[ 0.7075423002243042, 0.10493578016757965, 0.16795799136161804, 0.17527708411216736, 0.42997074127197266, -0.38512587547302246, 0.23287039995193481, 0.40344882011413574, -0.2727072834968567, -0.32972079515457153, -0.2439037412405014, 0.5051172971725464, 0.014747759327292442, -0.0807619243860...
can go wrong will go wrong, and the most volatile entity in the development process, the client, will be the cause of these things. You could do all the Requirements Gathering in the world, write a 100 page Proposal, provide screenshots and updates to the project hourly and the client will still not approve. On a pers...
[ 0.6577234268188477, 0.2812991738319397, 0.18856169283390045, 0.29628488421440125, 0.3136492967605591, -0.01989605464041233, 0.11199963092803955, -0.0029667995404452085, -0.2629430592060089, -0.5208709836006165, 0.018776876851916313, 0.5124088525772095, -0.03878320753574371, 0.3363811969757...
a **bulletproof contact** with defined stages and sign-off sheets are the best way to handle such a situation. Assuming that your work is contracted you should ensure that at each stage the client is shown the work and is forced to approve each and every change made. At least that way if the client wants something chan...
[ 0.5640304088592529, 0.1036684662103653, 0.11668393760919571, -0.1053985059261322, 0.04109552502632141, -0.06833421438932419, 0.055859144777059555, -0.06672029197216034, -0.3751152753829956, -0.45030781626701355, -0.07185760885477066, 0.542414665222168, -0.12126374989748001, -0.023487815633...
Luckily for me many of my clients are already tech-oriented, so they understand that these things can take time, but those that haven't a clue about Web Development expect things to be perfect within a couple of days. As long as you make sure that everything is covered in the contract the client will think about what t...
[ 0.8355128765106201, 0.1076473519206047, 0.07909868657588959, 0.22704488039016724, 0.20065687596797943, -0.3674767315387726, 0.1727728545665741, 0.353432834148407, -0.23766575753688812, -0.5596293807029724, 0.00815405324101448, 0.7322828769683838, 0.3796032667160034, -0.053742699325084686, ...
that this methodology is known by the client(s). Often changes in fundamental areas can be costly and many clients do not seem to realise that a small change can require many things to be changed.
[ 0.5865417718887329, 0.2785090208053589, -0.06838351488113403, 0.20225608348846436, 0.14664991199970245, -0.056349094957113266, 0.2908271849155426, -0.19880016148090363, -0.3400462865829468, -0.4676748216152191, -0.10782811790704727, 0.4801018536090851, 0.11184465885162354, 0.00628285808488...
Say I have an MSSQL table with two columns: an int ID column that's the identity column and some other datetime or whatever column. Say the table has 10 records with IDs 1-10. Now I delete the record with ID = 5. Are there any scenarios where another record will "fill-in" that missing ID? I.e. when would a record be i...
[ -0.007096844259649515, 0.22381886839866638, 0.6588479280471802, 0.04454626142978668, 0.11825994402170181, 0.27198120951652527, -0.02833772450685501, -0.18199428915977478, -0.3709479868412018, -0.5477136373519897, 0.08682076632976532, 0.2291172742843628, -0.18614614009857178, 0.371006816625...
table with identity columns and increments the last inserted value to obtain the next value on insert.
[ -0.29645466804504395, 0.09095480293035507, 0.5014008283615112, -0.028044266626238823, 0.3628506362438202, 0.15703795850276947, -0.5177541375160217, -0.09362836182117462, -0.08074501156806946, -0.2002096325159073, -0.20849791169166565, 0.12882636487483978, -0.26651501655578613, -0.020678736...
I found [this page](http://www.jenitennison.com/xslt/grouping/muenchian.html) describing the Muenchian method, but I think I'm applying it wrong. Consider that this would return a set of ages: ``` /doc/class/person/descriptive[(@name='age')]/value ``` > 1..2..2..2..3..3..4..7 But I would like a nodeset only one no...
[ 0.03876195847988129, 0.47280335426330566, 0.08688896149396896, 0.12643399834632874, 0.2653968632221222, 0.27700576186180115, 0.10874539613723755, -0.24252702295780182, -0.18166109919548035, -0.4645402729511261, -0.01512774359434843, 0.45496809482574463, 0.2061244249343872, 0.53572934865951...
commented this doesn't capture the last item in a list if it's the only time it appears. Taking that and Fëanor's comment into account, here's a better solution: ``` /root/item[not(.=preceding-sibling::item)] ```
[ 0.09155258536338806, 0.015582810156047344, 0.21134814620018005, 0.00714039895683527, -0.45548713207244873, 0.08908462524414062, 0.3236018717288971, -0.023215603083372116, -0.40337198972702026, -0.20674876868724823, -0.057882245630025864, 0.49557429552078247, -0.2708326280117035, -0.0155963...
I am a self taught vb6 programmer who uses DAO. Below is an example of a typical piece of code that I could churn out: ``` Sub cmdMultiplier_Click() 'Button on form, user interface ' dim Rec1 as recordset dim strSQL as string strSQL = "select * from tblCustomers where ID = " & CurrentCustomerID 'inline SQL '...
[ 0.37474367022514343, -0.0880344957113266, 0.6163970828056335, -0.15160512924194336, -0.06489525735378265, -0.1996728777885437, 0.07137686759233475, -0.3799986243247986, -0.01972266286611557, -0.33851975202560425, -0.25592178106307983, 0.47714149951934814, -0.18736782670021057, 0.4245008826...
' Business Logic ' else priceMultiplier = 1 end if end if End Sub ``` Please pretend that the above is the entire source code of a CRUD application. I know this design is bad, everything is mixed up together. Ideally it should have three distinct layers, user interface, business logic and data access...
[ 0.3877076208591461, 0.46486663818359375, 0.5685361623764038, 0.15435540676116943, 0.06271900236606598, -0.3019440472126007, 0.09494040161371231, -0.25585412979125977, 0.002182325115427375, -0.3080061674118042, -0.033524852246046066, 0.833267867565155, -0.3473612368106842, 0.437375843524932...
a lot further down the road if someone could refactor the above ridiculously trivial example into 3 tiers. a trivial example, yes, but with all the basic elements - they just belong in 3 different classes (see below). The main reason for this is the "separation of concerns" principle, i.e. the GUI is only concerned wit...
[ 0.20548568665981293, -0.017679139971733093, 0.22235047817230225, 0.44614240527153015, -0.001035702065564692, -0.03427936136722565, 0.06898842006921768, -0.44239920377731323, -0.38228312134742737, -0.5930004715919495, -0.05160485953092575, 0.6606307029724121, -0.29585525393486023, 0.0456191...
ComputePriceMultiplier(CurrentCustomerId) End Sub 'in Biz Logic class Function ComputePriceMultiplier(custId as Integer) as Double Dim cust as Customer = GetCustomer(custId) if cust.Category = 1 then 'please ignore magic number, real code uses enums return 0.9 end if return 1 End Function 'i...
[ -0.3796384632587433, -0.27429258823394775, 1.0091328620910645, -0.18793365359306335, -0.05870411917567253, 0.10522722452878952, 0.1441134214401245, -0.11755663901567459, -0.10642091184854507, -0.17168663442134857, -0.38627123832702637, 0.5787822008132935, -0.3062983751296997, 0.24316222965...
& custId set rec1 = GlobalDataBase.openrecordset(strSQL) ' Data access ' if rec1.bof <> true or rec1.eof <> true then cust.SetPropertiesFromRecord(rec1) end if return cust End Function ``` [a 'real' application would cache the current customer, have constants or stored procedures for the cu...
[ 0.16202746331691742, -0.2993839979171753, 0.6315804719924927, -0.04031390696763992, 0.18102586269378662, -0.22455786168575287, 0.020369933918118477, -0.12192339450120926, -0.2782374620437622, -0.2628523111343384, -0.4250396192073822, 0.823971688747406, -0.4671517312526703, 0.11698373407125...
you'd have to copy, paste, and edit the code into that application's button-handler. Now there would be two places to maintain the same business rule, and two places where the same customer query was executed.
[ 0.39709118008613586, -0.08161821216344833, 0.13098323345184326, 0.11443723738193512, 0.2464783936738968, 0.31668147444725037, 0.023791858926415443, -0.21440640091896057, -0.24014253914356232, -0.3281882405281067, -0.06224127113819122, 0.47177162766456604, -0.35935309529304504, -0.087157256...