text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
really part of the same model, but which I want to `JOIN` in interesting ways. I also have existing SPs for this purpose... so I'm looking at porting those SPs to tabular UDFs, which provides a level of contract/abstraction surrounding the out-of-model data. So because it isn't part of my model, I can only get it via t... | [
0.30365443229675293,
0.034553319215774536,
0.5259490013122559,
0.03884696587920189,
-0.11117150634527206,
-0.2268552929162979,
-0.0878804475069046,
0.22257226705551147,
-0.40280881524086,
-0.732073187828064,
-0.036184243857860565,
0.40421557426452637,
-0.25699159502983093,
0.01505863387137... | |
I have to add either an embed tag for Firefox or an object tag for Internet Explorer with JavaScript to address the appropriate ActiveX / Plugin depending on the browser. The plugin could be missing and needs to get downloaded in this case. The dynamically added embed tag for Firefox works as expected. The dynamically ... | [
0.2412213832139969,
0.09219933301210403,
0.6302118301391602,
0.049139782786369324,
0.09680180251598358,
-0.19527098536491394,
0.2631409764289856,
0.07259988784790039,
-0.0726027861237526,
-0.94752037525177,
0.005351688247174025,
0.6880751848220825,
-0.3283311128616333,
0.1788124293088913,
... | |
all of the HTML needed for the OBJECT tag in a string in JavaScript and simply replace the innerHTML of a div tag with the OBJECT HTML and it works in IE just fine.
```
// something akin to this:
document.getElementById(myDivId).innerHTML = "<OBJECT id='foo' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'.....etc... | [
0.1968872994184494,
0.06949494779109955,
0.7121748328208923,
0.0037849724758416414,
-0.09135574102401733,
-0.5708544254302979,
0.0741514265537262,
-0.10986559838056564,
-0.1490315943956375,
-0.8862107992172241,
-0.060902997851371765,
0.8911057710647583,
-0.4184054434299469,
-0.040933739393... | |
have an empty DIV tag or some other type of tag that would allow us to inject the HTML code via that element's `innerHTML` property.
---
UPDATE: Apparently you need more help than I thought you needed? Maybe this will help:
Have your BODY tag look like this: `<body onload="loadAppropriatePlugin()">`
Have somewhere ... | [
0.6096133589744568,
-0.12152411788702011,
0.31810203194618225,
0.11618167161941528,
-0.09193310141563416,
-0.120113804936409,
0.43227511644363403,
-0.17989131808280945,
-0.16368062794208527,
-0.7915591597557068,
-0.13264982402324677,
0.5259526371955872,
-0.23893475532531738,
-0.17287765443... | |
= ua.indexOf("MSIE ");
return ((msie > 0) ? parseInt(ua.substring(msie+5, ua.indexOf(".", msie))) : 0);
}
function loadAppropriatePlugin() {
if(getIEVersion() != 0) { // this means we are in IE
document.getElementById("Foo").innerHTML = "<OBJECT id='foo' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e... | [
0.171186164021492,
-0.13992562890052795,
0.7509911060333252,
-0.2963656783103943,
0.46052029728889465,
-0.09374571591615677,
0.4157297611236572,
-0.28067272901535034,
-0.07734964787960052,
-0.4475168287754059,
-0.3196555972099304,
0.9238147735595703,
-0.26673272252082825,
-0.03921445086598... | |
How do I remove empty elements from an array in JavaScript?
Is there a straightforward way, or do I need to loop through it and remove them manually?
**EDIT:** This question was answered almost nine years ago when there were not many useful built-in methods in the `Array.prototype`.
Now, certainly, I would recommend... | [
0.04262733459472656,
0.015241388231515884,
-0.10990653187036514,
-0.22674565017223358,
-0.23264317214488983,
0.057778507471084595,
0.3606562912464142,
-0.42172959446907043,
-0.20394256711006165,
-0.5314318537712097,
-0.03851096332073212,
0.3192192316055298,
-0.3769776225090027,
-0.20607139... | |
"", 3, undefined, 3,,,,,, 4,, 4,, 5,, 6,,,,];
var filtered = array.filter(function (el) {
return el != null;
});
console.log(filtered);
```
It will depend on what you consider to be "empty" for example, if you were dealing with strings, the above function wouldn't remove elements that are an empty string.
One... | [
-0.12797054648399353,
-0.40790778398513794,
0.2754284739494324,
-0.25478342175483704,
0.06197001412510872,
0.02202005498111248,
0.016392847523093224,
-0.30386975407600403,
-0.1432773917913437,
-0.508215606212616,
-0.34657973051071167,
0.298090398311615,
-0.5358731746673584,
0.1945106387138... | |
{ return el; });
```
In both ways, this works because the `filter` method in the first case, calls the `Boolean` constructor as a function, converting the value, and in the second case, the `filter` method internally turns the return value of the callback implicitly to `Boolean`.
If you are working with sparse array... | [
-0.016141893342137337,
-0.0321049764752388,
0.2842755615711212,
-0.3445320129394531,
-0.05414475500583649,
0.01962582767009735,
0.2686576247215271,
-0.5624275207519531,
-0.006010038778185844,
-0.5101407170295715,
-0.1835239678621292,
0.5455260276794434,
-0.568132758140564,
0.22175315022468... | |
});
console.log(cleanArray); // [ 0, 1, 2, 3 ]
```
**Old answer:** Don't do this!
I use this method, extending the native Array prototype:
```
Array.prototype.clean = function(deleteValue) {
for (var i = 0; i < this.length; i++) {
if (this[i] == deleteValue) {
this.splice(i, 1);
i--;
... | [
0.2217375785112381,
-0.1957549899816513,
0.3082047700881958,
-0.22059182822704315,
0.20007671415805817,
0.2549234926700592,
0.7037304639816284,
-0.7240189909934998,
-0.016429049894213676,
-0.6304633021354675,
0.03597942367196083,
0.5133313536643982,
-0.23398111760616302,
0.2830832600593567... | |
array:
```
// Will remove all falsy values: undefined, null, 0, false, NaN and "" (empty string)
function cleanArray(actual) {
var newArray = new Array();
for (var i = 0; i < actual.length; i++) {
if (actual[i]) {
newArray.push(actual[i]);
}
}
return newArray;
}
cleanArray([1, 2,, 3,, 3,,,,,, 4,... | [
0.13275299966335297,
-0.19060872495174408,
0.6941763162612915,
-0.2452889382839203,
-0.0501541942358017,
0.460316926240921,
0.4647621810436249,
-0.6054863929748535,
-0.23865342140197754,
-0.3061727285385132,
0.037805888801813126,
0.532483696937561,
-0.16182611882686615,
0.2530845105648041,... | |
In a form, I added an overload of ShowDialog(). In Visual Studio, this overload shows up in Intellisense as the third version. How can I make my overloaded function appear as #1 (i.e. the default)?
As far as I know, there is no way to control the order of overloads in the overload selection intellisense tip. | [
-0.08312416076660156,
-0.32818055152893066,
0.5909532904624939,
-0.30111417174339294,
-0.34803175926208496,
-0.14476969838142395,
0.0373125821352005,
-0.1312336027622223,
-0.12126506865024567,
-0.7666350603103638,
-0.034637946635484695,
0.6147845387458801,
-0.5741335153579712,
-0.091235980... | |
I have a collection of items that the user needs to group/categorize in several ways. For the sake of an example, let's say it's a collection of cars and the user wants to categorize them in the following ways:
* Color (red, silver, blue, black, etc.)
* Body shape (hatch, sedan, coupe, stationwagon, etc.)
* Seats (2, ... | [
0.74107825756073,
0.196779265999794,
0.005327004939317703,
0.4753880798816681,
0.15913450717926025,
0.14528891444206238,
-0.3317742347717285,
-0.03625147417187691,
-0.2228280007839203,
-0.4969668388366699,
0.14046034216880798,
0.1557169109582901,
0.1495901495218277,
0.5514160990715027,
0... | |
be efficient, and vice versa. Or some designs may be more demanding of real estate than others. And some will take significantly longer to develop than others.
Regardless, if you've seen -- or designed -- a good pattern for this, I'd be interested to hear about it. If you have screenshots, all the better.
**Attempt a... | [
0.7216954231262207,
-0.13673678040504456,
0.12297190725803375,
0.24318397045135498,
0.039194826036691666,
-0.27992263436317444,
0.2960980236530304,
-0.18359258770942688,
-0.23299022018909454,
-0.6934623718261719,
-0.007227457128465176,
0.7033289074897766,
-0.2268611639738083,
-0.3315447270... | |
tagging, you'd tag a car as "blue", "sedan", "4", and so on. StackOverflow would have no inherent knowledge that an item couldn't be tagged as both "sedan" and "coupe".
The interface I'm thinking of would need to know that kind of thing, so the user-defined attributes suggestion is more along the lines of what I'm thi... | [
0.5647808909416199,
-0.001815742696635425,
0.524976909160614,
0.26468324661254883,
-0.20394320785999298,
-0.04311602935194969,
-0.2339186817407608,
0.08922041952610016,
-0.19232161343097687,
-0.42297646403312683,
0.2775251567363739,
0.656578540802002,
-0.29330113530158997,
-0.0801780223846... | |
have two tasks: Task 1 Categorize Objects, where for a series of objects, the user assigns each a category (value) on each of multiple dimensions (attributes). Task 2: Create and Modify Dimension and Categories.
Outside of data modelers, object-oriented programmers, and database designers, the idea of dimensions and ... | [
-0.059122294187545776,
-0.041022684425115585,
0.030981281772255898,
0.37067756056785583,
-0.20984482765197754,
0.14328889548778534,
-0.12358570843935013,
-0.25420141220092773,
-0.32967886328697205,
-0.6632760763168335,
-0.3069831430912018,
0.5586108565330505,
-0.2594194710254669,
0.0274762... | |
key question is to figure out through user research is the degree Task 1 and 2 are integrated or separate.
If the tasks are integrated, with users often switching fluidly from one to the other without much thought, then one UI design is to have a objects-by-dimension table, but provide a blank column (or an “Insert” ... | [
-0.15925058722496033,
-0.19484086334705353,
0.6531433463096619,
0.5104231834411621,
-0.28083381056785583,
-0.027032572776079178,
-0.230091854929924,
-0.11010324954986572,
-0.16982689499855042,
-0.587403416633606,
-0.29099729657173157,
0.07417625933885574,
0.037869926542043686,
0.1353224664... | |
(or the Insert button) to add a new category. Below that are the objects to categorize, each with a dropdown list in each column for dimension.
In usability testing, watch out for users trying to set an object’s category by clicking on a category in the category list, rather than selecting from the dropdown list. Mak... | [
0.12360786646604538,
-0.2550635039806366,
0.1805054396390915,
0.22301816940307617,
-0.19171170890331268,
-0.09094465523958206,
0.18671324849128723,
-0.07573267817497253,
-0.44111260771751404,
-0.5634003281593323,
-0.2317429631948471,
0.4936686158180237,
-0.19181501865386963,
-0.05130021274... | |
may want to get the category lists out of the way sometimes.
If you find that Task 1 and 2 are separate, rarely being done together (e.g., users typically set up their dimensions then categorize a bunch of objects), then you’re better off with a separate window (or page) for each task, although it should be easy to n... | [
0.21856334805488586,
-0.19742867350578308,
0.0702432170510292,
0.46047884225845337,
-0.11080305278301239,
-0.11715029180049896,
0.22530782222747803,
-0.14300057291984558,
-0.6718989610671997,
-0.7003558874130249,
-0.15659312903881073,
0.2772120237350464,
-0.07025915384292603,
0.06586987525... | |
a “Add category” menu item that takes the user to the Manage Categories window, with a new category inserted for the current dimension awaiting the user to provide a name.
The window for Task 1 is the same as before: table of objects with a column of dropdown lists for each dimension, but exclude the category lists, t... | [
-0.26648420095443726,
-0.3366333842277527,
0.49643823504447937,
0.1416720449924469,
-0.23282776772975922,
0.008736400865018368,
-0.03408696874976158,
-0.18005651235580444,
-0.4172963798046112,
-0.5881484150886536,
-0.3086439073085785,
0.44715645909309387,
-0.3444131016731262,
-0.0011408498... | |
to decide how to categorize the object). However, if the user’s task is truly limited to just *categorizing* an object one at a time based on outside information (e.g., transcribing information from paper), then consider a form rather than a table, showing an array of list boxes, one for each attribute. With a single c... | [
0.03592503070831299,
-0.4823472201824188,
0.10986927151679993,
0.1252591460943222,
-0.3490012586116791,
-0.03945683315396309,
0.2100103497505188,
-0.3545045256614685,
-0.30902281403541565,
-0.6774190068244934,
-0.09944915771484375,
0.42287495732307434,
-0.3778417408466339,
-0.0889605581760... | |
for multiple dimensions at once, helping them figure out the best categorization scheme (e.g., help them find where essentially the same category appears in two different dimensions). If space is a problem, however, then consider a list of dimensions each showing a list of categories in a master-detail relation.
The u... | [
-0.267456978559494,
-0.33062678575515747,
0.1559785157442093,
0.4408240020275116,
-0.3980751633644104,
-0.043034233152866364,
0.14179497957229614,
-0.4118223190307617,
-0.4330883026123047,
-0.7067572474479675,
-0.2697305977344513,
0.4900082051753998,
-0.1676897257566452,
-0.090976089239120... | |
a Vehicle Type dimension that includes categories like Car, Boat, Plane, etc. For the Car category, one may then have a Body Type dimension with categories that only apply to that category (Coupe, Hatchback, etc.). Dependent dimensions are represented in the tree by branches off a category. The result is the tree alter... | [
0.2011219561100006,
0.032149918377399445,
0.4001554846763611,
0.5852909684181213,
-0.11704211682081223,
0.24236860871315002,
-0.03333156555891037,
-0.08704550564289093,
-0.2662297785282135,
-0.5235214233398438,
-0.0019919348414987326,
0.44182080030441284,
0.10018207877874374,
0.17373572289... | |
then you should create at least two categories). Even then, provide a means of easy recovery if users confuse dimensions with categories (e.g., allow them to move a bunch of “dimensions” to under another dimension, converting the former into categories).
I want to emphasize again the difficulty people have with abstr... | [
0.2840190827846527,
-0.05586419999599457,
0.026811912655830383,
0.3873210549354553,
-0.24148347973823547,
0.02208314649760723,
0.14709687232971191,
-0.054674502462148666,
-0.4664725661277771,
-0.8254330158233643,
-0.039908889681100845,
0.520066499710083,
-0.03531238064169884,
0.13611264526... | |
new dimension?). If you are expecting each user to truly create their own novel dimensions, then you may want to seriously re-think your whole approach. It is an inherently complicated task.
User do much better if there’s already a relevant multi-dimensional scheme in the culture, organization, or domain (such as we h... | [
0.1781483292579651,
-0.17539486289024353,
0.4058306813240051,
0.27117919921875,
0.007402270566672087,
0.06148935481905937,
-0.008292942307889462,
-0.3201519548892975,
-0.1705218106508255,
-0.8177443742752075,
-0.14125128090381622,
0.6704479455947876,
-0.09026074409484863,
0.076283067464828... | |
I have seen this in a lot of XML comments for classes in the .NET Framework BCL but have never been able to find documentation that explains what it does.
As an example, looking at System.Object reveals the following comments:
```
namespace System
{
/// <summary>Supports all classes in the .NET Framework class... | [
0.22375032305717468,
0.06839186698198318,
0.057544365525245667,
-0.16317185759544373,
-0.1122283786535263,
-0.09386307001113892,
0.10697844624519348,
0.12201670557260513,
-0.19274693727493286,
-0.7726854681968689,
-0.2233784794807434,
0.31079044938087463,
-0.15392205119132996,
0.2834519743... | |
/// <filterpriority>1</filterpriority>
[System.Runtime.InteropServices.ClassInterfaceAttribute(2)]
public class Object
{
/// <summary>Determines whether the specified
/// <see cref="T:System.Object" />
/// instances are considered equal.</summary>
/// <returns>tr... | [
-0.27120932936668396,
-0.25693392753601074,
0.12218660861253738,
-0.19496406614780426,
-0.13894708454608917,
0.4058670997619629,
0.2074701189994812,
-0.1463666558265686,
-0.10375972837209702,
-0.8585765361785889,
-0.16929420828819275,
0.08090178668498993,
-0.6795283555984497,
0.13188032805... | |
/// references or if objA.Equals(objB) returns true;
/// otherwise, false.</returns>
/// <param name="objB">The second <see cref="T:System.Object" />
/// to compare. </param>
/// <param name="objA">The first <see cref="T:System.Object" />
/// to compare. </param>
/// <... | [
-0.22533735632896423,
0.008547152392566204,
0.3847231864929199,
-0.147433340549469,
-0.39252737164497375,
0.639380693435669,
0.2529696524143219,
-0.5071735978126526,
-0.2351699322462082,
-0.7121519446372986,
-0.23248666524887085,
0.21843227744102478,
-0.8646240830421448,
0.0670388042926788... | |
}
```
Just a guess: the All vs Common tabs in intellisense? | [
0.09314250200986862,
-0.05513161048293114,
0.17621280252933502,
0.020375002175569534,
0.32177820801734924,
-0.04278833419084549,
-0.14341910183429718,
0.539471447467804,
0.14272330701351166,
-0.5059183239936829,
0.13840042054653168,
0.7455706596374512,
-0.1605590283870697,
-0.0788405612111... | |
I'm building a class that automatically loads a DB record, looks at each DB column name, and fills the associated textbox/label/literal/etc, if it has the same name. I got this idea from Rails, in case that helps clarify what I'm trying to do.
```
public string presentData(Page thisForm)
{
// .. for each column name
/... | [
0.10886900126934052,
-0.013764713890850544,
0.2202058732509613,
-0.05611059442162514,
-0.17551495134830475,
-0.20084013044834137,
0.14253878593444824,
-0.2559913992881775,
0.16932573914527893,
-0.676828920841217,
0.0034314063377678394,
0.5145018696784973,
-0.5796598792076111,
0.11310160160... | |
a growth in performance time.
FindControl is not recursive, so it only finds top level controls, not controls that are nested within other controls. See [this article](https://blog.codinghorror.com/recursive-pagefindcontrol/) for an example of a recursive version of FindControl. | [
-0.13000637292861938,
-0.6884312033653259,
0.3219771385192871,
0.1455124318599701,
0.25402724742889404,
-0.2652536630630493,
-0.08214044570922852,
-0.3326959013938904,
0.06846041232347488,
-0.4416221082210541,
-0.44110384583473206,
0.3879830539226532,
-0.5694804787635803,
-0.36428332328796... | |
I am using WinCVS as client and CVSNT as my source control server. Some of the files I wanted to add to my CVS repo, were added as Unicode files. Now, I want to recommit the same as ANSI (aka ASCII) files. However, despite deleting the old files from the repo, every time I add the file with the same name, it automatica... | [
0.17317169904708862,
-0.15204228460788727,
0.5954451560974121,
-0.00805496796965599,
0.15169969201087952,
0.07773401588201523,
-0.09615354239940643,
0.20024597644805908,
-0.38756150007247925,
-0.7084972858428955,
-0.2961268424987793,
0.6616202592849731,
-0.1436186283826828,
0.1785246878862... | |
play here:
* you can disable automatic file type detection in WinCvs itself: go to Admin|Preferences|Globals, the option named "Supply control when adding files" - in theory you should be able to use the regular Add command from the toolbar after you have done this
* make sure you don't have any entries in your [cvswr... | [
0.23383469879627228,
-0.2513604462146759,
0.7110945582389832,
-0.15566949546337128,
-0.010668565519154072,
-0.12714675068855286,
-0.07859525084495544,
0.1614176630973816,
-0.21874532103538513,
-0.7552592754364014,
-0.3998800814151764,
0.7171850204467773,
-0.3051142692565918,
-0.10356640815... | |
probably explicitly force it to use "Text" (aka -kt) to make sure the server performs no file type auto-detection either
* CVSNT supports versioning of file type changes. The command sequence for this in your case would be `cvs update -kt` followed by `cvs commit -f`
* recent versions of WinCvs also come bundled with a... | [
0.1869790256023407,
-0.11954747140407562,
0.4699975848197937,
-0.254130482673645,
0.22748114168643951,
-0.2941644787788391,
0.31198668479919434,
0.35924628376960754,
-0.28489619493484497,
-0.7474533319473267,
-0.16437307000160217,
1.0082865953445435,
-0.47722485661506653,
-0.14907655119895... | |
If I have the following code,
```
Foo *f = new Foo();
vector<Foo*> vect;
vect.push_back(f);
// do stuff
vect.erase(f);
```
Did I create a memory leak?
I guess so, but the word *erase* gives the feeling that it is deleting it.
Writing this, I am wondering if it is not a mistake to put a pointer in a STL vector. Wh... | [
0.2714107632637024,
0.2717980444431305,
0.16449837386608124,
-0.196217879652977,
0.02724292315542698,
-0.3187689185142517,
0.24029669165611267,
0.02341800555586815,
-0.3150029480457306,
-0.7353767156600952,
0.11631771177053452,
0.5543445348739624,
-0.4112089276313782,
0.402243047952652,
... | |
keep track of deleting it when removing it from the container. A better, yet simple, way to do the above, is to use boost::shared\_ptr:
```
{
boost::shared_ptr<foo> f(new foo);
std::vector< boost::shared_ptr<foo> > v;
v.push_back(f);
v.erase(v.begin());
} /* if the last copy of foo goes out of scope,... | [
0.07780253142118454,
0.08741579949855804,
0.38802093267440796,
-0.271506130695343,
-0.03783751279115677,
-0.1168472021818161,
-0.0007643591379746795,
-0.274181604385376,
-0.32183200120925903,
-0.45078879594802856,
-0.11666253209114075,
0.533126711845398,
-0.36192137002944946,
0.11507553607... | |
the `ptr_container` library in boost. | [
-0.4868709444999695,
-0.1389687955379486,
0.11376085877418518,
0.11341936141252518,
-0.1270594596862793,
-0.26868999004364014,
-0.30026766657829285,
-0.03765074536204338,
-0.027055662125349045,
-0.14067292213439941,
-0.4672955274581909,
0.375745952129364,
-0.3864732086658478,
-0.0742921307... | |
I am looking for a query that will work on Sharepoint 2003 to show me all the documents created/touched by a given userID.
I have found tables with the documents (Docs) and tables for users (UserInfo, UserData)
but the relationship between seems a bit odd - there are 99,000 records in our userdata table, and 12,000 re... | [
0.1846895068883896,
0.4200248420238495,
0.5145315527915955,
0.3215863108634949,
-0.10395459085702896,
-0.13707339763641357,
0.18555936217308044,
-0.053323548287153244,
-0.4043729603290558,
-0.6915143132209778,
0.1603974997997284,
0.5341530442237854,
0.03916331008076668,
-0.0945459082722663... | |
translated that query back to the Sharepoint 2003 structure:
```
select
d.* from
userinfo u join userdata d
on u.tp_siteid = d.tp_siteid
and
u.tp_id = d.tp_author
where
u.tp_login = 'userid'
and
d.tp_iscurrent = 1
```
This gets me a list of siteid/listid/tp\_id's I'll have to see if I can trace those back to... | [
-0.10661055892705917,
0.2181764394044876,
0.6764447689056396,
-0.09018678963184357,
-0.3569217622280121,
-0.05078611150383949,
0.051500145345926285,
-0.2617308795452118,
-0.3258098065853119,
-0.8220421075820923,
0.1250639706850052,
0.3148777186870575,
-0.36355850100517273,
0.23187921941280... | |
you need both the site id and the user's id within that site. In 2007, I would begin with something like this:
```
select d.* from userinfo u
join alluserdata d on u.tp_siteid = d.tp_siteid
and u.tp_id = d.tp_author
where u.tp_login = '[username]'
and d.tp_iscurrentversion = 1
```
Update: As others write here, i... | [
0.2534458339214325,
0.16570749878883362,
0.6067278981208801,
-0.30882585048675537,
-0.13042190670967102,
-0.19894275069236755,
0.09911461919546127,
-0.10063928365707397,
-0.15638571977615356,
-0.922354519367218,
0.019849199801683426,
0.4269688129425049,
-0.15316443145275116,
0.305832922458... | |
As the title suggests, I am having trouble maintaining my code on postback. I have a bunch of jQuery code in the Head section and this works fine until a postback occurs after which it ceases to function!
How can I fix this? Does the head not get read on postback, and is there a way in which I can force this to happe... | [
0.22581811249256134,
0.16755668818950653,
0.4206833839416504,
0.04422861337661743,
0.02476007118821144,
-0.25814884901046753,
0.32071247696876526,
-0.056932274252176285,
-0.14182248711585999,
-0.3484213352203369,
-0.331941694021225,
0.567643404006958,
-0.15449103713035583,
0.04841924458742... | |
$('.tablesorter tbody tr').tablesorter();
$('.tablesearch tbody tr').quicksearch({
position: 'before',
attached: 'table.tablesearch',
stripeRowClass: ['odd', 'even'],
labelText: 'Search:',
delay: 100
});
}); | [
-0.5526212453842163,
-0.4130501449108124,
0.3174150288105011,
-0.24660153687000275,
0.23900990188121796,
0.2250799536705017,
0.11685755848884583,
0.0031217364594340324,
-0.15703971683979034,
-0.5105827450752258,
-0.49985161423683167,
0.3884645700454712,
-0.3417578637599945,
0.2855763137340... | |
</script>
```
If you just have that code hard coded into your page's head then a post back won't affect it. I would check the following by debugging (FireBug in FireFox is a good debugger):
* Verify the script is still in the head on postback.
* verify that the css classes are in fact attached to some element in the ... | [
0.24865494668483734,
0.1788078099489212,
0.3838183581829071,
-0.007598716765642166,
-0.3014882802963257,
-0.21373315155506134,
0.43713992834091187,
0.13609075546264648,
-0.20959819853305817,
-0.9409974813461304,
-0.21583962440490723,
0.5252613425254822,
-0.19639991223812103,
-0.15478086471... | |
EDIT: AHhhhh... Ok. So if you're using UpdatePanels then the document's ready state is already in the ready so that portion of jquery code won't be fired again. I would extract the jquery delegate out to a separate function that you can also call after the async postback. | [
0.22005510330200195,
-0.2010888308286667,
0.38884487748146057,
0.30626097321510315,
-0.008178742602467537,
-0.2749673128128052,
0.10255534201860428,
0.10818527638912201,
-0.10310859978199005,
-0.5227324366569519,
-0.3342418074607849,
0.7447798252105713,
-0.05767011642456055,
-0.07156627625... | |
I have an existing web app that allows users to "rate" items based on their difficulty. (0 through 15). Currently, I'm simply taking the average of each user's opinion and presenting the average straight from MySQL. However, it's becoming clear to me (and my users) that weighting the numbers would be more appropriate.
... | [
0.2877987325191498,
0.20347560942173004,
0.4857746362686157,
0.04303962364792824,
-0.41035017371177673,
0.21426667273044586,
0.25748202204704285,
-0.20692317187786102,
-0.17220959067344666,
-0.574963390827179,
0.17795917391777039,
0.494881272315979,
0.25860506296157837,
0.13495181500911713... | |
>
>
> ```
> * WR=Weighted Rating (The new rating)
> * R=Average Rating (arithmetic mean) so far
> * V=Number of ratings given
> * M=Minimum number of ratings needed
> * C=Arithmetic mean rating across the whole site
>
> ```
I like the idea here of ramping up the weighting based on the total number of votes per item... | [
0.3073662519454956,
0.2143671065568924,
0.47144120931625366,
0.1992093175649643,
-0.5386075973510742,
-0.037760842591524124,
0.23337343335151672,
-0.2836579978466034,
-0.05997125431895256,
-0.5898619294166565,
-0.034637484699487686,
0.3154771625995636,
0.1635415107011795,
-0.00208594184368... | |
5 + 4)/3 = 4.67 (rounded)
```
...to a weighted mean:
```
rating / weight
5 / 2 (since it was given 2 times)
5 / 2
4 / 1
(sum[(rate * weight)])/(sum of weights)
(5 * 2) + (5 * 2) + (4 * 1) / (2 + 2 + 1)
(24)/(5)
= 4.8
```
This is a simple example about how to do it in MySQL directly. You of course would need to ad... | [
-0.16780230402946472,
0.1153951957821846,
0.6335799694061279,
-0.017061104997992516,
-0.25239992141723633,
0.24720269441604614,
0.21268220245838165,
-0.8142675757408142,
-0.2613990902900696,
-0.40841397643089294,
-0.17681212723255157,
0.19903463125228882,
-0.16186200082302094,
0.0727744624... | |
3 row affected (0.00 sec)
Records: 3 Duplicates: 0 Warnings: 0
mysql> select * from votes;
+------+
| vote |
+------+
| 5 |
| 5 |
| 4 |
+------+
3 rows in set (0.00 sec)
mysql> select vote,count(vote),vote*count(vote) from votes group by vote;
+------+-------------+------------------+
| vote | count(vote) ... | [
-0.48227253556251526,
0.03804048150777817,
0.3740912675857544,
0.07567013800144196,
0.10675325244665146,
0.49441418051719666,
0.646224856376648,
-0.345109760761261,
-0.36904969811439514,
-0.5309791564941406,
-0.11380206793546677,
0.10728523880243301,
-0.49857813119888306,
0.075533501803874... | |
4 | 20 |
+------+-------------+------------------+
2 rows in set (0.00 sec)
mysql> select sum(vt)/sum(cnt) FROM (select
count(vote)*count(vote) as cnt,vote*count(vote)*count(vote)
as vt from votes group by vote) a;
+------------------+
| sum(vt)/sum(cnt) |
+------------------+
| 4.8000 |
+---... | [
-0.44019344449043274,
-0.13426600396633148,
0.8791788220405579,
0.041553791612386703,
0.09771998226642609,
0.4282267391681671,
0.0979587659239769,
-0.5195836424827576,
-0.7171346545219421,
-0.5089375972747803,
-0.2979586720466614,
0.5053097009658813,
-0.08469122648239136,
0.052025817334651... | |
I have a SSRS 2005 report that has a number of images in it. The way that I have the images included is I have an image object with the URL set in the value property. The actual images are hosted by an IIS virtual directory on the same server. I'm doing it this way because I need to dynamically change the image source ... | [
0.2296268343925476,
0.10969582200050354,
0.2717626392841339,
-0.021094340831041336,
-0.2959533929824829,
-0.1449233889579773,
0.2017475813627243,
-0.08426722139120102,
-0.38205742835998535,
-0.5977524518966675,
0.1596732884645462,
0.5321621298789978,
-0.248391792178154,
0.13900379836559296... | |
look at the HTML rendered by SSRS the SRC attribute of the image tag is an empty string.
I have had this problem before.
You should check to see if you have any warnings being thrown when you deploy the reports. A rsWarningFetchingExternalImages warning means that reporting services is having problems anonymously acce... | [
0.3899828791618347,
-0.09858636558055878,
0.30863794684410095,
0.002415737370029092,
-0.4278324544429779,
-0.22637459635734558,
0.43209147453308105,
-0.08131081610918045,
-0.7355935573577881,
-0.46628665924072266,
-0.021250734105706215,
0.38987913727760315,
-0.5870651006698608,
0.074625037... | |
to GIFs. | [
0.5660135746002197,
-0.24393579363822937,
0.024576149880886078,
0.07785870879888535,
-0.04165078327059746,
-0.2883973717689514,
-0.38066554069519043,
0.10657749325037003,
-0.2787606418132782,
-0.8125743865966797,
-0.3243561089038849,
0.46295276284217834,
-0.06148577481508255,
-0.1724784523... | |
```
create table person
(
name varchar(15),
attr1 varchar(15),
attr2 varchar(1),
attr3 char(1),
attr4 int
)
```
How I can use basic ORM in Perl by taking a simple table like the one above and mapping it to Perl objects? Next I'd like to perform basic operations like select results using some crit... | [
-0.08353810012340546,
0.33506935834884644,
0.3452492952346802,
0.0031883271876722574,
-0.14813894033432007,
-0.005899071227759123,
0.22895075380802155,
-0.04994085803627968,
-0.25971946120262146,
-0.4940672516822815,
-0.11562594771385193,
0.2704719007015228,
-0.27627140283584595,
-0.006140... | |
[Rose::DB::Object](http://search.cpan.org/dist/Rose-DB-Object)
* [Fey::ORM](http://search.cpan.org/dist/Fey-ORM) - my own contribution, most notable for being [Moose](http://moose.perl.org/)-based, which means you get all the power of Moose in your ORM-based classes. | [
0.17038333415985107,
0.02700377069413662,
0.3225094676017761,
0.19795925915241241,
-0.4352300465106964,
0.2290668785572052,
0.4915623068809509,
-0.4598641097545624,
-0.2803209125995636,
-0.2820350229740143,
0.13741585612297058,
-0.05917572230100632,
-0.11526928842067719,
0.0350740365684032... | |
The following source code alerts the following results:
**Internet Explorer 7**: 29
**Firefox 3.0.3**: 37 (correct)
**Safari 3.0.4 (523.12.9)**: 38
**Google Chrome 0.3.154.9**: 38
Please ignore the following facts:
* Webkit (Safari/Chrome) browsers insert an extra text node at the end of the body tag
* In... | [
0.20230428874492645,
0.11607412993907928,
0.7508270144462585,
-0.059831008315086365,
0.06859929859638214,
-0.0001610389444977045,
0.4952383041381836,
-0.2950928509235382,
-0.22367551922798157,
-0.7649238109588623,
-0.034676410257816315,
0.5184068083763123,
-0.37959834933280945,
-0.10437066... | |
them: `form`, `input[@radio]`, `div`, `span`, `table`, `ul`, `a`.
My question is: **What is it about these nodes that makes them the exception in Internet Explorer?** Why is whitespace not inserted after these nodes, and is inserted in the others?
This behavior is the same if you switch the tag order, switch the doc... | [
0.15067975223064423,
0.2483161836862564,
0.471206933259964,
0.14039336144924164,
0.050075218081474304,
-0.26668357849121094,
0.43634599447250366,
0.13465912640094757,
-0.2901555001735687,
-0.6199659705162048,
-0.38298550248146057,
0.39079904556274414,
-0.5212807059288025,
0.037276264280080... | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function countNodes()
{
alert(document.getElementsByTagName('body')[0].childNodes.length);
}
</script>
</head>
<body onload="countNodes()">
<form></form... | [
0.33502092957496643,
-0.40986618399620056,
0.5636746287345886,
-0.03692171722650528,
0.08731302618980408,
0.1908866912126541,
0.2228710800409317,
-0.6560568809509277,
-0.13387151062488556,
-0.6179852485656738,
-0.22822906076908112,
0.3432367444038391,
-0.2729175388813019,
-0.11210516840219... | |
<input type="button"/>
<input type="text"/>
<input type="password"/>
<input type="file"/>
<input type="hidden"/>
<input type="checkbox"/>
<input type="radio"/>
<button></button>
<select></select>
<textarea></textarea>
<div></div>
<s... | [
-0.0018751288298517466,
-0.09649286419153214,
0.4820331931114197,
0.02562560699880123,
-0.005252575967460871,
-0.07296550273895264,
0.255605012178421,
-0.46090367436408997,
-0.17589057981967926,
-0.5570281744003296,
-0.3868117332458496,
0.7545873522758484,
-0.17283383011817932,
-0.13664665... | |
<table></table>
<ul></ul>
<a></a>
</body>
</html>
```
IE tries to be helpful and hides text nodes that contain only whitespace.
In the following:
```
<p>
<input>
</p>
```
W3C DOM spec says that `<p>` has 3 child nodes ("\n", `<input>` and "\n"), IE will pretend there's only one.
The solution i... | [
-0.059687308967113495,
-0.07084153592586517,
0.36762306094169617,
-0.1328754723072052,
0.3022926449775696,
0.14335836470127106,
0.34599635004997253,
-0.02751844935119152,
-0.20643708109855652,
-0.8466969132423401,
-0.4987056851387024,
0.2619439363479614,
-0.3229124844074249,
0.149046838283... | |
I need to convert several Java classes to C#, but I have faced few problems.
In Java I have following class hierarchy:
```
public abstract class AbstractObject {
public String getId() {
return id;
}
}
public class ConcreteObject extends AbstractObject {
public void setId(String id) {
thi... | [
0.14750386774539948,
-0.010015604086220264,
0.0692901685833931,
-0.22117134928703308,
-0.15114323794841766,
-0.1531679779291153,
0.19375553727149963,
-0.3177296221256256,
-0.04866938292980194,
-0.6092110276222229,
0.19234994053840637,
0.6909162998199463,
-0.5654545426368713,
-0.09594231843... | |
Is that possible?
I would suggest using method calls as you've already outlined to make sure that the usage of the class is clear to the caller. If you're set on implementing it using properties, then you could do the following (some documentation for the new keyword can be found [here](http://msdn.microsoft.com/en-us/... | [
0.19081242382526398,
-0.06716525554656982,
-0.04932224750518799,
-0.02512434683740139,
0.08361857384443283,
-0.19247467815876007,
0.17740735411643982,
-0.2930132746696472,
0.032473959028720856,
-0.20496203005313873,
0.1465049684047699,
0.5562633872032166,
-0.4168708026409149,
0.02020315825... | |
public new string Id
{
get { return base.Id; }
set { id = value; }
}
}
``` | [
0.012574584223330021,
-0.13281916081905365,
0.20761582255363464,
-0.08667807281017303,
-0.026700593531131744,
-0.14499644935131073,
0.15765222907066345,
-0.26325762271881104,
0.1514168083667755,
-0.6076658964157104,
-0.35213956236839294,
0.5351503491401672,
-0.3340812623500824,
0.235162615... | |
I want ajax application to process a simple form with textinput and submit button only , and without validation , i want to add this with a php script .
I ask this because i don't know how to program with ajax or javascript .
Honestly, you're not going to get anywhere without learning javascript. You should really look... | [
0.41314366459846497,
0.11833647638559341,
0.03760567680001259,
0.12291786074638367,
-0.33825692534446716,
-0.35321491956710815,
0.08602607995271683,
0.27753984928131104,
-0.12687601149082184,
-0.8561179637908936,
0.1520276516675949,
0.5771331787109375,
-0.07708097994327545,
-0.150801375508... | |
make it a lot easier.
www.w3schools.com is a good place to learn javascript, don't worry if you're constantly looking things up while learning it, even the best of us have to do so. And never be afraid of asking questions, that's how you learn.
If you know php, javascript would be relatively simple to pick up. One th... | [
0.6108684539794922,
-0.11348982155323029,
-0.135903999209404,
0.3303709328174591,
-0.3863515853881836,
-0.3812924921512604,
0.33614832162857056,
0.6137439608573914,
-0.39205288887023926,
-0.7999880909919739,
0.20325808227062225,
0.49048668146133423,
0.2683646082878113,
-0.37402433156967163... | |
I have a circular, statically allocated buffer in C, which I'm using as a queue for a depth breadth first search. I'd like have the top N elements in the queue sorted. It would be easy to just use a regular qsort() - except it's a circular buffer, and the top N elements might wrap around. I could, of course, write my o... | [
-0.03631643205881119,
0.05286265164613724,
-0.024988044053316116,
-0.09223154187202454,
-0.1477908194065094,
0.23478801548480988,
-0.2727806270122528,
-0.06372685730457306,
-0.2640916705131531,
-0.46211475133895874,
0.09111184626817703,
0.08276216685771942,
-0.3649912178516388,
0.060117457... | |
a separate linear buffer - first copy the elements from the circular buffer, then apply qsort, then copy them back. Using an additional buffer means an additional O(N) space requirement, which brings me to
* Sort the "top" and "bottom" halve using qsort, and then merge them using the additional buffer
* Same as 2. bu... | [
-0.09474516659975052,
-0.14926116168498993,
0.04948054254055023,
0.009192723780870438,
-0.06568917632102966,
0.3576565980911255,
0.17274008691310883,
-0.3678465187549591,
-0.06769875437021255,
-0.5763245820999146,
0.008451133966445923,
0.1559593826532364,
-0.1630539745092392,
-0.2030681818... | |
lines might not be the most productive either...
**Correction:** Made a stupid mistake of switching DFS and BFS (I prefer writing a DFS, but in this particular case I have to use a BFS), sorry for the confusion.
**Further description of the original problem:**
I'm implementing a **breadth** first search (for somethi... | [
-0.05296487361192703,
-0.31964144110679626,
0.48318207263946533,
-0.01193274650722742,
-0.046129610389471054,
0.33345654606819153,
0.27666375041007996,
-0.07538721710443497,
-0.4985170066356659,
-0.7566755414009094,
-0.13825546205043793,
0.0000460446099168621,
-0.14620767533779144,
0.31796... | |
it stores integer indices into a table of states. Apart from two simple functions to queue and dequeue an index, it has no encapsulation - it's just a simple, statically allocated array of unsigned's.
Now I want to add some heuristics. The first thing I want to try is to sort the expanded child states after expansion ... | [
0.07380953431129456,
-0.08693899214267731,
0.3094169497489929,
0.1910633146762848,
0.15483956038951874,
0.33036261796951294,
-0.2937058210372925,
-0.05168377608060837,
-0.24203339219093323,
-0.7828994989395142,
0.09330741316080093,
0.08046615123748779,
-0.21728001534938812,
0.3893466889858... | |
could also expand the states in a different order (so in this case, it's not really important if I break the FIFO properties of the queue).
My goal is not to implement [A\*](http://en.wikipedia.org/wiki/A*_search_algorithm), or a depth first search based algorithm (I can't afford to expand all states, but if I don't, ... | [
0.15907388925552368,
-0.11120303720235825,
0.10782814770936966,
0.004434175323694944,
0.31807994842529297,
0.11794055998325348,
-0.010945985093712807,
0.03758453577756882,
-0.28716525435447693,
-0.7028647065162659,
0.04879847168922424,
0.32548826932907104,
-0.29248279333114624,
0.463783890... | |
copy it and simply replace all the array access and indexing code with appropriately generalized equivalents. This gives you some modest assurance that the underling sort is efficient and has few bugs. No help with the risk of introducing your own bugs, of course. Big O like the system `qsort`, but possibly with a wors... | [
0.07161521911621094,
-0.23003287613391876,
0.2592526376247406,
0.09068181365728378,
0.11433339864015579,
-0.1958278864622116,
-0.031125159934163094,
0.16361455619335175,
-0.337968647480011,
-0.47255730628967285,
-0.0698915421962738,
0.5235829949378967,
-0.3216117024421692,
-0.0218664836138... | |
cases that trip the guard (for `n` the size of the region to be sorted), which makes the average `O(n^2/N) < O(n)`.
---
I see that C++ is not an option for you. ::sigh:: I will leave this here in case someone else can use it.
* If C++ is an option you could (subclass the buffer if needed and) overload the `[]` opera... | [
-0.09648966044187546,
-0.18348632752895355,
-0.002356945537030697,
0.1525299996137619,
-0.10772379487752914,
-0.1681932806968689,
0.19132469594478607,
-0.19689075648784637,
-0.4175041913986206,
-0.6492929458618164,
-0.20090444386005402,
0.5909695625305176,
-0.4972715973854065,
-0.038907799... | |
I currently have Apache HTTP Server, but I'm guessing I'll need Tomcat (and then have to configure it in a way that makes it not open to the public), a Java JDK (which I already have, but should probably update), and an IDE (I have Eclipse). But what else should I have or know before starting?
Lets see... you'll need:
... | [
0.22898925840854645,
0.31606677174568176,
0.3640970289707184,
-0.06366798281669617,
-0.39974865317344666,
-0.33392533659935,
0.29518380761146545,
-0.24087198078632355,
-0.2526630163192749,
-0.7755334973335266,
-0.007383548654615879,
0.31844231486320496,
-0.12283297628164291,
0.177146688103... | |
[Apache Tomcat](http://tomcat.apache.org/) is a popular one, and Eclipse already has integration support for it. Keep in mind that Tomcat is not a complete J2EE stack... you need something like [JBoss Application Server](http://www.jboss.org/jbossas/) or [Apache Geronimo](http://geronimo.apache.org/) for that.
3. (Semi... | [
0.3254972994327545,
-0.03068290650844574,
0.09579327702522278,
0.03872019797563553,
-0.41097956895828247,
-0.2343740165233612,
0.2737884223461151,
-0.16644375026226044,
-0.4354005455970764,
-0.26500892639160156,
-0.028561290353536606,
0.6470670700073242,
-0.24350787699222565,
-0.4002929031... | |
A Database. MySQL and HSQLDB are popular ones for Java, at least for small to medium applications. Keep in mind that you also need to download the JDBC drivers for your database.
6. (Optional) A revision control system. Even on a single-developer project, a revision control system can save your hide if you accidentally... | [
0.35979121923446655,
-0.24864040315151215,
0.055735956877470016,
0.24043288826942444,
-0.10433191806077957,
-0.26944464445114136,
0.35359540581703186,
0.18763218820095062,
-0.32951703667640686,
-0.7599020600318909,
-0.3209969401359558,
0.508092999458313,
-0.18364745378494263,
-0.1768241822... | |
I am having issues converting a png to tiff. The conversion goes fine, but the image is huge. I think the issue is that I am not doing the compression correctly? Anyone have any suggestions??
Here is the code sample
```
public static void test() throws IOException {
// String fileName = "4958813_1";
String f... | [
0.31728920340538025,
-0.051370732486248016,
0.7769604921340942,
-0.22064265608787537,
-0.1514723002910614,
0.2955162525177002,
0.22025568783283234,
-0.39604949951171875,
-0.1556575894355774,
-0.7945592403411865,
-0.0637740045785904,
0.761023759841919,
-0.25657716393470764,
-0.0932527258992... | |
fInputFile));
PNGImageReaderSpi spi = new PNGImageReaderSpi();
ImageReader reader = spi.createReaderInstance();
ImageInputStream iis = ImageIO.createImageInputStream(fis);
reader.setInput(iis, true);
BufferedImage bi = reader.read(0);
TIFFImageWriterSpi tiffspi = new TIFFImageWriterSpi();
... | [
0.008550833910703659,
-0.6000353097915649,
1.159605622291565,
-0.18314465880393982,
-0.10556071996688843,
0.32712987065315247,
0.4032312333583832,
-0.9629676342010498,
-0.34299612045288086,
-0.7618313431739807,
-0.236885204911232,
0.635090172290802,
-0.44552913308143616,
-0.123484313488006... | |
new File("I:\\HPF\\UU\\" + fileName + outFileType);
ImageOutputStream ios = ImageIO.createImageOutputStream(fOutputFile);
writer.setOutput(ios);
writer.write(bi);
}
```
`Writer.getDefaultWriteParam()` only creates an `ImageWriteParam` object, it doesn't link it back to anything else.
I don't see any mech... | [
0.21312682330608368,
-0.10210413485765457,
0.9031047224998474,
-0.2054090052843094,
-0.024858560413122177,
0.2668381333351135,
0.2985946238040924,
-0.48614615201950073,
-0.3808179199695587,
-0.8916712403297424,
-0.11747222393751144,
0.4853129982948303,
-0.6342388391494751,
-0.0314548239111... | |
Like any other hard disk, virtual hard discs (\*.vhd) will suffer from fragmentation.
So to keep good performance i guess i have to defrag first the virtual hard disc from within the virtual machine and also the (physical) hard disc the .vhd is stored on.
First, are these assumption correct?
And second, is there a w... | [
0.3762175738811493,
0.21198245882987976,
0.2947131097316742,
0.2850883901119232,
-0.19885505735874176,
-0.6006713509559631,
0.36740314960479736,
-0.0073370966129004955,
0.010935518890619278,
-0.8585115075111389,
-0.20206837356090546,
0.9971901774406433,
0.03400425985455513,
0.3728732764720... | |
can't be in use in order to defrag it, requiring the VM to be off. | [
0.9560392498970032,
0.0038226244505494833,
0.8774842619895935,
0.40400660037994385,
0.3690603971481323,
-0.5652241706848145,
0.09669707715511322,
-0.2630080282688141,
0.19711728394031525,
-0.09351813793182373,
-0.11355765163898468,
0.37415578961372375,
0.10450676828622818,
0.07222236692905... | |
Grasping at straws here... I work with a VB6 desktop system using several 2003-style Access databases (.MDB). Recently, I changed the first function from VB6 to VB.NET, still using an Access database. This is more than a conversion, but a rewrite with additional functionality. It is still fairly simple functionality, w... | [
0.25890877842903137,
0.13297326862812042,
0.5705488920211792,
-0.19579312205314636,
-0.24817456305027008,
0.21490566432476044,
0.08170940726995468,
0.09946532547473907,
-0.4881126582622528,
-0.8303064703941345,
0.1934783011674881,
0.5295302271842957,
-0.22325395047664642,
0.544941961765289... | |
of RAM, and 2) rebooting always solves the problem.
I wrote an app to severely slow down my machine, and it STILL runs better for me than it does for those few customers. Also, my Access database has never been trashed by this application.
Any suggestions?
Thanks!!
Rebooting while updating an access database can t... | [
0.43318596482276917,
0.39220234751701355,
-0.01830276846885681,
0.30072221159935,
0.07381696999073029,
0.04460793733596802,
0.3111580014228821,
0.22282125055789948,
-0.687208890914917,
-0.7633253335952759,
0.008305233903229237,
1.075130581855774,
-0.15514521300792694,
-0.013313562609255314... | |
task is consuming the most cpu
* Peak (committed) memory on XP - no equiv on Vista
* Total (committed) memory on XP - no equiv on Vista
* Available (physical) memory on XP - Free on Vista (made worthless by Superfetch)
It's also possible to use the command line tool "SYSTEMINFO" on both XP and Vista to get Total and A... | [
-0.1575029492378235,
-0.2704109251499176,
0.11555416882038116,
0.07627611607313156,
-0.08304987847805023,
0.1005672886967659,
0.44841617345809937,
0.12742134928703308,
-0.7217283844947815,
-0.604924738407135,
0.04054585471749306,
0.912161648273468,
-0.07800475507974625,
-0.0566330663859844... | |
need more information. It may be another app on the workstation is causing the problem. We had a situation where Notes 5.0 had a problem where if most of the window is covered up by another window and you received a new mail message the cpu utilization on Notes went to 100%. This caused apps to run slow and unless you ... | [
-0.03354506567120552,
0.070665143430233,
0.5404693484306335,
0.3580978512763977,
-0.06971857696771622,
0.04827827960252762,
0.4489724636077881,
0.08335836231708527,
-0.3892969787120819,
-0.9359645843505859,
0.14039194583892822,
0.4156637191772461,
-0.18907248973846436,
-0.13196426630020142... | |
in different modes even though it doesn't seem like it's doing anything.
Gather as much info as you can. You might want to write a vbscript or program that will will gather some info for you so that whomever is having the problem can run it to gather the info before rebooting.
A batch file that does the following wil... | [
0.4080694615840912,
-0.37925592064857483,
0.34413811564445496,
0.08327542245388031,
-0.0058426461182534695,
-0.3519863188266754,
0.5781844854354858,
-0.05203425511717796,
-0.44362229108810425,
-0.49700793623924255,
-0.08078025281429291,
0.9294848442077637,
-0.5123831629753113,
-0.365126520... | |
I have the very same delphi version, bpls, components, everything. And yet in three machines the resulting executables are different in size.
What else can influence in the size of the exe?
In my machine I get this size (Vista 6.0.6001):
```
4.547.584 bytes
```
In my colleague's machine, he gets (XP 5.1.2600 SP3):
... | [
-0.07777692377567291,
0.41736236214637756,
0.40775665640830994,
-0.2562926411628723,
-0.057638056576251984,
0.11078594624996185,
0.28716886043548584,
-0.18632151186466217,
-0.2349274456501007,
-0.7917613387107849,
-0.07980875670909882,
0.8125277757644653,
-0.3683934211730957,
-0.1931807249... | |
3 after you verify that the build settings are the same. If that is the same then add some 3rd party components until you find the one that is different.
Additionally you may have a different version of Delphi (major or minor/update version). | [
0.022631429135799408,
-0.10296621918678284,
0.4938914179801941,
-0.310535728931427,
-0.25631478428840637,
-0.3895827531814575,
0.4927791953086853,
-0.42212969064712524,
0.007045940030366182,
-0.5527178645133972,
-0.310905396938324,
0.8625041842460632,
-0.500009298324585,
-0.055256210267543... | |
I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform?
Specifically, is Java 1.6 available in it?
Is there somthing specific that it offers with regard to tools that is not available under Linux?
I've always found FreeBSD a wonderful secure hosting environme... | [
0.6318565011024475,
0.22620779275894165,
-0.02184830978512764,
0.27420899271965027,
-0.02191745489835739,
-0.47537824511528015,
0.08493376523256302,
0.19057312607765198,
-0.2115718126296997,
-0.5736442804336548,
-0.0075526111759245396,
0.6844674944877625,
-0.22294914722442627,
0.1115414723... | |
but they will have to be compiled from source code. If you are familiar with standard Unix command line tools and the command line itself, you should have no problems with FreeBSD.
Alan | [
0.4676772654056549,
0.4930118918418884,
-0.392353892326355,
0.0067840865813195705,
-0.049815621227025986,
-0.3589572310447693,
-0.04262801632285118,
0.15816646814346313,
-0.11443954706192017,
-0.24468131363391876,
-0.3077138662338257,
0.6379328966140747,
-0.19188232719898224,
0.16214886307... | |
I'm currently using AntLR to parse some files with a proprietary language.
I have a need of highlighting sections of it on an editor (think of highlighting a method in a Java class, for instance).
Does anyone has a hint on how to get them?
Say I have this code:
```
function test(param1, param2) {
}
```
as function ... | [
0.1360672116279602,
0.22131061553955078,
0.09632837772369385,
-0.0064787426963448524,
-0.20155437290668488,
0.251993328332901,
0.3516223728656769,
-0.14504730701446533,
-0.1941882073879242,
-0.6009778380393982,
0.07340885698795319,
0.18876342475414276,
-0.15913383662700653,
0.0171867050230... | |
you!
If I understand your question, I think you can use attribute 'pos' on each token
```
func: FUNCTION ID '(' ID (',' ID)* ')' {
System.out.println("Position = " + $FUNCTION.pos);
}
```
which refers to the character position within the line counting from zero. | [
-0.03476118668913841,
-0.015466764569282532,
0.2966834604740143,
-0.03214215114712715,
0.12738467752933502,
0.33548304438591003,
-0.022297745570540428,
-0.2263455092906952,
-0.21829462051391602,
-0.19040581583976746,
-0.1634741574525833,
0.43423470854759216,
-0.017692500725388527,
-0.11545... | |
I'm trying to do Ruby password input with the [Highline gem](http://highline.rubyforge.org/) and since I have the user input the password twice, I'd like to eliminate the duplication on the blocks I'm passing in. For example, a simple version of what I'm doing right now is:
```
new_pass = ask("Enter your new password:... | [
0.4105558395385742,
0.20226380228996277,
0.3013245761394501,
-0.4413648843765259,
-0.2280840426683426,
-0.14946579933166504,
0.5322141647338867,
-0.5701785683631897,
-0.10776674002408981,
-0.5287340879440308,
-0.06906987726688385,
0.5937902331352234,
-0.3191053867340088,
0.0490645207464695... | |
") foo
```
Which unfortunately doesn't work. What's the correct way to do this?
The code by David will work fine, but this is an easier and shorter solution:
```
foo = Proc.new { |prompt| prompt.echo = false }
new_pass = ask("Enter your new password: ", &foo)
verify_pass = ask("Enter again to verify: ", &foo)
```
... | [
-0.00017344548541586846,
0.12693341076374054,
0.35279932618141174,
-0.08406306803226471,
0.16131913661956787,
-0.04984056577086449,
0.49064913392066956,
-0.7360791563987732,
0.11048004776239395,
-0.24764692783355713,
0.04087038338184357,
0.580703616142273,
-0.5242597460746765,
-0.097250781... | |
How can I test my site in AOL without installing AOL? I did that once on my machine, and it killed it... ;)
I know, I know... I can use a Virtual Machine, but I'm really just looking for an AOL Browser... a separate browser install.
You can download [AOL Explorer](http://downloads.channel.aol.com/browser) by itself. | [
0.5197233557701111,
0.12312928587198257,
0.35756322741508484,
0.20482760667800903,
-0.0746392160654068,
-0.4316997826099396,
0.49342504143714905,
0.3206125795841217,
-0.10775484144687653,
-0.7233467102050781,
0.11556241661310196,
0.5989794731140137,
-0.20700445771217346,
0.325723797082901,... | |
How do I get a human-readable file size in bytes abbreviation using .NET?
**Example**:
Take input 7,326,629 and display 6.98 MB
This may not the most efficient or optimized way to do it, but it's easier to read if you are not familiar with log maths, and should be fast enough for most scenarios.
```
string[] sizes = ... | [
0.2455558478832245,
0.013051310554146767,
0.45354756712913513,
-0.11616271734237671,
-0.023967569693922997,
0.1859862357378006,
0.19903498888015747,
-0.38450461626052856,
-0.17488864064216614,
-0.8339412808418274,
-0.07867900282144547,
0.48666226863861084,
-0.03986368700861931,
0.205720648... | |
single decimal place, and no space.
string result = String.Format("{0:0.##} {1}", len, sizes[order]);
``` | [
-0.2521265149116516,
0.25328195095062256,
0.16765840351581573,
0.26479607820510864,
0.04342114180326462,
0.3256799280643463,
-0.2693404257297516,
-0.05284420773386955,
-0.04601643607020378,
0.1662074774503708,
-0.3046933114528656,
-0.35191717743873596,
0.010013352148234844,
0.3854418098926... | |
Do you have any ideas how to call DoEvents from a C# DLL
Don't. It's sketchy enough when you are the app controlling the event loop; pumping messages from a DLL just adds to the risk that you'll end up hitting code a naive programmer didn't make safe for re-entrancy. | [
0.5250687003135681,
0.02088336832821369,
-0.06132637709379196,
0.1622060239315033,
0.016106296330690384,
-0.18865707516670227,
0.5276275277137756,
0.14758390188217163,
-0.29846078157424927,
-0.40236178040504456,
0.2668965458869934,
0.7281200885772705,
-0.3069133758544922,
-0.17333358526229... | |
I am quantitatively studying various metrics associated with automated tests. Chrome seems to have a reasonable set, so I wanted to add it to my data set. I downloaded the Chrome source code and tried to build it with VisualStudio but got several hundred errors--types not defined, identifiers not defined, etc. Has anyo... | [
0.7537628412246704,
0.3968198001384735,
0.06128792092204094,
0.11758885532617569,
-0.471610426902771,
-0.3023940324783325,
0.4700474143028259,
-0.12242496013641357,
-0.2732734680175781,
-0.5099371075630188,
0.2481553703546524,
0.8246608376502991,
0.03517403081059456,
-0.36970192193984985,
... | |
the wrong thing when building Chromium and gets stuck on a bogus error. A good indication of this is if it is only failing for one person but others (including the Buildbots) are not complaining. To resolve this, try the following steps:
+ Close Visual Studio.
+ Sync to the tip of tree and ensure there are no conflic... | [
0.37282493710517883,
0.26692694425582886,
0.2007952332496643,
-0.31646615266799927,
0.018669594079256058,
-0.08520647138357162,
0.5573656558990479,
-0.2898748517036438,
0.11258809268474579,
-0.874553382396698,
-0.23057864606380463,
0.7679864764213562,
-0.28278544545173645,
0.09782115370035... | |
from the chrome directory to do this, or "rm -rf Debug Release" if you have Unix-like tools installed.
+ Restart Visual Studio and open the Chromium solution.
+ Rebuild the solution.
If it still doesn't work, repeating this process probably won't help.
chrome\_kjs.sln tempfile problems
=============================... | [
0.22801852226257324,
0.33712154626846313,
0.31770455837249756,
-0.21904118359088898,
-0.23121798038482666,
-0.3225267827510834,
0.5319703817367554,
-0.3496071696281433,
-0.1949453204870224,
-0.7551655769348145,
-0.09972492605447769,
0.7569248676300049,
-0.4157152771949768,
0.01158586610108... | |
can't figure out the permissions in the first place, possibly when the directory is created from within a Cygwin environment before running mkpasswd. Cygwin then imposes its own access control, which is incorrectly restrictive. As a workaround, do one of the following:
* Edit the NT permissions on third\_party\cygwin\... | [
0.09662232547998428,
0.11361480504274368,
0.13795670866966248,
0.11152932047843933,
0.12993775308132172,
-0.5073572993278503,
0.5669837594032288,
-0.1905946135520935,
-0.16669224202632904,
-0.5831518173217773,
-0.3048393726348877,
0.7270411849021912,
-0.3492372930049896,
0.2141862660646438... | |
Cygwin installation. Or,
* Bypass Cygwin's access control (NT's will still be in effect) by editing webkit\build\JavaScriptCore\prebuild.bat and webkit\build\WebCore\prebuild.bat to include the following line before invoking anything that uses Cygwin:
```
set CYGWIN=nontsec
```
Only one of these solutions shoul... | [
-0.014796766452491283,
0.1608227789402008,
0.2463447004556656,
-0.17507526278495789,
-0.08716852962970734,
-0.45384493470191956,
0.47292137145996094,
-0.04644777253270149,
0.01211654394865036,
-0.5914576053619385,
-0.21024878323078156,
0.7558384537696838,
-0.5613564252853394,
0.11346099525... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.