text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
$newMapping = $template.Clone()
$newMapping.Extensions = $extension
$maps += newMapping
}
end
{
$site.Settings.ScriptMaps = $maps
}
}
``` | [
0.3057435154914856,
-0.10804041475057602,
0.7822201251983643,
-0.1901724934577942,
0.37456485629081726,
-0.3250236511230469,
0.26237502694129944,
-0.3493489623069763,
-0.45255807042121887,
-1.104257345199585,
-0.34533563256263733,
0.19152694940567017,
-0.40793395042419434,
0.21923249959945... | |
i'm going to be responsible for deciding how tagging branching is going to happen in our CVS/SVN repo.
Is there any literature that will help me understand the best way to work with CVS? either branching/tagging, etc?
thanks
My personal experience during more than 10 years of CVS at the FreeBSD project is: switch to ... | [
0.5750445127487183,
-0.3313550055027008,
0.07600803673267365,
0.026974420994520187,
-0.11998095363378525,
-0.3784089982509613,
0.17152701318264008,
0.2525847554206848,
-0.36554425954818726,
-0.546339213848114,
0.1882048100233078,
0.663764238357544,
-0.07621978223323822,
0.19833441078662872... | |
[question](https://stackoverflow.com/questions/464417/how-to-use-svn-branch-tag-trunk). | [
-0.04531020298600197,
-0.2394198328256607,
0.40252685546875,
0.28145506978034973,
0.2607159912586212,
-0.24066537618637085,
0.4878373444080353,
0.15835563838481903,
-0.5558149218559265,
0.038051895797252655,
-0.3937133848667145,
0.20524287223815918,
-0.07629582285881042,
-0.059273041784763... | |
I have the following code in a MVC User Control (the field names have been changed to protect the innocent):
These are to be displayed in a list beneath a header on the page that calls this control.
Given that I blow at CSS, how do I apply tags to the header and these fields so that everything lines up properly?
Man... | [
0.5787205100059509,
0.1662638932466507,
0.27531516551971436,
-0.03428635001182556,
-0.10221974551677704,
-0.24669647216796875,
0.3415687084197998,
-0.2083682119846344,
-0.22848926484584808,
-0.636828601360321,
-0.1667296439409256,
0.6100025773048401,
-0.1380959302186966,
0.1215722635388374... | |
are the attributes applied inside the tag itself? I've tried the latter and it doesn't seem the correct approach.
It appears, from your sample code, but you are just directly outputting string properties into the web page. In this case, you would need to surround the output string with a span or a div in order to assig... | [
0.20993921160697937,
-0.09547076374292374,
0.380622923374176,
0.007437392603605986,
-0.19770199060440063,
0.040101755410432816,
-0.00930599682033062,
-0.4052700400352478,
-0.040919870138168335,
-0.6035520434379578,
-0.11257100850343704,
0.720244824886322,
-0.3924585282802582,
0.01851893030... | |
I have a problem with a flash object placing itself on top over everything in IE6 and IE7.
Firefox renders the page correctly.
I bet somebody else has had this problem and found some kinda solution to it.
Because Flash runs inside an ActiveX control in IE browsers, it doens't follow the stack rules since ActiveX co... | [
0.17843937873840332,
0.10816451907157898,
0.42318195104599,
0.12769614160060883,
-0.1526242345571518,
-0.34902065992355347,
0.3516175150871277,
0.1220746785402298,
-0.044128693640232086,
-0.665302038192749,
-0.07866887003183365,
0.650406002998352,
-0.3780842423439026,
-0.0643441379070282,
... | |
Since it's integration to the framework, the package seems to have been removed from the web. can someone point me to a download site where i can download it and use it with my .net 3.5 application?
The CTP is no longer available. From Nuget:
> This backport was shipped with the Reactive Extensions (Rx) library up
> ... | [
0.13197098672389984,
-0.27128323912620544,
0.3447962701320648,
-0.05714358761906624,
0.04678798094391823,
0.05810048431158066,
0.2825314700603485,
-0.04211612045764923,
-0.19711555540561676,
-0.588437020778656,
-0.06293660402297974,
0.5176985859870911,
-0.3084336519241333,
-0.0308214966207... | |
I have an XML document from an external source.
```
<?xml version="1.0" encoding="utf-8"?>
<ns0:Info xmlns:ns0="http://www.ZomboCorp.com/">
<Name>Anthony</Name>
<Job>Developer</Job>
</ns0:Info>
```
I need to deserialize it into an object like this.
```
public class Info
{
public String Name { get; set; }
... | [
0.30174708366394043,
0.2331923544406891,
0.18482021987438202,
-0.11697085946798325,
0.06740828603506088,
0.13048122823238373,
0.1924019157886505,
-0.38908708095550537,
-0.11490528285503387,
-0.602992057800293,
-0.27330532670021057,
0.4523857533931732,
-0.18164564669132233,
0.49110573530197... | |
It suggested
```
[XmlType(AnonymousType = true, Namespace = "http://www.ZomboCorp.com/")]
[XmlRoot(Namespace = "http://www.ZomboCorp.com/", IsNullable = false)]
public class Info
{
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public String Name { get; set; }
[XmlElement(Form = XmlSchemaForm.Unqualified)]... | [
0.2915216386318207,
-0.0008796695037744939,
0.27322980761528015,
0.015602672472596169,
0.22888034582138062,
0.07891705632209778,
0.009852929040789604,
-0.20553652942180634,
0.010009855031967163,
-0.2981444299221039,
-0.3470049202442169,
0.6329261660575867,
-0.3308101296424866,
0.1200538426... | |
When clicking on the text box part of an `<input type="file" />` in FireFox3, a file browsing window opens.
This doesn't happen in IE7. You have to click the "browse" button to open the file browsing window.
How can I prevent the file browsing window from opening in FireFox when a user clicks on the textbox area? I'd... | [
-0.3562428057193756,
0.10887187719345093,
0.6001226902008057,
-0.4552234411239624,
0.028908822685480118,
-0.3195751905441284,
0.533430814743042,
-0.016334379091858864,
-0.458913654088974,
-0.8830386400222778,
-0.3501758277416229,
0.7462018728256226,
-0.6486151814460754,
0.09188878536224365... | |
<div style="position: absolute; top: 0; left: 0; width: 11em; height: 2em;"> </div>
</div>
```
But don't do this. It's awfully brittle and will break in many circumstances.
> I'd like it so it only opens when the button is pressed.
I doubt your users would like it, though. It removes expected functionality from the... | [
0.14364658296108246,
-0.019311698153614998,
0.46453702449798584,
-0.21831676363945007,
0.1738726645708084,
-0.15521728992462158,
0.4354804456233978,
-0.041603490710258484,
-0.08038578927516937,
-0.5310282111167908,
-0.1673235148191452,
0.5628172159194946,
0.022282280027866364,
0.2457886785... | |
I have some AJAX work that brings across an additional form element that I don't need in the DOM. I don't have the ability to remove it server side, so I'm looking for some jQuery or classic JavaScript that will allow me to capture all the child elements of the form, remove the form I don't need and finally re-append t... | [
0.28302568197250366,
-0.02951904945075512,
0.14509515464305878,
0.20228944718837738,
0.017538711428642273,
-0.17036274075508118,
0.2898416221141815,
-0.044853076338768005,
0.11551544815301895,
-0.7019646763801575,
0.15354236960411072,
0.714382529258728,
-0.032013751566410065,
-0.1209023743... | |
Captures the children
var children = $("form:eq(1)").children();
// Removes the form
$("form:eq(1)").remove();
// append the child elements back into the DOM
$("#fillDiv").append(children);
```
Rather than using the `.html()` method (which will cause you to ... | [
-0.03411334380507469,
-0.24882042407989502,
0.4811943471431732,
0.19181542098522186,
0.45244941115379333,
0.1928800493478775,
0.17685528099536896,
-0.3746887743473053,
-0.34011685848236084,
-0.47749459743499756,
-0.3816620111465454,
-0.003565405262634158,
-0.42863041162490845,
0.1744539290... | |
nodes:
```
// grab the child nodes
var children = $('#badForm').children();
// or var children = $('#badForm > *');
// move them to the body
$(body).append(children);
// remove the form
$('#badForm').remove();
``` | [
-0.008364583365619183,
-0.12911365926265717,
0.48167684674263,
0.06705217808485031,
0.29007211327552795,
0.49832233786582947,
0.1812959462404251,
-0.10835714638233185,
-0.1816461682319641,
-0.8977418541908264,
-0.3421792685985565,
0.031181171536445618,
-0.34172096848487854,
0.3333990871906... | |
I have an odd need to open two separate instances of excel and having each open a different spreadsheet for various manipulations.
At the moment I'm doing the simple execution of excel with command line parameters to open the two spreadsheets, but both spreadsheets end up in one instance of excel.
Yes, it's klunky, n... | [
0.42887434363365173,
0.23861245810985565,
0.27678182721138,
0.08548223972320557,
-0.11395356804132462,
0.02172202616930008,
0.17196591198444366,
-0.05045672506093979,
-0.365583598613739,
-0.548008918762207,
0.06697411090135574,
0.6530261039733887,
-0.0856826975941658,
0.14709332585334778,
... | |
you specifying the full program path for Excel? When I do that from the command line I get each file in its own instance...
As far as I can tell though, you can't open/control two separate instances of Excel programmatically at the same time... | [
0.3046936094760895,
0.4052365720272064,
-0.23335978388786316,
-0.09506557136774063,
-0.36948153376579285,
-0.13757850229740143,
-0.031327806413173676,
-0.05992501601576805,
-0.30831247568130493,
-0.41581735014915466,
0.25446340441703796,
0.7055678963661194,
-0.3039449155330658,
0.085915885... | |
[[](https://i.stack.imgur.com/ocrX1.jpg)](http://i41.tinypic.com/23rr095.jpg)
(clickable)
Mainad has a valid height and width, however it isn't shown like subad1/subad2. Which are in essence exactly the same! (just a different background image).
Firebug shows my div as greyed o... | [
0.11681435257196426,
-0.018548713997006416,
0.3264750838279724,
-0.2042081356048584,
-0.14812947809696198,
-0.05447276309132576,
0.38662007451057434,
0.12202802300453186,
-0.2502012550830841,
-0.6939495801925659,
-0.04823999106884003,
0.2908267378807068,
-0.09450900554656982,
0.24399270117... | |
I need to write a function that takes 4 bytes as input, performs a reversible linear transformation on this, and returns it as 4 bytes.
But wait, there is more: it also has to be distributive, so changing one byte on the input should affect all 4 output bytes.
The issues:
* if I use multiplication it won't be revers... | [
-0.10635153949260712,
0.14775602519512177,
0.21420975029468536,
0.01761505752801895,
-0.23994171619415283,
0.3987940549850464,
0.22163866460323334,
-0.407321959733963,
-0.5125242471694946,
-0.3832476735115051,
0.08064819127321243,
0.6166835427284241,
-0.2664828598499298,
0.0157129839062690... | |
a one to one mapping, this would work, but there are issues: this means I have to search a graph of size 256^8 due to having to search for free numbers for every value (should note distributivity should be sudo random based on a 64\*64 array of byte). This solution also has the MINOR (lol) issue of needing 8GB of RAM, ... | [
-0.39801913499832153,
-0.2662140130996704,
0.35052427649497986,
0.08015831559896469,
-0.2823617458343506,
0.012660617008805275,
-0.12082495540380478,
-0.08854737132787704,
-0.5777413845062256,
-0.894050121307373,
0.1744319200515747,
0.3266928195953369,
-0.5538535118103027,
0.07084520906209... | |
very possible and I have used that method when a smaller domain (just 256) was in question. The fact is, as numbers get big that method becomes extraordinarily inefficient, the delta flaw was `O(n^5)` and omega was `O(n^8)` with similar crappiness in memory usage.
I was wondering if there was a clever way to do it. In... | [
-0.15407517552375793,
0.0023385263048112392,
0.34378477931022644,
0.22392956912517548,
-0.010212881490588188,
0.0670972466468811,
0.13208268582820892,
-0.01985219120979309,
-0.33780208230018616,
-0.65525883436203,
0.11101339757442474,
0.17998076975345612,
-0.15322273969650269,
0.2368865758... | |
transformations.
Here are your requirements as I understand them:
1. Let `B` be the space of bytes. You want a one-to-one (and thus onto) function `f: B^4 -> B^4`.
2. If you change any single input byte, then all output bytes change.
Here's the simplest solution I have *thusfar*. I have avoided posting for a while be... | [
-0.0007504553650505841,
-0.15013225376605988,
0.33139434456825256,
0.06359974294900894,
-0.13072815537452698,
0.31447404623031616,
-0.11521290987730026,
-0.26255300641059875,
-0.7217341065406799,
-0.7682267427444458,
-0.29173287749290466,
0.5917906165122986,
-0.5190338492393494,
0.08788694... | |
x^g(x) is reversible. [Note: ^ is the XOR operator.] Any such g will do, but I will define a specific one later.
Given such a g, we define f by f(a,b,c,d) = (a^b^c^d, g(a)^b^c^d, a^g(b)^c^d, a^b^g(c)^d). Let's check your requirements:
1. Reversible: yes. If we XOR the first two output bytes, we get a^g(a), but by the... | [
-0.2204807549715042,
-0.07943165302276611,
0.5236939191818237,
-0.08530280739068985,
-0.22019003331661224,
0.22007082402706146,
-0.152274027466774,
-0.13951830565929413,
-0.14464396238327026,
-0.27399733662605286,
-0.5634233355522156,
0.697826623916626,
-0.5171912312507629,
-0.010611144825... | |
= (a^const, g(a)^const, a^const, a^const). If a changes, then so will a^const; similarly, if a changes, so will g(a), and thus so will g(a)^const. (The fact that g(a) changes if a does is by the first property of g; if it didn't then g(x) wouldn't be reversible.) The same holds for b and c. For d, it's even easier beca... | [
-0.2074006348848343,
-0.2645952105522156,
0.22245465219020844,
-0.2441602647304535,
-0.005460261832922697,
0.41619884967803955,
-0.08267842233181,
-0.15967650711536407,
-0.09712208807468414,
-0.7467069029808044,
-0.46062302589416504,
0.45384681224823,
-0.4514409899711609,
0.103682801127433... | |
0, h(1) = 2, h(2) = 3, and h(3) = 1. This function has the two desired properties of g, namely h(x) is reversible and so is x^h(x). (For the latter, check that 0^h(0) = 0, 1^h(1) = 3, 2^h(2) = 1, and 3^h(3) = 2.) So, finally, to compute g(x), split x into four groups of two bits, and take h of each quarter separately. ... | [
-0.1410948783159256,
0.0460033193230629,
0.22997558116912842,
-0.07108217477798462,
-0.29579368233680725,
0.48218438029289246,
-0.031108371913433075,
-0.6249561309814453,
-0.028204482048749924,
-0.4215814173221588,
-0.44102054834365845,
0.1673402041196823,
-0.29069212079048157,
0.135635137... | |
I'm having some problems with the following code:
```
private class ClientPluginLoader : MarshalByRefObject
{
public bool IsPluginAssembly(string filename)
{
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(CurrentDomainReflectionOnlyAssemblyResolve);
Assembly a... | [
0.08118882030248642,
0.15973752737045288,
0.6372202634811401,
-0.3612059950828552,
0.18206188082695007,
-0.044503044337034225,
0.5249130725860596,
-0.44003427028656006,
-0.34484028816223145,
-0.53429114818573,
-0.13265639543533325,
0.619679868221283,
-0.30533337593078613,
0.307447224855423... | |
{
return true;
}
}
return false;
}
}
```
The code is called via a proxy that I've created through my custom app domain's CreateInstanceFromAndUnwrap(). This means that IsPluginAssembly() is executed in the context of my custom app domain.
The problem is that the call ... | [
-0.0812385156750679,
0.20118001103401184,
0.43737196922302246,
-0.19934727251529694,
0.14583668112754822,
0.21595355868339539,
0.6302079558372498,
-0.06760542094707489,
0.0964520126581192,
-0.6094993948936462,
-0.05654991790652275,
0.596301257610321,
-0.42254337668418884,
0.290831506252288... | |
question really does inherit from ClientPlugin - there's no doubt about that.
ClientPlugin is defined in a different private assembly, which I'm resolving manually, as evident in the code fragment above.
I've put a breakpoint on the `if (type.IsSubclassOf(...))` line and confirmed this expression to be false:
```
ty... | [
0.07726632803678513,
0.0755896344780922,
0.3785560131072998,
-0.004068853799253702,
0.015280706807971,
-0.261379212141037,
0.32958096265792847,
-0.18886442482471466,
-0.22839073836803436,
-0.37767255306243896,
-0.07173991948366165,
0.33653518557548523,
-0.08379015326499939,
0.0407246649265... | |
to loading into a different context. How you load an assembly (Load / LoadFrom / ReflectionOnlyLoad) determines which context it is loaded into. This simple example also demonstrates the problem:
```
using System;
using System.Reflection;
class Foo
{
public static void Main()
{
var type = typeof(Foo);... | [
0.23497959971427917,
-0.14106379449367523,
0.3037874102592468,
-0.3569492697715759,
0.03871562331914902,
0.1557210087776184,
0.5299709439277649,
-0.3103746175765991,
-0.07921170443296432,
-0.37668079137802124,
-0.23175112903118134,
0.7105352878570557,
-0.49199748039245605,
0.24532859027385... | |
Console.ReadKey();
}
}
```
See [here](http://blogs.msdn.com/suzcook/archive/2003/05/29/57143.aspx) for more info. | [
-0.6222754120826721,
0.09903035312891006,
0.23092952370643616,
0.05354094132781029,
0.4441148638725281,
-0.2518530786037445,
-0.09537608176469803,
0.3784354031085968,
0.19400911033153534,
-0.7611678838729858,
-0.358082115650177,
0.8226723670959473,
-0.3420543968677521,
0.35656866431236267,... | |
We're a startup and we built a .net website which we are porting over to MVC. All our text was added to the site using labels so that resource files could be automatically built in the future using the tool in Visual Studio.
I loved the idea which Facebook introduced encouraging the community to self-translate. I wond... | [
0.6775518655776978,
0.11864924430847168,
0.19839121401309967,
0.0595310740172863,
-0.020658299326896667,
-0.16806858777999878,
0.22298656404018402,
0.33927634358406067,
-0.061243198812007904,
-0.7035005688667297,
0.027812151238322258,
0.45482316613197327,
0.08888351917266846,
-0.0819003880... | |
have no idea if the latter is possible.
Any thoughts then give me a shout. Perhaps this could be an open source project in itself.
Rick Strahl over on www.west-wind.com has a [Data Driven Localization Resource Provider](http://www.west-wind.com/presentations/wwDbResourceProvider/) but I am pretty sure it is webform re... | [
0.3683964014053345,
0.24994882941246033,
-0.03342493996024132,
0.0060337260365486145,
-0.0919562503695488,
-0.48105958104133606,
0.25229257345199585,
0.4649416208267212,
-0.33053478598594666,
-0.5905028581619263,
-0.11296912282705307,
0.20283132791519165,
0.39359724521636963,
0.14153581857... | |
Is it possible to call a [VBScript](http://en.wikipedia.org/wiki/VBScript) function from a [JavaScript](http://en.wikipedia.org/wiki/JavaScript) call, or alternately call JavaScript from a VBScript call?
Yes, if your main script is a [Windows Script File](http://msdn.microsoft.com/en-us/library/15x4407c.aspx) (WSF).
... | [
0.29598745703697205,
-0.15609142184257507,
0.2509787380695343,
-0.07394853234291077,
-0.08679323643445969,
0.06688110530376434,
0.11111041903495789,
-0.3127986788749695,
-0.4125700891017914,
-0.44283977150917053,
-0.3871903717517853,
0.359701544046402,
-0.2846938967704773,
-0.2468379437923... | |
If a flag IsAdmin, cast as AdminUser otherwise cast as NormalUser.
Was just curious about this but not sure how to do it. I do see that you can create a child object based on a table value and another table like:
SiteUser is from the table Site\_User
AdminUser is from the table Site\_User and Admin\_User when Site\_U... | [
0.2030351459980011,
-0.08969653397798538,
0.47056370973587036,
0.13723671436309814,
-0.15276426076889038,
-0.04376492276787758,
0.3547419607639313,
-0.4746449589729309,
-0.15088774263858795,
-0.5600143671035767,
0.054137252271175385,
0.07667797803878784,
-0.4072515368461609,
0.234829753637... | |
same table and a column value. The types hold no additional information, just would be helpful for situations like:
```
SomeMethod(SiteUser someUser)
{
if(someUser is AdminUser)
{
...
}
else
{
...
}
}
```
Instead of:
```
SomeMethod(SiteUser someUser)
{
if(someUser.IsAdmin)
... | [
-0.03559814393520355,
0.03788672760128975,
0.782078742980957,
-0.19923357665538788,
-0.15190716087818146,
-0.18298910558223724,
0.12297464162111282,
0.19142812490463257,
-0.31804439425468445,
-0.669043779373169,
-0.15955409407615662,
0.36544284224510193,
-0.2596755623817444,
0.385713607072... | |
I realize this may not be the best example, but say the flag is a multiple value property so instead of:
```
SomeMethod(SiteUser someUser)
{
swith(someUser.Role)
{
case(1):
break;
case(2)
break;
}
}
```
Of course this just might be a bad idea anyhow, but was wondering ... | [
0.029597178101539612,
-0.018830101937055588,
0.27036330103874207,
-0.12750178575515747,
0.05101175978779793,
-0.29320472478866577,
0.3129429519176483,
0.0301104336977005,
-0.2667122781276703,
-0.4097577631473541,
-0.08060227334499359,
0.3926963806152344,
-0.40459415316581726,
0.34162220358... | |
each class, including the abstract type. Table-Per-Hierarchy means that a single table is used to store data for multiple types, and only the columns necessary for that type are pulled from the single table.
Either way, an object can be tested just the way you are describing.
```
if (someUser is AdminUser)
{
...
}... | [
-0.12395885586738586,
0.18852019309997559,
0.16443786025047302,
0.25625017285346985,
-0.04972155764698982,
0.08030978590250015,
0.08139993250370026,
-0.2788236141204834,
-0.25288528203964233,
-0.5785889625549316,
0.00516330823302269,
0.3161350190639496,
-0.3430993854999542,
0.1968415826559... | |
I have an ASP.NET web application that calls a .NET DLL, that in turn calls a web service. The web service call is throwing an exception:
> Unable to generate a temporary class
> (result=1). error CS0001: Internal
> compiler error (0xc00000fd) error
> CS0003: Out of memory
>
>
> Stack Trace: at
> System.Xml.Seri... | [
0.12980997562408447,
0.20176029205322266,
0.5155925750732422,
0.19514834880828857,
-0.10938963294029236,
-0.10003853589296341,
0.027394596487283707,
-0.5938184261322021,
-0.20605365931987762,
-0.7156721353530884,
0.1378960758447647,
0.08729379624128342,
-0.1544523537158966,
0.2018237560987... | |
location,
> Evidence evidence) at
> System.Xml.Serialization.XmlSerializer.GetSerializersFromCache(XmlMapping[]
> mappings, Type type) at
> System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
> mappings, Type type) at
> System.Web.Services.Protocols.SoapClientType..ctor(Type
> type) at
> System.Web... | [
0.46559831500053406,
0.06416751444339752,
0.47912153601646423,
0.10522199422121048,
-0.04025303199887276,
-0.22977986931800842,
0.20536181330680847,
-0.149932861328125,
-0.18634133040905,
-0.5915456414222717,
0.14334037899971008,
0.45236504077911377,
-0.22908905148506165,
0.195467412471771... | |
IIS 7. Our production servers are IIS 6, but it has worked correctly on IIS 7 before.
* The PC has 2 GB of RAM with plenty of that free.
* I haven't changed any of the machine.config settings, nor any of the web.config settings related to process model, compilation, memory usage, etc.
* The local IIS\_IUSRS group has r... | [
-0.0334317721426487,
0.003261824371293187,
0.5977601408958435,
-0.15930312871932983,
0.23463942110538483,
0.09209243953227997,
0.5054821372032166,
0.16361528635025024,
-0.3782549500465393,
-0.8382807970046997,
-0.20577965676784515,
0.9090637564659119,
-0.0283842533826828,
0.007363644428551... | |
an ASP.NET page in the application...Task Manager shows 22 MB used.
* I then hit the event that makes the web service call and the memory usage shoots up to about 150 MB, levels off, then I get the exception.
Well, I'm not sure exactly **why** this worked (which is frustrating), but I did come up with something...
My ... | [
0.23994822800159454,
-0.06051689386367798,
0.6557154655456543,
-0.15522915124893188,
0.00960447359830141,
0.06997350603342056,
0.5276963710784912,
-0.09656219184398651,
-0.25217965245246887,
-0.8117458820343018,
0.016364527866244316,
0.7485889196395874,
-0.10014166682958603,
-0.17631560564... | |
the web site itself are configured to compile as "Any CPU", so they shouldn't have caused any problems on Win64. And the "out of memory" error is still a bit perplexing (and unhelpful). If anyone has any ideas, you get the "accepted" points. | [
0.25546109676361084,
0.39113542437553406,
0.15613822638988495,
0.30919593572616577,
0.19262707233428955,
-0.32579123973846436,
0.17571911215782166,
0.13844695687294006,
-0.3276870846748352,
-0.4296036958694458,
-0.2812323570251465,
0.544134795665741,
0.09488237649202347,
0.0693340301513671... | |
SQL Server Server 2005. I'm staring at a database that has 500+ stored procedures, and trying to glean the intricacies of how they interact with the data - particularly in regards to how they insert/modify data. I was hoping to find a search" or "find" functionality that would look at the content of the actual procedur... | [
-0.26228025555610657,
0.09081831574440002,
0.30246686935424805,
-0.05717998743057251,
-0.4104068875312805,
-0.3195253908634186,
0.2237503081560135,
0.014798589050769806,
-0.162163645029068,
-0.321485310792923,
0.1878710836172104,
0.672032356262207,
-0.37928256392478943,
0.04227665811777115... | |
sproc opened, and even then only in the ...\Local Settings\Temp\~vs1011.sql temporary type files.
As of right now, the only way I know of getting to the underlying procedure is to right click and select "modify" (or Script Stored Procedure As => Create or Alter). Is there a faster/easier way to search/examine all the ... | [
-0.24620722234249115,
0.07802337408065796,
0.96392422914505,
-0.013865392655134201,
0.21814550459384918,
-0.13784317672252655,
-0.13068029284477234,
-0.20209765434265137,
-0.42158380150794983,
-0.44882285594940186,
-0.031245138496160507,
0.5126016139984131,
-0.18479467928409576,
-0.0289412... | |
We've seen and watched the videos on how large distributed teams are using Git, but what about those of us who aren't distributed and who work in the office with the rest of our team? How should we be structuring our repository(ies) and our workflow?
Think about the traditional office which has been using Subversion o... | [
0.417192280292511,
-0.09269954264163971,
-0.031115295365452766,
0.42333143949508667,
-0.14059032499790192,
-0.24909645318984985,
0.014767400920391083,
0.054074060171842575,
-0.2139156609773636,
-0.40435323119163513,
-0.29206418991088867,
0.3027747869491577,
-0.08868749439716339,
0.09651827... | |
a single repository that's known as the "master" for the team. Or, there could be any combination of workflows with the possibilities a DVCS opens up.
How does your team work? What have you found to be a useful workflow?
I like the way the Yahoo! User Interface (YUI) team appears to be working. I am not at Yahoo, nor ... | [
0.46392688155174255,
-0.11176420748233795,
-0.1875322163105011,
0.3470984101295471,
-0.2775120139122009,
-0.18337254226207733,
0.13622485101222992,
-0.13301822543144226,
-0.3693113327026367,
-0.5393304824829102,
-0.23184546828269958,
0.21610434353351593,
0.28257980942726135,
-0.31594452261... | |
but I don't think so), the build system fires, rebuilds YUI and pushes a newly tagged commit to github, where the community can fork the code and work on it.
I am in favor of the central repository that represents the "official" status of the project. Certainly, if I want to share code with a co-worker, I can arrange ... | [
0.6079071760177612,
-0.028470411896705627,
-0.0022081092465668917,
0.19647082686424255,
0.06745295971632004,
-0.3238793909549713,
0.02514779008924961,
0.19103330373764038,
-0.017884651198983192,
-0.5222173929214478,
-0.30947330594062805,
0.477006196975708,
0.05992608144879341,
0.2778158485... | |
unit tests and build system. It also ensures that everyone knows where the most recent 'known good' version of the repository is, so that if the project needs to be built, published, or tested, there can be reasonable assurances that the 'master' repository is ready for that.
Git will support almost any workflow you c... | [
0.4642232656478882,
0.05088421329855919,
0.2081451117992401,
0.363826721906662,
0.3479824960231781,
-0.4432406425476074,
-0.0510466992855072,
-0.015922704711556435,
-0.03687378019094467,
-0.6025631427764893,
-0.30515721440315247,
0.574973464012146,
0.4504169523715973,
0.07292237877845764,
... | |
Surely this is possible? I have been hunting through PyQt tutorials and documentation but cannot find the answer to it. Probably I just need to phrase my search query differently.
[Edit]
Thanks PEZ for the answer - more details including use of the `.pyw` extension in [Python Programming on Win32 chapter 20](http://w... | [
0.6059083342552185,
0.21636991202831268,
0.28683677315711975,
0.16200608015060425,
0.005957666784524918,
-0.18426939845085144,
0.2835947573184967,
0.23246727883815765,
-0.3409314453601837,
-0.3184134364128113,
-0.11342423409223557,
0.3191394507884979,
-0.08299554139375687,
-0.0348760150372... | |
I want to write a function that returns the nearest next power of 2 number. For example if my input is 789, the output should be 1024. Is there any way of achieving this without using any loops but just using some bitwise operators?
Check the [Bit Twiddling Hacks](https://graphics.stanford.edu/~seander/bithacks.html#Ro... | [
0.16480302810668945,
0.09408783167600632,
0.4580926299095154,
0.09455790370702744,
0.11460835486650467,
0.21506008505821228,
0.197915717959404,
-0.39539799094200134,
-0.1279158741235733,
-0.6997387409210205,
-0.04713606461882591,
0.5839341878890991,
-0.2474808543920517,
-0.0537872873246669... | |
v |= v >> 2;
> v |= v >> 4;
> v |= v >> 8;
> v |= v >> 16;
> v++;
>
> ```
The extension to other widths should be obvious. | [
0.20574577152729034,
-0.25008460879325867,
0.5363452434539795,
-0.21445757150650024,
-0.022196592763066292,
-0.02556157484650612,
0.19305473566055298,
-0.5184907913208008,
-0.28360357880592346,
-0.49458327889442444,
-0.319670170545578,
0.6156520247459412,
0.006188950035721064,
0.1871311515... | |
I have a login page that has several textboxes on the page, one of them has the mode set to "password". This page worked previously but we've recently noticed (since an IE7 update) that the textbox that is specified as a password textbox is not as wide as the other textboxes on the page. If I remove the TextMode="Passw... | [
0.4487854540348053,
0.02662499062716961,
0.3086816668510437,
-0.2887657582759857,
0.147108793258667,
-0.23098397254943848,
0.5628747940063477,
0.004367597866803408,
0.08020413666963577,
-0.9157517552375793,
-0.06870705634355545,
0.7668624520301819,
-0.10440685600042343,
0.1534704715013504,... | |
Username
</td>
<td>
<asp:TextBox ID="txtUsername" runat="server" TabIndex="2"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<asp:TextBox ID="txtPassword" TextMode="Password" runat="server" TabIndex="3"></asp:TextBox>
</td>
</tr>
```
I've found one other person asking about this on... | [
-0.12781688570976257,
0.18100835382938385,
0.6919917464256287,
-0.14610591530799866,
-0.1763232797384262,
0.2648973762989044,
0.2015364170074463,
-0.1576761156320572,
-0.03778902441263199,
-1.0356793403625488,
-0.011355064809322357,
0.48429927229881287,
-0.3356296420097351,
-0.053051024675... | |
I'm going to be building a CSS menu bar into a site much like the one at <http://www.mightyleaftea.com>
I've heard of dropdown menus, but what is the type of menu at mightleaftea.com called?
Oh, and more recently <http://www.whitehouse.gov/>
This is programming related. I have to build the menu...
It looks like a re... | [
0.5191963911056519,
0.024840012192726135,
0.2156522423028946,
0.0065957834012806416,
0.02024102210998535,
-0.2351134568452835,
0.19885624945163727,
0.1784752905368805,
-0.26195675134658813,
-0.7549379467964172,
0.2447141706943512,
0.37126076221466064,
-0.3987385928630829,
0.120081499218940... | |
I have a Flash library with Sprite symbols composed of other sprites with design-time applied filters. I'm embedding those symbols into a Flex application like so:
```
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Bindable]
[Embed(source="Resource... | [
0.29495769739151,
-0.010069484822452068,
0.537523090839386,
0.04796779528260231,
-0.39000535011291504,
0.18117918074131012,
0.06998006254434586,
-0.5164173245429993,
-0.08567071706056595,
-0.44890743494033813,
0.046960409730672836,
0.5039743185043335,
-0.4663934111595154,
-0.17384712398052... | |
output.text = output.text + "\n" + msg;
}
]]>
</mx:Script>
<mx:VBox horizontalAlign="center" width="100%" height="100%" >
<mx:Image id="squareContainer" source="{squareContainer_class}"/>
<mx:Button click="log(squareContainer.width + ', ' + squareContainer.height);"/>
... | [
-0.13549219071865082,
-0.17445284128189087,
0.9676368236541748,
-0.1741570085287094,
-0.16500528156757355,
0.4191023111343384,
0.021090226247906685,
-0.41056957840919495,
-0.3202204406261444,
-0.6677882671356201,
-0.27217715978622437,
0.33692827820777893,
-0.11518692225217819,
-0.135249152... | |
100px height; however it contains a child sprite with a glow and blur filter, that cause the sprite to appear to be significantly larger than 100x100. Since I cannot know for certain the composition of the container, I cannot use BitmapData.generateFilterRect() to get at the filters applied to nested sprites.
How can... | [
0.09936980158090591,
-0.13688255846500397,
0.7770615816116333,
-0.012255706824362278,
-0.17222757637500763,
0.20625920593738556,
0.22385084629058838,
-0.31802934408187866,
-0.03488955646753311,
-0.6986808776855469,
0.0009388080216012895,
0.3083924651145935,
-0.07573483884334564,
0.08364456... | |
processDisplayObjectContainer(container, processFilters);
// translate to local
var local_point:Point = container.globalToLocal(new Point(final_rectangle.x, final_rectangle.y));
final_rectangle = new Rectangle(local_point.x, local_point.y, final_rectangle.width, final_rectangle.height);
return ... | [
-0.29732534289360046,
-0.40765199065208435,
0.7775291204452515,
-0.17829936742782593,
0.09267871826887131,
0.43622562289237976,
0.01975199207663536,
-0.0695296972990036,
-0.05662020295858383,
-0.7625125646591187,
-0.2557338774204254,
0.2168208360671997,
-0.21774645149707794,
0.405235201120... | |
for(var childIndex:int = 0; childIndex < container.numChildren; childIndex++){
displayObject = container.getChildAt(childIndex);
//If we are recursing all children, we also get the rectangle of children within these children.
if (displayObject is DisplayObjectContainer) {
... | [
-0.28107836842536926,
-0.20486022531986237,
0.27605557441711426,
0.03743833303451538,
0.2578657865524292,
0.5818319320678711,
0.21772874891757965,
-0.07838501781225204,
-0.14030316472053528,
-0.7420549392700195,
-0.07845690101385117,
0.02274281345307827,
0.14451822638511658,
0.577395319938... | |
var displayObject_rectangle:Rectangle = processDisplayObjectContainer(displayObject as DisplayObjectContainer, processFilters);
// Now, stepping out, uniting the result creates a rectangle that surrounds siblings
if (result_rectangle == null) {
result_rectangle = di... | [
0.05446433275938034,
-0.46777015924453735,
0.4093364477157593,
-0.23086537420749664,
0.1352338194847107,
0.005398712586611509,
0.03974984586238861,
-0.6004194021224976,
-0.1922936737537384,
-0.6128476858139038,
-0.15104904770851135,
0.09774686396121979,
-0.4087919294834137,
0.5748466253280... | |
} else {
result_rectangle = result_rectangle.union(displayObject_rectangle);
}
} | [
-0.14373639225959778,
-0.3308190703392029,
0.29772835969924927,
-0.2964574992656708,
0.05266587808728218,
0.007512280717492104,
-0.19640634953975677,
-0.023598922416567802,
-0.11200204491615295,
-0.5960002541542053,
-0.31814712285995483,
0.5229772925376892,
-0.26774686574935913,
0.19550360... | |
}
// Get bounds of current container, at this point we're stepping out of the nested DisplayObjects
var container_rectangle:Rectangle = container.getBounds(container.stage);
if (result_rectangle == null) {
result_rectangle = container_rectangle.clone();
} else {
... | [
0.05038496479392052,
-0.30625811219215393,
0.5805044174194336,
-0.29978880286216736,
0.36181357502937317,
-0.051985133439302444,
-0.03134666383266449,
-0.26927125453948975,
-0.012328589335083961,
-0.8015575408935547,
-0.2419367879629135,
0.38186395168304443,
-0.2684745490550995,
0.51139497... | |
}
// Include all filters if requested and they exist
if ((processFilters == true) && (container.filters.length > 0)) {
var filterGenerater_rectangle:Rectangle = new Rectangle(0,0,result_rectangle.width, result_rectangle.height);
var bmd:BitmapData = new BitmapData(result_rectang... | [
0.22902269661426544,
-0.6358566880226135,
0.3825596868991852,
-0.29196298122406006,
0.23318946361541748,
-0.03161504492163658,
0.22444099187850952,
-0.5956215262413025,
-0.17634381353855133,
-0.5903803706169128,
-0.19855310022830963,
0.34971052408218384,
-0.6462756395339966,
0.025549152866... | |
var filter_minimumY:Number = 0;
var filtersLength:int = container.filters.length;
for (var filtersIndex:int = 0; filtersIndex < filtersLength; filtersIndex++) {
var filter:BitmapFilter = container.filters[filtersIndex];
var filter_rectangle... | [
-0.10642633587121964,
-0.7390256524085999,
0.6048034429550171,
-0.2961783707141876,
-0.01542715635150671,
0.04603902995586395,
-0.0534767210483551,
-0.44370150566101074,
-0.2899254262447357,
-0.4074620008468628,
-0.312560111284256,
0.24667169153690338,
-0.6618654727935791,
-0.0617030747234... | |
= bmd.generateFilterRect(filterGenerater_rectangle, filter);
filter_minimumX = filter_minimumX + filter_rectangle.x;
filter_minimumY = filter_minimumY + filter_rectangle.y;
filterGenerater_rectangle = filter_rectangle.clone();
filterGenerater_rectangle.x... | [
0.327979177236557,
-0.3555185794830322,
0.3268144130706787,
-0.46837282180786133,
-0.01618875190615654,
-0.041682664304971695,
-0.0787070095539093,
-0.3272334039211273,
-0.11367838084697723,
-0.6595839858055115,
-0.27840298414230347,
0.2138780802488327,
-0.7087587714195251,
0.3142592310905... | |
bmd = new BitmapData(filterGenerater_rectangle.width, filterGenerater_rectangle.height, true, 0x00000000);
}
// Reposition filter_rectangle back to global coordinates
filter_rectangle.x = result_rectangle.x + filter_minimumX;
filter_rectangle.y = | [
0.1940799355506897,
-0.6499319076538086,
0.6401355862617493,
-0.29444631934165955,
-0.019367221742868423,
-0.19532592594623566,
0.14495614171028137,
-0.3881879448890686,
-0.29568037390708923,
-0.5825285911560059,
-0.14218704402446747,
0.1711135357618332,
-0.6348923444747925,
0.207275673747... | |
result_rectangle.y + filter_minimumY;
result_rectangle = filter_rectangle.clone();
}
} else {
throw new Error("No displayobject was passed as an argument");
}
return result_rectangle;
}
``` | [
-0.05567847564816475,
-0.27817606925964355,
0.29915815591812134,
-0.22040371596813202,
-0.14035002887248993,
0.06255082786083221,
0.10084743052721024,
-0.1230902373790741,
-0.2222498208284378,
-0.6758884787559509,
-0.19778627157211304,
0.24923020601272583,
-0.4702392816543579,
0.2220854014... | |
Firefox 3 has introduced a new behavior in which line-height, when unset, differs from how other browsers render it. Thus, a critical section maybe render too high in that browser. Setting a global percentage doesn't work, since it's basis is different. Setting a unitless value such as "1" doesn't work either. Is there... | [
-0.2525145411491394,
0.028620067983865738,
0.6287713050842285,
-0.2469627410173416,
-0.17422887682914734,
-0.018613671883940697,
0.5975174307823181,
-0.5878077745437622,
0.045753635466098785,
-0.5469303727149963,
-0.23396062850952148,
0.3441814184188843,
-0.6455977559089661,
-0.63183444738... | |
to normalize the spacing between browsers. If this is not working, can you provide a more-detailed description of your stylesheet?
It's hard (impossible?) to get "pixel-perfect" results, but in order to get results that are as predictable as possible, I try to use a line height that produces a nice round value when mu... | [
0.0907401442527771,
0.05344890058040619,
0.7601234316825867,
-0.17997866868972778,
-0.2750966250896454,
0.21649621427059174,
0.2748776078224182,
-0.29260846972465515,
-0.020299745723605156,
-0.6527625322341919,
-0.25173065066337585,
0.43734487891197205,
-0.3075767159461975,
-0.214585587382... | |
out to a nice, even 24 pixels. Users can and do change the default font size or the page zoom, though, and different browsers have different methods of scaling the page. Nevertheless, I think I've had reasonable success for a majority of the users. If I can't make the line height come out exactly, then I shoot for a li... | [
0.4566386938095093,
-0.12025031447410583,
0.4849431812763214,
-0.31874725222587585,
-0.1447804570198059,
0.09153486043214798,
0.28939124941825867,
-0.31328314542770386,
-0.26812630891799927,
-0.6253485679626465,
0.18733122944831848,
0.4511890709400177,
-0.25065454840660095,
-0.214393571019... | |
font-size: 100%;
line-height: 150%;
}
p
{
font-size: 75%;
}
```
Starting from a base font size of 16 pixels, the line height will be 24 pixels. Within a `<p>` element the font size becomes 12 pixels, but the line height does **not** become 18 pixels, rather it remains 24 pixels. This is the difference betwee... | [
-0.06194041669368744,
0.16877974569797516,
1.0092483758926392,
-0.3269904851913452,
-0.18174795806407928,
0.7595934867858887,
0.25460198521614075,
-0.38763901591300964,
-0.0788188949227333,
-0.8149324655532837,
-0.494189590215683,
0.574955403804779,
0.06514503061771393,
-0.2507674396038055... | |
In SCons, my command generators create ridiculously long command lines. I'd
like to be able to split these commands across multiple lines for
readability in the build log.
e.g. I have a SConscipt like:
```
import os
# create dependency
def my_cmd_generator(source, target, env, for_signature):
return r'''echo its... | [
0.05902913957834244,
-0.027915464714169502,
0.6238074898719788,
-0.4447742700576782,
0.18412458896636963,
0.059912167489528656,
0.3527136445045471,
-0.2971830666065216,
-0.4931453764438629,
-0.6367474794387817,
-0.22952011227607727,
0.5068967938423157,
-0.30780327320098877,
0.0100950784981... | |
all \
its a small world after all
its a small world after all
sh: line 1: its: command not found
scons: *** [foo.foo] Error 127
scons: building terminated because of errors.
```
Doing this in the python shell with os.system and os.popen works -- I get a readable command string and the sub-shell process interprets all... | [
-0.22208361327648163,
0.2403302639722824,
0.6176780462265015,
-0.3408381938934326,
-0.03251397982239723,
0.10806132853031158,
0.3682696521282196,
-0.233576238155365,
-0.3489004969596863,
-0.5478507876396179,
-0.4420885741710663,
0.29153579473495483,
-0.3228648900985718,
0.4417225122451782,... | |
I do this in SCons, it executes each line one at a time, which is
not what I want.
I also want to avoid building up my commands into a shell-script and
then executing the shell script, because that will create string
escaping madness.
Is this possible?
UPDATE:
cournape,
Thanks for the clue about the $CCCOMSTR.... | [
0.3479112386703491,
-0.09414735436439514,
0.22213883697986603,
-0.10799642652273178,
0.15186525881290436,
-0.07765045017004013,
0.33105185627937317,
0.11382514983415604,
-0.49792709946632385,
-0.522607684135437,
0.05438099801540375,
0.47841307520866394,
-0.38095343112945557,
0.034434210509... | |
small world after all \
its a small world after all
```
?
Thanks to cournape's tip about Actions versus Generators ( and eclipse pydev debugger), I've finally figured out what I need to do. You want to pass in your function to the 'Builder' class as an 'action' not a 'generator'. This will allow you to actually e... | [
-0.03862568736076355,
-0.09289179742336273,
0.5629348754882812,
-0.34416335821151733,
0.11241261661052704,
0.039068762212991714,
-0.03162595257163048,
-0.3731921911239624,
-0.2541987895965576,
-0.5960769057273865,
-0.3003692328929901,
0.5550570487976074,
-0.1379888355731964,
-0.02487795241... | |
print cmd
return os.system(cmd)
my_cmd_builder = Builder(
action=my_action, # <-- CRUCIAL PIECE OF SOLUTION
suffix = '.foo')
env = Environment()
env.Append( BUILDERS = {'MyCmd' : my_cmd_builder } )
my_cmd = env.MyCmd('foo.foo',os.popen('which bash').read().strip())
```
This SConstruct file will produc... | [
-0.1273951232433319,
0.1955355852842331,
0.7321772575378418,
-0.38760262727737427,
0.02501683495938778,
0.38933637738227844,
0.20838342607021332,
-0.3159664273262024,
-0.4594584107398987,
-0.6227051019668579,
-0.5038704872131348,
0.4139074385166168,
-0.29639682173728943,
-0.139517873525619... | |
switching from a 'generator' to an 'action' means the target you're building no longer has an implicit dependency on the actual string that you are passing to the sub-process shell. You can re-create this dependency by adding the string into your environment.
e.g., the solution that I personally want looks like:
```... | [
0.2375505119562149,
-0.20732088387012482,
0.35702598094940186,
-0.4879366457462311,
0.21472996473312378,
0.3033004105091095,
0.2666461765766144,
-0.38756242394447327,
-0.29529911279678345,
-0.6244606971740723,
-0.1999761462211609,
0.6654536128044128,
-0.5639164447784424,
0.1215110570192337... | |
Environment()
env['_MY_CMD'] = cmd # <-- CREATE IMPLICIT DEPENDENCY ON CMD STRING
env.Append( BUILDERS = {'MyCmd' : my_cmd_builder } )
my_cmd = env.MyCmd('foo.foo',os.popen('which bash').read().strip())
``` | [
0.15881602466106415,
0.2768510580062866,
0.3983500599861145,
-0.38783594965934753,
0.2443772405385971,
0.04451926797628403,
0.2619190216064453,
-0.024776803329586983,
-0.19255699217319489,
-0.7956236004829407,
-0.1877395361661911,
0.8869968056678772,
-0.45393556356430054,
0.042779274284839... | |
I have a sparsely populated matrix that's the result of a series of left joins. I'd like to collapse it down to a single row (see below). The only solution I've seen to this is a GROUP BY on the PK and a MAX() on ColA, ColB etc. Performance is a huge issue here, so I'd like to know if anyone has a better solution. The ... | [
0.023080870509147644,
0.15499864518642426,
0.47286489605903625,
0.02782580815255642,
-0.2492717206478119,
0.2991883158683777,
-0.14673006534576416,
-0.13564586639404297,
-0.5313656330108643,
-0.5663966536521912,
0.04531250149011612,
0.08423396199941635,
-0.28905951976776123,
0.128293886780... | |
at any given time.
Join that produces the SPM (no, my tables/cols aren't really named that):
```
SELECT
mainTable.custNbr
, mainTable.custPartNbr
, [lkup colA].usr_def_attr as [colA]
, [lkup colB].usr_def_attr as [colB]
, [lkup colC].usr_def_attr as [colC]
, [lkup colD].... | [
-0.3926772475242615,
0.10730050504207611,
0.6560743451118469,
-0.09231779724359512,
0.038018397986888885,
-0.03602665290236473,
-0.020843131467700005,
0.10266996920108795,
-0.411079466342926,
-0.6780255436897278,
-0.7724111676216125,
-0.09364894032478333,
-0.4554654061794281,
0.24665966629... | |
LEFT JOIN db1.dbo.lookup as [colA]
ON mainTable.lookupValue = [colA].lkup_id
and mainTable.cmply_typ_lkup_id = 166697
LEFT JOIN db1.dbo.lookup as [lkup colB]
ON mainTable.lookupValue = [lkup colB].lkup_id
and mainTable.cmply_typ_lkup_id = 166700
LEFT JOIN db1.dbo.looku... | [
-0.44046348333358765,
0.28839749097824097,
0.4615721106529236,
-0.16881750524044037,
-0.39093342423439026,
0.4282354414463043,
0.04599670693278313,
-0.02328253909945488,
-0.5213968753814697,
-0.2490631490945816,
-0.3759225606918335,
0.02764597348868847,
-0.5064985752105713,
0.1558150202035... | |
and mainTable.cmply_typ_lkup_id = 166699
LEFT JOIN db1.dbo.lookup as [lkup colD]
ON mainTable.lookupValue = [lkup colD].lkup_id
and mainTable.cmply_typ_lkup_id = 166696
LEFT JOIN db1.dbo.lookup as [lkup colE]
ON mainTable.lookupValue = [lkup colE].lkup_id
and mainTable.... | [
-0.32726573944091797,
0.23474735021591187,
0.3666636049747467,
-0.2086310237646103,
-0.05447527393698692,
0.4126265347003937,
-0.08992145955562592,
-0.21366725862026215,
-0.4548984169960022,
-0.2305527925491333,
-0.5741707682609558,
0.05557473003864288,
-0.439232736825943,
0.06545887142419... | |
ColD ColE
204045 NULL NULL NULL NULL 23
204045 NULL NULL NULL 35 NULL
204045 NULL NULL 35 NULL NULL
204045 NULL 23 NULL NULL NULL
204045 23 NULL NULL NULL NULL
```
Desired result:
```
PKCol ColA | [
-0.10902956128120422,
-0.03877933323383331,
0.44368821382522583,
0.2947412133216858,
-0.10801749676465988,
0.17728427052497864,
0.1875905990600586,
-0.028218768537044525,
-0.364432156085968,
0.08098001033067703,
-0.47024840116500854,
0.20799298584461212,
-0.6672649383544922,
0.031856920570... | |
ColB ColC ColD ColE
20405 23 23 35 35 23
```
I rewrote this as a PIVOT and saw a performance increase of about 30%. It wasn't easy to do, had to read [**this post**](http://www.simple-talk.com/community/blogs/andras/archive/2007/09/14/37265.aspx) very carefully. PIVOTs are weird. | [
-0.12198741734027863,
-0.0635763481259346,
0.8026789426803589,
-0.055846307426691055,
0.06043948233127594,
-0.05609810724854469,
-0.10381757467985153,
-0.31297019124031067,
-0.34624773263931274,
-0.35696524381637573,
0.25498050451278687,
0.20359036326408386,
0.00721992552280426,
-0.0319751... | |
I have this div:
```
<div class="inauguration-image">
I do not want this text to display, just here for description
</div>
```
Here is the css for it:
```
.inauguration-image {
margin-top:5px;
margin-left:auto;
margin-right:auto;
background: url("/images/inauguration_block.png") no-repeat;
pos... | [
0.42944177985191345,
0.4908478558063507,
0.41249600052833557,
0.008980050683021545,
-0.15321077406406403,
-0.08444052934646606,
0.02625267021358013,
-0.16072483360767365,
0.033707041293382645,
-0.8165543675422668,
-0.2229142189025879,
0.2110724151134491,
-0.3751108646392822,
0.187844172120... | |
padding-top:552px;
overflow:hidden;
}
```
Setting `height:0` and `overflow:hidden` hides your text; `padding-top:552px` makes the element large enough to display your background image, anyway. This is a very portable solution. | [
-0.12797270715236664,
0.018961071968078613,
0.6127238273620605,
-0.05749932676553726,
0.1782291829586029,
-0.05455365404486656,
0.1150815486907959,
-0.36224445700645447,
-0.2668391466140747,
-0.2559524476528168,
-0.39812254905700684,
0.615182638168335,
-0.13022282719612122,
-0.600130259990... | |
What are the required flags for tlibimp.exe to properly mimic choosing
'Component -> Import ActiveX Control -> Install'
in the Borland C++ Builder 5 IDE? I currently pass tlibimp an ocx and -L-, but there is a loss in funcionality when compared with results of importing it manually.
Is it possible that this user does... | [
0.3196628987789154,
0.09127593785524368,
0.32337599992752075,
-0.11216410249471664,
-0.19234110414981842,
-0.2029387205839157,
0.35143035650253296,
-0.11216907203197479,
-0.03538546338677406,
-0.5439547300338745,
-0.025823432952165604,
0.6211543679237366,
-0.395251601934433,
-0.05114699527... | |
How do I convert the following string to a [`datetime`](https://docs.python.org/3/library/datetime.html#datetime-objects) object?
```
"Jun 1 2005 1:33PM"
```
[`datetime.strptime`](https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime) parses an input string in the user-specified format into a *t... | [
-0.14364194869995117,
0.09414511919021606,
0.5760735869407654,
-0.3146677613258362,
-0.11009109765291214,
0.18223290145397186,
0.23739942908287048,
-0.7154627442359924,
-0.038298167288303375,
-0.4892260730266571,
-0.11147955805063248,
0.6354329586029053,
-0.2545996606349945,
-0.15379019081... | |
Part of the system I'm working on at the moment involves a log in mysql, with counts being frequently updated.
The data being inserted is of the format:
```
date | name | count |
-----------+------+-------+
2009-01-12 | alan | 5 |
2009-01-12 | dave | 2 |
2009-01-12 | mary | 1 |
```
This data is pa... | [
0.21697500348091125,
0.08352471888065338,
0.4904153347015381,
0.09423134475946426,
0.29366055130958557,
0.2161039113998413,
0.12160206586122513,
-0.16250498592853546,
-0.21526268124580383,
-0.3852362334728241,
-0.1516803354024887,
0.24223335087299347,
-0.0345783568918705,
0.224031865596771... | |
table for any records for a given `date` and `name` pair before deciding on an update or insert.
The problem we're having is, as this table grows, the response time isn't getting any better, and we want to reduce the number of queries as much as possible.
The system was recently updated to run a [`INSERT ... ON DUPLI... | [
0.25833848118782043,
-0.02357483096420765,
0.29801204800605774,
0.08003512769937515,
0.23812168836593628,
0.18795813620090485,
0.13942484557628632,
-0.07576975226402283,
-0.4789276719093323,
-0.52428138256073,
-0.07967810332775116,
0.25030526518821716,
-0.2245418280363083,
0.43158018589019... | |
update a row, if none match then perform the insert?
---
**Edit**
I didn't make it too clear above, what I would like to do when I have the record `('2009-01-12','alan','5')` for example, is:
```
UPDATE table SET count = count+5 WHERE date = '2009-01-12' and name = 'alan';
```
and if the above fails, insert the a... | [
-0.09850218147039413,
0.2901648283004761,
0.4443696439266205,
-0.10249987244606018,
0.11106470972299576,
0.04176006466150284,
0.266747385263443,
-0.21189036965370178,
-0.37490928173065186,
-0.367683082818985,
-0.15086354315280914,
0.8069978952407837,
-0.28843820095062256,
0.238254621624946... | |
KEY UPDATE` does do the job, but I'm asking if there's a more optimal way to do this.
Sorry for any confusion resulting from the poor original phrasing!
It's just the same. With "UPDATE ... ON NO KEY INSERT", the database engine will still have to check first if there is something to update. Hence no need for a separa... | [
0.13726897537708282,
0.17654091119766235,
0.3736279010772705,
0.012936941348016262,
0.10009974986314774,
-0.37168705463409424,
0.23791204392910004,
0.1229364424943924,
0.05896363779902458,
-0.45937588810920715,
-0.28494396805763245,
0.8721655607223511,
-0.26891741156578064,
0.0838122293353... | |
I’ve never worked on software where I needed to use design patterns. According to Paul Graham’s [Revenge of the Nerds](http://www.paulgraham.com/icad.html) essay, design patterns are a sign of not enough abstraction.
To quote him directly, “For example, in the OO world you hear a good deal about "patterns". I wonder ... | [
0.5578071475028992,
0.36817410588264465,
-0.6070847511291504,
-0.017460675910115242,
-0.11737850308418274,
0.17280064523220062,
0.43398264050483704,
0.09216868132352829,
-0.18809527158737183,
-0.44942671060562134,
-0.10470057278871536,
0.3623928725719452,
-0.33170562982559204,
0.1126968413... | |
sign, to me at least, that I'm using abstractions that
aren't powerful enough-- often that I'm generating by hand the expansions of some macro that I need to write.”
I was just wondering if everyone thought design patterns are overused and are symptoms of not having enough abstraction in your code.
I don't think the ... | [
0.7216033935546875,
0.35548126697540283,
-0.06611596047878265,
0.27859413623809814,
0.01671341434121132,
-0.09312893450260162,
0.282842218875885,
0.22577594220638275,
-0.3279762268066406,
-0.6827846169471741,
0.21656833589076996,
0.31411781907081604,
-0.3699389398097992,
-0.053479358553886... | |
you know what approach works, you use that approach because your skill and experience tell you it's appropriate. That's a pattern, and it's okay.
But it's equally possible for a programmer who's less skilled to find one way to do things and try to cram every problem they come across into that mold, because they don't ... | [
0.5179262161254883,
0.2982865571975708,
-0.3105163276195526,
0.32203853130340576,
0.1321059614419937,
-0.05696973204612732,
0.28715354204177856,
0.12960191071033478,
0.026582790538668633,
-0.4987546503543854,
0.18094876408576965,
0.5274877548217773,
-0.49511149525642395,
-0.054854225367307... | |
Hey all - I have an app where I'm authenticating the user. They pass username and password. I pass the username and password to a class that has a static method. For example it'm calling a method with the signature below:
```
public class Security
{
public static bool Security.Member_Authenticate (string username, st... | [
0.34443598985671997,
0.37035614252090454,
0.42581796646118164,
0.1273907572031021,
-0.3726250231266022,
-0.09714508801698685,
0.3726629614830017,
-0.17422445118427277,
-0.28874024748802185,
-0.3789551258087158,
-0.08966320753097534,
0.5028570890426636,
-0.21815833449363708,
0.0984162539243... | |
the person before them was successfully authenticated ASP.Net returns a mismatched result due to the method being static? I've read of issues with static properties vs viewstate but am a bit confused on static methods. If this is a bad way of doing this,what's the prefered way?
This will not happen. When a method is St... | [
0.47028401494026184,
-0.22552490234375,
0.14231468737125397,
0.4432547092437744,
-0.11293410509824753,
-0.4302518367767334,
0.6583860516548157,
-0.1333283632993698,
-0.4398227334022522,
-0.3669981360435486,
-0.005046233534812927,
0.6702210307121277,
-0.1333242803812027,
0.1332130879163742,... | |
I'm working with a database and I want to start using LINQ To SQL with it. The database doesn't have any FKs inside of it right now for performance reasons. We are inserting millions of rows at a time to the DB which is why there aren't any FKs.
So I'm thinking I'm going to add nonenforced FKs to the database to descr... | [
0.29126474261283875,
0.27281811833381653,
0.2602865695953369,
0.11024553328752518,
-0.07382974773645401,
-0.024470113217830658,
0.310746967792511,
-0.1574072539806366,
-0.24555814266204834,
-0.5950829982757568,
0.30386221408843994,
0.42922335863113403,
-0.19915947318077087,
0.1387223005294... | |
for the nonperformance intesive stuff. 80% of the data access is through stored procs on production. But for writing unit tests and other non performance critical tasks, LINQ-To-SQL makes data access really easy.
Update: Here is how you add a nonenforced FK
ALTER TABLE [dbo].[ACI] WITH NOCHECK ADD CONSTRAINT [FK\_ACI... | [
-0.16916388273239136,
0.17919480800628662,
0.46457380056381226,
0.33834579586982727,
-0.23196794092655182,
0.3235245943069458,
0.12757858633995056,
-0.4202119708061218,
-0.3218780755996704,
-0.20592568814754486,
0.1032181829214096,
0.27561765909194946,
-0.2844419479370117,
0.20204396545886... | |
one without. Do your normal million-row-load into each database, and measure your transactions per second. That way you'll know for sure in your own environment. | [
0.2818073630332947,
-0.2028798907995224,
-0.07170294970273972,
0.37190768122673035,
0.026129750534892082,
-0.011750520206987858,
-0.2052725851535797,
-0.24491219222545624,
-0.255912184715271,
-0.48484742641448975,
0.16027654707431793,
0.6465274691581726,
-0.34614723920822144,
-0.0694886445... | |
i have a problem, i'm working on a gallery php script and need help, i have a picture, it has a lightgray border around, and if theres a mouseover event, i want the border to turn gray. how can i do that?
thanks in advance
Use the :hover pseudo class. For example:
```
<html>
<head>
<style>
IMG.HoverBorder... | [
0.08150725066661835,
0.0057518696412444115,
0.752050518989563,
0.055062659084796906,
0.07197843492031097,
-0.1473226696252823,
0.06178667023777962,
0.056398048996925354,
-0.2813117206096649,
-0.9940242171287537,
0.009588547982275486,
0.3320612609386444,
-0.15416079759597778,
-0.16368947923... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.