text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
value needs to be hidden and stored, while the human readable version is displayed... multiple columns in the combo box row source. Thus, changing limit to list doesn't help, because id's that are not in the current row source query won't have a matching human readable part.
In this particular case, continuous forms m... | [
0.1975366175174713,
0.06265272945165634,
0.38364458084106445,
0.22032098472118378,
0.05186671018600464,
-0.047481101006269455,
-0.10243257135152817,
-0.10040423274040222,
-0.3711763620376587,
-0.4662308394908905,
0.4288314878940582,
0.597894549369812,
-0.18131215870380402,
0.23992574214935... | |
as is commonly the case, like in this instance.
Here is what I would do when faced with this situation (and I have implemented similar workarounds before):
Place an UNBOUND combobox on the form. Then place a BOUND textBox for the field you want to edit.
Make sure the combobox is hidden behind (NOT invisible, just h... | [
0.2978711426258087,
-0.5571346879005432,
0.48691481351852417,
0.13189595937728882,
0.009247925132513046,
-0.4469749629497528,
-0.04309912398457527,
-0.17999756336212158,
-0.0893048495054245,
-0.7419378161430359,
-0.2941921651363373,
0.695819079875946,
-0.32915979623794556,
-0.4165101051330... | |
leaves the combobox it will hide itself once more.
In the AfterUpdate event of the combobox set the value of the textbox equal to the value of the combobox.
Depending on your situation there may be some other details to work out, but that should more or less accomplish your goal without adding too much complexity. | [
0.06778325140476227,
-0.23286153376102448,
0.5994790196418762,
0.1360524743795395,
0.18401123583316803,
-0.17102563381195068,
0.40515604615211487,
-0.3007141947746277,
0.010160231962800026,
-0.6473531126976013,
-0.26261258125305176,
0.4311411678791046,
0.040772974491119385,
0.0513644106686... | |
I would much prefer to do this without catching an exception in `LoadXml()` and using this results as part of my logic. Any ideas for a solution that doesn't involve manually parsing the xml myself? I think VB has a return value of false for this function instead of throwing an XmlException. Xml input is provided from ... | [
0.26120424270629883,
0.04525475576519966,
0.5641385912895203,
-0.021442322060465813,
0.04773203283548355,
-0.348977655172348,
0.3139735758304596,
-0.37803882360458374,
-0.1682952642440796,
-0.6002498269081116,
-0.2446654736995697,
0.7258000373840332,
-0.2651500403881073,
0.0329178534448146... | |
= true;
}
catch
{
loaded = false;
}
}
```
Just catch the exception. The small overhead from catching an exception drowns compared to parsing the XML.
If you want the function (for stylistic reasons, not for performance), implement it yourself:
```
public class MyXmlDocument: XmlDocument... | [
0.3064400553703308,
-0.17497950792312622,
0.24370121955871582,
-0.1018517017364502,
0.08795115351676941,
-0.3073205053806305,
0.2203853279352188,
-0.31450989842414856,
0.017178677022457123,
-0.3863803744316101,
-0.39742153882980347,
0.4265379011631012,
-0.5491939783096313,
-0.0639730691909... | |
}
}
``` | [
0.17493881285190582,
0.41805654764175415,
0.05209751054644585,
-0.04864929988980293,
0.437467485666275,
-0.15825650095939636,
0.13202530145645142,
0.5446501970291138,
0.35430577397346497,
-0.4846813380718231,
-0.2295716553926468,
0.546978771686554,
-0.3188462555408478,
0.2798506021499634,
... | |
I'm in Quality Assurance and use Fisheye to track checkins to CVS. What other options do people use?
We have tens of thousands of files and have plans for migrating to Team Foundation Server's code management tool 'at some point' When we do that, there will be lots of information that will be available.
[ViewVC](http:... | [
0.5826709866523743,
-0.14459775388240814,
0.45352309942245483,
-0.06631894409656525,
0.029327981173992157,
-0.2993118166923523,
0.0603717640042305,
0.1514490693807602,
-0.15553562343120575,
-0.6451151371002197,
0.3464777171611786,
0.8876927495002747,
0.15000011026859283,
0.0135525632649660... | |
web interface, wiki, ticket system, and other features. I haven't set it up on our repository, but it does provide some fisheye-like features as well. | [
0.3415238857269287,
-0.029825014993548393,
0.12446590512990952,
0.5177212953567505,
0.27418968081474304,
-0.1708282083272934,
-0.18199576437473297,
0.4337320327758789,
-0.24721916019916534,
-0.8318846225738525,
0.26904645562171936,
0.13236254453659058,
0.08499105274677277,
0.11540376394987... | |
does anyone know of a macro or add-on for VS 2008 which reformats xml-comments? There has been this really smart CommentReflower for the older version of VS, but I couldn't find a release supporting VS 2008.
Any ideas? Thanks in advance!
Matthias
I have used the [SlickEdit](http://www.slickedit.com/index.php?option=c... | [
0.5111174583435059,
0.08321268856525421,
0.5556623339653015,
0.23400527238845825,
-0.439910352230072,
-0.1527765840291977,
0.10755106806755066,
-0.010001635178923607,
-0.28138411045074463,
-0.27580708265304565,
0.26155927777290344,
0.5788821578025818,
0.011715244501829147,
-0.4157925248146... | |
Suppose I have a class module `clsMyClass` with an object as a member variable. Listed below are two complete implementations of this very simple class.
Implementation 1:
```
Dim oObj As New clsObject
```
Implementation 2:
```
Dim oObj As clsObject
Private Sub Class_Initialize()
Set oObj = New clsObject
End S... | [
-0.5346524119377136,
-0.13680405914783478,
0.5555166006088257,
-0.38088229298591614,
0.07316659390926361,
-0.3268836438655853,
0.17431442439556122,
-0.27344441413879395,
-0.08277879655361176,
-0.34953561425209045,
-0.4712834060192108,
0.5353701710700989,
-0.4875061511993408,
-0.00343368202... | |
instance will be created at the same time that the clsMyClass is instantiated. The clsObject.Class\_Initialize will always be executed if clsMyClass is created. | [
-0.7103865742683411,
-0.16280058026313782,
0.2995002865791321,
-0.08937419205904007,
-0.005879383534193039,
-0.23866629600524902,
0.2625769078731537,
0.1404510885477066,
-0.04067732021212578,
-0.6515641808509827,
-0.2661096155643463,
0.5077011585235596,
-0.5297391414642334,
0.0613177195191... | |
Let's say I have an aspx page with this calendar control:
```
<asp:Calendar ID="Calendar1" runat="server" SelectedDate="" ></asp:Calendar>
```
Is there anything I can put in for SelectedDate to make it use the current date by default, without having to use the code-behind?
If you are already doing databinding:
```... | [
0.17018327116966248,
-0.10094600915908813,
0.410892516374588,
0.15054161846637726,
0.07753422856330872,
-0.22700203955173492,
-0.04594707489013672,
0.07733353972434998,
-0.29616034030914307,
-0.7486570477485657,
0.058314260095357895,
0.38356906175613403,
-0.07926703989505768,
0.09206602722... | |
control and sets its selecteddate. | [
0.1251859962940216,
-0.16721820831298828,
0.5822052359580994,
0.06898091733455658,
0.29528772830963135,
-0.08012622594833374,
-0.23203355073928833,
0.08080416917800903,
0.133636012673378,
-0.522260308265686,
-0.26441842317581177,
-0.09635426104068756,
0.12691040337085724,
0.168643519282341... | |
ASP.NET 2.0 provides the `ClientScript.RegisterClientScriptBlock()` method for registering JavaScript in an ASP.NET Page.
The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work:
```
ClientScript.RegisterClientScriptBlock(this.GetType(), "scr... | [
-0.020996885374188423,
-0.057456400245428085,
0.6007749438285828,
-0.1742076426744461,
-0.27677807211875916,
-0.20875267684459686,
0.2720280885696411,
-0.20834600925445557,
-0.4500534236431122,
-0.7246589660644531,
-0.22438758611679077,
0.10972856730222702,
-0.40867188572883606,
-0.0996573... | |
I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix.
I need to know the files that have changed, the user that changed them, and the comment.
I've been trying t... | [
0.5798651576042175,
0.16130244731903076,
0.5395695567131042,
-0.1051645576953888,
0.2911101281642914,
-0.18791574239730835,
0.19129851460456848,
0.12628164887428284,
-0.255528062582016,
-0.5376645922660828,
-0.010309656150639057,
0.7794625163078308,
0.10018981993198395,
0.01952516846358776... | |
to do. What I'd done before was a two stage process.
Firstly, running
```
cvs history -c -a -D "7 days ago" |
gawk '{ print "$1 == \"" $6 "\" && $2 == \"" $8 "/" $7 "\" { print \"" $2 " " $3 " " $6 " " $5 " " $8 "/" $7 "\"; next }" }' > /tmp/$$.awk
```
to gather information about all checkins in the previous 7 ... | [
0.3572675287723541,
0.0026228076312690973,
0.5688108801841736,
-0.3606739342212677,
0.35370945930480957,
0.09392967820167542,
0.3791309595108032,
-0.2986234426498413,
-0.10353609174489975,
-0.4345700740814209,
0.06796018779277802,
0.8740329742431641,
-0.4070087969303131,
0.0934329330921173... | |
that contained the broken file(s) to get more info.
Mungeing the two together allowed me to finger the culprit and send an email to them notifying them that they'de broken the build.
Sorry that this answer isn't as complete as I'd hoped. | [
0.36654606461524963,
0.3771679401397705,
0.2687934935092926,
0.2677218019962311,
0.1317039579153061,
-0.06780499964952469,
0.41520175337791443,
-0.14752811193466187,
-0.15274561941623688,
-0.36578530073165894,
0.09241931885480881,
0.2224879264831543,
0.05277420952916145,
0.3638862669467926... | |
I have a application deployed through clickonce, but How can I modify the config file on the deployment server?. I mean, once the product is tested, it should be deployed in our production server, but need to modify some of the config parameters to consume production resources?. I heard we should use MageUI.exe, but st... | [
0.5709012746810913,
0.049563612788915634,
0.33695080876350403,
0.38034170866012573,
0.004441624972969294,
-0.22522911429405212,
0.200395405292511,
0.12774501740932465,
-0.20694319903850555,
-0.8175309896469116,
0.1939588338136673,
0.5978388786315918,
0.0805889368057251,
0.02160159125924110... | |
or purchase a certificate. Self certificates are easy to use but when the app is installed the publisher will appear as **Unknown**. If you purchase a certificate, use these instructions to create the files needed to sign ClickOnce manifests - <http://www.softinsight.com/bnoyes/CommentView.aspx?guid=78d107d1-3937-4d8d-... | [
0.34540843963623047,
-0.021962381899356842,
0.6726226210594177,
0.04388632997870445,
0.47845765948295593,
-0.13794757425785065,
0.24161861836910248,
-0.01612056791782379,
-0.07610134035348892,
-0.4620306193828583,
-0.22762824594974518,
0.5328826904296875,
0.03980252146720886,
-0.0043346979... | |
For some reason when I attempt to make a request to an Ajax.net web service with the ScriptService attribute set, an exception occurs deep inside the protocol class which I have no control over. Anyone seen this before?
Here is the exact msg:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
... | [
-0.08114995062351227,
-0.02488722652196884,
0.25774461030960083,
0.12421239912509918,
-0.14005087316036224,
-0.18080094456672668,
0.22673025727272034,
-0.19171854853630066,
-0.3457191586494446,
-0.9091529846191406,
-0.05948728322982788,
0.48764994740486145,
-0.025178585201501846,
0.1051300... | |
What do you think is the best way to create SEO friendly URLs (dynamically) in Rails?
Override the `to_param` method in your model classes so that the default numeric ID is replaced with a meaningful string. For example, this very question uses **best-permalinking-for-rails** in the URL.
Ryan Bates has a [Railscast on... | [
-0.06434495747089386,
-0.3611558675765991,
0.01703074760735035,
0.26306453347206116,
-0.16986550390720367,
-0.4232823848724365,
0.14680343866348267,
0.11776679009199142,
-0.4173702895641327,
-0.14426934719085693,
-0.5394704937934875,
0.24693483114242554,
-0.10870490968227386,
-0.1826543509... | |
Is there any difference to the following code:
```
class Foo
{
inline int SomeFunc() { return 42; }
int AnotherFunc() { return 42; }
};
```
Will both functions gets inlined? Does inline actually make any difference? Are there any rules on when you should or shouldn't inline code? I often use the `AnotherFunc` ... | [
0.29551589488983154,
0.08336373418569565,
0.2950369417667389,
-0.10957749933004379,
-0.25903892517089844,
0.0020095750223845243,
0.14878588914871216,
-0.021045753732323647,
0.08861243724822998,
-0.33628177642822266,
0.3814856708049774,
0.9621684551239014,
-0.5065845847129822,
-0.1846152842... | |
I've run on a little problem today: I have a JS drop down menu and when I inserted a GoogleMap... the Menu is rendered behind the Google Map... Any ideas on how to chance the z Index of the Google Map?
Thanks!
If your problem happens in Internet Explorer, but it renders the way you'd expect in FireFox or Safari, [this... | [
-0.05943699926137924,
0.23698307573795319,
0.19384276866912842,
-0.02629159949719906,
-0.12703090906143188,
0.07357154041528702,
0.311418354511261,
0.0981052815914154,
-0.01945514604449272,
-0.5212973356246948,
0.04237706586718559,
0.4908088743686676,
-0.1500438004732132,
0.058527421206235... | |
the HTML document, in unintuitive and anti-spec ways. Supposedly IE8 behaves "correctly" but I haven't tested it myself.
Anutron's advice is going to be really helpful if your problem is with a `<SELECT>` form element, but if you're using JavaScript to manipulate divs or uls to act like a drop down I don't think it's ... | [
0.3857085108757019,
-0.06313879042863846,
0.22778230905532837,
0.18902254104614258,
-0.2685810923576355,
-0.1304667890071869,
0.40156057476997375,
0.2195737361907959,
0.1192307323217392,
-0.40118420124053955,
-0.07810215651988983,
0.4663642644882202,
-0.3253484070301056,
-0.171818226575851... | |
Here is a problem I've struggled with ever since I first started learning object-oriented programming: how should one implement a logger in "proper" OOP code?
By this, I mean an object that has a method that we want every other object in the code to be able to access; this method would output to console/file/whatever,... | [
-0.001957393018528819,
0.25470811128616333,
0.15220893919467926,
0.19914446771144867,
0.062457941472530365,
-0.2850651144981384,
0.12566736340522766,
0.051803868263959885,
-0.33568075299263,
-0.44366055727005005,
-0.02839086763560772,
0.27530646324157715,
-0.4427935779094696,
0.38942301273... | |
every single method we call in every single object.
In college, when I brought this up to the professor, he couldn't actually give me an answer. I realize that there are actually packages (for say, Java) that might implement this functionality. What I am ultimately looking for, though, is the knowledge of how to prope... | [
0.11291104555130005,
0.35663431882858276,
-0.12020821869373322,
0.3107961118221283,
0.0681278258562088,
-0.17954429984092712,
0.2855418026447296,
0.2512068748474121,
-0.3458597660064697,
-0.6138496994972229,
-0.1024588868021965,
0.31065648794174194,
-0.4621802866458893,
0.07195728272199631... | |
about the Singleton design pattern if you want more information. | [
0.7685471177101135,
-0.3189719319343567,
-0.5583968162536621,
0.31231382489204407,
-0.09415912628173828,
-0.34500759840011597,
0.1385120451450348,
0.8142873048782349,
-0.2120112031698227,
-0.5552114844322205,
0.10931669175624847,
0.3566844165325165,
-0.05323469266295433,
0.1105196699500083... | |
I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted.
Right now, I call `to_json` and my JSON is all on one line. At times this can be difficult to see if there is a problem in the JSON output stream.
Is there way to configure to make my JSON "pretty" or nicely formatted in Rails?
Use the ... | [
0.20300805568695068,
0.11360710859298706,
0.344379186630249,
-0.4494749903678894,
-0.16549693048000336,
0.012205274775624275,
0.2088647186756134,
0.04772653430700302,
0.021897777915000916,
-0.7239790558815002,
-0.22895485162734985,
0.6096920967102051,
-0.334536075592041,
-0.221552714705467... | |
2,
3,
{
"sample": "hash"
}
],
"foo": "bar"
}
``` | [
-0.0023231511004269123,
0.5237895250320435,
0.39404967427253723,
-0.38083404302597046,
-0.007552655413746834,
0.11692321300506592,
0.0924706757068634,
-0.32828328013420105,
0.03359294310212135,
-0.03383693844079971,
-0.3943627178668976,
0.31056448817253113,
-0.5518067479133606,
0.088136434... | |
I am having a really hard time attempting to debug LINQ to SQL and submitting changes.
I have been using <http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx>, which works great for debugging simple queries.
I'm working in the DataContext Class for my project with the following snippet... | [
0.017205409705638885,
0.275182843208313,
0.5467296242713928,
-0.15886445343494415,
-0.036147549748420715,
-0.008855038322508335,
0.487803190946579,
-0.45500338077545166,
-0.37298405170440674,
-0.6450247168540955,
-0.10685066878795624,
0.39983630180358887,
-0.29270559549331665,
0.1679076403... | |
at System.Data.Linq.ChangeProcessor.GetOtherItem(MetaAssociation assoc, Object instance)
at System.Data.Linq.ChangeProcessor.BuildEdgeMaps()
at System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
at System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
at System.Data.Linq... | [
0.1460224986076355,
0.27960285544395447,
0.33255863189697266,
-0.12361370027065277,
0.0005887144943699241,
0.10527905076742172,
0.584270715713501,
-0.3205677270889282,
-0.45698028802871704,
-0.6637886762619019,
-0.1376938372850418,
0.5632819533348083,
-0.47833889722824097,
-0.0177372470498... | |
getting to generate SQL when my exception is being thrown.
**EDIT4:**
I found an answer that works for me below. Its just a theory but it has fixed my current issue.
First, thanks everyone for the help, I finally found it.
The solution was to drop the .dbml file from the project, add a blank .dbml file and repopulate... | [
0.37301313877105713,
-0.08840571343898773,
0.2034863829612732,
0.1645241528749466,
-0.2873568534851074,
-0.21572750806808472,
0.11151029169559479,
0.09950923174619675,
-0.21863578259944916,
-0.6851639747619629,
0.29098889231681824,
0.3088260591030121,
-0.20337621867656708,
0.01887279748916... | |
I was pulling that table back into the .dbml file it would create a table called 'Job\_Master', it would replace the space with an underscore.
* In the orginal .dbml file one of my developers had gone through the .dbml file and removed all of the underscores, thus 'Job\_Master' would become 'JobMaster' in the .dbml fil... | [
0.2894892394542694,
0.18945692479610443,
0.2965710759162903,
-0.1526661217212677,
-0.2182271033525467,
0.37060093879699707,
-0.061979182064533234,
0.05806652829051018,
-0.38325029611587524,
-0.8070319294929504,
0.07805332541465759,
0.3120622932910919,
-0.4084717333316803,
0.213743194937706... | |
of bounds error.
It is only a theory. If someone can better explain it I would love to have a concrete answer here. | [
0.11357594281435013,
0.2662549316883087,
-0.0484757199883461,
0.4114134609699249,
-0.06658972054719925,
-0.07161766290664673,
0.23002810776233673,
-0.05708980932831764,
-0.018595900386571884,
-0.1902347207069397,
0.1677311509847641,
0.3629588186740875,
-0.33831849694252014,
0.3120105862617... | |
Say I have two strings,
```
String s1 = "AbBaCca";
String s2 = "bac";
```
I want to perform a check returning that `s2` is contained within `s1`. I can do this with:
```
return s1.contains(s2);
```
I am pretty sure that `contains()` is case sensitive, however I can't determine this for sure from reading the docum... | [
0.07858709990978241,
0.31083184480667114,
0.4312039613723755,
-0.2214704155921936,
0.145975261926651,
-0.018238820135593414,
0.21533121168613434,
-0.23133426904678345,
-0.020342305302619934,
-0.5885592103004456,
-0.2829689681529999,
0.5935137867927551,
-0.42802223563194275,
-0.033131826668... | |
(of which there are many) it's important to quote it first. I've corrected my answer since it is the first one people will see, but vote up Matt Quail's since he pointed this out. | [
0.3004232943058014,
0.27560505270957947,
0.027109023183584213,
-0.0013268999755382538,
-0.20202556252479553,
0.01673683524131775,
0.44631704688072205,
0.45425665378570557,
0.2242882251739502,
-0.3566948473453522,
0.020640987902879715,
0.29999467730522156,
-0.21465271711349487,
-0.066110335... | |
I've recently embarked upon the *grand voyage* of Wordpress theming and I've been reading through the Wordpress documentation for how to write a theme. One thing I came across [here](http://codex.wordpress.org/Theme_Development) was that the `style.css` file must contain a specific header in order to be used by the Wor... | [
0.3984283208847046,
0.07005626708269119,
0.21107332408428192,
0.0020438977517187595,
-0.23662211000919342,
-0.2186727374792099,
-0.28570201992988586,
0.25001904368400574,
-0.5408075451850891,
-0.6213216185569763,
0.0381757877767086,
0.11734498292207718,
0.060125578194856644,
0.259935110807... | |
lines of the stylesheet, called the style sheet header, for the Theme "Rose":
```
/*
Theme Name: Rose
Theme URI: the-theme's-homepage
Description: a-brief-description
Author: your-name
Author URI: your-URI
Template: use-this-to-define-a-parent-theme--optional
Version: a-number--optional
Tags: a-comma-delimited-list... | [
0.2811742424964905,
0.07611905783414841,
0.5433697700500488,
0.13598385453224182,
-0.009444523602724075,
-0.17476771771907806,
-0.18956445157527924,
-0.3093699812889099,
0.08674664795398712,
-0.609542965888977,
-0.4359215795993805,
0.07316628843545914,
-0.27283698320388794,
0.3211582303047... | |
Rose's style.css. Now "test" is the parent Theme for "Rose", which still consists only of a style.css file and the concomitant images, all located in the directory wp-content/themes/Rose. (Note that specifying a parent Theme will inherit all of the template files from that Theme — meaning that any template files in the... | [
0.2559429407119751,
-0.34135568141937256,
0.6494350433349609,
0.09207604825496674,
0.12300518155097961,
0.0012761427788063884,
0.17088808119297028,
-0.15726855397224426,
0.029703130945563316,
-0.6950309872627258,
-0.34361761808395386,
-0.17962290346622467,
-0.20660917460918427,
0.696333527... | |
Author, and Author URI fields are parsed by WordPress and used to display that data in the Current Theme area on the top line of the current theme information, where the Author's Name is hyperlinked to the Author URI. The Description and Tag fields are parsed and displayed in the body of the theme's information, and if... | [
-0.07289116829633713,
0.21739289164543152,
0.8774455189704895,
0.26887866854667664,
0.14384816586971283,
-0.20364388823509216,
-0.24976485967636108,
0.17860116064548492,
-0.2667614221572876,
-0.48196253180503845,
-0.6902986764907837,
0.2203352451324463,
-0.09741847217082977,
0.620078861713... | |
In addition, none of them are required in the code, though in practice the fields not marked as optional in the list above are all used to provide contextual information to the WordPress administrator and should be included for all themes. | [
0.15065507590770721,
0.1984996348619461,
0.4247026741504669,
0.01860194094479084,
0.16755585372447968,
-0.13655945658683777,
0.17303025722503662,
0.28914695978164673,
-0.17318686842918396,
-0.364463210105896,
-0.8838080763816833,
0.35592198371887207,
-0.15295682847499847,
-0.10991614311933... | |
If I have the following:
```
{"hdrs": ["Make","Model","Year"],
"data" : [
{"Make":"Honda","Model":"Accord","Year":"2008"}
{"Make":"Toyota","Model":"Corolla","Year":"2008"}
{"Make":"Honda","Model":"Pilot","Year":"2008"}]
}
```
And I have a "hdrs" name (i.e. "Make"), how can I reference the `data` array ins... | [
0.34661412239074707,
0.4095202386379242,
0.7357871532440186,
0.01445882860571146,
-0.12366186827421188,
0.08224818855524063,
-0.020222529768943787,
-0.4952886402606964,
0.3539307117462158,
-0.15991587936878204,
-0.03964417427778244,
0.7259422540664673,
0.406701922416687,
0.3306885063648224... | |
re-tagging) I would like to be able to reference with something like this: `t.data[hdrs[i]][j]`
I had to alter your code a little:
```
var x = {"hdrs": ["Make","Model","Year"],
"data" : [
{"Make":"Honda","Model":"Accord","Year":"2008"},
{"Make":"Toyota","Model":"Corolla","Year":"2008"},... | [
0.46153926849365234,
0.11411026865243912,
0.9109784364700317,
0.06366539001464844,
0.052119288593530655,
-0.037168171256780624,
0.14480236172676086,
-0.3820091485977173,
0.07578536868095398,
-0.10589145123958588,
-0.11162201315164566,
0.8170602917671204,
-0.1709994524717331,
0.196303859353... | |
"data" : [
{"Make":"Honda","Model":"Accord","Year":"2008"},
{"Make":"Toyota","Model":"Corolla","Year":"2008"},
{"Make":"Honda","Model":"Pilot","Year":"2008"}]
};
var Header = 0; // Make
for( var i = 0; i <= x.data.length - 1; i++ )
{
alert( x.data[i][x.hdrs[Header]] );
} ... | [
0.4904131293296814,
-0.01927100494503975,
0.6717837452888489,
-0.10008883476257324,
0.14647069573402405,
0.1582755446434021,
-0.17267104983329773,
-0.38421621918678284,
0.24229201674461365,
-0.09226904809474945,
-0.10525428503751755,
0.7324012517929077,
0.09936510026454926,
0.0337299630045... | |
I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following:
```
public class Main implements EntryPoint
{
public void onModuleLoad()
{
HorizontalSplitPanel split = new HorizontalSplitPanel();
//split.setSize("... | [
0.37724459171295166,
-0.24377989768981934,
0.7815373539924622,
-0.14565512537956238,
0.1640390306711197,
0.2631415128707886,
-0.020160330459475517,
-0.3973029553890228,
-0.25039607286453247,
-0.8943461775779724,
-0.23815347254276276,
0.37170809507369995,
-0.03903866559267044,
0.15702852606... | |
RootPanel.get().add(dp);
}
}
```
With the previous code snippet, nothing shows up. Is there a method call I am missing?
Thanks.
---
**UPDATE Sep 17 '08 at 20:15**
I put some buttons (explicitly set their size) on each side and that still doesn't work. I'm really surprised there isn't like a FillLayout class... | [
0.2578495442867279,
-0.12300252169370651,
0.6206623911857605,
-0.0924646332859993,
0.019103102385997772,
0.09768489003181458,
0.4510209262371063,
0.20429521799087524,
-0.3737906217575073,
-0.9965990781784058,
0.24050550162792206,
0.6585072875022888,
0.12166806310415268,
0.05840571597218513... | |
Thanks for the suggestion though, that seemed like it maybe was going to work. Any other suggestions??
Google has answered the main part of your question in one of their FAQs:
<http://code.google.com/webtoolkit/doc/1.6/FAQ_UI.html#How_do_I_create_an_app_that_fills_the_page_vertically_when_the_b>
The primary point is t... | [
0.19224978983402252,
-0.017396939918398857,
0.9874446988105774,
-0.16684427857398987,
0.0139775974676013,
0.36379653215408325,
0.10572154819965363,
-0.1281023472547531,
-0.43820223212242126,
-0.6654688119888306,
-0.42540115118026733,
0.47370508313179016,
-0.11086887866258621,
-0.3384302854... | |
I am looking for a tool that can serialize and/or transform SQL Result Sets into XML. Getting dumbed down XML generation from SQL result sets is simple and trivial, but that's not what I need.
The solution has to be database neutral, and accepts only regular SQL query results (no db xml support used). A particular cha... | [
0.08499452471733093,
-0.028808431699872017,
0.2788573205471039,
0.18626737594604492,
-0.2459283173084259,
-0.24188582599163055,
0.11109425872564316,
-0.11837653815746307,
0.04685342684388161,
-0.5729044675827026,
0.0762145146727562,
0.3290720582008362,
-0.3695787787437439,
0.21182778477668... | |
sets, big XML.
Anything out there for this?
With SQL Server you really should consider using the *FOR XML* construct in the query.
If you're using .Net, just use a DataAdapter to fill a dataset. Once it's in a dataset, just use its .WriteXML() method. That breaks your DB->object->XML rule, but it's really how things... | [
0.5182317495346069,
-0.3630797564983368,
0.15903638303279877,
0.40333542227745056,
-0.17512868344783783,
-0.5076338052749634,
-0.11617834120988846,
0.06765881180763245,
-0.24557460844516754,
-0.8023074865341187,
-0.08658280223608017,
0.391147255897522,
-0.4080750048160553,
0.16509646177291... | |
I've been developing modules for DNN since version 2 and back then I was able to easily able to run my module as I developed it on my environment and still easily deploy my module as a DLL.
When version 4 came out and used the web site solution (rather than the Web Application solution). It seems like there was somethi... | [
0.4753246009349823,
0.019360685721039772,
0.33355021476745605,
-0.3764916956424713,
-0.12415715306997299,
-0.24869884550571442,
0.14298942685127258,
0.018288690596818924,
-0.34619903564453125,
-0.667701244354248,
-0.05434947460889816,
0.6805412769317627,
-0.3462192118167877,
0.178576529026... | |
deployment of the modules to the main site after I was done making changes.
I'd like to set up a good environment for multiple developers to be able to work on the module(s).
When adding stuff to source control, are people generally putting all of DNN into source control so they can bring the whole solution down to ... | [
0.5803044438362122,
-0.09340618550777435,
0.1994638890028,
0.019086336717009544,
-0.17496678233146667,
-0.3304870128631592,
0.07184842228889465,
-0.17635919153690338,
-0.4498305022716522,
-0.5600737929344177,
-0.0806603953242302,
0.7260339260101318,
-0.05442538484930992,
-0.062640257179737... | |
both in doing this and deploying those changes to a live site.
I have a few detailed blog postings about this on my blog site, [mitchelsellers.com](http://www.mitchelsellers.com).
I personally use the WAP development model and I do NOT check the DNN solution, or any core files into source control, as I do NOT modify t... | [
0.6832326650619507,
0.1470259130001068,
0.04160679876804352,
0.036162856966257095,
-0.21575738489627838,
-0.04165249317884445,
0.3348958492279053,
-0.04970118775963783,
-0.20257507264614105,
-0.8074843883514404,
0.04929094761610031,
0.2670719027519226,
-0.013339608907699585,
0.205253213644... | |
worked with a shared dev database to resolve issues with dev module installation issues.
With the WAP model I use a method to dynamically create my installation packages on project build using a post-build event and then I have a test installation that I use to validate that the packages occur. Debugging is then done ... | [
0.6734703183174133,
0.023394644260406494,
-0.09505103528499603,
-0.025095077231526375,
-0.25999951362609863,
-0.2222631722688675,
0.47702619433403015,
-0.5286427140235901,
0.009822417050600052,
-0.5794925689697266,
-0.01240706630051136,
0.6153260469436646,
-0.18237896263599396,
-0.00357319... | |
I have finally started messing around with creating some apps that work with RESTful web interfaces, however, I am concerned that I am hammering their servers every time I hit F5 to run a series of tests..
Basically, I need to get a series of web responses so I can test I am parsing the varying responses correctly, ra... | [
0.6137107014656067,
0.14815197885036469,
0.23104524612426758,
0.3445831537246704,
-0.2557285726070404,
-0.3420548737049103,
0.5811951160430908,
0.017822252586483955,
-0.22369696199893951,
-0.5691034197807312,
0.13591907918453217,
0.5555034279823303,
0.32769179344177246,
-0.1563163846731186... | |
about mocking this sort of thing? Do you? I just really don't like the fact I am hammering their servers :S I dont want to change the code *too* much, but I expect there is a elegant way of doing this..
Update Following Accept
-----------------------
Will's answer was the slap in the face I needed, I knew I was missi... | [
0.399149626493454,
0.29872485995292664,
0.4232809245586395,
0.259019136428833,
-0.4889667332172394,
0.1025976613163948,
0.43621402978897095,
0.13945722579956055,
0.09475143998861313,
-0.482642263174057,
0.3810039460659027,
0.5623407363891602,
-0.27238649129867554,
0.03106522560119629,
-0... | |
or the static XML.
* You can then pass the required class when testing or at production to the service layer.
Once I have the code knocked up, I'll paste some samples.
I found this question while looking to do exactly the same thing. Couldn't find an answer anywhere, but after a bit more digging found that the .Net Fr... | [
0.5861947536468506,
-0.029557110741734505,
0.18135279417037964,
0.07302332669496536,
-0.22207775712013245,
-0.03736092895269394,
0.1437670737504959,
0.0000060884585764142685,
-0.004643422085791826,
-0.7544286847114563,
-0.17174670100212097,
0.42520591616630554,
-0.2595999538898468,
0.10347... | |
your mock `WebRequest`.
I've put some sample code up at
<http://blog.salamandersoft.co.uk/index.php/2009/10/how-to-mock-httpwebrequest-when-unit-testing/> | [
0.21221256256103516,
0.23039831221103668,
0.11479025334119797,
0.07904726266860962,
-0.2535558044910431,
0.13608936965465546,
0.37573254108428955,
-0.049188148230314255,
-0.0403301939368248,
-0.6979758739471436,
0.2835582196712494,
0.344679594039917,
0.12908640503883362,
-0.112903736531734... | |
I currently maintain 3 websites all revolving around the same concept. 2 of them are WinForms applications where the website gives a few basic details, and download links. The third is a web application to query data. I also have a forum (SMF/TinyPortal) that has been serving as a tech support/news hub for the three si... | [
0.6147180199623108,
0.3385697305202484,
0.6092700958251953,
0.04999510198831558,
0.08169826865196228,
-0.11425256729125977,
0.21532577276229858,
0.1001201942563057,
-0.10372540354728699,
-0.5506008863449097,
-0.057825587689876556,
0.19045202434062958,
0.35644450783729553,
0.531681776046752... | |
to the sites.
Fortunately my hosting account has both .NET and PHP support, so I've been looking into Drupal, Graffiti, DotNetNuke, Joomla, Community Server, and more. However, it has been hard for me to discern between what features included, supported, or just not part of the framework whatsoever.
Does anybody have... | [
0.8611385226249695,
0.03556472063064575,
0.2946588397026062,
0.15601621568202972,
-0.264422744512558,
-0.22089141607284546,
0.054804541170597076,
0.4337107241153717,
-0.612907886505127,
-0.577159583568573,
-0.01992877759039402,
0.28787755966186523,
-0.06389240175485611,
0.13592225313186646... | |
- has practically every cms known to man on there.
*Edit*
To be a little more precise, from the site
> CMSMatrix is the number one content management system comparison site on the Internet. It allows users to evaluate over 950 content management systems in 135+ different categories. | [
0.24889177083969116,
0.18811407685279846,
0.6788772940635681,
0.44201940298080444,
-0.0758495032787323,
0.005955492611974478,
0.04095594212412834,
0.16847071051597595,
-0.4931212365627289,
-0.5028884410858154,
-0.09330670535564423,
-0.0339653454720974,
0.2240140587091446,
0.478653371334075... | |
[So this post](https://stackoverflow.com/questions/2262/aspnet-url-rewriting) talked about how to actually implement url rewriting in an ASP.NET application to get "friendly urls". That works perfect and it is great for sending a user to a specific page, but does anyone know of a good solution for creating "Friendly" U... | [
0.5405287146568298,
0.16254758834838867,
0.4614931643009186,
0.23977184295654297,
-0.2682127356529236,
-0.2927455008029938,
0.29359811544418335,
0.21450749039649963,
-0.13958781957626343,
-0.7171443700790405,
0.1323614865541458,
0.23173834383487701,
-0.0084170987829566,
0.29957982897758484... | |
will get the friendly Url code from the re-writer but I'm not finding examples of how to do this with UrlRewriting.net or the other solutions out there.
Ideally I'd like to be able to get something like this.
```
string friendlyUrl = GetFriendlyUrl("~/MyUnfriendlyPage.aspx?myid=13");
```
**EDIT:** I am looking for... | [
0.2026091068983078,
0.14760169386863708,
0.8473463654518127,
0.0358378030359745,
-0.24884594976902008,
-0.3785320222377777,
0.539905846118927,
-0.08056224137544632,
-0.25699731707572937,
-0.7519007921218872,
-0.028383800759911537,
0.4333827793598175,
-0.25806713104248047,
0.063032865524291... | |
modified), but it allows you to generate links based on the routes you define. It's used by ASP.NET MVC, but can be employed in any ASP.NET application.
Routing is part of .Net 3.5 SP1 | [
0.2564133405685425,
-0.5304699540138245,
0.5839467644691467,
-0.13206517696380615,
-0.07452566176652908,
-0.32082319259643555,
0.030081739649176598,
-0.006423279643058777,
-0.4627874195575714,
-0.8860046863555908,
-0.14353609085083008,
0.08119338005781174,
-0.5419948697090149,
-0.009555436... | |
How do i represent CRLF using Hex in C#?
Since no one has actually given the answer requested, here it is:
```
"\x0d\x0a"
``` | [
0.08694487810134888,
0.6986770033836365,
0.6835530400276184,
-0.2326231449842453,
-0.11454258114099503,
-0.16262812912464142,
-0.08898894488811493,
-0.1977488398551941,
-0.061756640672683716,
-0.4584980010986328,
-0.20150896906852722,
0.4960954487323761,
-0.21541674435138702,
-0.0529521554... | |
I need to find the frequency of a sample, stored (in vb) as an array of byte. Sample is a sine wave, known frequency, so I can check), but the numbers are a bit odd, and my maths-foo is weak.
Full range of values 0-255. 99% of numbers are in range 235 to 245, but there are some outliers down to 0 and 1, and up to 255 ... | [
0.2763529121875763,
0.03238246589899063,
0.32571008801460266,
0.15260329842567444,
-0.28404828906059265,
0.20547504723072052,
0.24616333842277527,
-0.5372766852378845,
0.043325379490852356,
-0.32143670320510864,
0.27473974227905273,
0.2855304181575775,
-0.0223594531416893,
0.33266305923461... | |
frequency?
Apologies if this description is rubbish!
The FFT is probably the best answer, but if you really want to do it by your method, try this:
To normalize, first make a histogram to count how many occurrances of each value from 0 to 255. Then throw out X percent of the values from each end with something like:
... | [
0.0342707522213459,
-0.23099245131015778,
0.5889146327972412,
0.1870127171278,
-0.18096767365932465,
-0.27569323778152466,
0.5043076276779175,
-0.5723548531532288,
-0.1561993658542633,
-0.6466636657714844,
0.0775412917137146,
0.7746581435203552,
-0.08329309523105621,
0.12140633910894394,
... | |
over the last several points, and only count crossings when the average slope is going the right way. | [
0.11714234948158264,
0.04035772755742073,
0.9392995834350586,
0.22452636063098907,
0.14621619880199432,
-0.10122032463550568,
0.4877355694770813,
0.05614635720849037,
-0.36382830142974854,
-0.8693430423736572,
-0.05432199314236641,
0.16126950085163116,
0.29368263483047485,
-0.1438045948743... | |
I want to ditch my current editor. I feel I need something else. That do not expose my hands to the risk of RSI. I need to see why I should change editor. And it would be nice to believe, that I will be coding when I'm 80 years old.
All the big guys out there are using Vim. The only Emacs guy I know are RMS. Paul Grah... | [
0.7193534970283508,
0.1918243169784546,
0.5527915954589844,
0.09176308661699295,
0.22020143270492554,
-0.20242087543010712,
0.4450523257255554,
0.16411322355270386,
-0.28318333625793457,
-0.8219294548034668,
0.1424572616815567,
0.4473719000816345,
-0.00031855033012107015,
0.024709083139896... | |
I have a page which spawns a popup browser window. I have a JavaScript variable in the parent browser window and I would like to pass it to the popped-up browser window.
Is there a way to do this? I know this can be done across frames in the same browser window but I'm not sure if it can be done across browser windows... | [
0.47470682859420776,
0.2902499735355377,
0.34081700444221497,
-0.13133031129837036,
-0.29026511311531067,
-0.030855165794491768,
0.2645954489707947,
-0.15137559175491333,
-0.013711776584386826,
-0.9540049433708191,
0.06416270136833191,
0.30439847707748413,
-0.5120068788528442,
0.2440285682... | |
window created in such a way gets a property applied to it "window.opener" pointing to the window which created it.
Either can then use the DOM (security depending) to access properties of the other one, or its documents,frames etc. | [
0.24098873138427734,
-0.03003109060227871,
0.5052138566970825,
0.061883341521024704,
-0.08809201419353485,
-0.04934730753302574,
-0.08777675032615662,
-0.18764542043209076,
-0.036984462291002274,
-0.6677135825157166,
-0.609782338142395,
0.42811352014541626,
0.020344963297247887,
0.62121903... | |
I'm asking for a template trick to detect if a class has a specific member function of a given signature.
The problem is similar to the one cited here
<http://www.gotw.ca/gotw/071.htm>
but not the same: in the item of Sutter's book he answered to the question that a class C MUST PROVIDE a member function with a partic... | [
0.26192736625671387,
-0.07702907919883728,
-0.31344935297966003,
0.11904297769069672,
-0.13226677477359772,
-0.3737626075744629,
0.26345810294151306,
-0.27941250801086426,
-0.39406082034111023,
-0.4876815676689148,
0.07128553837537766,
0.33858177065849304,
-0.49557483196258545,
0.174791738... | |
a free function (that you have to define) with a particular signature unless you define a particular member function (in their case "serialize" that takes 2 parameters of a given type) with a particular signature, else a compile error will happens. That is to implement both intrusive and non-intrusive serialization.
... | [
0.27612414956092834,
0.028932390734553337,
0.17114797234535217,
0.15873681008815765,
0.0634191557765007,
-0.42262372374534607,
0.3969973921775818,
-0.545957088470459,
-0.3223266303539276,
-0.47463470697402954,
-0.032312653958797455,
0.5351333022117615,
-0.7089794278144836,
0.17106565833091... | |
to define a custom behavior for classes that has not that member function, and my entities are inside different namespaces (and I don't want to override a global function defined in one namespace while I'm in another one)
Can you give me a hint to solve this puzzle?
I'm not sure if I understand you correctly, but you ... | [
0.05483425781130791,
-0.44168365001678467,
0.17714917659759521,
-0.011760171502828598,
-0.012022661045193672,
0.05536295473575592,
0.2068500965833664,
-0.42212361097335815,
-0.012529625557363033,
-0.7325929403305054,
0.1551222801208496,
0.41945454478263855,
-0.4672831594944,
0.068879112601... | |
template<typename U> static int Test(...);
static const bool Has = sizeof(Test<T>(0)) == sizeof(char);
};
template<typename TMap>
void ReportMemUsage(const TMap& m, std::true_type)
{
// We may call used_memory() on m here.
}
template<typename TMap>
void ReportMemUsage(const TMap&, std::false_type)
{
}
temp... | [
0.21947647631168365,
-0.20819531381130219,
0.4091385304927826,
-0.11543820798397064,
0.3160388171672821,
-0.012453839182853699,
0.35431933403015137,
-0.7644184231758118,
0.02398744784295559,
-0.8301743268966675,
-0.47021621465682983,
0.5963336229324341,
-0.35499998927116394,
0.186836481094... | |
Using the debugger in Netbeans 6.1, I'd like to step into a method of the JSF library (specifically method saveSerializedView of class StateManager), but I cannot figure out how to specify through the IDE the location of the source code for the JSF library. I'm even having trouble determining which jar file or files Ne... | [
0.19332051277160645,
0.0774286761879921,
0.17922407388687134,
-0.04058915004134178,
-0.36542949080467224,
-0.29966792464256287,
0.19614377617835999,
-0.0558316595852375,
-0.32838690280914307,
-0.5144050717353821,
0.25071287155151367,
0.5025385022163391,
-0.4857803285121918,
0.2066101133823... | |
jar files, sources (currently none in my Netbeans 6.1) and javadoc (which shows javaee5-doc-api.zip in my Netbeans).
What you need to do is add a new zip or jar of source files under the "Sources" tag.
An example of a fully populated library is the "Swing Layout Extensions" which has a jar file, sources and javadoc. | [
0.5538787245750427,
0.17647525668144226,
0.24858982861042023,
0.056451890617609024,
-0.04665008932352066,
-0.25120657682418823,
-0.07428526878356934,
-0.2744833827018738,
-0.3731830418109894,
-0.4854932129383087,
-0.10164555162191391,
0.38336119055747986,
-0.31245800852775574,
0.0997573360... | |
I am writing an application that if the user hits back, it may resend the same information and mess up the flow and integrity of data. How do I disable it for users who are with and without javascript on?
It's not possible, sadly. However, consider your applications navigation model. Are you using Post/Redirect/Get PRG... | [
0.30936476588249207,
0.06658875942230225,
0.4271712303161621,
0.1252124160528183,
-0.1337304264307022,
-0.26927417516708374,
0.34260088205337524,
0.06687022000551224,
-0.08611444383859634,
-0.7818407416343689,
-0.09081671386957169,
0.48168492317199707,
-0.43709245324134827,
0.1167464181780... | |
I am searching for a host for a new commercial website. Among other things, I'd like to know what the various OS - Webserver combinations have in terms of vulnerabilities. What are the vulnerabilities of Redhat + Apache?
See: <http://httpd.apache.org/security/vulnerabilities_20.html> | [
0.3174941837787628,
0.05522051081061363,
0.050961241126060486,
0.12203686684370041,
-0.22642585635185242,
-0.29039207100868225,
0.6064498424530029,
0.16810953617095947,
-0.3651397228240967,
-0.4461607038974762,
-0.21065326035022736,
0.6389546990394592,
-0.016680793836712837,
0.316876292228... | |
I want to do this so that I can say something like, `svn mv *.php php-folder/`, but it does not seem to be working. Is it even possible? No mention of it is made on the relevant page in the [svn book](http://svnbook.red-bean.com/en/1.0/re18.html).
Example output of `svn mv *.php php-folder/` :
`svn: Client error in... | [
0.20729850232601166,
-0.11212511360645294,
0.365237295627594,
0.10621650516986847,
-0.046133797615766525,
-0.2570383548736572,
0.3673229515552521,
0.040099143981933594,
-0.5494581460952759,
-0.5063161849975586,
-0.07773339748382568,
0.5447854399681091,
-0.08049055933952332,
0.0870905667543... | |
can take multiple source arguments, or you can use something like
```
for file in *.php; do svn mv $file php-folder/; done
```
in a bash shell, for example. | [
0.35377997159957886,
-0.08323361724615097,
0.054341305047273636,
0.059464067220687866,
-0.22666524350643158,
-0.18103086948394775,
0.0713733360171318,
-0.24555422365665436,
-0.24066366255283356,
-0.41921770572662354,
-0.10731538385152817,
0.9101444482803345,
0.025850681588053703,
-0.029797... | |
I'm an experienced programmer in a legacy (yet object oriented) development tool and making the switch to C#/.Net. I'm writing a small single user app using SQL server CE 3.5. I've read the conceptual DataSet and related doc and my code works.
Now I want to make sure that I'm doing it "right", get some feedback from e... | [
0.25083306431770325,
0.43815943598747253,
0.2239154428243637,
-0.015827786177396774,
0.004044087138026953,
-0.18694531917572021,
0.03191700950264931,
-0.07376444339752197,
-0.14976538717746735,
-0.9518102407455444,
0.035234298557043076,
0.6277135014533997,
-0.07159318774938583,
0.131995886... | |
app starts, instantiate a DataTable object for each table and then store a ref to it so you ever just use that single object which is already filled with data? This way you would ever only read the data from the db once instead of potentially multiple times. Or is the overhead of this so small that it just doesn't matt... | [
0.4223080575466156,
0.1671837717294693,
0.6698492169380188,
0.1951102316379547,
-0.2447167932987213,
-0.01735503599047661,
-0.04999472200870514,
-0.1895165890455246,
-0.473552942276001,
-0.9701571464538574,
0.0047898245975375175,
0.5265923142433167,
-0.2354787439107895,
0.06379107385873795... | |
optimization. In a single-user instance DB like CE, unless you've got data that says you need to optimize, I wouldn't spend any time worrying about it. Premature optimization, etc. | [
0.04427381604909897,
-0.017133180052042007,
-0.09976884722709656,
0.17273901402950287,
-0.10081357508897781,
0.33178189396858215,
-0.15177296102046967,
0.09770537167787552,
-0.188557967543602,
-0.933915913105011,
-0.1906263381242752,
0.4858831465244293,
-0.5608342289924622,
-0.145909458398... | |
I am introducing automated integration testing to a mature application that until now has only been manually tested.
The app is Windows based and talks to a MySQL database.
What is the best way (including details of any tools recommended) to keep tests independent of each other in terms of the database transactions t... | [
0.5450042486190796,
0.27838367223739624,
-0.08616319298744202,
0.1921217441558838,
0.07219327986240387,
-0.1425553411245346,
0.4645348787307739,
-0.25278475880622864,
0.2044619917869568,
-0.5371364951133728,
0.19895580410957336,
0.4392302334308624,
-0.07066909968852997,
-0.2326523363590240... | |
the DB after every test case, not just every suite.
This helps avoid dangerous [interacting tests](http://xunitpatterns.com/Erratic%20Test.html)
As for tools, I would recommend [CppUnit](http://cppunit.sourceforge.net/doc/lastest/index.html). You aren't really doing unit tests, but it shouldn't matter as the xUnit fr... | [
0.32010021805763245,
-0.050979889929294586,
0.2724667489528656,
0.19613321125507355,
-0.22808320820331573,
-0.19814948737621307,
0.10826538503170013,
-0.21416357159614563,
0.023817548528313637,
-0.6585510969161987,
0.1346573531627655,
0.2796252369880676,
-0.0438699796795845,
0.203166350722... | |
for automating :)
Nick | [
-0.11584114283323288,
0.6349968910217285,
0.06286504864692688,
0.28331586718559265,
0.06713041663169861,
0.2799808084964752,
0.35110050439834595,
-0.38816970586776733,
-0.003983442205935717,
-0.3010445535182953,
-0.28334951400756836,
0.3805771470069885,
-0.12395458668470383,
0.107922732830... | |
I want to fire up a flash presentation inside Powerpoint 2007. I am calling the Win32 ShellExecute() routine. When I run this from a location whose path is a UNC path (\myserver\myfolder\sample.ppt) it does not work.
The ShellExecute routine expects 6 arguments, one of which is the path to run it from. I've tried to s... | [
-0.10878728330135345,
0.09081768989562988,
0.2526874244213104,
-0.34417489171028137,
-0.05750522017478943,
0.0455133281648159,
0.3860100209712982,
0.1429954618215561,
0.018047144636511803,
-0.6690720915794373,
0.1903792917728424,
0.6754690408706665,
-0.5513237118721008,
0.1561899334192276,... | |
So I have a "large" number of "very large" ASCII files of numerical data (gigabytes altogether), and my program will need to process the entirety of it sequentially at least once.
Any advice on storing/loading the data? I've thought of converting the files to binary to make them smaller and for faster loading.
Should... | [
0.28325575590133667,
0.22075192630290985,
-0.2056157886981964,
0.15807150304317474,
0.060185834765434265,
0.20428039133548737,
0.073571115732193,
-0.19428212940692902,
-0.5825742483139038,
-0.4135516583919525,
-0.042663462460041046,
0.4003494083881378,
-0.20631593465805054,
0.0100314924493... | |
constant opening and closing of binary files going to become expensive?
I'm a big fan of *'memory mapped i/o'*, aka *'direct byte buffers'*. In Java they are called **[Mapped Byte Buffers](http://docs.oracle.com/javase/8/docs/api/java/nio/MappedByteBuffer.html)** are are part of java.nio. (Basically, this mechanism us... | [
0.2048533707857132,
-0.13706594705581665,
0.3031874895095825,
0.155910462141037,
0.18623536825180054,
0.11527779698371887,
-0.06096363440155983,
0.07733026146888733,
-0.4337537884712219,
-0.643994152545929,
-0.0986226499080658,
0.8391451239585876,
-0.06038503721356392,
-0.15471576154232025... | |
the performance optimization. All to frequently, they know what is best more so than us lowly programmers. ;)
How would you use MBBs in your context? Just create an MBB for each of your files and read them as you see fit. You will only need to store your results. .
BTW: How much data are you dealing with, in GB? If i... | [
0.08508570492267609,
0.10772332549095154,
0.28990477323532104,
0.11370135098695755,
-0.05203890800476074,
-0.003376582870259881,
0.11017432063817978,
-0.1953614056110382,
-0.42231103777885437,
-0.6944851875305176,
-0.33230090141296387,
0.6137847900390625,
-0.13250617682933807,
-0.020743906... | |
or 128TB of mappable data.
If you are thinking about performance, then know Kirk Pepperdine (a somewhat famous Java performance guru.) He is involved with a website, www.JavaPerformanceTuning.com, that has some more MBB details: **[NIO Performance Tips](http://www.javaperformancetuning.com/tips/nio.shtml#REF1)** and o... | [
0.29610633850097656,
0.3171244263648987,
-0.07117024809122086,
0.29058778285980225,
0.2080688327550888,
-0.15256279706954956,
0.021578043699264526,
-0.10472322255373001,
-0.4547600746154785,
-0.6112533807754517,
-0.06765950471162796,
0.4201343357563019,
0.01640714891254902,
-0.016295412555... | |
I have several applications that are part of a suite of tools that various developers at our studio use. these applications are mainly command line apps that open a DOS cmd shell. These apps in turn start up a GUI application that tracks output and status (via sockets) of these command line apps.
The command line apps... | [
0.6014808416366577,
0.47175610065460205,
0.19318905472755432,
-0.035110823810100555,
0.3095567524433136,
-0.18286705017089844,
0.11541293561458588,
0.03768470510840416,
-0.10043485462665558,
-0.8513387441635132,
-0.21801845729351044,
0.7072981595993042,
-0.09224905073642731,
0.022962857037... | |
last two cases.
If any of these apps fire off when the user is locked or logged out, these command will spawn the GUI windows which tracks the output/status. That's fine, but say the user has their workstation locked -- when they unlock their workstation, the GUI isn't visible. It's running the task list, but it's not... | [
0.4393148124217987,
0.2472032755613327,
0.3686017692089081,
0.14716598391532898,
0.06939951330423355,
-0.21284669637680054,
0.26106831431388855,
0.13116000592708588,
-0.4068877398967743,
-0.5701669454574585,
-0.18176686763763428,
0.9164226055145264,
-0.2849370241165161,
-0.2018115222454071... | |
my command line apps if they are running behind a locked workstation or when a user is logged out (via scheduled task) -- basically are they running without a user's desktop visible. If I can tell that, then I can simply not start up our GUI and can prevent a lot of problem.
These apps that I need to test are C/C++ Wi... | [
0.5055472254753113,
0.31989410519599915,
0.1339428573846817,
0.2054494172334671,
0.1908075511455536,
-0.0950389876961708,
0.2642557919025421,
0.20341412723064423,
-0.1312573403120041,
-0.5675327777862549,
-0.12345808744430542,
0.6994247436523438,
-0.24636150896549225,
-0.016606099903583527... | |
isn't on the desktop (i.e. a process started by the task manager when logged off or on a locked workstation) will get started with a different station name. Example code:
```
HWINSTA dHandle = GetProcessWindowStation();
if ( GetUserObjectInformation(dHandle, UOI_NAME, nameBuffer, bufferLen, &lenNeeded) ) {
if ( st... | [
0.16963283717632294,
-0.10714893788099289,
0.663878321647644,
-0.24673914909362793,
0.5602712035179138,
-0.23675930500030518,
0.3288216292858124,
0.0496838204562664,
-0.1609455645084381,
-0.8028198480606079,
-0.49622929096221924,
0.44594383239746094,
-0.2412087768316269,
0.3066555559635162... | |
I looked at the namebuffer value when not running from the desktop and the names don't mean much, but they are not WinSta0.
Link to the docs [here](http://msdn.microsoft.com/en-us/library/ms681928.aspx). | [
0.06759761273860931,
0.035471513867378235,
0.28346318006515503,
0.2442522644996643,
0.26558351516723633,
-0.1308169960975647,
0.18714064359664917,
0.44945162534713745,
-0.43029192090034485,
-0.5750106573104858,
-0.04827892780303955,
0.4676681458950043,
0.2318110316991806,
0.229626283049583... | |
How do I go about programmatically creating audio streams using Cocoa on the Mac. To make, say a white-noise generator using core frameworks on Mac OSX in Cocoa apps?
One way is using the [CoreAudio](http://developer.apple.com/documentation/MusicAudio/Reference/CoreAudio/book_intro/chapter_1_section_1.html#//apple_ref/... | [
0.27006620168685913,
0.058440618216991425,
0.16272985935211182,
-0.005350715946406126,
-0.06214462220668793,
-0.039605919271707535,
0.18180237710475922,
-0.3248456120491028,
-0.047914497554302216,
-0.5268816351890564,
0.0653739720582962,
1.0237090587615967,
-0.03006073832511902,
0.01736336... | |
to render any thing else to output.
This location at /Developer/Examples/CoreAudio/ also contains tons of other core audio examples. | [
0.29990631341934204,
0.04731164127588272,
0.020601438358426094,
0.13612501323223114,
0.30155330896377563,
-0.12592674791812897,
0.13980992138385773,
0.04379315301775932,
-0.09000708162784576,
-0.6593282222747803,
-0.04287691414356232,
0.6464820504188538,
-0.1707286387681961,
0.079371213912... | |
If the major axis of the ellipse is vertical or horizontal, it's easy to calculate the bounding box, but what about when the ellipse is rotated?
The only way I can think of so far is to calculate all the points around the perimeter and find the max/min x and y values. It seems like there should be a simpler way.
If t... | [
0.044801726937294006,
-0.17762842774391174,
0.8156540393829346,
0.25694286823272705,
-0.10888022184371948,
0.043737564235925674,
-0.21157364547252655,
0.16025467216968536,
-0.40481385588645935,
-0.4057174026966095,
0.001152027864009142,
0.5074761509895325,
0.0889212042093277,
0.16301614046... | |
I need the axis-aligned bounding box, i.e. it should not be rotated with the ellipse, but stay aligned with the x axis so transforming the bounding box won't work.**
You could try using the parametrized equations for an ellipse rotated at an arbitrary angle:
```
x = h + a*cos(t)*cos(phi) - b*sin(t)*sin(phi) [1]
y = k... | [
-0.21518464386463165,
-0.04548060894012451,
0.7444865107536316,
0.05740320309996605,
-0.07984265685081482,
0.15042035281658173,
-0.2309471219778061,
-0.4810791611671448,
-0.04672803357243538,
-0.5677396059036255,
-0.18705640733242035,
0.49262651801109314,
-0.32580801844596863,
0.1960766613... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.