text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
below the prototype script reference. This will execute when the DOM is loaded & the button exists on the page.
Hope this helps. | [
0.01605868898332119,
-0.048195648938417435,
0.2597809135913849,
0.09813041239976883,
0.10319974273443222,
0.02872743457555771,
0.2866634726524353,
0.17806240916252136,
0.050362396985292435,
-0.66873699426651,
0.05278204753994942,
0.479523628950119,
-0.03225565329194069,
0.17899668216705322... | |
I am thinking about something like this:
```
public static <T extends Comparable<T>> T minOf(T...ts){
SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts));
return set.first();
}
public static <T extends Comparable<T>> T maxOf(T...ts){
SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts));
retur... | [
0.2089916467666626,
-0.11698831617832184,
0.394033282995224,
-0.020271936431527138,
-0.18087434768676758,
0.06375350803136826,
0.3848990797996521,
-0.3729093372821808,
-0.20570896565914154,
-0.8257321119308472,
-0.21285434067249298,
0.4689192473888397,
-0.23399068415164948,
0.1698575615882... | |
public int compare(T o1, T o2) {
if(o1!=null && o2!=null){
return o1.compareTo(o2);
}else if(o1!=null){
return 1;
}else{ | [
-0.11363033205270767,
0.039878763258457184,
0.01676073670387268,
-0.2667578160762787,
-0.19325612485408783,
0.4555891156196594,
0.43646201491355896,
-0.3173326849937439,
0.3472655415534973,
-0.6423054337501526,
-0.19766558706760406,
0.5932761430740356,
-0.27097734808921814,
0.0400416553020... | |
return -1;
}
}});
}
```
What do you think of that?
What's wrong with [Collections.max](http://java.sun.com/javase/6/docs/api/java/util/Collections.html#max(java.util.Collection))?
And why do you care about null safety? Are you sure you want to allow nulls to be in your Collection? | [
0.4208706319332123,
0.035584308207035065,
-0.12072230875492096,
0.05326290428638458,
-0.023486725986003876,
-0.48543164134025574,
0.301798552274704,
-0.24669775366783142,
-0.44924628734588623,
-0.24639341235160828,
-0.006927689537405968,
0.39992955327033997,
-0.5887511968612671,
0.11295199... | |
I'm puzzling over how to map a set of sequences to consecutive integers.
All the sequences follow this rule:
```
A_0 = 1
A_n >= 1
A_n <= max(A_0 .. A_n-1) + 1
```
I'm looking for a solution that will be able to, given such a sequence, compute a integer for doing a lookup into a table and given an index into the tab... | [
-0.11394337564706802,
0.1385795772075653,
0.3861393630504608,
-0.3452431559562683,
0.009262415580451488,
0.3902897834777832,
0.1614965796470642,
-0.6463671922683716,
-0.25093549489974976,
-0.4884330630302429,
-0.04085216298699379,
0.2711464762687683,
-0.3783356249332428,
0.2465510219335556... | |
4
```
---
* The point of the exercise is to get a packed table with a 1-1 mapping between valid sequences and cells.
* The size of the set in bounded only by the number of unique sequences possible.
* I don't know now what the length of the sequence will be but it will be a small, <12, constant known in advance.
* I... | [
0.1374148577451706,
0.4831768870353699,
0.32147738337516785,
-0.03875964507460594,
0.15576773881912231,
0.2036673128604889,
0.20802724361419678,
-0.46839097142219543,
-0.46387189626693726,
-0.45972099900245667,
-0.20852696895599365,
0.40847691893577576,
-0.20511780679225922,
0.060857959091... | |
to calculate.
Let look for A\_n for n>0, since A\_0 = 1.
Indexing is done in 2 steps.
Part 1:
-------
Group sequences by places where A\_n = max(A\_0 .. A\_n-1) + 1. Call these places *steps*.
* On steps are consecutive numbers (2,3,4,5,...).
* On non-step places we can put numbers from 1 to number of steps with ... | [
-0.2892155647277832,
-0.10079170018434525,
0.24739697575569153,
-0.039630647748708725,
0.16206292808055878,
0.26445695757865906,
0.21100714802742004,
-0.6704750657081604,
-0.07591281086206436,
-0.6949593424797058,
-0.07636730372905731,
-0.01225186325609684,
-0.1588609516620636,
-0.12340123... | |
call value of group binary representation *group order*.
Part 2:
-------
Index sequences inside a group. Since groups define step positions, only numbers on non-step positions are variable, and they are variable in defined ranges. With that it is easy to index sequence of given group inside that group, with lexicogra... | [
-0.26964497566223145,
0.09055677801370621,
0.4359407126903534,
-0.053031619638204575,
0.13554897904396057,
0.17746970057487488,
0.014085710048675537,
-0.8269377946853638,
-0.007364390883594751,
-0.36967137455940247,
-0.14764916896820068,
0.32167693972587585,
-0.31765517592430115,
-0.053906... | |
are in groups that have order less than some value. For that, lets first find how many sequences are in groups of given length. That can be computed passing through all groups and summing number of sequences or similar with recurrence. Let T(l, n) be number of sequences of length l (A\_0 is omitted ) where maximal valu... | [
-0.2962966561317444,
-0.1859288215637207,
0.20959614217281342,
-0.18963229656219482,
-0.01587616838514805,
0.16006502509117126,
0.18414781987667084,
-0.5670186281204224,
-0.07232296466827393,
-0.7236524224281311,
-0.47378915548324585,
0.24764850735664368,
-0.47610968351364136,
0.1068265587... | |
less or equal than given value. That can be done with summing of T(l,n) values. E.g. number of sequences in groups with order <= 1001010 binary, is equal to
```
T(7,1) + # for 1000000
2^2 * T(4,2) + # for 001000
2^2 * 3 * T(2,3) # for 010
```
Optimizations:
--------------
This will give a mapping but the ... | [
-0.36514467000961304,
-0.1276574283838272,
0.23113127052783966,
-0.2293510138988495,
0.17535805702209473,
0.36543264985084534,
0.2373826801776886,
-0.8572850823402405,
-0.015405957587063313,
-0.5713563561439514,
-0.18245847523212433,
0.2519379258155823,
-0.2652468979358673,
0.0328894853591... | |
reduce this to `O(1)`.
I'm not 100% sure about upper formula, but it should be something like it.
With these remarks and recurrence it is possible to make functions sequence -> index and index -> sequence. But not so trivial :-) | [
-0.24660873413085938,
-0.03187797591090202,
0.2099333554506302,
-0.28850123286247253,
0.026039551943540573,
0.04099077731370926,
-0.17122575640678406,
-0.23841388523578644,
0.09390890598297119,
-0.5690451860427856,
-0.26439371705055237,
0.4064766764640808,
-0.3502969443798065,
-0.042888194... | |
I have let's say 2 (but they'll become more in the future) fully decoupled systems: system A and system B.
Let's say every piece of information on each system has an informationID. There's nothing stopping the informationID to be the same on different systems. What univocally identifies a piece of information across a... | [
0.26765987277030945,
0.03392784297466278,
0.15060605108737946,
0.0807410404086113,
-0.06044773757457733,
0.1461588740348816,
-0.0645708367228508,
-0.08763118088245392,
-0.2036583423614502,
-0.668615460395813,
-0.15032094717025757,
0.4623701274394989,
-0.4091984033584595,
0.3054863214492798... | |
the same piece of information.
What's the best way of doing this in people's experience?
This is what I am thinking to do:
1. Setup a message bus between the
systems with message queues.
2. Setup endpoints for each system
that will monitor changes and
generate commands wrapped into
messages that will be pumped
into ... | [
0.40328919887542725,
-0.25409942865371704,
0.6009318232536316,
0.3670499324798584,
0.2107214778661728,
-0.05590181052684784,
0.21785134077072144,
-0.45618075132369995,
-0.26626136898994446,
-0.6809012293815613,
-0.01708306558430195,
0.3827468752861023,
-0.15576671063899994,
0.0368515476584... | |
and not
processed
This won't solve the fact that I still need to carry around originalSource+originalSourceID though.
Any help appreciated.
This problem has been addressed by EAI (Enterprise Application Integration) vendors like [Tibco](http://tibco.com/) and [webMethods](http://www.softwareag.com/Corporate/products/... | [
0.3832729160785675,
0.29067543148994446,
0.4815300703048706,
0.22660478949546814,
0.17899823188781738,
-0.16432152688503265,
-0.08977912366390228,
-0.10690151900053024,
-0.2953456938266754,
-0.4960927963256836,
-0.12605364620685577,
0.24644167721271515,
-0.1833634376525879,
0.2039377987384... | |
about employees could also be in an Oracle or SQL Server database. Again, not a problem. These EAI tools like webMethods can talk to a wide variety of back-ends. webMethods is not limited to a single source and a single target, but because it has a publish-subscribe architecture, data from a single source can flow to m... | [
0.7981455326080322,
0.15227141976356506,
0.17235253751277924,
0.45600566267967224,
0.03597105294466019,
-0.2082013338804245,
0.02465953677892685,
0.1735900491476059,
-0.08130720257759094,
-0.4304777979850769,
-0.005735278595238924,
0.38841578364372253,
0.050109464675188065,
-0.005404148250... | |
enterprise can contain the same information about the employees without any discrepancy.
So instead of doing programming in C# or Java, you'll be doing webMethods programming which is very much like a 4GL language. I call it programming because there are still logic involved, loop, if then else, branch, variables, pa... | [
0.332121342420578,
0.16127769649028778,
0.09114276617765427,
0.11892791092395782,
0.15361212193965912,
0.017887813970446587,
-0.15629886090755463,
0.09967036545276642,
-0.3673756718635559,
-0.7353973984718323,
0.04906729236245155,
0.3308033347129822,
-0.364520400762558,
-0.2380548268556594... | |
tools cost a lot of money. Companies often have a long-term strategy before investing in these tools. | [
0.5109429955482483,
0.253523588180542,
-0.0977899432182312,
0.556328535079956,
0.41857975721359253,
0.14433851838111877,
0.1568002551794052,
0.09219144284725189,
-0.15523621439933777,
-0.804241955280304,
-0.03204624354839325,
0.6226192712783813,
0.368224561214447,
0.052205972373485565,
-... | |
I have an Excel file that has a bunch of VBA and macro code in it. When I open the file in Excel I can choose not to 'enable' them - so the values in the fields all stay as they were during the last save. I need to manipulate the values as they were last saved - so I don't want the macros (which look at the current dat... | [
0.6151338219642639,
0.2712195813655853,
0.8858621716499329,
-0.3409395217895508,
-0.11035371571779251,
0.14848200976848602,
0.04590938612818718,
-0.2843242287635803,
-0.08630218356847763,
-0.5950373411178589,
-0.24829129874706268,
0.7617403268814087,
-0.36838001012802124,
0.043816443532705... | |
- throwing off the values. I've been looking for a way to open it without macros, or in 'secure' mode where the macros aren't run. If I simply double click the file and don't choose to enable macros the values are all there as I want them.
Usually we run this code within the month that the files are created, so we ha... | [
0.4514026939868927,
0.3904157876968384,
0.20229114592075348,
0.024146918207406998,
0.3335133194923401,
-0.1278788447380066,
0.1022019237279892,
-0.3455200791358948,
-0.4584389925003052,
-0.5271644592285156,
-0.24370330572128296,
0.6217438578605652,
-0.24273768067359924,
0.3239592909812927,... | |
opening the workbook after this statement.
I think, this will disable macros at Application Level (not at workbook level)
Hope that helps. | [
0.3662750720977783,
0.11858651787042618,
0.49068474769592285,
-0.1607441008090973,
0.1099514365196228,
-0.5177789330482483,
0.5358138084411621,
0.300838440656662,
-0.04448749125003815,
-0.5876585245132446,
-0.23239988088607788,
0.865800142288208,
-0.11879371106624603,
-0.13599900901317596,... | |
In contrast to most software development organizations, our little research group within a university department consists of a professor and a flow of grad and undergrad students, it's hard to retain any working knowledge beyond the research itself. Our backgrounds vary, and rarely involves much computer science backgr... | [
0.4141095280647278,
0.27891138195991516,
0.03635815903544426,
0.5019941329956055,
0.3659311532974243,
-0.07534091919660568,
-0.035388294607400894,
-0.09172537177801132,
-0.132038876414299,
-0.37536609172821045,
-0.2396470159292221,
0.6151138544082642,
0.4967127740383148,
0.0243812687695026... | |
to speed on subversion and learn to be careful about the repository, understanding branches/tags or however we organize it. (secondary question: how to get someone up to speed on svn?)
Perhaps one of the distributed version control systems would be better suited, or a centralized system other than svn would be wise, ... | [
0.587308406829834,
-0.2226746678352356,
0.0004472066357266158,
0.37350019812583923,
-0.29520606994628906,
-0.4495333135128021,
0.22400863468647003,
0.2935734987258911,
-0.2307126522064209,
-0.2513117790222168,
0.20851759612560272,
0.4446403384208679,
-0.06611242890357971,
-0.12025812268257... | |
about something similar before](https://stackoverflow.com/questions/38239/practices-for-programming-in-a-scientific-environment)), and my advice at the moment would be:
* Set up a centralized version control system, preferably SVN. With grads and undergrads appearing and disappearing all the time, I'd say that distrib... | [
0.43161845207214355,
0.04989466816186905,
0.08322770148515701,
0.25505176186561584,
0.11204969882965088,
-0.3189984858036041,
0.30119046568870544,
0.3932545781135559,
-0.5520530343055725,
-0.4997263550758362,
-0.15375939011573792,
0.4652915298938751,
0.23103004693984985,
0.1714350283145904... | |
it might save you the hassle of setting up your own on your local network. (Some universities I know have very strict rules for network security, so getting your own server is sometimes a long and complicated bureaucratic process.)
* Tell your students: code does not exist until it's checked in! And I guess they will s... | [
0.5988348126411438,
-0.06727646291255951,
0.384247750043869,
0.40087389945983887,
0.14883239567279816,
-0.3883608281612396,
0.2319670468568802,
0.4009544253349304,
-0.34196919202804565,
-0.6746740341186523,
-0.014074933715164661,
0.6394789218902588,
0.5552244782447815,
0.09848551452159882,... | |
want to have a more experienced person just sit with a new student once or twice (seems like a waste of time, but pays back double!).
Note, though, that I don't have much actual experience with this. So I would be very happy if you could, e.g., post back some time later to tell us about your experiences! | [
0.39740386605262756,
-0.03402772918343544,
-0.04655233025550842,
0.16766776144504547,
0.017311355099081993,
-0.3514576256275177,
0.02299528382718563,
0.6545227766036987,
-0.2618451714515686,
-0.5307320952415466,
0.1634022444486618,
0.28372901678085327,
0.4568985402584076,
-0.26431351900100... | |
Is there anything I can add to `pom.xml` that will copy the generated `.war` file from the `target` directory to my Tomcat's `webapps` directory?
I used the Maven WAR Plugin:
<http://maven.apache.org/plugins/maven-war-plugin/usage.html> | [
0.2423398643732071,
0.15921759605407715,
0.25051483511924744,
0.024681447073817253,
-0.022468604147434235,
0.13707990944385529,
0.00982812698930502,
0.023873837664723396,
-0.0814502164721489,
-0.5826209187507629,
-0.1594756692647934,
0.526826024055481,
-0.22455774247646332,
-0.180192396044... | |
I am thinking about a DB Design Problem.
For example, I am designing this stackoverflow website where I have a list of Questions.
Each Question contains certain meta data that will probably not change.
Each Question also contains certain data that will be consistently changing (Recently Viewed Date, Total Views...etc... | [
0.33188679814338684,
0.08898784965276718,
0.34716305136680603,
0.11172054708003998,
-0.17453131079673767,
0.07449954748153687,
0.04046792909502983,
-0.23738838732242584,
-0.21657845377922058,
-0.6470431089401245,
0.4164184629917145,
0.5206924676895142,
-0.391780287027359,
0.326964616775512... | |
designing a database structure, it's best to [normalize](http://en.wikipedia.org/wiki/Database_normalization) first and change for performance after you've profiled and benchmarked your queries. Normalization aims to prevent data-duplication, increase integrity and define the correct relationships between your data.
B... | [
-0.01792377233505249,
-0.09993208944797516,
0.2947353422641754,
0.3385501503944397,
0.12286342680454254,
-0.17436201870441437,
0.08852538466453552,
-0.0963730663061142,
-0.18694494664669037,
-0.46067574620246887,
-0.24833758175373077,
0.45254045724868774,
-0.3836398124694824,
0.14583174884... | |
I have been tasked with finding an open source DOM XML parser. The parser must minimally support XPath 1.0. Schema support is desired, but not a deal breaker
The files we are parsing will be small so speed and memory consumption are not a large concern.
Any OO language (C++, C#, Java, etc.).
To clarify, the plan i... | [
-0.0882740318775177,
0.25906023383140564,
0.40999627113342285,
-0.011427871882915497,
-0.2176038920879364,
-0.13385392725467682,
0.1563945859670639,
-0.21943555772304535,
-0.0055599878542125225,
-0.6621225476264954,
-0.14445503056049347,
0.6986985802650452,
-0.4056277573108673,
-0.10472798... | |
parser at a pretty low level. This results in a level of elegance that needs to be experienced to be understood (thank you Mr. Yoder). Part of that elegance disappears if we don't have the ability to navigate this object model via XPath.
We have created a prototype that uses an operating system provided parser. It wo... | [
0.059256210923194885,
0.35519734025001526,
0.03284214809536934,
0.3606630861759186,
-0.0953131765127182,
-0.23581349849700928,
0.4662622809410095,
0.14452633261680603,
0.16502265632152557,
-0.7778966426849365,
0.13978540897369385,
0.7537980079650879,
-0.384280800819397,
-0.3024094998836517... | |
engine is a different story. I'm pretty sure I won't get that done in a weekend.
The ever-excellent [Jaxen](http://jaxen.codehaus.org/) may be useful to you here. It's a Java XPath implementation used for both JDom and Dom4J.
In refactoring out the common functionality to traverse the two DOM implementations, you now... | [
0.08125797659158707,
-0.11317768692970276,
0.49098944664001465,
0.10721009969711304,
-0.22190552949905396,
-0.2225051075220108,
0.18384283781051636,
-0.2290380448102951,
0.06322359293699265,
-0.9459211826324463,
0.16604557633399963,
1.1228011846542358,
-0.21072393655776978,
-0.101703844964... | |
org.jaxen.Navigator. Not all of the
> interface is required, and a default
> implementation, in the form of
> org.jaxen.DefaultNavigator is also
> provided.
>
>
> Since many of the XPath axes can be
> defined in terms of each other (for
> example, the ancestor axis is merely a
> the parent recursively applied)... | [
0.15511727333068848,
-0.18825288116931915,
0.25958025455474854,
0.17756770551204681,
-0.07311052829027176,
-0.13797108829021454,
0.01640094444155693,
0.0048966314643621445,
0.42176076769828796,
-1.0646774768829346,
-0.06501580774784088,
0.779964029788971,
-0.3726175129413605,
-0.2172780036... | |
I normally build my solution with MSBuild in order to keep Visual Studio responsive and save a bit of time. Right now, what I run at the command line is very simple:
```
MSBuild.exe /m "C:\MyProject\MyProject.sln"
```
Up until now, this has worked just fine. However, today I added a class to a class library project ... | [
0.17465125024318695,
0.22734840214252472,
0.4870234429836273,
-0.34223777055740356,
-0.2148817926645279,
0.052869513630867004,
0.34820297360420227,
0.091291144490242,
0.01922757551074028,
-0.8347707986831665,
0.20624928176403046,
0.6763409376144409,
-0.38858187198638916,
0.2092882692813873... | |
I finally went back to the IDE, right clicked on the project, and chose "Rebuild", my new type showed up in Reflector.
Is there some setting or command line flag I can set in MSBuild to make sure that new changes are caught every time?
This probably sounds like a stupid question, but are you sure the new class file wa... | [
0.5569771528244019,
-0.2523934245109558,
0.2535442113876343,
-0.03882743790745735,
-0.4239133894443512,
0.07068273425102234,
0.4218127727508545,
-0.03705090656876564,
-0.21875807642936707,
-0.9162691235542297,
0.2420164942741394,
0.474416583776474,
-0.01805664412677288,
0.32600775361061096... | |
I learned that by trying to use the tablesorter plug in from jquery the table needs to use the < thead> and
< tbody> tags. I am using an html table, and I use the runat="server" attribute because I need to bind data to the table on the server side. but by using the runat= server attribute the code is rendered in a d... | [
0.15344944596290588,
0.1900264024734497,
0.2943067252635956,
-0.053384214639663696,
-0.2216474562883377,
-0.01770678721368313,
0.034203700721263885,
-0.21926914155483246,
-0.08224377036094666,
-0.9557023048400879,
-0.02545584924519062,
0.44982218742370605,
-0.40791642665863037,
0.060386918... | |
</thead>
<tbody>
<tr><td>1st value</td><td>2nd value</td><td>3rd value</td></tr>
<tr><td>1st value</td><td>2nd value</td><td>3rd value< /td></tr>
<tr><td>1st value</td><td>2nd value</td><td>3rd value</td></tr>
<tr><td>1st value</td><td>2nd value</td><td>3rd value</td></tr>
</tbod... | [
0.11644047498703003,
-0.29364097118377686,
0.4094301164150238,
-0.07901451736688614,
-0.3553091287612915,
-0.16771985590457916,
0.40227699279785156,
-0.5485952496528625,
-0.37262728810310364,
-0.9772008061408997,
-0.1327209323644638,
0.27862825989723206,
-0.5113154053688049,
-0.24598778784... | |
Gridview using JQuery Tablesorter](http://www.codeproject.com/KB/aspnet/SortableGridViewjQuery.aspx)
Essentially, you need to use the [UseAccessibleHeader property](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.useaccessibleheader.aspx) of the Gridview so that a thead tag is outputted in t... | [
0.16609525680541992,
0.15172529220581055,
0.4772712290287018,
-0.009611864574253559,
-0.22870908677577972,
-0.24500417709350586,
0.25785624980926514,
-0.6085671186447144,
0.2321079820394516,
-0.7725635170936584,
-0.1024760976433754,
0.800629734992981,
-0.13058555126190186,
0.20540452003479... | |
src declarations
$(function()
{
$('#test').prepend(
$('<thead></thead>').append($('#test tr:first').remove())
);
$("#test").tablesorter();
//your table options
});
//your html and asp markup
<table id="test" runat="server">
<thead><tr><th>1</th><th>2</th><th>3... | [
0.22958023846149445,
-0.007073089014738798,
0.3402293026447296,
-0.22051505744457245,
-0.14092856645584106,
0.09816116094589233,
-0.056347306817770004,
-0.8211801052093506,
0.12834221124649048,
-0.43892911076545715,
-0.21253205835819244,
0.5273818969726562,
-0.161208838224411,
-0.101283505... | |
headerSortDown">3</th>
</tr>
</thead>
<tbody>
<tr>
<td>this data 1.1</td>
<td>that data 1.2</td>
<td>my data 1.3</td>
</tr>
<tr>
<td>my data 2.1</td>
<td>this data 2.2</td>
<td>that data 2.3</td>
</tr>
<tr>
<td>that data 3.1</td>
<td>my data 3.2</td>
<td>this data 3.3</td>
</tr>
</tbody>
</table>
``` | [
-0.0664932057261467,
-0.2047288566827774,
0.12269433587789536,
0.120327427983284,
-0.2349746972322464,
-0.08502423018217087,
0.1179913729429245,
-0.6656103134155273,
-0.11935831606388092,
-0.7589287161827087,
-0.09228018671274185,
0.5191423296928406,
-0.0989108756184578,
-0.107566274702548... | |
I created a simple dialog-based application, and in the default CDialog added three buttons (by drag-and-dropping them) using the Visual Studio editor.
The default OK and Cancel buttons are there too.
I want to set the focus to button 1 when I click button 3.
I set the property Flat to true in the properties for mu... | [
0.23888301849365234,
-0.2119341343641281,
0.9216139912605286,
-0.46269842982292175,
0.035936929285526276,
0.2464321106672287,
0.15986138582229614,
-0.3538189232349396,
-0.05801723897457123,
-0.6911993622779846,
-0.01798965223133564,
0.8434813022613525,
-0.541999876499176,
-0.21016649901866... | |
any time before clicking button 3.
I want the button to look exactly as it looks after I click it. Showing the dotted line inside the button programatically, would be a plus.
What I want:
[](https://i.stack.imgur.com/z8l0f.png)
What I get:
... | [
0.3665143847465515,
-0.16981792449951172,
0.9314215779304504,
-0.48416784405708313,
0.06208782270550728,
0.02914121188223362,
0.013216318562626839,
-0.05704904720187187,
-0.3501439690589905,
-0.756996750831604,
-0.09494806826114655,
0.637289822101593,
-0.4678109288215637,
-0.18977196514606... | |
the default button is once more the original default button set in the dialog resource, in this case the "Ok" button. | [
-0.24348461627960205,
-0.22473880648612976,
0.5940776467323303,
-0.05171777307987213,
0.3057185411453247,
0.0635484978556633,
0.25213488936424255,
0.39484864473342896,
-0.17054663598537445,
-0.4673744738101959,
-0.6789193153381348,
0.6057523488998413,
-0.3415791988372803,
0.168154105544090... | |
Is there a way to control the number of displayed rows in a DropDownList control? I'd like it to only display 10 rows, but it defaults to 30. This causes the list to appear higher than the control instead of below it because of its position on the page.
If ASP.NET renders a DropDownList control as a `<select>` then the... | [
-0.09665391594171524,
-0.3030908703804016,
0.518674373626709,
-0.07611523568630219,
0.09249398112297058,
0.24112044274806976,
0.15253552794456482,
-0.20243334770202637,
-0.3839183747768402,
-0.5344844460487366,
-0.13472872972488403,
0.2816551625728607,
-0.49939242005348206,
-0.218966364860... | |
reveals 20 and Opera 9.6.2 reveals 16. The number revealed may even depend on the total number of items, but I didn't bother to test that because it is pretty obvious this isn't something you're going to be able to control.
Adding `size="..."` to the control will make the drop-down list a fixed size and it will no lon... | [
-0.042320091277360916,
-0.3878519535064697,
0.3079741597175598,
-0.01245126873254776,
0.056853678077459335,
0.17110934853553772,
0.07266249507665634,
-0.25109243392944336,
-0.3540807366371155,
-0.4142800569534302,
-0.41788846254348755,
0.405648410320282,
-0.10925179719924927,
-0.0533916354... | |
I have an application that runs transactions spanning over multiple databases on the same server. Naturally this involves the Microsoft Distributed Transaction Coordinator and everything works like it is supposed to.
Howver, when I remotely connect to the network where the server is hosted via VPN and run the applic... | [
-0.1646285504102707,
0.1567632108926773,
0.20376716554164886,
-0.006693702656775713,
0.18607619404792786,
-0.11387106776237488,
0.4298352003097534,
0.01637015864253044,
-0.48039939999580383,
-0.7888330221176147,
-0.07728375494480133,
0.5705317854881287,
-0.42167773842811584,
0.462980151176... | |
Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim)
at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)*
The problem arises **only when I c... | [
-0.07101883739233017,
0.002205553464591503,
0.5189986228942871,
0.10710553079843521,
-0.07769527286291122,
-0.05835241451859474,
0.49720966815948486,
0.005920721217989922,
-0.7312992811203003,
-0.3896683156490326,
0.10312648862600327,
0.6430677771568298,
-0.24476028978824615,
0.20624655485... | |
service. If you are the administrator, perhaps saying which VPN software you are using will help. | [
0.45450034737586975,
0.0248106662184,
0.31487858295440674,
0.3492697775363922,
-0.1034211739897728,
-0.2500770688056946,
0.19604681432247162,
0.2293068766593933,
-0.39234498143196106,
-0.576936662197113,
-0.13069522380828857,
0.5578933358192444,
0.08449561893939972,
0.21760813891887665,
... | |
I'm looking for a tool that can map the relationships in my database in mysql. I would like something like the view that is generated in MS-SQL Server Management Studio in the 'Show Diagram Pane'. Does such a thing exist?
I'm in charge of the design of the database and its using rails conventions. I would not be adver... | [
0.5623275637626648,
0.16667021811008453,
0.13960905373096466,
-0.024879571050405502,
-0.2579381465911865,
-0.19717542827129364,
0.31343740224838257,
0.09279219061136246,
-0.11905542761087418,
-0.6944705843925476,
0.40868815779685974,
0.6920854449272156,
-0.062403615564107895,
-0.0759293809... | |
The GUI for managing plugins in Eclipse got a bit of an overhaul in version 3.4.0.
This GUI is accessed via the "Software Updates..." option in the Help menu.
The option to remove the selected Mylyn plugin is greyed out. In fact, this is true of virtually every installed plugin. I know that the Mylyn plugins are optio... | [
0.06496798247098923,
-0.24188660085201263,
0.7411662340164185,
-0.16666407883167267,
-0.09858405590057373,
-0.006624748930335045,
-0.022328006103634834,
0.1772548109292984,
-0.129460409283638,
-0.9720893502235413,
-0.04819723218679428,
1.035564661026001,
-0.0778774842619896,
-0.00753922993... | |
the Installed Software page. To uninstall software from your system:
1. Click *Help > About and then click Installation Details...* to open a dialog showing pages that provide more detail about your installation.
2. Click the *Installed Software* tab to see a list of the software items that you have installed into yo... | [
0.3518213927745819,
-0.11232069879770279,
0.6021133661270142,
0.10334958136081696,
0.405289888381958,
-0.17344145476818085,
0.31313952803611755,
-0.03128359839320183,
-0.07821185141801834,
-0.7676652073860168,
-0.661105215549469,
0.9108487367630005,
-0.404276043176651,
0.27956438064575195,... | |
your mind about which items should be uninstalled, you may click *Back* to see a checkmark list of the items you selected before. You may check and uncheck different items in the list, and click *Next* when you are ready to continue.
5. Click *Finish* to start the uninstall.
Once all of the software is uninstalled s... | [
0.3633987605571747,
-0.12595778703689575,
0.6624382734298706,
0.04696597158908844,
0.47039660811424255,
-0.26354825496673584,
0.3319947123527527,
-0.26693204045295715,
-0.275503009557724,
-0.594747006893158,
-0.7299336194992065,
0.7443637251853943,
0.28801229596138,
0.22551611065864563,
... | |
As I've increasingly absorbed Agile thinking into the way I work, yagni ("you aren't going to need it") seems to become more and more important. It seems to me to be one of the most effective rules for filtering out misguided priorities and deciding what *not* to work on next.
Yet yagni seems to be a concept that is b... | [
0.6091440320014954,
-0.17595842480659485,
0.02722415328025818,
0.027332540601491928,
-0.33724668622016907,
0.07237600535154343,
0.24463355541229248,
0.08473902195692062,
-0.043180517852306366,
-0.37641313672065735,
-0.1544971913099289,
0.2989477217197418,
0.0892360582947731,
0.199234277009... | |
in objection, let me emphasize that yagni is the **opposite of quick-and-dirty**. It encourages you to focus your precious time and effort on getting the parts you DO need right.
Here are some off-the-top ongoing questions one might ask.
Are my Unit Tests selected based on user requirements, or framework structure?
... | [
0.6499859094619751,
0.07695639878511429,
-0.4721776843070984,
0.29912281036376953,
-0.5066659450531006,
0.17236089706420898,
0.24650397896766663,
-0.18775388598442078,
0.000008371543117391411,
-0.5026196837425232,
0.08061564713716507,
0.5534614324569702,
0.18494383990764618,
0.354259192943... | |
rather than the user's problem?
When pair-programming, the observer's role value often lies in "yagni".
Do you use a CRUD tool? Does it allow (nay, encourage) you to use it as an \_RU\_ tool, or a C\_\_D tool, or are you creating four pieces of code (plus four unit tests) when you only need one or two?
TDD has subsum... | [
0.4921315908432007,
0.04093809425830841,
-0.46226030588150024,
0.1974894255399704,
-0.5207499265670776,
0.21433456242084503,
0.35144564509391785,
-0.5016807317733765,
0.029413467273116112,
-0.3129737377166748,
0.04673778638243675,
0.8435394763946533,
-0.5539759397506714,
-0.016244830563664... | |
only when I get outside the TDD box and start writing code before tests, tests for things that I don't really need, or code that is more than the simplest possible way to pass the test that I violate YAGNI.
In my experience the latter is my most common faux pas when doing TDD -- I tend to jump ahead and start writing ... | [
0.8364164233207703,
0.2864089906215668,
-0.13641457259655,
0.015941569581627846,
-0.2552296221256256,
-0.4489952623844147,
0.6630772948265076,
-0.060762498527765274,
-0.01726931519806385,
-0.2055126130580902,
-0.03387172520160675,
0.6480603814125061,
0.086632639169693,
-0.27895575761795044... | |
i'm using jdbc to work with my db.
I want to store a HashMap directly in the db, oracle.
i figure i need to serialize the Map, and its contents, which are only String.
Map already implements Serializeable, but my question is how do i put the Map in the SQL using jdbc?
for instance, i have a jdbcTemplate.update("insert ... | [
0.18376396596431732,
0.25929903984069824,
0.22091050446033478,
-0.07434394210577011,
-0.293556809425354,
-0.18992096185684204,
0.10152105242013931,
-0.2938861846923828,
-0.26882609724998474,
-0.8100217580795288,
0.25063616037368774,
0.5152161121368408,
-0.22472266852855682,
0.2325313836336... | |
of).
Then in JDBC, create a prepared statement (insert into myhashmap (id, foreign\_id, key, val) values (?, ?, ?, ?)) ONCE, and then loop over every element in the hashmap, setting the parameters on the statement and calling execute on the query.
(sorry, not near any code to post code snippets and don't want to type... | [
0.05769551917910576,
0.18415313959121704,
0.09699918329715729,
-0.08815399557352066,
-0.35315370559692383,
-0.033175960183143616,
0.3331791162490845,
-0.5147212743759155,
0.1674463301897049,
-0.39037781953811646,
-0.12233983725309372,
0.19014309346675873,
-0.24541279673576355,
0.3057752251... | |
column to indicate ordering. | [
-0.22058716416358948,
0.32570070028305054,
-0.01551562175154686,
-0.16546772420406342,
-0.5177866816520691,
0.5224025845527649,
-0.013026781380176544,
0.23270942270755768,
-0.35899168252944946,
-0.34061598777770996,
-0.6205475330352783,
-0.14504921436309814,
-0.45006421208381653,
-0.023338... | |
I've been banging my head against the wall with this one, may be someone can shed some light as of to what may be causing this behavior.
I have an asp.net (2.0) app that as some point does:
using(TransactionScope scope = new TransactionScope(...))
{
//... do a bunch of some queries
InsertOrder();
InsertOrderDetai... | [
0.12843863666057587,
0.08471363037824631,
0.4763549268245697,
0.1374473124742508,
-0.011699520982801914,
-0.13878391683101654,
0.39568227529525757,
-0.16089898347854614,
-0.25195255875587463,
-0.7049238085746765,
0.2072058916091919,
0.4998306334018707,
-0.22928215563297272,
0.0192205887287... | |
has the same behavior)
* I've tried setting different isolation levels in the transaction just in case with the same behavior, but this is the same connection so it shouldn't matter right?
Anyone has any ideas on what may be causing this?
Any help would be greatly appreciated
Jaime
I was actually doing a stupid thin... | [
0.3573380410671234,
0.21184329688549042,
0.2487364560365677,
0.14018110930919647,
-0.14481519162654877,
-0.21036779880523682,
0.38132816553115845,
0.2839997112751007,
-0.4020763337612152,
-0.3824032247066498,
0.4456063508987427,
0.5208103060722351,
-0.3656685948371887,
0.08088473230600357,... | |
> **Possible Duplicate:**
>
> [Attempted SQL injection attack - what are they trying to do?](https://stackoverflow.com/questions/200545/attempted-sql-injection-attack-what-are-they-trying-to-do)
I have seen this SQL injection attempt on my site many times in the last few months.
```
';DECLARE @S CHAR(4000);SET @S... | [
0.4231700301170349,
0.41020798683166504,
0.14289610087871552,
-0.03919359669089317,
0.11625661700963974,
0.14246882498264313,
0.6486344337463379,
0.06436044722795486,
-0.3273201286792755,
-0.603651762008667,
0.18056632578372955,
0.6367233395576477,
-0.1978335827589035,
-0.03531490638852119... | |
explain to me what these hackers are attempting to do with this code?
Thanks.
-This code is getting appended to the query string as well as getting sent as post data.
Note: my first explanation was incorrect because I didn't actually read through the whole thing...
here's what that translates to. It searches your da... | [
0.31591829657554626,
0.3670966327190399,
0.23873935639858246,
-0.19429366290569305,
-0.11938944458961487,
-0.09870066493749619,
0.5329400300979614,
-0.08959781378507614,
-0.21648861467838287,
-0.4943526089191437,
0.06989053636789322,
0.48039278388023376,
-0.7337964773178101,
0.244048506021... | |
a.name,b.name
from sysobjects a,syscolumns b
where a.id=b.id and a.xtype='u' and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167)
OPEN Table_Cursor
FETCH NEXT
FROM Table_Cursor
INTO @T,@C
WHILE(@@FETCH_STATUS=0)
BEGIN exec('update ['+@T+'] set ['+@C+']=''">
</title>
<script src="http:/... | [
-0.542705237865448,
0.048117686063051224,
0.7013693451881409,
-0.1628086119890213,
-0.031649425625801086,
0.381405770778656,
-0.13881446421146393,
-0.4671630263328552,
-0.19257812201976776,
-0.48767945170402527,
-0.3712497651576996,
0.353936105966568,
-0.3956611156463623,
0.055294379591941... | |
I would like to enhance Eclipse so that when I press a custom key combo--say `Ctrl` + `Shift` + `E`--then it will run a command on the current file (if my current buffer is foo.c then it will run `mycommand foo.c' in foo.c's directory).
Open the External Tools Configuration dialog from the Run menu. Create a new config... | [
0.40149977803230286,
0.03693760186433792,
0.38413307070732117,
-0.17628267407417297,
0.056776244193315506,
0.015876227989792824,
-0.04917794093489647,
-0.017570355907082558,
-0.08607669919729233,
-0.8487062454223633,
0.1520756483078003,
0.9121161699295044,
-0.04029339924454689,
-0.05196577... | |
I find the standard Powershell display of errors (red text, multi-line display) a bit distracting. Is it possible to customize this?
Yes and yes.
You can use the built-in `$host` object if all you want to do is change the text color. However, you can't change the error message itself - that's hardcoded.
What you coul... | [
0.2958879768848419,
0.15641437470912933,
0.07998396456241608,
0.032717496156692505,
0.17211759090423584,
-0.010188181884586811,
0.5665298700332642,
-0.012529507279396057,
-0.2226954698562622,
-0.7061836123466492,
-0.02953909896314144,
0.929946780204773,
-0.44638893008232117,
0.065288342535... | |
a trappable exception. So you'll have to learn to run commands and add the -EA "Stop" parameter to generate a trappable exception if something goes wrong. Once you've done that, you can create a trap in the shell by typing:
```
trap {
# handle the error here
}
```
You could put this in your profile script rather th... | [
0.5407194495201111,
0.19481796026229858,
-0.16771599650382996,
0.14714528620243073,
0.22943362593650818,
-0.2812507152557373,
0.5346475839614868,
-0.20706909894943237,
-0.2766774892807007,
-0.43249213695526123,
-0.08838540315628052,
0.6613296866416931,
-0.49194592237472534,
-0.261193871498... | |
I'd love to use PHP variables in my CSS files but I don't want to load up the whole Symfony stack for each file load. Any one have any best practices and/or plugins to manage their CSS files in Symfony?
but you dont need full symfony stack for that ( except if you need some internal symfony state / variable ).
You jus... | [
0.6186737418174744,
0.21181926131248474,
0.23924291133880615,
0.19237017631530762,
-0.2560849189758301,
-0.2708890438079834,
-0.2130153626203537,
0.1265421062707901,
-0.1633794754743576,
-0.7069904208183289,
0.10898546874523163,
0.6381697654724121,
-0.09222903847694397,
-0.1498469114303589... | |
```
SaveFileDialog savefileDialog1 = new SaveFileDialog();
DialogResult result = savefileDialog1.ShowDialog();
switch(result == DialogResult.OK)
case true:
//do something
case false:
MessageBox.Show("are you sure?","",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
```
How to show the messa... | [
0.2877584397792816,
-0.17322002351284027,
0.640864908695221,
-0.179542675614357,
0.39447468519210815,
-0.05496228486299515,
0.280379056930542,
-0.26828065514564514,
-0.22160150110721588,
-0.525977611541748,
-0.24172882735729218,
0.9994964003562927,
-0.35563889145851135,
-0.1317743062973022... | |
in a loop that keeps going until a flag is set to stop the loop and call the message box if you don't get OK as the result. For example:
```
// lead-up code
SaveFileDialog sft = new SaveFileDialog();
BOOL bDone;
do
{
if (DialogResult.OK == sft.ShowDialog())
bDone = true;
else
{
DialogResult result = Mes... | [
0.20943063497543335,
-0.3812457025051117,
0.4663741886615753,
-0.2508777678012848,
0.3139949142932892,
0.017163850367069244,
0.4516139626502991,
-0.22277334332466125,
-0.375708669424057,
-0.18831075727939606,
-0.5128427743911743,
0.7921150922775269,
-0.4704473614692688,
0.02770736813545227... | |
it does in other in Windows apps, *and* you get to let the user have another go at saving the file(s) if he accidentally hits Cancel in the File Save dialogue. | [
0.26231616735458374,
-0.17328429222106934,
0.3575104773044586,
0.25518155097961426,
0.20924299955368042,
-0.2732931971549988,
0.05002976208925247,
0.3182716965675354,
-0.3820333182811737,
-0.5951526165008545,
-0.2537497580051422,
0.8294126987457275,
-0.04231106862425804,
-0.204555109143257... | |
How would one go about adding a submenu item to the windows explorer context menu (like for example 7-Zip does) for a Java application?
I am aware of two ways to do it. The fancy way is to write a windows shell extension, which is how powerarchiver, winzip etc do it I believe (this involves running code to determine wh... | [
0.2414567768573761,
-0.16191397607326508,
0.19715078175067902,
-0.12018417567014694,
-0.10942676663398743,
-0.03029913455247879,
-0.08670645207166672,
-0.13225999474525452,
-0.13304130733013153,
-0.6781101226806641,
-0.11213355511426926,
0.5419430732727051,
-0.240165114402771,
0.0814332291... | |
\*, .mdb, .doc
and
`<display text>` what you want to show in the context menu.
Then add the default string as a path to the application you want to launch from the context menu, and you can use %1 to refer to the currently selected file i.e. for MS Access I use :
```
HKEY_CLASSES_ROOT\*\shell\MS Access 2000\command... | [
0.0252703670412302,
0.16346190869808197,
0.49553191661834717,
-0.06849085539579391,
0.1158350333571434,
-0.06146187335252762,
0.17226307094097137,
0.049421459436416626,
-0.06514950096607208,
-0.8432345986366272,
-0.28151416778564453,
0.770618200302124,
-0.2925623655319214,
0.32656082510948... | |
Are there any pre-written component-like Silverlight web widgets like there are for Flash?
Flash examples:
[XSPF Web Music Player](http://musicplayer.sourceforge.net/)
[WordPress Audio Player](http://wpaudioplayer.com/)
[FLAMPlayer](http://www.flamplayer.com/flamplayer_demo/pages/demo.html)
[Aflax](http:/... | [
0.445210725069046,
-0.24602189660072327,
0.2038177102804184,
0.228332057595253,
-0.06789226830005646,
-0.12304776161909103,
-0.16134633123874664,
-0.34525880217552185,
-0.37453559041023254,
-0.40305712819099426,
0.07797394692897797,
0.8698509335517883,
-0.253107488155365,
-0.10094802081584... | |
chosen).
The simple way, for simple functionality, is you can add an entry in the registry :
```
HKEY_CLASSES_ROOT\<file type>\shell\<display text>\command
```
Where `<file type>` is the files that this context menu should apply to i.e. \*, .mdb, .doc
and
`<display text>` what you want to show in the context menu... | [
-0.15057402849197388,
0.11300348490476608,
0.6339317560195923,
-0.09018746763467789,
0.24504323303699493,
0.17479830980300903,
-0.015230171382427216,
-0.017186162993311882,
-0.1457553505897522,
-0.7371415495872498,
-0.44394969940185547,
0.5376611948013306,
-0.29089120030403137,
0.378788173... | |
which allows me to launch it in MS Access 2000.
Of course, always back up your registry before hacking it.
Your program could do this during install, or on first run. | [
0.23905621469020844,
0.12695170938968658,
0.24600453674793243,
0.3766988515853882,
0.4028533697128296,
-0.31173545122146606,
0.13687460124492645,
0.21105213463306427,
-0.2690304219722748,
-0.5074275135993958,
0.21028777956962585,
0.6224550008773804,
-0.04502503573894501,
0.2369836121797561... | |
Is there a way to run a specific Ant task via the keyboard? I have a rsync to dev task that I run a lot and running to the mouse to double-click is a pain.
If you launch regularly the same external launch, you can assign a shortcut to the command:
`"Run Last Launched External Tool"`
(Windows/Preferences: type Keys,... | [
0.19323275983333588,
-0.19622327387332916,
-0.02905317209661007,
-0.10549811273813248,
-0.06494080275297165,
0.248790442943573,
0.2804764211177826,
0.1604994833469391,
-0.18339858949184418,
-0.5902705788612366,
0.24014690518379211,
0.5897154211997986,
-0.1855919361114502,
-0.12284120917320... | |
I am trying to process an uploaded file in a Perl program, using CGI::Application. I need to get the content type of the uploaded file. From what I read, the following should work, but it doesn't for me:
```
my $filename = $q->param("file");
my $contenttype = $q->uploadInfo($filename)->{'Content-Type'};
```
As it tu... | [
0.04893598333001137,
0.20721235871315002,
0.4297432005405426,
-0.034835245460271835,
-0.17933538556098938,
0.07673472166061401,
0.3495366871356964,
-0.0559394396841526,
-0.26936471462249756,
-0.6662821173667908,
-0.2211686074733734,
0.48563334345817566,
-0.1631772220134735,
0.2190008014440... | |
I have an old C++ COM component which has to stay in Visual Studio 6.0 format. I can't for the life of me figure out how to debug the code in the actual COM component.
I'm able to build it in debug mode, add breakpoints and attach it to the dllhost.exe process, but the Visual Studio environment will only show me the d... | [
0.26516175270080566,
-0.03960028663277626,
0.18547551333904266,
-0.10613591223955154,
-0.15164756774902344,
-0.130995512008667,
0.30071815848350525,
-0.1674528419971466,
-0.08288212865591049,
-0.6004112958908081,
-0.07668136805295944,
0.6861051917076111,
-0.5296222567558289,
0.216965511441... | |
asks you for the executable to launch your dll) and IIS would run in a single process mode. There was a registry key you needed to change, but googling hasn't helped.
If it is a VB6 based COM component, you can open the project in VB6 and run it (a DLL project cannot be run). The project properties has some option wher... | [
0.09529703855514526,
-0.43268701434135437,
0.3065902292728424,
0.21556343138217926,
-0.1730751097202301,
-0.11219808459281921,
0.18417547643184662,
-0.31771448254585266,
-0.28806084394454956,
-0.6798020005226135,
-0.22998778522014618,
0.4232892394065857,
-0.31671464443206787,
0.05246775597... | |
made from ASP page. | [
-0.15615801513195038,
0.04392758756875992,
0.20533552765846252,
0.09404055029153824,
0.1424630880355835,
0.35360005497932434,
0.07639037072658539,
-0.00783707108348608,
-0.32506194710731506,
-0.3875628113746643,
-0.372268944978714,
-0.09628207236528397,
-0.12072283774614334,
-0.03543258830... | |
I have a whole bunch of POV-RAY files from a molecular dynamics simulation with the general name "frameXX.pov" where "XX" is the number of the frame. I want to render them all but I have like 500 so I really don't wanna do it by hand. I'm sure there is a way to do this from the command line or a batch file...what would... | [
0.48774346709251404,
0.2625184953212738,
0.5173115730285645,
0.29775288701057434,
-0.11848340928554535,
0.07143791019916534,
0.09387711435556412,
-0.005456381011754274,
-0.18509210646152496,
-0.5401405096054077,
0.13462619483470917,
0.12339174747467041,
0.18937186896800995,
0.2991276383399... | |
in the matter.
You can run a POV-Ray script a number of times in a parameterized loop. A typical way to describe the loop parameters is by writing a .ini-file.
```
Input_File_Name=somegreatscene.pov
; these are the default values
Initial_Clock=0.000
Final_CLock=1.000
; usually you'll start with Frame 0...
Initial_F... | [
0.46718570590019226,
-0.16787086427211761,
0.7962252497673035,
-0.02836182899773121,
-0.011294065974652767,
0.23771941661834717,
0.019484609365463257,
-0.44409868121147156,
-0.1921389400959015,
-0.3662624657154083,
0.014171289280056953,
0.4718577563762665,
-0.21545593440532684,
0.048952408... | |
the next with 0.02, then 0.04 and so on. Alternatively you can use frame\_number, which is an integer counter, in this case 50 for the first frame to 100 for the last one.
By default POV-Ray 3.7 will use all available CPU cores for rendering, but version 3.6 runs on a single core only. However you can run more than on... | [
-0.06800293922424316,
-0.13986243307590485,
0.8413945436477661,
-0.09346640855073929,
-0.05358804017305374,
0.371059775352478,
0.08150545507669449,
-0.2800268828868866,
-0.07160163670778275,
-1.0922577381134033,
-0.21254342794418335,
0.43014317750930786,
-0.1820681244134903,
-0.15486073493... | |
I remember looking at D about 2 years ago, and it looked nice, was actually faster than C for some of the typical language benchmarks, and in general seemed ok, but I didn't find any real projects written in D back then, so I just left as a I came.
Now that a few years have passed I was wondering if there have been a... | [
0.4627283811569214,
-0.15328460931777954,
0.21425898373126984,
0.022274482995271683,
-0.2090996503829956,
-0.06800403445959091,
0.15063220262527466,
0.34627166390419006,
-0.4072827994823456,
-0.6197592616081238,
0.027326051145792007,
0.16141334176063538,
0.200418159365654,
0.33545479178428... | |
I have a JPanel full of JTextFields...
```
for (int i=0; i<maxPoints; i++) {
JTextField textField = new JTextField();
points.add(textField);
}
```
How do I later get the JTextFields in that JPanel? Like if I want their values with
```
TextField.getText();
```
Thanks
Well bear in mind they didn't get ther... | [
0.1466352492570877,
0.07471419125795364,
0.41159963607788086,
-0.17308799922466278,
-0.41477781534194946,
0.08296289294958115,
0.36214861273765564,
-0.16302183270454407,
-0.24777959287166595,
-0.7372004389762878,
-0.01644800417125225,
0.5468745231628418,
-0.2742604613304138,
-0.09526420384... | |
JTextField textField = new JTextField();
points.add(textField);
list.add( textField ); // keep a reference to those fields.
}
```
// Later
```
for( JTextField f : list ) {
System.out.println( f.getText() ) ;
}
```
Wasn't that easy?
Just remember to keep these kinds of artifacts ( list ) as private as... | [
-0.1325269639492035,
0.06418538093566895,
0.5094784498214722,
-0.2270243912935257,
-0.0784389078617096,
-0.1508944034576416,
0.12854258716106415,
-0.15453751385211945,
-0.11930681020021439,
-0.6699890494346619,
-0.22547289729118347,
0.892940878868103,
-0.3723848760128021,
-0.14354652166366... | |
I'm refactoring some client-server code and it uses the terms Response, Result & Reply for the same thing (an answer from the server). And although its not really that important it's become hard to guess which word to use while writing new code, so I'd like to unify the three terms into one and do the appropriate refac... | [
0.3357895612716675,
-0.17682136595249176,
0.5261440873146057,
0.12012547999620438,
-0.3195578157901764,
0.19352348148822784,
0.2679881155490875,
-0.38168004155158997,
-0.2163863331079483,
-0.6187631487846375,
-0.09406580030918121,
0.6920327544212341,
0.227151557803154,
0.33135518431663513,... | |
be "rep", which is ambiguous with repeat.
Maybe just follow the HTTP, call them request and response. | [
0.5282970666885376,
-0.4811537563800812,
0.4165085256099701,
0.0718744546175003,
-0.3778962790966034,
0.0485638864338398,
0.41994139552116394,
-0.006975883152335882,
-0.11989852041006088,
-0.35772445797920227,
-0.3856487274169922,
0.7386335134506226,
-0.28201061487197876,
-0.11576812714338... | |
The following code works as expected in both Python 2.5 and 3.0:
```
a, b, c = (1, 2, 3)
print(a, b, c)
def test():
print(a)
print(b)
print(c) # (A)
#c+=1 # (B)
test()
```
However, when I uncomment line **(B)**, I get an `UnboundLocalError: 'c' not assigned` at line **(A)**. The values of ... | [
0.22690758109092712,
0.26720622181892395,
0.08343085646629333,
-0.272793173789978,
0.054099712520837784,
-0.014317970722913742,
0.3892051875591278,
-0.395694762468338,
-0.14320147037506104,
-0.2012232393026352,
-0.09567367285490036,
0.5788792967796326,
-0.3497397005558014,
-0.1012379229068... | |
`b` printed as expected, while `print(c)` raises an error?
The only explanation I can come up with is that the assignment `c+=1` creates a **local** variable `c`, which takes precedence over the global `c`. But how can a variable "steal" scope before it exists? Why is `c` apparently local here?
---
See also [Using g... | [
0.18279792368412018,
0.15581192076206207,
0.049219030886888504,
-0.10650691390037537,
0.13616704940795898,
-0.18335336446762085,
0.12687833607196808,
0.05000898987054825,
-0.34672844409942627,
-0.11720159649848938,
-0.3390832543373108,
0.5593459606170654,
-0.44416525959968567,
0.2639580667... | |
'global' keyword needed to access a global variable?](https://stackoverflow.com/questions/4693120) for cases where OP *expected* an error but *didn't* get one, from simply accessing a global without the `global` keyword.
Python treats variables in functions differently depending on whether you assign values to them fro... | [
-0.44926100969314575,
-0.07802042365074158,
0.3142184913158417,
-0.004476429894566536,
0.04651498794555664,
0.16060364246368408,
-0.07707281410694122,
0.2133726328611374,
-0.5320959687232971,
-0.175135999917984,
-0.12890829145908356,
0.5407915115356445,
-0.38807913661003113,
0.090401396155... | |
assigned before the function, put
```
global c
```
as the first line of the function.
As for python 3, there is now
```
nonlocal c
```
that you can use to refer to the nearest enclosing function scope that has a `c` variable. | [
-0.09990020096302032,
-0.03442583605647087,
0.22923117876052856,
-0.3099503815174103,
-0.06858067214488983,
0.03211831673979759,
-0.20779795944690704,
0.15539231896400452,
0.004895325750112534,
-0.22991755604743958,
-0.3427985608577728,
0.6048009395599365,
-0.3707450330257416,
-0.145075723... | |
I'm creating HTML with a loop that has a column for Action. That column
is a Hyperlink that when the user clicks calls a JavaScript
function and passes the parameters...
example:
```
<a href="#" OnClick="DoAction(1,'Jose');" > Click </a>
<a href="#" OnClick="DoAction(2,'Juan');" > Click </a>
<a href="#" OnClick="DoAc... | [
0.18244056403636932,
0.16654951870441437,
0.6495649218559265,
-0.16296863555908203,
-0.11898393929004669,
0.054355476051568985,
0.1474970132112503,
-0.04392288997769356,
-0.04054483398795128,
-0.6982663869857788,
-0.06609457731246948,
0.20385406911373138,
-0.3268447518348694,
-0.3013687133... | |
+ id + "&name=" + name,
success: function(msg){
alert( "Data Saved: " + msg );
}
});
}
```
Using GET
```
function DoAction( id, name )
{
$.ajax({
type: "GET",
url: "someurl.php", | [
0.06086987629532814,
-0.28764599561691284,
0.40542465448379517,
-0.16746962070465088,
0.033224768936634064,
-0.16753698885440826,
0.3043127655982971,
0.05232401564717293,
-0.04280679300427437,
-0.41950559616088867,
-0.45547905564308167,
0.6755589246749878,
-0.1537012755870819,
-0.194229915... | |
data: "id=" + id + "&name=" + name,
success: function(msg){
alert( "Data Saved: " + msg );
}
});
}
```
EDIT:
A, perhaps, better way to do this that would work (using GET) if javascript were not enabled would be to generate the URL for the | [
0.043273720890283585,
-0.11496569961309433,
0.4169769585132599,
-0.046092305332422256,
0.05848747864365578,
-0.2355789840221405,
0.3121163249015808,
-0.21534617245197296,
-0.11814919114112854,
-0.4026215076446533,
-0.6079264283180237,
0.6045957207679749,
-0.35938888788223267,
0.10316491127... | |
href, then use a click handler to call that URL via ajax instead.
```
<a href="/someurl.php?id=1&name=Jose" class="ajax-link"> Click </a>
<a href="/someurl.php?id=2&name=Juan" class="ajax-link"> Click </a>
<a href="/someurl.php?id=3&name=Pedro" class="ajax-link"> Click </a>
...
<a href="/someurl.php?id=n&name=xxx" cla... | [
0.015855100005865097,
0.043153245002031326,
0.8648009300231934,
-0.14998771250247955,
-0.20569640398025513,
0.02590690180659294,
0.21004503965377808,
-0.26019376516342163,
-0.06263147294521332,
-0.5309728980064392,
-0.3973802328109741,
0.5473611354827881,
-0.22083565592765808,
0.0756845474... | |
I'm doing a addin system where the main app loads assemblies Addin1.dll and Addin2.dll on runtime in new AppDomain's.
However, in case that Addin1.dll is signed (strong name) with my key and Addin2.dll is not, I want to be able to only load Addin1.dll and reject Addin2.dll.
I'm suspecting that it needs to be done by ... | [
0.30747541785240173,
0.4365091621875763,
0.31747162342071533,
0.11209666728973389,
-0.0700259879231453,
-0.01083279773592949,
-0.013131323270499706,
-0.6936436891555786,
-0.3497637212276459,
-0.5107294321060181,
0.06439486891031265,
0.4165196716785431,
-0.2739535868167877,
0.14369581639766... | |
I have a `JTable` with a custom `TableModel` called `DataTableModel`. I initialized the table with a set of column names and no data as follows:
```
books = new JTable(new DataTableModel(new Vector<Vector<String>>(), title2));
JScrollPane scroll1 = new JScrollPane(books);
scroll1.setEnabled(true);
scroll1.setVisible(t... | [
0.03985098376870155,
-0.05522920936346054,
1.2510846853256226,
-0.14490284025669098,
-0.02380256913602352,
0.00934897642582655,
-0.029750511050224304,
-0.5197276473045349,
-0.2621789574623108,
-0.6378004550933838,
-0.21480387449264526,
0.40922966599464417,
-0.2112525850534439,
-0.098109506... | |
values = v;
fireTableDataChanged();
}
```
Am I missing something here?
The class and methods for my DataTableModel are (these methods are all implemented to return correct results):
```
public class DataTableModel extends AbstractTableModel {
public DataTableModel(Vector<Vector<String>> v, Vector<String> c)... | [
-0.07841567695140839,
-0.1349526047706604,
0.6096117496490479,
-0.03630797937512398,
0.05987745523452759,
-0.029351500794291496,
-0.07688410580158234,
-0.3951905071735382,
-0.3534032106399536,
-0.3655433654785156,
-0.021958263590931892,
0.6547542810440063,
-0.28806573152542114,
0.079479724... | |
}
public int getRowCount() {
if (values != null && values.size() > 0)
return values.size();
else
return 0;
}
public Object getValueAt(int arg0, int arg1) {}
public void setValues(Vector<Vector<String>> v) {}
public Vector<Vector<String>> getValues() {}
p... | [
-0.0480218306183815,
-0.6250312924385071,
0.6794840693473816,
-0.07446750998497009,
0.2228183150291443,
0.28760677576065063,
0.017620112746953964,
-0.21467816829681396,
-0.3271869421005249,
-0.7200306057929993,
-0.3353062868118286,
0.5657939910888672,
-0.5108150839805603,
0.011964575387537... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.