text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
`"."` characters. This can be dealt with using non-capturing groups as in ajborley's answer.
Also, the rightmost group will capture the last component, even if there are fewer than three components, and so for example a two-component input results in the first and last groups capturing and the middle one undefined. I ... | [
-0.07980001717805862,
-0.25560009479522705,
0.48904871940612793,
-0.1778232604265213,
-0.009417753666639328,
0.03592783212661743,
0.1130993664264679,
-0.4061867594718933,
-0.12278755009174347,
-0.4087105095386505,
-0.30595794320106506,
0.42566534876823425,
-0.483801007270813,
0.05169363692... | |
$minor, $mod) = (@version, "*", "*");
```
Which isn't really any shorter than splitting on `"."`
] | [
0.22210121154785156,
-0.3528360426425934,
0.2376464307308197,
-0.360906720161438,
0.0920783281326294,
-0.3392309844493866,
0.22701962292194366,
-0.34945327043533325,
-0.3779516816139221,
-0.07819811254739761,
-0.2605556845664978,
0.8378244042396545,
-0.06450968980789185,
0.5639343857765198... | |
In a digital signal acquisition system, often data is pushed into an observer in the system by one thread.
example from [Wikipedia/Observer\_pattern](http://en.wikipedia.org/wiki/Observer_pattern):
```
foreach (IObserver observer in observers)
observer.Update(message);
```
When e.g. a user action from e.g. a G... | [
0.13883739709854126,
-0.42501020431518555,
0.38851916790008545,
0.2540165185928345,
0.015814462676644325,
-0.22414740920066833,
-0.09180066734552383,
-0.0952775701880455,
-0.45978018641471863,
-0.47425973415374756,
-0.3836313486099243,
0.4387548565864563,
-0.44772449135780334,
0.2190534025... | |
the observer, it might find it's sending a message to a destroyed object.
Has someone created an 'official' Design Pattern countering this situation? Shouldn't they?
If you want to have the data source to always be on the safe side of concurrency, you should have at least one pointer that is always safe for him to use... | [
0.1910140961408615,
0.015494355000555515,
0.36547425389289856,
0.49030551314353943,
-0.0545278862118721,
-0.17096729576587677,
0.35262560844421387,
0.03149309754371643,
-0.7753332257270813,
-0.41291946172714233,
0.1689416915178299,
0.23972973227500916,
-0.6317359805107117,
0.34294754266738... | |
to an ObserverImpl object.
You lock access to this impl object. This is no big deal, it just means the GUI unsubscriber would be blocked for a little while in case the observer is busy using the ObserverImpl object. If GUI responsiveness would be an issue, you can use some kind of concurrent job-queue mechanism with a... | [
-0.15574561059474945,
-0.3997722864151001,
0.628680408000946,
0.388145387172699,
-0.19215315580368042,
-0.2961442172527313,
0.08342057466506958,
0.2611906826496124,
-0.4309927821159363,
-0.5703470706939697,
-0.04383080452680588,
0.49908116459846497,
-0.7581693530082703,
0.13990657031536102... | |
a [ lock - pointer swap - unlock ] you could say that this is fast enough for real-time applications.
If you want to avoid stacking Observer objects that just contain a dummy, you have to do some kind of bookkeeping, but this could boil down to something trivial like an object holding a pointer to the Observer object ... | [
0.3090289831161499,
-0.2709629237651825,
0.1426684558391571,
0.5307279229164124,
0.23841993510723114,
-0.39160972833633423,
0.04434951767325401,
-0.5067270994186401,
-0.354509174823761,
-0.4367145299911499,
0.08781984448432922,
0.5760120749473572,
-0.5158870220184326,
-0.20501884818077087,... | |
pointers.
Worst case scenario : delegating call is going on while pointer is swapped --> no big deal all objects stay alive and delegating can continue. Next delegating call will be to new implementation object. ( Barring any new swaps of course ) | [
-0.16506779193878174,
-0.20769274234771729,
0.6773020029067993,
0.2782801389694214,
0.08100759983062744,
-0.038494281470775604,
0.37406134605407715,
-0.1190500408411026,
-0.4619879722595215,
-0.5599387884140015,
-0.2882539629936218,
0.5125294327735901,
-0.5266474485397339,
0.10527372360229... | |
I have create a WCF service and am utilising netMsmqBinding binding.
This is a simple service that passes a Dto to my service method and does not expect a response. The message is placed in an MSMQ, and once picked up inserted into a database.
What is the best method to make sure no data is being lost.
I have tried ... | [
0.2990052402019501,
-0.16871540248394012,
0.6741995215415955,
-0.13971677422523499,
-0.26277628540992737,
-0.17439936101436615,
0.5265686511993408,
-0.4703330397605896,
-0.05103706195950508,
-0.7216445803642273,
-0.05344953387975693,
0.2794976830482483,
-0.46503788232803345,
0.290662974119... | |
the message in queue, but fault my service. Restarting my service repeats this process.
Ideally I would like to do the follow:
Try process the message
* If this fails, wait 5 minutes for that message and try again.
* If that process fails 3 times, move the message to a dead letter queue.
* Restarting the service wil... | [
-0.015775829553604126,
-0.42912521958351135,
0.7887455224990845,
0.1227710023522377,
-0.22295567393302917,
0.2796022593975067,
0.6062532067298889,
0.18833181262016296,
-0.600806474685669,
-0.808715283870697,
-0.15019768476486206,
0.7547852396965027,
-0.18275509774684906,
0.0095709776505827... | |
much appreciated. Thanks!
**Some additional information**
I am using MSMQ 3.0 on Windows XP and Windows Server 2003.
Unfortunately I can't use the built in poison message support targeted at MSMQ 4.0 and Vista/2008.
There's a sample in the SDK that might be useful in your case. Basically, what it does is attach an IE... | [
0.2254500687122345,
0.16439774632453918,
0.42007872462272644,
0.10962463170289993,
-0.10593027621507645,
-0.26746973395347595,
0.6721576452255249,
0.18454916775226593,
-0.28825876116752625,
-0.621831476688385,
0.2838737666606903,
0.5574019551277161,
-0.26193752884864807,
0.0869367867708206... | |
faulted when the poison message was found).
It's not a very pretty sample, but it can be useful. There are a couple of limitations, though:
1- If you have multiple endpoints associated with your service (i.e. exposed through several queues), there's no way to know which queue the poison message arrived in. If you onl... | [
0.2783633768558502,
-0.19986602663993835,
0.1787339150905609,
0.14984580874443054,
-0.15861546993255615,
-0.00837712548673153,
0.5310118198394775,
-0.28607985377311707,
-0.4838436543941498,
-0.31050968170166016,
0.19063910841941833,
0.011351610533893108,
-0.2911696434020996,
0.217482432723... | |
to move it back to the processing queue once the timeout is done (or attach a new service to that queue to handle it).
To be honest, in either case, you're looking at some "manual" work here that WCF just doesn't cover on it's own.
I've been recently working on a different project where I have a requirement to expli... | [
0.538386881351471,
-0.3341480791568756,
0.5132841467857361,
0.050725094974040985,
0.18299804627895355,
0.12537279725074768,
0.16796766221523285,
-0.03913944587111473,
-0.5369558334350586,
-0.4911763370037079,
-0.0625300481915474,
0.20995905995368958,
-0.3258703649044037,
0.3063769638538360... | |
the raw System.Messaging stuff to handle the MSMQ queues. It seems to work pretty nicely, though there are a couple of gotchas if you go this way. | [
0.35421913862228394,
-0.14599178731441498,
0.1289965957403183,
0.3322240114212036,
-0.12363936752080917,
0.05539079010486603,
0.04603540152311325,
0.5295819640159607,
0.026129383593797684,
-0.46269938349723816,
0.08560232818126678,
0.6563414931297302,
-0.024684928357601166,
-0.209261387586... | |
Our build server is taking too long to build one of our C++ projects. It uses [Visual Studio 2008](https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#2008), running `devenv.com MyApp.sln /Build` -- see [devenv command-line switches](https://learn.microsoft.com/en-us/visualstudio/ide/reference/devenv-command-line-swi... | [
0.35697656869888306,
0.14167502522468567,
0.6052801609039307,
-0.06946026533842087,
-0.22075575590133667,
0.08173182606697083,
0.4211636185646057,
-0.12485337257385254,
-0.039300113916397095,
-0.768008828163147,
0.1120457649230957,
0.5260452032089233,
0.1232089251279831,
0.0008629449876025... | |
have any effect in the IDE.
When running MSBuild from the command line (and, for Visual Studio 2008, it needs to be MSBuild v3.5), it displays the total time elapsed at the end, but not in the IDE.
I really wanted a time-taken report for each project in the solution, so that I could figure out where the build process... | [
0.012513330206274986,
-0.16715118288993835,
0.4909765422344208,
-0.3059912919998169,
-0.01671440713107586,
-0.11147134751081467,
0.11830830574035645,
-0.17401856184005737,
-0.4067613482475281,
-0.593317985534668,
-0.2084246426820755,
0.428867906332016,
-0.09204983711242676,
-0.183250591158... | |
I've been using the (Java) [Highlighter for Lucene](http://lucene.apache.org/java/2_4_1/lucene-sandbox/index.html#Term%20Highlighter) (in the Sandbox package) for some time. However, this isn't really very accurate when it comes to matching the correct terms in search results - it works well for simple queries, for exa... | [
-0.24414408206939697,
-0.009114055894315243,
0.32352492213249207,
-0.019896266981959343,
-0.35559603571891785,
0.026633672416210175,
0.27047133445739746,
0.14010083675384521,
0.13289043307304382,
-0.6553545594215393,
-0.05193972960114479,
0.43125486373901367,
-0.17292901873588562,
-0.02224... | |
[here](http://www.gossamer-threads.com/lists/lucene/java-user/15528) but that came with a lot of performance caveats, and at the end of the day was just plain unusable. The performance is especially an issue on wildcard queries. This is due to the way that the highlighting works; instead of just working on the querystr... | [
-0.4534884989261627,
-0.12440855801105499,
0.21134614944458008,
0.24682511389255524,
-0.12046530842781067,
-0.23494014143943787,
0.15179574489593506,
0.009455380029976368,
-0.20924195647239685,
-0.5498324036598206,
-0.0629037395119667,
0.06738461554050446,
-0.17798522114753723,
-0.04105993... | |
highlighter?
There is a new faster highlighter (needs to be patched in but will be part of release 2.9)
<https://issues.apache.org/jira/browse/LUCENE-1522>
and a [back-reference](https://issues.apache.org/jira/browse/LUCENE-1522?focusedCommentId=12688408&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-... | [
0.059476159512996674,
-0.24203059077262878,
0.5081624388694763,
0.05969691649079323,
-0.20427949726581573,
-0.04679415374994278,
0.09859094023704529,
0.08222634345293045,
-0.6341427564620972,
-0.3098282217979431,
-0.30743756890296936,
0.460586279630661,
-0.3092765510082245,
-0.465027332305... | |
I'm creating a plugin, and am looking to use RSpec so I can build it using BDD.
Is there a recommended method of doing this?
OK, I think I have a solution:
* Generate the plugin via script/generate plugin
* change the Rakefile, and add
`require 'spec/rake/spectask'`
```
desc 'Test the PLUGIN_NAME plugin.'
Spec::Ra... | [
0.6940391063690186,
-0.03421669825911522,
0.26240915060043335,
-0.05222177878022194,
-0.0932208001613617,
-0.25074833631515503,
0.20897001028060913,
-0.28844597935676575,
0.2797609567642212,
-0.75481778383255,
0.20815342664718628,
0.9818152785301208,
-0.2147904634475708,
0.0874199122190475... | |
I've got a webapp whose original code base was developed with a hand crafted hibernate mapping file. Since then, I've become fairly proficient at 'coding' my hbm.xml file. But all the cool kids are using annotations these days.
So, the question is: **Is it worth the effort** to refactor my code to use hibernate annota... | [
0.6538081765174866,
0.09120122343301773,
0.08809062093496323,
0.2780720591545105,
-0.09909098595380783,
-0.13541418313980103,
0.22382113337516785,
0.094809889793396,
-0.16269512474536896,
-0.814216136932373,
-0.00004183664350421168,
0.48038601875305176,
0.4266199767589569,
-0.2714734971523... | |
dozen domain objects, including two sets, some subclassing, and about 8 tables.
Thanks, dear SOpedians, in advance for your informed opinions.
"If it ain't broke - don't fix it!"
I'm an old fashioned POJO/POCO kind of guy anyway, but why change to annotations just to be cool? To the best of my knowledge you can do mo... | [
0.3293536603450775,
-0.024570409208536148,
0.38472411036491394,
0.49782794713974,
-0.141829252243042,
0.14617827534675598,
-0.06634604185819626,
0.5277214646339417,
-0.45711731910705566,
-0.2294846475124359,
0.062020573765039444,
0.17701159417629242,
0.21301142871379852,
0.3079890906810760... | |
I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.
The trouble is, this contrived example doesn't work:
```
sudo ls -hal /root/ > /root/test.out
```
I just receive the respons... | [
-0.15760640799999237,
0.0437348373234272,
0.12343694269657135,
0.0032621196005493402,
-0.18710002303123474,
-0.001369495876133442,
0.46129342913627625,
-0.16632264852523804,
0.015838081017136574,
-0.737705647945404,
-0.2644723057746887,
0.5120097994804382,
-0.21060217916965485,
0.391588836... | |
and give the command to it by using the `-c` option:
```
sudo sh -c 'ls -hal /root/ > /root/test.out'
```
* Create a script with your commands and run that script with sudo:
```
#!/bin/sh
ls -hal /root/ > /root/test.out
```
Run `sudo ls.sh`. See Steve Bennett's [answer](https://stackoverflow.com/a/16514624/12892) ... | [
-0.1047981008887291,
0.04994447901844978,
0.07999103516340256,
-0.10982698947191238,
0.05024226754903793,
-0.12727601826190948,
0.4123896360397339,
-0.32202470302581787,
-0.17623062431812286,
-0.5986652374267578,
-0.6464577317237854,
0.32148951292037964,
-0.4372538924217224,
0.067720361053... | |
outputting to the screen. To *append* instead of overwriting the output file
(`>>`), use `tee -a` or `tee --append` (the last one is specific to [GNU coreutils](https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html)).
Thanks go to [Jd](https://stackoverflow.com/a/82274/12892), [Adam J. Forster](... | [
0.026101386174559593,
0.29676926136016846,
0.4679780602455139,
-0.008285142481327057,
-0.052138570696115494,
0.2734907269477844,
-0.06749984622001648,
-0.22106994688510895,
-0.25748375058174133,
-0.658081591129303,
-0.44620153307914734,
0.5937650203704834,
-0.2256571650505066,
-0.444248467... | |
Ever wanted to have an HTML drag and drop sortable table in which you could sort both rows and columns? I know it's something I'd die for. There's a lot of sortable lists going around but finding a sortable table seems to be impossible to find.
I know that you can get pretty close with the tools that script.aculo.us ... | [
0.13774581253528595,
-0.19491499662399292,
0.23936080932617188,
0.04161849617958069,
-0.16932980716228485,
-0.038345128297805786,
-0.07895377278327942,
0.17160987854003906,
-0.5084400177001953,
-0.8138988614082336,
0.37807101011276245,
0.18083734810352325,
-0.26140010356903076,
-0.02018208... | |
from that project. :-) | [
0.2014358788728714,
-0.14286284148693085,
0.02252730168402195,
0.170462965965271,
0.3710148334503174,
0.21475189924240112,
-0.025424806401133537,
-0.08114957064390182,
-0.031973350793123245,
-0.21410317718982697,
-0.36914753913879395,
0.4487076699733734,
0.02355913631618023,
0.280844837427... | |
I have to deal with text files in a motley selection of formats. Here's an example (Columns **A** and **B** are tab delimited):
```
A B
a Name1=Val1, Name2=Val2, Name3=Val3
b Name1=Val4, Name3=Val5
c Name1=Val6, Name2=Val7, Name3=Val8
```
The files could have headers or not, have mixed delimiting schemes, ha... | [
-0.046933963894844055,
0.32557356357574463,
0.1519785076379776,
-0.18674500286579132,
-0.18583181500434875,
0.2562752366065979,
0.3599378764629364,
-0.22691503167152405,
-0.19492320716381073,
-0.6065447926521301,
-0.3652287423610687,
0.5249476432800293,
-0.047741591930389404,
0.12101320177... | |
Val7
```
What tools/techniques are there for performing such manipulations as one line commands, using the above as an example but extensible to other cases?
I don't like sed too much, but it works for such things:
```
var="Name2";sed -n "1p;s/\([^ ]*\) .*$var=\([^ ,]*\).*/\1 \2/p" < filename
```
Gives you:
```
... | [
-0.07482125610113144,
-0.09271802008152008,
0.4968491792678833,
-0.5128488540649414,
0.07244328409433365,
0.209940105676651,
0.22940096259117126,
0.05095319077372551,
-0.30425769090652466,
-0.46813538670539856,
-0.3102946877479553,
1.0487747192382812,
-0.13000831007957458,
-0.2040994465351... | |
I have a SharePoint site with multiple lists, some of which have the same fields - a choice of products or countries.
How can I build the lists in a way that I configure the choice field once and use it in multiple lists, so that in the future, if I add a value to the choice, I add it only once?
If you go to Site Sett... | [
0.837853193283081,
0.09612064808607101,
0.35531243681907654,
0.13583196699619293,
0.12128637731075287,
0.12815427780151367,
-0.19272847473621368,
-0.043882571160793304,
-0.4043467044830322,
-0.7863889336585999,
0.14417868852615356,
0.16102084517478943,
-0.16414766013622284,
0.3009077310562... | |
able to see and select your newly created column there. | [
0.3802464008331299,
0.24205712974071503,
0.2842240631580353,
0.21635322272777557,
-0.042837440967559814,
-0.025688854977488518,
-0.15535804629325867,
0.432331919670105,
-0.2247515171766281,
-0.7101444005966187,
-0.09539006650447845,
0.3158223330974579,
0.19811394810676575,
-0.2349234968423... | |
I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page `Width` (or `ActualWidth`) and I would prefer to do this in XAML if possible.
This is some sample XAML to play with in XamlPad (or similar) which shows what... | [
-0.292936772108078,
0.05193914845585823,
0.7670633792877197,
-0.3498733639717102,
-0.21318656206130981,
0.15726922452449799,
-0.13595622777938843,
-0.5419698357582092,
-0.3617849349975586,
-0.5942402482032776,
-0.07367907464504242,
0.46096694469451904,
-0.11640283465385437,
-0.019379962235... | |
<ColumnDefinition x:Name="Column2" MinWidth="50" />
<ColumnDefinition x:Name="Column3" Width="{ Binding ElementName=Column1, Path=Width }"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Background="Green" />
<GridSplitter Grid.Column="0" Width="5" />
<Label Grid.Colu... | [
-0.3573440611362457,
0.02366315945982933,
0.5124876499176025,
-0.2311064451932907,
-0.08202573657035828,
0.049119818955659866,
-0.13554663956165314,
-0.552945613861084,
-0.505264163017273,
-0.8621246218681335,
-0.20957820117473602,
0.33815911412239075,
-0.2000465989112854,
0.01468388549983... | |
is bound to the width of the first column, so when you slide the left column using the splitter, the right column does the same :)
If you slide the left column to the right, eventually it will slide over half the page/window and over to the right side of the window, pushing away column 2 and 3.
I want to prevent this... | [
0.1759004145860672,
0.24356772005558014,
0.39373084902763367,
-0.05116622522473335,
0.07502639293670654,
-0.190732941031456,
0.17049609124660492,
-0.19101367890834808,
-0.2434026151895523,
-0.5868653059005737,
-0.3492828607559204,
0.3537895381450653,
-0.383362352848053,
-0.2054511159658432... | |
to use SharedSizeGroup instead of binding, which is an excellent suggestion. My sample code would look like this then:
```
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<Gr... | [
-0.221000537276268,
0.013730251230299473,
0.5268111824989319,
-0.26312533020973206,
-0.49451741576194763,
-0.10478349030017853,
-0.06369251757860184,
-0.58953857421875,
-0.2483188956975937,
-0.7092564105987549,
0.06462035328149796,
0.29782018065452576,
-0.34039047360420227,
0.2336708903312... | |
<ColumnDefinition x:Name="Column3" SharedSizeGroup="ColWidth"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Background="Green" />
<GridSplitter Grid.Column="0" Width="5" />
<Label Grid.Column="1" Background="Yellow" />
<Label Grid.Column="2" Background="R... | [
-0.24861538410186768,
-0.09535077959299088,
0.19254697859287262,
-0.1680455505847931,
-0.11717185378074646,
-0.30113086104393005,
0.002136797411367297,
-0.2791074514389038,
-0.566685676574707,
-0.7400117516517639,
-0.35704490542411804,
0.45601099729537964,
-0.5152807235717773,
-0.176837131... | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<!-- This contains our real grid, and a reference grid for binding the layout-->
<Grid x:Name="Container">
<!-- hidde... | [
-0.38222599029541016,
-0.12134965509176254,
0.7025049328804016,
0.050855960696935654,
-0.18221382796764374,
0.11741669476032257,
-0.44005128741264343,
-0.2850324213504791,
-0.5332675576210022,
-0.5144009590148926,
-0.2854861617088318,
0.18745146691799164,
-0.09017066657543182,
0.0199178624... | |
</Grid.ColumnDefinitions>
<!-- We need the border, because the column doesn't have an ActualWidth -->
<Border x:Name="ReferenceBorder"
Background="Black" />
<Border Background="White" Grid.Column="1" />
<Border Background="Black" Grid.Column="2" />
</Grid>
<... | [
0.026349153369665146,
0.07752565294504166,
0.755793035030365,
0.15308576822280884,
0.015862679108977318,
-0.018038425594568253,
-0.00018474445096217096,
-0.24104569852352142,
-0.2445652335882187,
-0.8184206485748291,
0.015803761780261993,
0.2070792019367218,
-0.28359293937683105,
-0.024006... | |
<Grid Opacity="0.9">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="Column1"
MaxWidth="{Binding ElementName=ReferenceBorder,Path=ActualWidth}"/>
<ColumnDefinition x:Name="Column2" | [
-0.28180786967277527,
-0.3018413782119751,
0.7144186496734619,
0.03244993835687637,
-0.15409401059150696,
0.13430659472942352,
-0.11150460690259933,
-0.5120469927787781,
-0.19643333554267883,
-0.6814965605735779,
0.17787189781665802,
0.362752765417099,
-0.3450790345668793,
0.01302094943821... | |
MinWidth="50" />
<ColumnDefinition x:Name="Column3"
Width="{ Binding ElementName=Column1, Path=Width }"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Background="Green"/> | [
-0.2816872298717499,
-0.20523686707019806,
0.4417584538459778,
0.005863801576197147,
0.1125231385231018,
0.18671388924121857,
-0.05121754854917526,
-0.5447339415550232,
-0.20781436562538147,
-0.7133683562278748,
-0.07033861428499222,
0.2827795445919037,
-0.18591400980949402,
0.094539105892... | |
<GridSplitter Grid.Column="0" Width="5" />
<Label Grid.Column="1" Background="Yellow" />
<Label Grid.Column="2" Background="Red" />
</Grid>
</Grid>
</Page>
``` | [
-0.14720340073108673,
-0.11780959367752075,
0.254457950592041,
-0.01688210293650627,
0.013820845633745193,
0.05603688582777977,
-0.3095933198928833,
-0.31177669763565063,
-0.3057229518890381,
-0.9375957250595093,
-0.19561341404914856,
0.24360650777816772,
-0.17773398756980896,
0.1123908385... | |
I've just inherited some old Struts code.
If Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ?
So far, I've seen the Action classes push variables in `(1)` the HTTP request with
```
request.setAttribute("name", user.getName())
```
`(2)` in ActionForm c... | [
0.014120522886514664,
-0.14975383877754211,
0.759195864200592,
-0.39616426825523376,
-0.33439546823501587,
0.23030808568000793,
0.10084110498428345,
-0.417042076587677,
-0.3013722598552704,
-0.5134957432746887,
0.04814494028687477,
0.6544346809387207,
-0.3221243619918823,
-0.05515821650624... | |
in Struts ?
As `Struts 1.3` is considered old-school, I'd recommend to go with the flow and use the style that already is used throughout the application you inherited.
If all different styles are already used, pick the most used one. After that, pick your personal favourite. Mine would be 1 or 3 - the form (2) is usu... | [
0.519457221031189,
-0.025689365342259407,
0.5651828646659851,
-0.03473019599914551,
-0.4928620457649231,
-0.21616680920124054,
0.27493083477020264,
-0.593403697013855,
-0.011599872261285782,
-0.39814630150794983,
-0.030460719019174576,
0.4951270818710327,
-0.2868114709854126,
-0.2674108743... | |
I'm using the ProgressBar control in a WPF application and I'm getting this old, Windows 3.1 Progress*Blocks* thing. In VB6, there was a property to show a *smooth* ProgressBar. Is there such a thing for WPF?
[This](http://support.microsoft.com/kb/323116) KB article seems to explain what you are looking for... there is... | [
0.03919278457760811,
-0.07885211706161499,
0.10953832417726517,
0.008911151438951492,
0.015017162077128887,
-0.260824054479599,
0.20339448750019073,
0.08905700594186783,
-0.4573211371898651,
-0.5140169262886047,
0.14955052733421326,
0.14179831743240356,
-0.2314019650220871,
0.1026830598711... | |
Newer ARM processors include the PLD and PLI instructions.
I'm writing tight inner loops (in C++) which have a non-sequential memory access pattern, but a pattern that naturally my code fully understands. I would anticipate a substantial speedup if I could prefetch the next location whilst processing the current memor... | [
-0.09600801765918732,
0.15385179221630096,
0.2977878749370575,
0.12540437281131744,
-0.13273200392723083,
0.0664648488163948,
-0.1313990354537964,
-0.04912899062037468,
-0.3002137541770935,
-0.7582351565361023,
0.101833775639534,
0.37863636016845703,
0.0001512141607236117,
-0.2292847484350... | |
C++ code?
There should be some Compiler-specific Features. There is no standard way to do it for C/C++. Check out you compiler Compiler Reference Guide. For RealView Compiler see [this](http://www.keil.com/support/man/docs/armccref/armccref_cjagadac.htm) or [this](http://www.keil.com/support/man/docs/armccref/armccref_... | [
0.27520203590393066,
0.06289669126272202,
0.17208442091941833,
-0.07422025501728058,
-0.32824185490608215,
-0.07978929579257965,
0.2675169110298157,
-0.10957202315330505,
-0.22901029884815216,
-0.17278145253658295,
-0.29446518421173096,
0.5179205536842346,
-0.4124391973018646,
-0.209675997... | |
Why is the following C# code not allowed:
```
public abstract class BaseClass
{
public abstract int Bar { get;}
}
public class ConcreteClass : BaseClass
{
public override int Bar
{
get { return 0; }
set {}
}
}
```
> CS0546 'ConcreteClass.Bar.set': cannot override because 'BaseClass.B... | [
0.21840664744377136,
0.039813846349716187,
0.08346860855817795,
-0.09566793590784073,
-0.007432086858898401,
-0.38365060091018677,
0.39700230956077576,
-0.37802186608314514,
-0.16435422003269196,
-0.0016864832723513246,
-0.09541226923465729,
0.27766314148902893,
-0.527309000492096,
0.21798... | |
it read-write.
I'm with Microsoft on this one.
Let's say I'm a new programmer who has been told to code against the Baseclass derivation. i write something that assumes that Bar cannot be written to (since the Baseclass explicitly states that it is a get only property).
Now with your derivation, my code may break. ... | [
0.19760215282440186,
0.10057950019836426,
0.4992014765739441,
-0.13127925992012024,
0.06123996526002884,
-0.4248311519622803,
0.3853273391723633,
-0.22508451342582703,
-0.04389076679944992,
-0.5653171539306641,
-0.3413052558898926,
0.5034612417221069,
-0.3733602464199066,
0.307756096124649... | |
BaseClass interface, BarProvider assumes that caching is a safe thing to do - Since Bar cannot be modified. But if set was possible in a derivation, this class could be serving stale values if someone modified the \_source object's Bar property externally. The point being '*Be Open, avoid doing sneaky things and surpri... | [
0.21015644073486328,
0.018046921119093895,
0.15515555441379547,
0.008363545872271061,
-0.27479246258735657,
-0.19863833487033844,
0.31318894028663635,
-0.2095438688993454,
0.07108932733535767,
-0.5718762278556824,
-0.08838912844657898,
0.42933642864227295,
-0.8127161860466003,
0.0796914026... | |
assumption of read-only if I saw an Interface. When i see a get-only property on an interface, I read it as 'Any implementation would expose this attribute Bar'... on a base-class it clicks as 'Bar is a read-only property'. Of course technically you're not breaking the contract.. you're doing more. So you're right in a... | [
0.2727351784706116,
-0.07477062195539474,
-0.06913657486438751,
0.1120787188410759,
0.17294161021709442,
-0.7760684490203857,
0.07847187668085098,
-0.07185640186071396,
0.18417276442050934,
-0.11758453398942947,
-0.1547434777021408,
0.8487271666526794,
-0.2894395887851715,
-0.0010443538194... | |
Here's one from the "No question's too dumb" department:
Well, as the subject says: Is there an impact? If so, how much? Will all the string literals I have in my code and in my DFM resources now take up twice as much space inside the compiled binaries? What about runtime memory usage of compiled applications? Will al... | [
0.509497344493866,
0.14028391242027283,
0.20581497251987457,
-0.05588022619485855,
-0.018941275775432587,
-0.03528774902224541,
0.2546308636665344,
-0.08877839893102646,
-0.4626666307449341,
-0.17735858261585236,
0.3997330367565155,
0.541192352771759,
0.10834623128175735,
0.002756242873147... | |
going to just try it myself before the third-party libraries I need have been updated (supposedly in about a month).
D2009 uses UTF-16 for the default string type, although you can make variables UTF-8 if you need to.
Jan Goyvaerts [discusses the size/speed tradeoff](http://www.micro-isv.asia/2008/09/speed-benefits-of... | [
0.037832748144865036,
-0.17169657349586487,
0.532688558101654,
-0.12301230430603027,
-0.016339797526597977,
-0.251524955034256,
0.32763269543647766,
-0.07659883052110672,
-0.4357227087020874,
-0.5504973530769348,
-0.03897092863917351,
0.6214196085929871,
-0.18600568175315857,
-0.1707383394... | |
I find the concept of the programmable, tiling, keyboard-focuessed window manager [ion3](http://www.modeemi.fi/~tuomov/ion/) very appealing, but I think it takes some time to customize it to your needs until you can really evaluate this totally different UI-concept.
Therefore, I would like to read reviews of people wh... | [
0.05575913190841675,
0.08670089393854141,
0.598118007183075,
-0.22854174673557281,
-0.23671969771385193,
-0.1827893853187561,
-0.025380859151482582,
0.12869863212108612,
-0.06387809664011002,
-0.6443355083465576,
-0.054280031472444534,
0.6304612159729004,
-0.28694823384284973,
0.1342473477... | |
crawling back to kde3 whatever I use.
Its however difficult to put into quantifiable terms why this happens, but its right up there with the gnome-vs-kde battle. Neither side can understand the other.
I would also just love to have kicker + ion3, but they don't gel awfully well.
Moving applications between tiles (... | [
-0.39918872714042664,
-0.13856597244739532,
0.422489732503891,
0.25973081588745117,
-0.6077948808670044,
0.1031704843044281,
0.15554264187812805,
0.0789613127708435,
-0.33385398983955383,
-0.7927591800689697,
0.45354163646698,
0.3351728618144989,
-0.25438177585601807,
0.06982048600912094,
... | |
I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed).
When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused.
I've set proxy configurat... | [
0.05554112792015076,
0.18125122785568237,
0.5124763250350952,
0.002284852322191,
-0.1850370168685913,
-0.08097220212221146,
0.059881266206502914,
0.33577966690063477,
-0.20750807225704193,
-1.024021863937378,
-0.21146070957183838,
0.2850404679775238,
-0.04931827634572983,
0.597392320632934... | |
setup `svn+ssh://` as [explained here.](http://svnbook.red-bean.com/en/1.0/ch06s03.html)
**Update**: You could also try using [`connect-tunnel`](http://search.cpan.org/~book/Net-Proxy-0.12/script/connect-tunnel), which uses your HTTPS proxy server to tunnel connections:
```
connect-tunnel -P proxy.company.com:8080 -T... | [
0.26665040850639343,
0.08595363795757294,
0.3127444088459015,
0.12737837433815002,
0.1890435814857483,
-0.32343989610671997,
0.27649152278900146,
0.10205011069774628,
-0.4863315522670746,
-0.792773425579071,
-0.27956002950668335,
0.4666112959384918,
-0.20898880064487457,
-0.059551171958446... | |
I have a template class that I serialize (call it C), for which I want to specify a version for boost serialization. As BOOST\_CLASS\_VERSION does not work for template classes. I tried this:
```
namespace boost {
namespace serialization {
template< typename T, typename U >
struct version< C<T,U> >
{
... | [
-0.046570517122745514,
-0.1938077062368393,
0.8000982999801636,
-0.1904083639383316,
0.1042482778429985,
-0.11714579164981842,
0.07424651831388474,
-0.6725969314575195,
-0.3010694682598114,
-0.26099714636802673,
-0.04075782746076584,
0.6837331056594849,
-0.42817747592926025,
-0.04267652705... | |
subsequent call to BOOST\_CLASS\_VERSION gives this error:
`error C2913: explicit specialization; 'boost::serialization::version' is not a specialization of a class template`
What is the correct way to do it?
```
#include <boost/serialization/version.hpp>
```
:-) | [
-0.2788093090057373,
-0.07230909913778305,
0.23566997051239014,
-0.018745841458439827,
0.1889241337776184,
-0.08800826221704483,
0.19915597140789032,
-0.3523578941822052,
-0.1374335139989853,
-0.28822532296180725,
-0.254982054233551,
0.7654137015342712,
-0.46945062279701233,
-0.26522198319... | |
By default tomcat will create a session cookie for the current domain.
If you are on www.example.com, your cookie will be created for www.example.com (will only work on www.example.com). Whereas for example.com it will be created for .example.com (desired behaviour, will work on any subdomain of example.com as well as... | [
0.3520168960094452,
-0.005138707347214222,
0.3099018633365631,
0.022957192733883858,
-0.052887219935655594,
-0.024759924039244652,
0.7499921321868896,
-0.025849489495158195,
-0.4380064606666565,
-0.48815667629241943,
-0.10274457931518555,
0.7693151235580444,
-0.5401126146316528,
0.26484367... | |
that two JSESSIONID cookies are being sent with each request.
I was wondering if anybody has a definitive solution to this problem.
This is apparently supported via a configuration setting in 6.0.27 and onwards:
> Configuration is done by editing
> META-INF/context.xml
>
>
> <Context
> sessionCookiePath="/somethi... | [
0.24451139569282532,
-0.1044662818312645,
0.2952435612678528,
0.14359068870544434,
0.11502107232809067,
-0.1656751036643982,
0.6783904433250427,
0.1165582463145256,
-0.36165300011634827,
-0.6474363207817078,
-0.12675152719020844,
0.36723148822784424,
-0.5781986713409424,
0.0144120464101433... | |
I have seen examples of printing from a windows application but I have not been able to find a good example of any way of doing this.
I've used the print style sheet
here's and article <http://alistapart.com/stories/goingtoprint/> that will go through the way to set that up. Rather than setting up a special page that ... | [
0.582499623298645,
-0.20020201802253723,
0.2103443592786789,
0.2660408616065979,
0.2040870487689972,
-0.12136273831129074,
-0.08690556138753891,
0.42095616459846497,
-0.48906394839286804,
-0.3172731399536133,
0.031759243458509445,
0.387844055891037,
0.06407155841588974,
-0.0069056604988873... | |
I want to clear the list of projects on the start page...how do I do this? I know I can track it down in the registry, but is there an approved route to go?
There is an MSDN article [here](http://msdn.microsoft.com/en-us/library/aa991991.aspx) which suggests that you just move the projects to a new directory.
However,... | [
0.5571557879447937,
0.19868814945220947,
0.5667603611946106,
-0.05920659005641937,
0.14231719076633453,
-0.0062658111564815044,
-0.10962282866239548,
0.023762935772538185,
-0.5297117829322815,
-0.5795605182647705,
-0.10692697018384933,
0.2763656675815582,
0.029451509937644005,
0.2817802429... | |
with their own tools:
[Visual Studio Most Recent Files Utility](http://www.codeplex.com/vsrecentfiles)
[Add-in for cleaning Visual Studio 2008 MRU Projects list](http://code.msdn.microsoft.com/CleanRecentListAddIn) | [
0.29375219345092773,
-0.26511868834495544,
0.17865532636642456,
-0.0039373356848955154,
-0.38338759541511536,
0.0865759402513504,
0.27780672907829285,
-0.2512219548225403,
-0.43422001600265503,
-0.5789498686790466,
-0.19955942034721375,
0.41774868965148926,
0.23489899933338165,
0.131814509... | |
In a SQL server database, I have a table which contains a TEXT field which is set to allow NULLs. I need to change this to not allow NULLs. I can do this no problem via Enterprise Manager, but when I try to run the following script, **alter table dbo.[EventLog] Alter column [Message] text Not null**, I get an error:
*... | [
0.024894818663597107,
0.18921828269958496,
0.2098708599805832,
0.008303542621433735,
-0.04286270961165428,
-0.42103496193885803,
0.4746989905834198,
-0.11674632877111435,
-0.3462953269481659,
-0.5961123704910278,
0.34813669323921204,
0.6332488656044006,
-0.4846577048301697,
0.2140165418386... | |
manually in Enterprise Manager. What are the options for doing this in script then?
You can use Enterprise Manager to create your script. Right click on the table in EM and select Design. Uncheck the Allow Nulls column for the Text field. Instead of hitting the regular save icon (the floppy), click an icon that looks l... | [
-0.2088867574930191,
-0.1903115063905716,
0.414610892534256,
-0.02156151831150055,
0.15055540204048157,
-0.21793898940086365,
0.018166188150644302,
-0.120075523853302,
-0.44200408458709717,
-0.8850573301315308,
0.02528410032391548,
0.8021706938743591,
-0.3309169113636017,
-0.05240329727530... | |
loss issues, you should review this script in detail before running it outside the context of the database designer.*/
BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTIO... | [
-0.09840750694274902,
0.13582564890384674,
0.33508267998695374,
0.09720776230096817,
0.10980929434299469,
-0.03804587945342064,
0.051698844879865646,
-0.6319648027420044,
-0.013820652849972248,
-0.495540589094162,
-0.26763924956321716,
0.5953277349472046,
-0.1976040005683899,
-0.0125287463... | |
FROM dbo.TestTable WITH (HOLDLOCK TABLOCKX)')
GO
DROP TABLE dbo.TestTable
GO
EXECUTE sp_rename N'dbo.Tmp_TestTable', N'TestTable', 'OBJECT'
GO
ALTER TABLE dbo.TestTable ADD CONSTRAINT
PK_TestTable PRIMARY KEY CLUSTERED
(
tableKey
) ON [PRIMARY]
GO
COMMIT
``` | [
-0.11283455044031143,
-0.04523983597755432,
0.23211659491062164,
0.051610302180051804,
-0.14548639953136444,
-0.07372016459703445,
0.16849404573440552,
-0.4044334888458252,
-0.2490062415599823,
-0.3917766213417053,
-0.649948239326477,
0.27273571491241455,
-0.6381845474243164,
0.02887689881... | |
If I open files I created in Windows, the lines all end with `^M`.
How do I delete these characters all at once?
[dos2unix](https://sourceforge.net/projects/dos2unix) is a commandline utility that will do this, or `:%s/^M//g` will if you use `Ctrl`-`v` `Ctrl`-`m` to input the ^M, or you can `:set ff=unix` and Vim wi... | [
0.10600025206804276,
0.043599776923656464,
0.7256529927253723,
-0.2168910652399063,
-0.11330059915781021,
0.1937173753976822,
0.2643183171749115,
-0.10431833565235138,
-0.4549699127674103,
-0.8854111433029175,
-0.2248624712228775,
0.5981912612915039,
-0.23511366546154022,
0.280361115932464... | |
it's a DOS file and use DOS conventions for line endings. | [
-0.08685392141342163,
-0.06804487109184265,
0.21675190329551697,
0.17207013070583344,
-0.027582615613937378,
-0.26978784799575806,
0.20064572989940643,
0.43143850564956665,
0.26012539863586426,
-0.39227643609046936,
-0.1430046558380127,
0.04422397166490555,
0.10801128298044205,
0.322476625... | |
Are there any blogs, guides, checklists, or controls we should be using to ensure our SharePoint implementation is accessible?
Preferrably to the W3C double A standard, or as close to that as we can get.
We're implementing an extranet solution.
This study has already been funded by Microsoft, and unfortunately the res... | [
0.3516053557395935,
0.011579751037061214,
0.42510899901390076,
0.3034128248691559,
0.08940847963094711,
-0.36598944664001465,
0.03382012993097305,
0.08721823990345001,
-0.19484813511371613,
-0.5965286493301392,
-0.07061085850000381,
0.0736660361289978,
0.058854371309280396,
-0.117156319320... | |
by search engines, but I'll play safe as it's not my content. | [
0.8955482840538025,
0.28728973865509033,
0.08743483573198318,
0.4515247941017151,
0.2679835557937622,
-0.8010106682777405,
0.19900736212730408,
0.4994146227836609,
-0.15725740790367126,
-0.20574840903282166,
-0.08298003673553467,
0.31327569484710693,
0.01605134643614292,
0.3020472526550293... | |
What files can we modify so that our solution is still supported by Microsoft?
Is it allowed to customize error pages?
Can we modify the web.config files to use custom HTTPHandlers?
Here is the closest I can find to a official response from Microsoft:
<http://technet.microsoft.com/en-us/library/cc263010.aspx> | [
0.5867119431495667,
-0.05066630616784096,
-0.00409698486328125,
0.49231433868408203,
-0.03290678933262825,
-0.3381059765815735,
-0.03441417217254639,
-0.005710453260689974,
-0.3386528491973877,
-0.42489901185035706,
-0.13483738899230957,
0.30236896872520447,
-0.10257651656866074,
0.1261727... | |
I am curious about how many of you folks incorporate mocking of objects (frameworks like JMock, NMock, RhinoMocks hand in hand with unit testing frameworks) into your daily development process. What are your experiences?
You see, I develop on top of a GIS (geographic information systems) platform, in which most of wor... | [
0.6740543842315674,
0.6308874487876892,
-0.2845883369445801,
0.2674844264984131,
-0.39239296317100525,
0.08809389173984528,
0.2700166404247284,
0.4707571566104889,
-0.11518456041812897,
-0.5136116147041321,
0.35830333828926086,
0.6364551186561584,
0.06625057756900787,
0.17321203649044037,
... | |
are people in similar situation, or just, how does mocking (in whatever situation you are in) work for you.
On a recent project that I worked on we used mock objects extensively in our unit testing approach. The project was 100% Java and moderately sized (about 100,000 lines of non-commented code). It was a Swing-based... | [
0.1606409251689911,
0.28348758816719055,
-0.18524187803268433,
0.19947752356529236,
-0.48732617497444153,
0.3904648721218109,
0.2925587296485901,
-0.06524193286895752,
-0.02237228862941265,
-0.26027706265449524,
0.3403363525867462,
0.39303579926490784,
-0.031940169632434845,
-0.45141255855... | |
mocking extensively in the testing of our data access layer (Hibernate/DAOs).
In the user inteface use, the Mocks were easy and straightforward to build. And the design of the application (Fowler Passive View) easily incorporated mocks. This was not the case for the mocks used in testing the data access layer. But I ... | [
0.5347170233726501,
0.4149734377861023,
-0.13607314229011536,
0.1473584622144699,
-0.7703333497047424,
0.26564982533454895,
0.4144883155822754,
0.009786773473024368,
0.16626188158988953,
-0.5178905129432678,
0.2795039713382721,
0.5913898944854736,
-0.27570515871047974,
-0.1126837283372879,... | |
and discover an approach for your situation that allows you to easily mock up your GIS data layer. That - or just manually mock up each class. Either way the ability to run the automated unit tests that rely on the mocks is worthwhile... | [
0.25658491253852844,
0.1773557960987091,
-0.16795973479747772,
0.6212639212608337,
-0.17377808690071106,
0.2481427639722824,
0.19930948317050934,
-0.072639599442482,
-0.073423370718956,
-0.7084174752235413,
0.050562553107738495,
0.7684487700462341,
0.27543774247169495,
-0.05872967466711998... | |
What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the `ATTACH` command on the SQLite 3 command line tool?
The `.tables`, and `.schema` "helper" functions don't look into ATTACHed databases: they just query the `SQLITE_MASTER` table for th... | [
-0.10492713749408722,
0.3677254915237427,
0.5463910698890686,
-0.037709835916757584,
-0.19385354220867157,
-0.170232892036438,
-0.1789223551750183,
-0.15162381529808044,
-0.2760266065597534,
-0.2735469341278076,
0.07119292765855789,
0.42091673612594604,
-0.3322228491306305,
0.3825918436050... | |
Lets say I have a Dictionary object:
```
Dictionary myDictionary<int, SomeObject> = new Dictionary<string, SomeObject>();
```
Now I want to iterate through the dictionary in reverse order. I can't use a simple for loop because I don't know the keys of the dictionary. A *foreach* is easy:
```
foreach (SomeObject obj... | [
0.09367800503969193,
0.19997380673885345,
0.288854718208313,
-0.26438212394714355,
-0.05545885115861893,
-0.11244262009859085,
0.5250394344329834,
-0.14088241755962372,
0.10994337499141693,
-0.671299159526825,
-0.06064547970890999,
0.4613199532032013,
-0.46508485078811646,
0.11978060752153... | |
cee");
// Go through it backwards.
for (int i = sCol.Count - 1; i >=0 ; i--)
Console.WriteLine("sCol[" + i.ToString() + "] = " + sCol.GetByIndex(i));
// Reference By Key
foreach (string i in sCol.Keys)
Console.WriteLine("sCol[" + i + "] = " + sCol[i]);
// Enumerate all values
foreach (string i in sCol.Values... | [
-0.14227204024791718,
0.13148443400859833,
0.6816856265068054,
-0.2455248087644577,
0.2731407582759857,
0.06017303466796875,
0.2071114182472229,
-0.3661090135574341,
-0.1029159426689148,
-0.8822925090789795,
-0.5740088820457458,
0.08563932776451111,
-0.3065514862537384,
0.29037052392959595... | |
Which is better? Or use and OR mapper with SP's? If you have a system with SP's already, is an OR mapper worth it?
I like ORM's because you don't have to reinvent the wheel. That being said, it completely depends on your application needs, development style and that of the team.
This question has already been covered ... | [
-0.15416112542152405,
-0.09925109148025513,
0.2844690680503845,
0.2212975025177002,
-0.2745841145515442,
0.02338389679789543,
-0.09933533519506454,
-0.352373868227005,
-0.3029070198535919,
-0.14688177406787872,
0.03632861748337746,
0.7360138297080994,
-0.055557239800691605,
-0.129557713866... | |
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on the client side when I press the Cancel button, which has the CausesValidation attribute set to "False". How can I get this to stop?
I do not believe that Validation Groups are supported in 1.1.
Here's a code sample:
```
<a... | [
0.025447560474276543,
0.10593441128730774,
0.5990654826164246,
-0.15578672289848328,
-0.22186696529388428,
0.1325329691171646,
0.28649768233299255,
-0.5038915872573853,
-0.04228467494249344,
-0.43426164984703064,
0.027259530499577522,
0.6335638165473938,
-0.2206430286169052,
-0.17373970150... | |
that must have been messing it up, because when I cleaned that up it started working.
Validation Groups were not added to ASP.NET until version 2.0. This is a 1.1 question.
Double check your setting and make sure you are not overwriting it in the code behind. | [
0.5918028354644775,
-0.10337983816862106,
0.16968636214733124,
-0.03871569037437439,
0.11205892264842987,
-0.42316552996635437,
0.3804684281349182,
-0.17040114104747772,
-0.135536327958107,
-0.38058140873908997,
0.33640366792678833,
0.2507151961326599,
-0.16956593096256256,
-0.228020355105... | |
Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?
CodeMaid is a very popular Visual Studio extension and does this automatically along with... | [
0.025315767154097557,
-0.26405858993530273,
0.4706840515136719,
-0.31938979029655457,
-0.37832164764404297,
0.3082168996334076,
0.1178101897239685,
-0.017959559336304665,
-0.5228766798973083,
-0.5199004411697388,
0.2158786803483963,
0.51823890209198,
0.02412639744579792,
0.0556878075003623... | |
I have a costumer showing Notepad with a large set of data that looks totally misaligned if word wrap is on and I want to force it off. Is there a command switch to do this?
I dont think there is a command switch to do this at all. If you want to force it off all the time then you may want to edit the registry:
```
Hi... | [
0.44334176182746887,
-0.05670706927776337,
0.2868768870830536,
0.09186769276857376,
0.07919131964445114,
0.11124087870121002,
0.04969017580151558,
0.19075500965118408,
-0.3166886568069458,
-0.7828711271286011,
0.12926802039146423,
0.6106539964675903,
-0.3279084265232086,
0.4037612974643707... | |
turned off, when you open it up again, it will still be turned off. | [
0.4691634178161621,
-0.18472877144813538,
0.6079167723655701,
0.08652081340551376,
0.2211000621318817,
-0.2809194326400757,
0.11535370349884033,
0.27232789993286133,
-0.12944042682647705,
-0.36639514565467834,
-0.1000443696975708,
0.5085659623146057,
-0.16432951390743256,
0.479575753211975... | |
I have a `rails` application which is still showing the cachebusting numeric string at the end of the URL for static mode, even though I have put it into the production environment. Can someone tell me what config option I need to set to prevent this behaviour...
That file isn't there to break the cache during day-to-d... | [
0.4692826569080353,
0.08254489302635193,
0.09168463200330734,
0.20121346414089203,
0.0699385330080986,
-0.0908469632267952,
0.17868347465991974,
0.020786434412002563,
-0.37858667969703674,
-0.9250929951667786,
0.1752457618713379,
0.4148402512073517,
0.02598964050412178,
0.22421333193778992... | |
understand it, it's supposed to remain on in production mode. The numbers should only change when the timestamps on your files change.
Are you seeing common proxy servers that completely fail to cache any HTTP GET request with a single parameter? | [
0.577796220779419,
-0.15033487975597382,
0.16408811509609222,
0.41521331667900085,
0.13624772429466248,
-0.2859923839569092,
0.312791645526886,
0.3312171399593353,
-0.5301193594932556,
-0.2973250150680542,
-0.06992481648921967,
0.2651700973510742,
-0.25104406476020813,
0.09040972590446472,... | |
Is there an open source library that will help me with reading/parsing PDF documents in .NET/C#?
Since this question was last answered in 2008, iTextSharp has improved their api dramatically. If you download the latest version of their api from <http://sourceforge.net/projects/itextsharp/>, you can use the following sn... | [
0.14830943942070007,
0.051354218274354935,
0.7115990519523621,
0.18852633237838745,
-0.2529284358024597,
-0.062044907361269,
0.20535679161548615,
-0.18719199299812317,
-0.1567380279302597,
-0.741905152797699,
-0.16351118683815002,
0.6370765566825867,
-0.1124931052327156,
0.1540889590978622... | |
PdfReader reader = new PdfReader(path);
string text = string.Empty;
for(int page = 1; page <= reader.NumberOfPages; page++)
{
text += PdfTextExtractor.GetTextFromPage(reader,page);
}
reader.Close(); | [
-0.5798896551132202,
-0.167695552110672,
1.2610533237457275,
-0.123878613114357,
-0.26666024327278137,
0.08391336351633072,
0.10083533078432083,
-0.3923592269420624,
0.052285801619291306,
-0.9649925231933594,
-0.7255464196205139,
0.526455819606781,
-0.41279566287994385,
0.11826960742473602... | |
return text;
}
}
}
``` | [
-0.14811839163303375,
0.4329288899898529,
0.08414550870656967,
-0.35855522751808167,
0.1790345162153244,
-0.1667960286140442,
0.40336453914642334,
0.4281562566757202,
0.2770904302597046,
-0.4125846028327942,
-0.6524994969367981,
1.008918285369873,
-0.3561791181564331,
0.06498899310827255,
... | |
I'm looking for a free/open source collaborative project manager that can be deployed internally in my workplace that would act similar to Codeplex or Sourceforge. Does anyone know of something like this, and if so do you have experience with it.
**Requirements:**
* Open Source *or* Free
* Locally Deployable
* Has th... | [
0.5996643900871277,
0.05318106710910797,
0.11037424951791763,
0.09075935930013657,
0.023879768326878548,
-0.16630452871322632,
0.047147102653980255,
-0.05901418998837471,
-0.3383953869342804,
-0.6761693954467773,
-0.039120715111494064,
0.510270893573761,
-0.011221381835639477,
-0.034793719... | |
potential to become much better (can you say [GMail](http://en.wikipedia.org/wiki/History_of_Gmail#Internal_development)...), and I would simply like to foster such an environment internally by providing an easy place for that interaction to take place.
**UPDATE:**
So I like what I am seeing in both Trac and GForge, ... | [
0.4041540324687958,
-0.15660172700881958,
0.4213036000728607,
0.05929391831159592,
0.1401863396167755,
-0.18469922244548798,
0.24707473814487457,
0.3859527111053467,
-0.18274140357971191,
-0.7922514081001282,
-0.06416536122560501,
0.7315369844436646,
0.12899546325206757,
0.0730987936258316... | |
redmine for this: <http://www.redmine.org>. The only thing it's missing from your criteria is voting, but there might even be a plugin for this.
Trac is also popular (<http://trac.edgewall.org>) but it lacks suport for aggregation of data across projects. | [
0.2813006043434143,
-0.4079575538635254,
0.14882592856884003,
0.3512234389781952,
-0.33221694827079773,
-0.42852047085762024,
0.03845738619565964,
-0.31360340118408203,
-0.34796011447906494,
-0.3925338685512543,
0.0880344808101654,
0.22709152102470398,
-0.38291656970977783,
-0.286861777305... | |
SQL Server Version 2000.
We've a bunch of desktops talking to MSSQL Server. When looking for a specific record, some desktops return the correct data, but some do not.
The SQL Command is "SELECT \* FROM PODORDH WHERE ([NO]=6141)"
On one or two desktops, this returns a record. On the server and on all other desktops,... | [
-0.2600879967212677,
0.10521302372217178,
0.27663034200668335,
-0.10055214911699295,
-0.07074142247438431,
-0.33096739649772644,
0.0347004272043705,
0.08367161452770233,
-0.40450334548950195,
-0.6283619999885559,
0.41281402111053467,
0.5546904802322388,
-0.5582413673400879,
0.1443529725074... | |
I have a large CSV file and I want to execute a stored procedure for each line.
What is the best way to execute a stored procedure from PowerShell?
This answer was pulled from <http://www.databasejournal.com/features/mssql/article.php/3683181>
This same example can be used for any adhoc queries. Let us execute the st... | [
0.05857231467962265,
0.27759212255477905,
0.9368541836738586,
-0.029395729303359985,
0.11752483248710632,
-0.11284352838993073,
0.2126123011112213,
-0.4649770259857178,
-0.3749149739742279,
-0.7236068248748779,
-0.16351163387298584,
0.2888752520084381,
-0.26746565103530884,
0.1949126571416... | |
What is the preferred way to remove spaces from a string in C++? I could loop through all the characters and build a new string, but is there a better way?
The best thing to do is to use the algorithm [`remove_if`](http://en.cppreference.com/w/cpp/algorithm/remove) and isspace:
```
remove_if(str.begin(), str.end(), is... | [
-0.22699286043643951,
0.19769303500652313,
0.372987300157547,
-0.18474112451076508,
0.13713762164115906,
0.16966339945793152,
-0.0621655099093914,
-0.12843473255634308,
-0.3214709758758545,
-0.4973015785217285,
-0.21014924347400665,
0.16823939979076385,
-0.31503552198410034,
0.146513864398... | |
copy of the data. Here is a sample implementation:
```
template<typename T, typename P>
T remove_if(T beg, T end, P pred)
{
T dest = beg;
for (T itr = beg;itr != end; ++itr)
if (!pred(*itr))
*(dest++) = *itr;
return dest;
}
``` | [
0.05680304393172264,
-0.25397515296936035,
0.22328907251358032,
-0.1307501494884491,
0.06712327152490616,
0.2982863485813141,
0.3159860670566559,
-0.7525043487548828,
-0.027830664068460464,
-0.8218967318534851,
-0.5012583136558533,
0.4100911021232605,
-0.6843026876449585,
0.323026597499847... | |
For data types such as std::set and std::map where lookup occurs in logarithmic time, is the implementation required to maintain the begin and end iterators? Does accessing begin and end imply a lookup that could occur in logarithmic time?
I have always assumed that begin and end always occur in constant time, however... | [
-0.2243814617395401,
-0.07163145393133163,
0.26130911707878113,
0.13962872326374054,
0.10058888047933578,
-0.1005759984254837,
0.19106417894363403,
-0.08672228455543518,
-0.31573715806007385,
-0.6481990814208984,
-0.08827243000268936,
0.5684636235237122,
-0.03692944347858429,
0.07181455940... | |
Container Requiments**
a.begin(); *(constant complexity)*
a.end(); *(constant complexity)*
**Table 66 - Reversible Container Requirements**
a.rbegin(); *(constant complexity)*
a.rend(); *(constant complexity)* | [
-0.1438816338777542,
0.1562296599149704,
0.5604082942008972,
-0.26250123977661133,
0.15191848576068878,
0.15015357732772827,
-0.10674845427274704,
-0.23471418023109436,
-0.3004942238330841,
-0.27251747250556946,
-0.430684357881546,
0.49067428708076477,
-0.21264682710170746,
0.3325526714324... | |
I'm toying with the idea of volumetric particles. By 'volumetric' I don't mean actually 3D model per particle - usually it's more expensive and harder to blend with other particles. What I mean is 2D particles that will look as close as possible to be volumetric.
Right now what I/we have tried is particles with additio... | [
0.43607214093208313,
0.10070329159498215,
0.27209118008613586,
0.011578626930713654,
-0.26033467054367065,
0.03445782884955406,
-0.14097900688648224,
-0.17231673002243042,
-0.0349455326795578,
-0.8811302781105042,
0.1373225301504135,
0.2911214828491211,
-0.19180083274841309,
0.421881556510... | |
be interaction with lighting (and shadows as well), but here the question is how will the lighting formula look like (taking transparency into account, let's assume that we are talking about smoke and dust/clouds and not additive blend) - any suggestions would be welcomed.
I also though about adding normal so I can ac... | [
0.260145902633667,
-0.30453941226005554,
0.6704104542732239,
0.04886680841445923,
-0.17250221967697144,
0.08573625236749649,
-0.07276959717273712,
-0.12037457525730133,
0.05431745946407318,
-0.9044771790504456,
0.2512127459049225,
0.6505294442176819,
-0.29751861095428467,
-0.27129039168357... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.