text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
supports client-side validation using JavaScript, where the JavaScript Regex engine is used. The difference you see is the difference between the JavaScript and the .NET regex implementation.
You can disable client-side validation and thus force the validator to use the .NET regex engine, at the price of the additional... | [
0.2206166833639145,
-0.0634244903922081,
0.21730457246303558,
0.18081820011138916,
0.05010758340358734,
-0.34936651587486267,
0.24470359086990356,
-0.25031578540802,
-0.1019374206662178,
-0.22389796376228333,
-0.14839711785316467,
0.753201425075531,
-0.23726998269557953,
-0.10384551435709,... | |
Let say I have a project that I have released under GPL, with the sources available to anyone. Later I find a very similar product, but as closed source, distributed binary-only by someone else.
Is there a good way to find out they are using my source code in their product?
If the solution is to somehow reverse-engin... | [
0.5536045432090759,
0.2785966694355011,
-0.20885694026947021,
0.1464347392320633,
0.15837442874908447,
-0.3643325865268707,
0.15480680763721466,
0.21705207228660583,
-0.27228468656539917,
-0.35502544045448303,
-0.050104666501283646,
0.5848180651664734,
-0.4259997606277466,
0.07885276526212... | |
blatantly obvious that the code is lifted.
Look for Software Birthmarks. This method tries to establish links between software based on binary code or dynamic behavior. Christian Collberg is an expert on Software Watermarks, from which birthmarks were derived. This is all still in research land. | [
0.2924080193042755,
0.25672072172164917,
0.020845646038651466,
0.17933064699172974,
0.08574927598237991,
0.011557694524526596,
0.35517725348472595,
-0.26442956924438477,
-0.5263817310333252,
-0.3502849042415619,
0.0998704582452774,
0.06200914829969406,
-0.12155672907829285,
0.2040891498327... | |
I have a Delphi application similar to [Taskbar Shuffle](http://www.freewebs.com/nerdcave/taskbarshuffle.htm) that includes a hook dll.
**EDIT**: This hook DLL communicates with the main app by sending windows messages.
I want to add support to XP and Vista x64 and my initial idea was to convert the dll to 64-bit (co... | [
0.13882097601890564,
-0.12807336449623108,
0.3159005641937256,
-0.25004082918167114,
-0.3082016706466675,
-0.029266124591231346,
0.2184995412826538,
-0.06817524880170822,
-0.30766335129737854,
-0.7119375467300415,
-0.015332860872149467,
0.5392895936965942,
-0.42293235659599304,
-0.10499540... | |
pointed by Lars Truijens on one of the answers below.
No. You'll have to compile two versions: 64-bit and 32-bit. | [
0.03442373499274254,
0.5046361684799194,
0.235549658536911,
0.3819175660610199,
0.049735311418771744,
0.03819224238395691,
0.14018556475639343,
-0.030269822105765343,
-0.17783692479133606,
-0.36327797174453735,
-0.12178487330675125,
0.07429885864257812,
-0.22982069849967957,
-0.07328440248... | |
I need to use a datetime.strptime on the text which looks like follows.
"Some Random text of undetermined length Jan 28, 1986"
how do i do this?
Using the ending 3 words, no need for regexps (using the `time` module):
```
>>> import time
>>> a="Some Random text of undetermined length Jan 28, 1986"
>>> datetuple = a.... | [
-0.01978050358593464,
0.2811709940433502,
0.7990387082099915,
-0.19411951303482056,
0.05308942124247551,
0.19931620359420776,
0.32497861981391907,
-0.21029619872570038,
-0.19097797572612762,
-0.4086134135723114,
0.1639554351568222,
0.5276561379432678,
-0.3263566195964813,
0.100810043513774... | |
There are many drawbacks to using `void *` in C (memory related, type related, efficiency wise ...). In spite of them we use them a lot for the flexibility they provide.
List the disadvantages/drawbacks using `void *` (and preferred solution in C - if possible).
**EDIT:**
please go through the follwoing link:
<http:/... | [
0.020591741427779198,
0.1373205929994583,
0.19385938346385956,
-0.059361930936574936,
-0.13337726891040802,
-0.13203395903110504,
0.17920035123825073,
0.0035624143201857805,
-0.22516292333602905,
-0.45744404196739197,
-0.029419291764497757,
0.7101659178733826,
-0.24292559921741486,
0.20615... | |
Suppose you are implementing a publication database and creating migrations to represent different publications. Each publication has a "year" associated with it.
`t.column :year, ???`
Would this year be best represented as an integer, date, or datetime?
I would recommend just going with Rails conventions and doing a... | [
0.07221297174692154,
0.1307569295167923,
0.2501792311668396,
0.06526481360197067,
0.1653401255607605,
-0.09632990509271622,
-0.10109755396842957,
0.23082518577575684,
-0.5446718335151672,
-0.48182210326194763,
-0.046012237668037415,
0.18035610020160675,
-0.08911977708339691,
0.240162909030... | |
In an HTML table, the `cellpadding` and `cellspacing` can be set like this:
```html
<table cellspacing="1" cellpadding="1">
```
How can the same be accomplished using CSS?
**Basics**
For controlling "cellpadding" in CSS, you can simply use `padding` on table cells. E.g. for 10px of "cellpadding":
```css
td {
... | [
-0.23574751615524292,
-0.02747449465095997,
0.6529004573822021,
-0.044959358870983124,
0.03618277236819267,
-0.026248378679156303,
0.11107182502746582,
-0.4517614543437958,
-0.36341550946235657,
-0.8246207237243652,
-0.13330107927322388,
0.33254122734069824,
-0.19232723116874695,
-0.203127... | |
browsers except for Internet Explorer up through Internet Explorer 7, where you're almost out of luck. I say "almost" because these browsers still support the `border-collapse` property, which merges the borders of adjoining table cells. If you're trying to eliminate cellspacing (that is, `cellspacing="0"`) then `borde... | [
-0.43013685941696167,
-0.10001659393310547,
0.5249855518341064,
-0.16457590460777283,
0.21090973913669586,
-0.447420597076416,
0.5452859997749329,
0.333609014749527,
-0.39701709151268005,
-1.0351133346557617,
-0.3756170868873596,
0.1524731069803238,
-0.22950123250484467,
0.1623236536979675... | |
you can use `border-collapse:collapse`.
```css
table {
border-spacing: 0;
border-collapse: collapse;
}
```
Note: For a great overview of CSS properties that one can apply to tables and for which browsers, see this [fantastic Quirksmode page](http://www.quirksmode.org/css/tables.html). | [
-0.08546529710292816,
-0.03741919621825218,
0.28520506620407104,
0.30453813076019287,
0.2739906311035156,
-0.2918994128704071,
0.23134508728981018,
0.2641746401786804,
-0.7367090582847595,
-0.468448281288147,
-0.26688966155052185,
0.18711571395397186,
-0.17259320616722107,
0.14120610058307... | |
What is the best method for date of birth selector?
* 3 text inputs (month / day / year) or one mask input. User MUST use keyboard
* 3 select boxes. User can use keyboard or mouse.
* One nice [datepicker](http://jqueryui.com/demos/datepicker/).
I want to know what is the most usable and problem free solution, so user... | [
0.16223561763763428,
-0.08019931614398956,
0.309045672416687,
0.17391079664230347,
0.05706127732992172,
0.31124597787857056,
-0.12738046050071716,
-0.00654802517965436,
-0.15961408615112305,
-0.7390281558036804,
0.16887684166431427,
0.37038636207580566,
0.29866328835487366,
-0.100518055260... | |
of text input and datepicker. | [
-0.14704358577728271,
0.077949658036232,
0.12559466063976288,
0.05654430389404297,
0.22868070006370544,
-0.12424882501363754,
-0.22041520476341248,
0.0012681910302489996,
-0.21649231016635895,
-0.5559477210044861,
-0.36118417978286743,
0.4580012261867523,
-0.024456264451146126,
0.207152962... | |
I need the perfect algorithm or C# function to calculate the difference (distance) between 2 decimal numbers.
For example the difference between:
**100** and **25** is **75**
**100** and **-25** is **125**
**-100** and **-115** is **15**
**-500** and **100** is **600**
Is there a C# function or a very ele... | [
-0.1006990373134613,
0.19206982851028442,
0.44192564487457275,
0.08852364867925644,
-0.04524241387844086,
0.19649943709373474,
0.16671854257583618,
-0.40437421202659607,
-0.09300632774829865,
-0.7297466993331909,
0.0797438845038414,
0.48697584867477417,
0.08875247091054916,
0.0088291736319... | |
I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2005 edition) to set one include path that Visual Studio will search also the sub-directories for header files?
Setting the folder search paths in the Visual Studio settings to fix an include issue i... | [
0.434934139251709,
0.12408251315355301,
-0.05909382924437523,
0.07416162639856339,
-0.18168824911117554,
-0.4305590093135834,
0.19437284767627716,
-0.1787673532962799,
-0.4611140191555023,
-0.4876951277256012,
-0.06103440001606941,
0.4281131625175476,
-0.27873000502586365,
-0.3281350433826... | |
sub-directories (relative to your including code) are fixed:
* Add the "base folder" to the project (*project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories"*)
* Add the subdirectories to the #include statements , i.e. `#include "subdirectory/somefile... | [
0.2527444660663605,
-0.07777539640665054,
0.23224712908267975,
0.3419550061225891,
0.08837627619504929,
-0.11173421889543533,
0.10936596244573593,
-0.16202755272388458,
-0.22543023526668549,
-0.35487037897109985,
-0.5643298029899597,
0.09200209379196167,
-0.21421635150909424,
-0.0675451308... | |
I have a problem and i would like to learn the correct way to solve this.
I have a Data Objeckt
```
class LinkHolder {
public string Text;
public string Link;
}
```
I would like to present to the user a RadioButton list that uses the LinkHolder.Text value as descriptive text.
Then on the postback, i would ... | [
0.29451707005500793,
0.2911069393157959,
0.6153784990310669,
0.042328037321567535,
-0.04105699062347412,
-0.6217347383499146,
0.31794992089271545,
-0.3520859181880951,
0.09896454215049744,
-0.6581839323043823,
-0.22283852100372314,
0.9944542050361633,
-0.39974087476730347,
0.25034976005554... | |
You can try to cast the selectedItem into a LinkHolder. | [
0.4358956217765808,
-0.3952559530735016,
0.18720853328704834,
0.5573503375053406,
-0.041024819016456604,
-0.26043352484703064,
-0.18788640201091766,
0.08216670155525208,
-0.02813292294740677,
-0.5951487421989441,
0.06222006306052208,
0.138362854719162,
0.0398239940404892,
0.177797600626945... | |
I'm trying to make a proxy object in IronPython, which should dynamically present underlying structure. The proxy itself shouldn't have any functions and properties, I'm trying to catch all the calls in the runtime. Catching the function calls is easy, I just need to define **getattr**() function for my object, and che... | [
-0.03211018443107605,
0.14200808107852936,
0.41378873586654663,
-0.23325183987617493,
0.08466163277626038,
0.20224729180335999,
0.06472215056419373,
0.038402456790208817,
0.13386309146881104,
-0.8950439095497131,
-0.07837864756584167,
0.4613081216812134,
-0.41238102316856384,
0.22406077384... | |
need to call underlying.myproperty\_set(o)*
I looked at the list of special functions in Python, but I didn't found anything appropriate.
I also tried to make property in the object on the fly, with combination of exec() and builtin property() function, but I found that IronPython 1.1.2 lacks of entire 'new' module (... | [
0.5101869106292725,
-0.3077872395515442,
0.048400238156318665,
-0.09832286089658737,
-0.03871440142393112,
0.023723244667053223,
0.06565126031637192,
-0.13891734182834625,
0.15499654412269592,
-0.605150043964386,
0.18515349924564362,
0.7723148465156555,
-0.2786521911621094,
-0.127421051263... | |
(intervalTop-intervalBottom)
which solves for returnValue as:
```
returnValue = ((intervalTop-intervalBottom) * (val-min) / (max-min)) + intervalBottom
``` | [
-0.5370408296585083,
-0.38339412212371826,
0.7066110968589783,
-0.21319694817066193,
0.09498994052410126,
0.3332466185092926,
0.45234209299087524,
-0.12684552371501923,
0.12238522619009018,
-0.3608573079109192,
-0.37793272733688354,
0.8258866667747498,
-0.04897085204720497,
-0.155195340514... | |
```
<document.write("<SCR"+"IPT TYPE='text/javascript' SRC='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+"/"+gDcsId+"/wtid.js"+"'><\/SCR"+"IPT>");
```
I need to escape the string above in order to add the whole thing to a StringBuilder but so far I must be missing something because st... | [
-0.02120152860879898,
0.05015826225280762,
0.30464088916778564,
-0.0033077530097216368,
0.09395654499530792,
-0.1963244527578354,
0.5390729308128357,
-0.5457713007926941,
-0.327257364988327,
-0.3874480724334717,
-0.25616204738616943,
0.5677206516265869,
-0.5323929190635681,
0.1789032816886... | |
the dynamic values:
```
var fromCSharp = {0};
```
Then at runtime, load the JS file and give it to string.Format as the format string, along with values to replace each occurrence of {0}, {1}, etc. You only need to load the format string from the file once and keep it cached.
Also if the values you are inserting in... | [
-0.025819452479481697,
-0.17327392101287842,
0.44939813017845154,
-0.21769942343235016,
0.08613792061805725,
-0.1587618887424469,
0.1728849709033966,
-0.06540048122406006,
-0.12792162597179413,
-0.49598124623298645,
-0.3598971366882324,
0.6248759031295776,
-0.42447641491889954,
0.067061394... | |
I have a question related to how relative paths are interpreted in various environments .
If I have a C code to be compiled on linux using Makefile and gcc , and if some source file has :
```
fopen(“../../xyz.ctl”, ”r”);
```
where should this file be located. Or in other words,
if I have
```
fopen(“xyz.ctl” , ”r”... | [
-0.06957732141017914,
0.07543855905532837,
0.4107899069786072,
-0.10259830206632614,
-0.005858832038938999,
0.019236724823713303,
0.3883064091205597,
-0.060039371252059937,
0.08083273470401764,
-0.7319803833961487,
-0.047566261142492294,
0.7783923745155334,
-0.5027499198913574,
-0.05143778... | |
(workspace file). For RVDS environment it begins from the folder where the executable \*.axf is generated.
-AD
Your Makefile invokes gcc which compiles your code containing fopen().
fopen() is called when you execute the newly compiled code. The path is relative to your current working directory when you launched the ... | [
0.5182062983512878,
0.03748160973191261,
0.8657188415527344,
-0.25132858753204346,
0.11578840017318726,
-0.24121186137199402,
0.16773155331611633,
-0.15550784766674042,
-0.009255846031010151,
-0.46974116563796997,
-0.4455340802669525,
0.3521222472190857,
-0.2906290888786316,
0.213186174631... | |
We know that Python provides a lot of productivity over any compiled languages. We have programming in C# & need to write the unit test cases in C# itself. If we see the amount of code we write for unit test is approximately ten times more than the original code.
Is it ideal choice to write unit test cases in IronPyt... | [
0.5677727460861206,
0.4552087187767029,
-0.28665515780448914,
0.206990584731102,
-0.03317812457680702,
0.06703042984008789,
0.27182242274284363,
0.010504532605409622,
-0.23714713752269745,
-0.2895796000957489,
0.2582845687866211,
0.6320734620094299,
-0.019824685528874397,
-0.12023185193538... | |
tool support like? I haven't tried any of this myself, but I'd want to know:
* How easy is it to debug into failing unit tests?
* How easy is it to run unit tests from the IDE? (e.g. with ReSharper)
* How easy is it to automate the unit tests from a continuous build server?
It could be that all of these are fine - bu... | [
0.4610450565814972,
-0.0742337554693222,
0.034301646053791046,
0.12847590446472168,
-0.1962432861328125,
-0.07174579054117203,
0.2935177683830261,
-0.3025236129760742,
-0.08158569037914276,
-0.26043426990509033,
-0.17919766902923584,
1.0289726257324219,
-0.13953599333763123,
-0.15479533374... | |
I'm working on a web-application and need to figure out the best way to host it. I'm looking to minimize "Total Cost of Ownership," but it's more important to keep hosting costs low than labor costs in my case.
Potentially, some day, it will grow quite large (in terms of user-base) with heavy traffic but, of course, i... | [
0.5624757409095764,
0.286611944437027,
0.366547167301178,
0.3006778657436371,
0.3509516716003418,
0.07359516620635986,
-0.035746872425079346,
0.22301927208900452,
-0.3503274619579315,
-0.5072929859161377,
0.09170987457036972,
0.2465049922466278,
0.15569154918193817,
0.2832208275794983,
-... | |
a colocation provider, with all the pain of migrating everything,
-OR-
Buy my own server, set it up at a colo provider, and waste most of the server capacity to start, but reduce the pain in scaling from small to large significantly?
Has anybody tried both of these options? Are there pros and cons beyond the ones I'... | [
-0.012804284691810608,
-0.018193749710917473,
0.4295470714569092,
0.279234379529953,
-0.04952302202582359,
0.04991667717695236,
-0.08723803609609604,
0.3268568813800812,
-0.49893057346343994,
-0.6831786036491394,
0.16425210237503052,
0.11880948394536972,
-0.20600980520248413,
0.17378422617... | |
account. I've had clients who have spent many thousands of dollars and countless hours trying to get a perfect dedicated hosting environment setup and then never came close to needing it's capacity.
With VPS, as long as you use the virtualization technology that you want to stick with, it should be very easy to migra... | [
0.2774839997291565,
0.3513210415840149,
0.37837812304496765,
0.16680701076984406,
-0.13490228354930878,
0.006343478802591562,
0.1350412666797638,
0.31417834758758545,
-0.5531629920005798,
-0.4874618351459503,
0.15303677320480347,
0.4646032154560089,
-0.07616642117500305,
0.3458851873874664... | |
I have the odd problem that I am not able to open the properties of my .NET projects in Visual Studio. If I try to open it by clicking on the Properties tree node in the Solution Explorer I get the following message:
> There is no editor available for '....csproj'. Make sure the application for the file type (.csproj)... | [
0.17296546697616577,
0.32712769508361816,
0.2489674985408783,
-0.1139594316482544,
-0.16061200201511383,
-0.15749016404151917,
0.6057970523834229,
0.2413526326417923,
-0.3143264651298523,
-0.9965470433235168,
-0.07626129686832428,
0.5022779107093811,
-0.0011369395069777966,
0.2308966219425... | |
2008 in version 9.0.30729.1 SP including the XNA Game Studio 3.0, ReSharper 4.1 and Visual SVN 1.5.1.
It is occurring on all my projects and seems to be a local issue because my co-workers do not have this kind of problem.
Help is much appreciated!
Thanks,
Michael
Repair installation doesn't worked as I mentioned in... | [
-0.08990011364221573,
0.1888962686061859,
0.237948477268219,
-0.14518402516841888,
-0.3653149902820587,
0.08303544670343399,
0.7011650204658508,
0.05916912853717804,
-0.36766892671585083,
-0.3503328859806061,
-0.0005270167021080852,
0.9798848628997803,
-0.3008885681629181,
0.06987789273262... | |
Am I correct to understand that the abort() method for XMLHttpRequest objects is only available starting from MSIE 7? If so, what equivalent option do I have for aborting an XMLHttpRequest object on timeout in MSIE 6?
Using a JS framework to abstract the problem away is not an option at this time I'm afraid :(. I'm on... | [
-0.034684911370277405,
0.2561340034008026,
0.529231071472168,
-0.23532293736934662,
0.04083673655986786,
-0.348868727684021,
0.3483462631702423,
-0.3541452884674072,
-0.23013001680374146,
-0.40456095337867737,
-0.37621742486953735,
0.5344251394271851,
-0.39813652634620667,
0.21286794543266... | |
or a later version instantiated (rather than 2.0 or 2.6), you can use abort.
To the best of my knowledge, IE6 should use MSXML 3.0 when nothing else is specified (<http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx> seems to confirm this), so it *should* work ou... | [
0.4019921123981476,
-0.04397400841116905,
0.4210498332977295,
-0.12288906425237656,
-0.05389681085944176,
-0.47551631927490234,
0.36583563685417175,
0.1986282616853714,
-0.12697669863700867,
-0.5997684001922607,
-0.19370532035827637,
0.4741206765174866,
-0.19350206851959229,
0.039268456399... | |
I have a problem with a oneway web method that open a moss site (probably because in a oneway webmethod the context is null)
Is possible to rewrite this code to remove the null reference exception? (without the oneway attribute i don't have the exception)
```
[SoapDocumentMethod(OneWay = true)]
[WebMethod(Des... | [
0.34799838066101074,
0.03858969733119011,
0.28953543305397034,
-0.11736594885587692,
0.08747708052396774,
-0.2351333647966385,
0.6410559415817261,
-0.18730515241622925,
0.14223845303058624,
-0.715461254119873,
0.11951757967472076,
0.3322637379169464,
-0.41365596652030945,
0.259844124317169... | |
{
....
}
}
```
the exception is:
```
[2304] Error:Object reference not set to an instance of an object.
[2304] w3wp.exe Error: 0 :
[2304StackTrace: at System.Web.Hosting.ISAPIWorkerRequestInProc.GetAdditionalServerVar(Int32 index)
[2304] at System.Web.Hosting.ISAPIWorkerReq... | [
-0.3868557810783386,
0.03538978472352028,
0.4360610246658325,
0.11926243454217911,
0.03794701769948006,
-0.038567814975976944,
0.5214166641235352,
-0.3511078655719757,
-0.5412150025367737,
-0.47254836559295654,
-0.3844529390335083,
0.5341439247131348,
-0.43273329734802246,
0.23388361930847... | |
Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous)
[2304] at Microsoft.SharePoint.SPRequestManager.GetContextRequest(SPRequestAuthenticationMode authent... | [
-0.4239514172077179,
0.055149808526039124,
0.5530123710632324,
0.14183486998081207,
-0.12107042968273163,
0.1658124476671219,
0.44638723134994507,
-0.49054259061813354,
-0.2199326753616333,
-0.6212252974510193,
-0.29081642627716064,
0.40800270438194275,
-0.24289891123771667,
0.170359417796... | |
problem.Create new HttpContext. The question now is:
is it the right solution or there are implications that i don't consider?
the method that i use to change the context is this:
```
//Call this before call new SPSite()
private static void ChangeContext(string webUrl)
{
Trace.TraceInformation("C... | [
-0.21512539684772491,
-0.33849793672561646,
0.834886372089386,
-0.15735678374767303,
0.20898376405239105,
-0.10541316121816635,
0.26420265436172485,
-0.2342064082622528,
-0.2432088702917099,
-0.6977805495262146,
-0.09207217395305634,
0.4095296263694763,
-0.6109023690223694,
0.2772462368011... | |
HttpContext.Current = new HttpContext(request, new HttpResponse(new StringWriter(CultureInfo.CurrentCulture)));
HttpContext.Current.User = current.User;
}
``` | [
0.09144292026758194,
-0.11922582983970642,
0.7417610287666321,
-0.1757846176624298,
-0.016536757349967957,
-0.04964853450655937,
0.28898271918296814,
-0.07161838561296463,
-0.2760077118873596,
-0.4996638596057892,
-0.21954509615898132,
0.4477441608905792,
-0.21707771718502045,
0.4541193544... | |
I have two tables with the following columns:
table1:
```
id, agent_name, ticket_id, category, date_logged
```
table2:
```
id, agent_name, department, admin_status
```
What I'm trying to achieve is to Select all rows from table1 where an agents department is equal to that of table2.
I've tried a few different j... | [
-0.2634223997592926,
0.09161864966154099,
0.5256322622299194,
-0.16905425488948822,
-0.15786689519882202,
0.123069167137146,
0.06584545969963074,
-0.17370934784412384,
-0.16169330477714539,
-0.8667162656784058,
0.22077129781246185,
0.4220488965511322,
-0.5592365860939026,
-0.10145829617977... | |
on the frontend and I'm trying to see if I can achieve the desired result without doing that.
Any assistance greatly appreciated.
I don't quite understand your question...
Only table2 have a department, the only thing they have in common is agent\_name.
I do suspect what you really mean is: that you want all rows fro... | [
-0.21800969541072845,
0.15711268782615662,
0.3675863444805145,
-0.029873695224523544,
0.1533484309911728,
0.013459640555083752,
0.03774507716298103,
0.24430541694164276,
-0.4607542157173157,
-0.7674562335014343,
-0.14489999413490295,
0.4989916682243347,
-0.38761764764785767,
-0.09748005121... | |
Table2.agent_name
WHERE Table2.department = 'somespecific value';
```
BTW: (Inspired by what someone else said) `agent_name` sounds like it's a string value, you really should consider using the id from table2 as a key in table1 (let's call it `agent_id` perhaps) to link them together. The foreign keys (the li... | [
-0.4701109826564789,
0.021438321098685265,
0.44775906205177307,
-0.03335059806704521,
-0.01985369622707367,
-0.1159806177020073,
0.023247042670845985,
-0.02008170261979103,
-0.4229283034801483,
-0.6542730927467346,
-0.2734171450138092,
0.3413521349430084,
-0.26996347308158875,
0.1633255481... | |
WHERE Table2.department = 'somespecific value';
``` | [
-0.08989686518907547,
0.31825172901153564,
0.1964704841375351,
0.11930734664201736,
0.3168136775493622,
-0.06364547461271286,
-0.10236526280641556,
0.13489757478237152,
-0.17625422775745392,
-0.0602593794465065,
-0.6635424494743347,
0.36842411756515503,
-0.06587903201580048,
0.282751291990... | |
i search a good tutorial to learn how to use entity framework in the right manner. in particular with asp.net mvc.
I'd point you in the direction of this rather [(1) lengthy article](http://blogs.msdn.com/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx) from the Entity Framework team.
They'v... | [
0.3127444386482239,
-0.029103495180606842,
0.32542118430137634,
-0.02268126793205738,
-0.03235042840242386,
-0.12426012009382248,
0.18384630978107452,
-0.038180578500032425,
-0.13085131347179413,
-0.4558282494544983,
0.3103417158126831,
0.6886463761329651,
-0.1294926404953003,
-0.011882494... | |
do one of two things - work with "disconnected" entity sets or retail the data context of an entity set. Either scenario has pitfalls as I'm sure you can appreciate. In short.. I don't think there is a "right manner" to pick up at this stage. At least not with ASP MVC.
To get started with the Entity Framework, your be... | [
0.3761249780654907,
-0.07597721368074417,
0.05994454771280289,
0.3628019094467163,
-0.16260477900505066,
-0.2103216052055359,
-0.0019115002360194921,
-0.18634207546710968,
-0.05520492419600487,
-0.5661889910697937,
0.006182544864714146,
0.5946647524833679,
-0.3175961673259735,
-0.119277194... | |
helpful.
(1) [<http://blogs.msdn.com/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx]>
(2) [<http://code.msdn.microsoft.com/adonetefx]> | [
-0.014209347777068615,
-0.04959319904446602,
0.09321644902229309,
0.3641122579574585,
-0.09246252477169037,
-0.051550693809986115,
0.31616854667663574,
-0.043104756623506546,
0.07055165618658066,
-0.874538004398346,
-0.10536404699087143,
0.5306996703147888,
-0.08174065500497818,
-0.3509523... | |
I have checked the whole site and googled on the net but was unable to find a simple solution to this problem.
I have a datatable which has about 20 columns and 10K rows. I need to remove the duplicate rows in this datatable based on 4 key columns. Doesn't .Net have a function which does this? The function closest to ... | [
0.3881291449069977,
-0.03789347782731056,
0.3277254104614258,
0.02934659831225872,
-0.1629052311182022,
0.020960194990038872,
0.4182402789592743,
0.10697053372859955,
-0.38176798820495605,
-0.7319230437278748,
0.2611749470233917,
0.4286230206489563,
-0.30717840790748596,
0.3180857598781585... | |
this. This datatable is being created by reading a CSV file and not from a DB. So using an SQL query is not an option.
You can use Linq to Datasets. Check [this](http://msdn.microsoft.com/en-us/library/bb669119.aspx). Something like this:
```
// Fill the DataSet.
DataSet ds = new DataSet();
ds.Locale = CultureInfo.Inv... | [
0.20182310044765472,
-0.17220507562160492,
0.6768874526023865,
0.17323990166187286,
0.03656886890530586,
0.01814447157084942,
-0.028180748224258423,
-0.34662261605262756,
-0.2797926962375641,
-0.7459220886230469,
-0.11408969014883041,
0.15275779366493225,
-0.38299325108528137,
0.2832903563... | |
rows to the list.
foreach (DataRow row in contactsTableWith100Rows.Rows)
rows.Add(row);
// Create duplicate rows by adding the same 100 rows to the list.
foreach (DataRow row in contactsTableWith100Rows.Rows)
rows.Add(row);
DataTable table =
System.Data.DataTableExtensions.CopyToDataTable<DataRow>(rows);
... | [
-0.2825673818588257,
0.2999853491783142,
0.7655595541000366,
-0.0408741720020771,
0.5069018602371216,
0.2634155750274658,
0.011671939864754677,
-0.20411314070224762,
-0.14540743827819824,
-0.826005220413208,
-0.06646548956632614,
0.666810929775238,
-0.3963157832622528,
0.35346630215644836,... | |
I keep a JMS connection always open, because I have a MessageListener on it.
Is it a common need to worry about minimizing maintenance of applications with long lived JMS connections?
I was thinking something along the lines of try to recover from some possible common well known kinds of failure, like temporary con... | [
0.6463704109191895,
0.2018027901649475,
-0.11883610486984253,
-0.1697254478931427,
0.09020067751407623,
-0.1260632425546646,
0.5311627984046936,
0.3667030930519104,
-0.5514256358146667,
-0.3035808801651001,
-0.3570765256881714,
0.602407693862915,
-0.30908632278442383,
-0.08885709941387177,... | |
on vendor extensions, you need to handle errors and do reconnection. See [Reconnecting JMS listener to JBossMQ](https://stackoverflow.com/questions/47683/reconnecting-jms-listener-to-jbossmq#117503) (which, despite the title, isn't JBossMQ-specific). | [
-0.28693732619285583,
-0.0984412431716919,
0.47578898072242737,
-0.01343131996691227,
-0.14969660341739655,
-0.33024492859840393,
0.277607798576355,
-0.23819752037525177,
-0.4782566428184509,
-0.19381776452064514,
-0.44387343525886536,
0.6521093845367432,
-0.0393318310379982,
-0.0539569742... | |
I'm doing some really simple math and saving the result to a MS SQL2008 DB.
I'm *averaging* out the some numbers, which are byte values between 1<->5. I wish to record probably 2 decimal places only. I don't care about rounding for the 2nd decimal place (eg. a 1.155 == 1.5 or 1.6 .. i'm not too phased).
So .. should ... | [
0.32420334219932556,
0.29156795144081116,
0.3601173758506775,
0.01263052225112915,
-0.3397569954395294,
0.00285965483635664,
0.2809330224990845,
-0.011279266327619553,
-0.19976487755775452,
-0.5326483249664307,
0.2661910057067871,
0.5968038439750671,
0.06500674039125443,
0.0836623311042785... | |
10.155
select @val
```
When you input values, you can either rely on the built in rounding, or explicitly decide which rounding you want:
```
select val = round(10.155, 2, 0) -- rounded
select val = round(10.155, 2, 1) -- truncated
```
Decimal (10,2) means that ten digits can be used, and that two of them are to b... | [
-0.1120786964893341,
-0.05406951159238815,
0.6887465715408325,
-0.10624966770410538,
-0.2440096139907837,
0.5544969439506531,
-0.0741608589887619,
-0.3301016688346863,
-0.24268536269664764,
-0.5035291910171509,
-0.17767050862312317,
0.5484497547149658,
0.1627482771873474,
-0.12629666924476... | |
The bugzilla (perl-based) system has a feature to login automatically by using a http server environment variable. If you fill in the right ID or username, you are automatically logged in.
My server runs Joomla (PHP-based) and has all the information about who is logged in. It runs bugzilla within a sub-frame.
So, ho... | [
0.15269863605499268,
-0.04441612958908081,
0.3989590108394623,
-0.11876513808965683,
0.14465667307376862,
0.07427752763032913,
0.21029581129550934,
0.27450039982795715,
-0.5084949731826782,
-0.5954432487487793,
0.04678592458367348,
0.4972921311855316,
-0.8745173811912537,
0.018793340772390... | |
= $val<BR>\n";
}
```
What you need is the DECIMAL datatype:
```
declare @val decimal(10,2)
select @val = 10.155
select @val
```
When you input values, you can either rely on the built in rounding, or explicitly decide which rounding you want:
```
select val = round(10.155, 2, 0) -- rounded
select val = round... | [
-0.064249187707901,
0.021665390580892563,
0.440334290266037,
-0.23774340748786926,
-0.12432171404361725,
0.442935049533844,
0.11537083238363266,
-0.30009037256240845,
-0.15022452175617218,
-0.37842461466789246,
-0.23014573752880096,
0.8774492144584656,
0.11666195094585419,
-0.1188797801733... | |
Please consider the following `fork()`/`SIGCHLD` pseudo-code.
```
// main program excerpt
for (;;) {
if ( is_time_to_make_babies ) {
pid = fork();
if (pid == -1) {
/* fail */
} else if (pid == 0) {
/* child stuff */
print "child started" | [
0.2785957157611847,
-0.03470594808459282,
0.28201165795326233,
-0.1763845533132553,
0.44424521923065186,
0.30778342485427856,
0.15174686908721924,
0.062330782413482666,
0.13866935670375824,
-0.37587815523147583,
-0.03012896701693535,
0.3501892685890198,
0.02701965719461441,
0.5281640291213... | |
exit
} else {
/* parent stuff */
print "parent forked new child ", pid
children.add(pid);
}
}
}
// SIGCHLD handler
sigchld_handler(signo) {
while ( (pid = wait(status, WNOHANG)) > 0 ) { | [
0.02354700118303299,
-0.29280078411102295,
0.2041398286819458,
-0.13417775928974152,
0.47069868445396423,
0.1003919318318367,
0.15998995304107666,
-0.0801934227347374,
0.07574862241744995,
-0.3214258551597595,
-0.0995108038187027,
0.11783045530319214,
-0.07685310393571854,
0.25107169151306... | |
print "parent caught SIGCHLD from ", pid
children.remove(pid);
}
}
```
In the above example there's a race-condition. It's possible for "`/* child stuff */`" to finish before "`/* parent stuff */`" starts which can result in a child's pid being added to the list of children after it's exited, and never be... | [
0.054813917726278305,
0.06384146958589554,
0.1248486191034317,
0.025029435753822327,
0.38040468096733093,
0.35764428973197937,
0.061381254345178604,
0.32779115438461304,
-0.29346755146980286,
-0.42331284284591675,
-0.24412238597869873,
0.09892511367797852,
-0.10116560757160187,
0.586569368... | |
I'd add to `started_children` in the same place I'm adding to `children` now. But in the signal handler, instead of removing from `children` I'd *add* to `finished_children`. When the app closes down, the parent can simply wait until the difference between `started_children` and `finished_children` is zero.
Another po... | [
0.1516716480255127,
0.09900090843439102,
0.20000240206718445,
0.09217356145381927,
0.2124473601579666,
0.3587498366832733,
-0.03807477653026581,
0.06572356820106506,
-0.48561713099479675,
-0.7672722935676575,
-0.11953390389680862,
0.16808579862117767,
0.1178293228149414,
0.1344492435455322... | |
`/* child stuff */` but that smells funny to me, which is why I left it out. I'm also not even sure it's a 100% fix.
So, how would you correct this race-condition? And if there's a well-established recommended pattern for this, please let me know!
Thanks.
Simplest solution would be to block SIGCHLD signal before `for... | [
-0.020898960530757904,
0.25452369451522827,
0.08702870458364487,
0.24754956364631653,
0.3004278242588043,
0.26079362630844116,
0.12730719149112701,
0.1734340339899063,
0.011182080954313278,
-0.41497260332107544,
0.03624798357486725,
-0.07725437730550766,
-0.1672319769859314,
0.492940425872... | |
`children.add()`. | [
0.24525289237499237,
0.277523398399353,
0.36157822608947754,
-0.12871481478214264,
0.08793828636407852,
0.2708457112312317,
-0.0546068400144577,
-0.09845294803380966,
-0.32383522391319275,
-0.6572267413139343,
-0.43099477887153625,
0.11759483814239502,
-0.13790449500083923,
0.2749603390693... | |
I keep getting this NPE in my application and I can't seem to get rid of it because it is not showing up in any of my source code. As you can see from the stacktrace it is not happening in my code but in the Swing plaf. Has any of you had this problem and maybe figured out what is happening here?
```
11:28:23,273 [... | [
-0.03814810514450073,
0.07245376706123352,
0.11557817459106445,
-0.039953798055648804,
0.0020933819469064474,
0.2273256480693817,
0.6209080815315247,
-0.34797239303588867,
-0.35375845432281494,
-0.6900609731674194,
-0.1745782494544983,
0.5326787233352661,
-0.44783198833465576,
0.1855687499... | |
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.disp... | [
-0.1637294441461563,
-0.1901603788137436,
0.3254903554916382,
-0.04322114214301109,
-0.02724326215684414,
0.5269928574562073,
0.2872261703014374,
-0.5055776238441467,
-0.1695646196603775,
-0.5395259857177734,
-0.06334741413593292,
0.6578012108802795,
-0.15333133935928345,
-0.04485738277435... | |
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
```
I managed to get around the problem!
The thing is that I add a `ListSelectionListener` to my `JTable`; in the `valueChanged` method of my l... | [
0.21069760620594025,
0.0793805718421936,
0.5650469064712524,
-0.2956012189388275,
0.0029306120704859495,
-0.12591102719306946,
0.46727120876312256,
-0.4254210889339447,
-0.09860821813344955,
-0.5528445243835449,
0.021496620029211044,
0.7507849931716919,
-0.6366439461708069,
-0.217580735683... | |
I still understand why the `invokeLater` helped?), I think my question wasn't good enough. I didn't provide enough information about my problem for anyone to be able to answer the question. Should I have researched the problem more before I asked? I don't know.
Maybe it is enough that I provide the solution that helpe... | [
0.296080619096756,
0.4905003607273102,
0.08312152326107025,
0.06900090724229813,
-0.10524383932352066,
-0.08379888534545898,
0.5273770689964294,
-0.12458432465791702,
-0.04630675166845322,
-0.45045343041419983,
0.04405845329165459,
0.3537388741970062,
-0.1260862797498703,
0.400089085102081... | |
It seems to me that if you are writing in an interpreted language that it must be difficult to sell software, because anyone who buys it can edit it/change it/resell it without much difficulty.
How do you get around this? I have a couple of PHP apps that I'm reluctant to sell to people as it seems that it's too simple... | [
0.8243324160575867,
0.4653065800666809,
-0.16581538319587708,
0.11951304227113724,
-0.1476033329963684,
-0.043878164142370224,
0.4789797365665436,
0.4787330627441406,
-0.07626974582672119,
-0.3967728912830353,
0.13491785526275635,
0.5346742272377014,
-0.09101106971502304,
-0.08258863538503... | |
I need to update a record in a database with the following fields
```
[ID] int (AutoIncr. PK)
[ScorerID] int
[Score] int
[DateCreated] smalldatetime
```
If a record exists for todays date (only the date portion should be checked, not the time) and a given scorer, I'd like to update the score value for this guy and ... | [
0.6127351522445679,
0.32577604055404663,
0.28579872846603394,
0.15992267429828644,
0.3055553436279297,
-0.037807397544384,
0.10118520259857178,
0.13191893696784973,
-0.2556229829788208,
-0.5091737508773804,
0.2861126959323883,
0.01639837585389614,
0.021634750068187714,
0.34598860144615173,... | |
issue the query.
```
IF EXISTS (SELECT NULL FROM MyTable WHERE ScorerID = @Blah AND CONVERT(VARCHAR, DateCreated, 101) = CONVERT(VARCHAR, GETDATE(), 101))
UPDATE MyTable SET blah blah blah
ELSE
INSERT INTO MyTable blah blah blah
``` | [
0.11152984946966171,
0.26171109080314636,
0.5375819206237793,
-0.03004605509340763,
-0.0019373053219169378,
-0.01641654595732689,
0.23482413589954376,
-0.11407576501369476,
0.02007957547903061,
-0.5681273937225342,
-0.2066311240196228,
0.24184639751911163,
-0.3482077121734619,
0.1860077083... | |
```
function a () {
return "foo";
}
a.b = function () {
return "bar";
}
function c () { };
c.prototype = a;
var d = new c();
d.b(); // returns "bar"
d(); // throws exception, d is not a function
```
Is there some way for `d` to be a function, and yet still inherit properties from `a`?
Based on a [discussio... | [
-0.09428992122411728,
0.3403441607952118,
0.3950294256210327,
-0.1916922926902771,
-0.10019396245479584,
0.021775994449853897,
0.29832935333251953,
-0.5226150155067444,
-0.0572621151804924,
-0.5200604200363159,
-0.34480616450309753,
0.42504221200942993,
-0.5402835607528687,
0.4814656078815... | |
you custom methods and properties to `obj`
Next declare the function
```
const f = function(){
// Hello, World!
};
```
And set `obj` as the prototype of `f`
```
Object.setPrototypeOf(f,obj);
```
Demonstraction
==============
```js
const obj = Object.create(Function.prototype);
// Define an 'answer' method... | [
-0.18508967757225037,
0.030371984466910362,
0.4537113308906555,
-0.08968297392129898,
0.178531214594841,
0.3542744517326355,
0.1870598942041397,
-0.3197800815105438,
-0.1486433893442154,
-0.693960964679718,
-0.367959201335907,
0.3666227161884308,
-0.6049187183380127,
0.45472121238708496,
... | |
I want to create a linked server in one sql server to another using the sp\_addlinkedserver procedure. When i access the remote server I would like it to logon as me (i.e. using my windows account). How do I do this?
This can be maddening to set up. Check this related question:
<https://stackoverflow.com/questions/331... | [
0.2926681339740753,
0.24756862223148346,
0.3906295895576477,
-0.1339547485113144,
-0.04358107969164848,
-0.48810920119285583,
0.19982962310314178,
0.0007676055538468063,
-0.38871535658836365,
-0.5539224743843079,
-0.045780543237924576,
0.35995760560035706,
-0.2934874892234802,
0.4089407324... | |
with a domain account. | [
0.15929105877876282,
0.05818813666701317,
0.3710496723651886,
0.21282115578651428,
-0.04943371191620827,
-0.3028510808944702,
0.03557723015546799,
0.10267309099435806,
-0.34374070167541504,
-0.14622367918491364,
-0.4215383529663086,
-0.00786635186523199,
-0.12355788797140121,
0.55367201566... | |
Whilst trawling through some old code I came across something similar to the following:
```
class Base
{
public:
virtual int Func();
...
};
class Derived : public Base
{
public:
int Func(); // Missing 'virtual' qualifier
...
};
```
The code compiles fine (MS VS2008) with no warnings (level 4) and it... | [
0.10099127143621445,
-0.08536731451749802,
0.4137977361679077,
0.19123440980911255,
0.159573033452034,
-0.3321426808834076,
0.43560296297073364,
-0.06645125895738602,
-0.42156678438186646,
-0.41550686955451965,
-0.016725754365324974,
0.8187167644500732,
-0.1102614775300026,
0.3770885169506... | |
to all overriding functions in derived classes. The only real benefit to adding the keyword is to signify your intent a casual observer of the Derived class definition will immediately know that `Func` is virtual.
Even classes that extend Derived will have virtual Func methods.
Reference: [Virtual Functions](http://m... | [
-0.02194995991885662,
-0.3592582941055298,
0.4734654724597931,
0.21552182734012604,
0.026732701808214188,
-0.2965300381183624,
0.22489534318447113,
0.11871937662363052,
-0.1928010731935501,
-0.4182220697402954,
-0.5292832851409912,
0.8971514701843262,
-0.14249774813652039,
0.20192492008209... | |
We've got a classic ASP application that is putting out some very large reports, where the resulting HTML is several MBs. We've made a lot of progress in trimming this down by reducing extraneous HTML, but I'd like to know if there's any way to enable GZIP compression on these dynamic .asp pages. I'm sure compressing t... | [
0.09086237102746964,
-0.03286448493599892,
0.20653577148914337,
0.09608998894691467,
-0.21109050512313843,
-0.09020748734474182,
0.09901267290115356,
0.33364465832710266,
-0.44668418169021606,
-0.7111462354660034,
-0.2882089912891388,
0.4956698715686798,
-0.18236878514289856,
0.13911412656... | |
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic problem: In the codeview window my vertical scrollbar does not look like a normal, traditional scrollbar, but like some kind of code-preview window. It is roundabout four times wider than a normal scrollbar.
The problem is that my ReSharper (4.1)... | [
0.16476348042488098,
-0.19296184182167053,
1.00746488571167,
-0.08980898559093475,
-0.40849703550338745,
0.10975702852010727,
0.7854669094085693,
-0.19939963519573212,
-0.1525384783744812,
-0.7199138402938843,
0.2457204908132553,
0.8715088963508606,
-0.15472011268138885,
0.1457642018795013... | |
turn it back to a normal one.
Has anyone had similar problems?
Are you using the [RockScroll](http://www.hanselman.com/blog/IntroducingRockScroll.aspx) add-in? If so, disable it.
 | [
-0.030968207865953445,
-0.18872256577014923,
0.2641778290271759,
-0.05850068852305412,
0.16254602372646332,
-0.40478038787841797,
0.4917897582054138,
0.3456251919269562,
-0.3409670293331146,
-0.12228181958198547,
-0.1740311086177826,
0.6524677276611328,
-0.29873260855674744,
0.227264910936... | |
It is not possible to fire an event in C# that has no handlers attached to it. So before each call it is necessary to check if the event is null.
```
if ( MyEvent != null ) {
MyEvent( param1, param2 );
}
```
I would like to keep my code as clean as possible and get rid of those null checks. I don't think it will a... | [
-0.010234151966869831,
0.15219023823738098,
0.07409206032752991,
-0.0535665899515152,
-0.10192741453647614,
-0.03858301043510437,
0.6306263208389282,
-0.31282663345336914,
-0.2477482110261917,
-0.47388988733291626,
-0.23122209310531616,
0.6942595839500427,
-0.4927968382835388,
-0.093801505... | |
to do that etc.
```
void Initialize() {
MyEvent += new MyEvent( (p1,p2) => { } );
}
```
Is there a way to generate empty handlers for all events of a given class automatically using reflection and some CLR magic?
I saw this on another post and have shamelessly stolen it and used it in much of my code ever since:
... | [
0.42090776562690735,
-0.2222294956445694,
0.08432091772556305,
0.0010639451211318374,
0.076038658618927,
-0.31431344151496887,
0.3307092487812042,
-0.43127068877220154,
-0.47085392475128174,
-0.5264962911605835,
-0.06101227551698685,
0.4127476215362549,
-0.621964156627655,
0.13416364789009... | |
Click(this, "foo");
}
```
\* If anyone knows the origin of this technique, please post it in the comments. I really do believe in the source getting due credit.
(**Edit:** I got it from this post [Hidden Features of C#?](https://stackoverflow.com/questions/9033/hidden-features-of-c#9282)) | [
0.4400584399700165,
0.22578281164169312,
-0.008863693103194237,
-0.23967282474040985,
0.07011357694864273,
-0.43022820353507996,
0.26609912514686584,
0.26522016525268555,
-0.24937106668949127,
-0.05788324028253555,
-0.1666720062494278,
0.7808254361152649,
-0.11377724260091782,
-0.014626651... | |
I need to parse Visual Studio automatically generated XML documentation to create a report. I decided to use XSLT but I'm very new to it and need help.
Common template is:
```
<doc>
<members>
<member name="F:MyNamespace">
<summary>Some text</summary>
</member>
</members>
</doc>
```
I want to isola... | [
0.11271516233682632,
0.25648483633995056,
0.2889494299888611,
-0.262118935585022,
-0.5132163763046265,
-0.09812851995229721,
0.08142289519309998,
-0.3755457103252411,
-0.3252144455909729,
-0.555513858795166,
-0.07832137495279312,
0.31100472807884216,
-0.3466792106628418,
0.1490994840860366... | |
<body style="font-family:Tahoma">
<p>Interfaces list:</p>
<table>
<xsl:for-each select="doc/members/member">
<xsl:sort order="ascending" /> | [
-0.16510015726089478,
0.00084677804261446,
0.41968637704849243,
0.09024208039045334,
-0.2390182763338089,
0.26697343587875366,
0.07393921166658401,
-0.4700813293457031,
-0.0701986700296402,
-0.696276068687439,
-0.3997069299221039,
0.28720197081565857,
-0.19359201192855835,
-0.2504328489303... | |
<xsl:value-of select="fn:matches(., 'P\..+')" />
<br />
</xsl:for-each>
</table>
</body> | [
-0.07399483025074005,
-0.0579991489648819,
0.46629607677459717,
-0.1011895015835762,
-0.005777600686997175,
-0.06045232340693474,
-0.1426156759262085,
-0.6116257309913635,
0.06716766953468323,
-0.43089115619659424,
-0.14543010294437408,
0.47824981808662415,
-0.37782952189445496,
-0.4703228... | |
</html>
</xsl:template>
</xsl:stylesheet>
```
Why does I'm getting error:
> Namespace <http://www.w3.org/TR/xpath-functions> does not contain any functions >
Where am I wrong? I found such code in examples, including w3c.org!
**In case you're performing the transformation with Visual Studio X**, where X is not ... | [
-0.0909116342663765,
-0.23740233480930328,
0.6901921629905701,
-0.014898372814059258,
-0.28973817825317383,
-0.32426342368125916,
0.3656022846698761,
-0.2779137194156647,
-0.15685246884822845,
-0.677139163017273,
-0.410300612449646,
0.6958525776863098,
-0.5275101065635681,
-0.0471610054373... | |
a suitable choice is [**Saxon.NET**](http://saxon.sourceforge.net/)
2. *Just use the XPath 1.0 function* [**`starts-with()`**](http://www.w3.org/TR/xpath#section-String-Functions), which is sufficient to solve the current problem.
The expression: `starts-with(., 'P:Interfaces')` is evaluated to `true()` if the strin... | [
0.07241696119308472,
-0.11039182543754578,
0.5659302473068237,
-0.09626687318086624,
-0.15257415175437927,
-0.01741943508386612,
0.15144804120063782,
-0.38000649213790894,
0.055040840059518814,
-0.6498709321022034,
-0.11438574641942978,
0.8181855082511902,
-0.33330783247947693,
-0.12183838... | |
I have 2 wav files that I want to concatenate into one file with the two sound tracks.
Is there any api for that task or some built in commands in .NET that can I can use in some genius way to make this task possible?
Many thanks for the help. :)
If I'm not mistaken, you can just append the bytes from the second fil... | [
0.9454504251480103,
0.06971727311611176,
0.12898223102092743,
0.20433899760246277,
-0.07153670489788055,
-0.16734537482261658,
0.21540024876594543,
0.042589254677295685,
-0.222255140542984,
-0.7187504172325134,
0.13893984258174896,
0.6294366717338562,
-0.09921246021986008,
0.15994052588939... | |
no blending. You could probably get around this by fading (gradually reducing the values for the last few ms to the center value). | [
0.40422120690345764,
-0.13572624325752258,
0.2607914209365845,
-0.13968798518180847,
0.129511758685112,
-0.21233947575092316,
0.23976615071296692,
-0.04261063411831856,
-0.06251581013202667,
-0.5633670687675476,
0.20370589196681976,
0.3064844310283661,
-0.15485771000385284,
0.1867833137512... | |
I have a DLL written in C++ that needs to be used by an application in C#. It works great under Vista x86, but under x64 it fails to load. So I build an x64 version of the DLL and I detect whether the OS is x86 or x64 and use the appropriate interop call to the appropriate DLL. This works fine under Vista x86, but unde... | [
0.13085483014583588,
0.24338898062705994,
0.2575189769268036,
-0.015121242962777615,
-0.03413669392466545,
-0.33241263031959534,
0.15301162004470825,
-0.028797000646591187,
-0.15647581219673157,
-0.7148687243461609,
-0.0054307496175169945,
0.8104760646820068,
-0.42889106273651123,
0.103741... | |
know if you need more information, I'm not sure what information is relevant in trouble-shooting this issue.)
The redist for VC90 for x64 will need to be installed on the client machine. As far as the manifest goes, I think you can alter it to remove the processorArchitecture tag. Either that or have it say "any". | [
0.3169499337673187,
0.041088253259658813,
0.5118599534034729,
0.25210270285606384,
0.34869155287742615,
0.14061005413532257,
0.07325715571641922,
0.3591759204864502,
-0.3129666745662689,
-0.5664248466491699,
0.06311854720115662,
0.8242253065109253,
-0.13121838867664337,
-0.171995148062706,... | |
Does cygwin allow a statically compiled binary? This would prevent the need for cygwin1.dll being on the PATH of target machines.
Nope, it's currently not possible to statically link against cygwin1.dll; if your application does not use unix emulation (i.e. pure win32) you can pass -mno-cygwin to the compiler.
See als... | [
-0.06010774150490761,
0.2002454698085785,
0.17508220672607422,
-0.020876172930002213,
-0.08689334243535995,
-0.14079618453979492,
0.43894028663635254,
0.29493358731269836,
-0.18188461661338806,
-0.4937186539173126,
-0.23207375407218933,
0.5039940476417542,
-0.5402314066886902,
0.2514494955... | |
I want to use jQuery with a GridView which contains textboxes, but I'm stuck on how to get event listeners registered for every textbox on the selected row. I was thinking I could do something with a StingBuilder in the Unload event of the GridView but I can't get it working.
Why not just add a CSS class to each TextBo... | [
0.32735610008239746,
-0.2500893175601959,
0.24631474912166595,
-0.07896594703197479,
-0.34281089901924133,
-0.21009895205497742,
0.14540915191173553,
-0.09388238191604614,
-0.07711430639028549,
-0.8360369801521301,
0.18940292298793793,
0.6958807706832886,
-0.1345181167125702,
-0.0155175793... | |
How can I send keyboard input messages to either the currently selected window or the previously selected window?
I have a program which I use to type some characters which are not present on my keyboard and I would like it if I could just send the input directly rather than me having to copy and paste all the time.
... | [
0.28163236379623413,
0.16527250409126282,
0.20580369234085083,
-0.231253519654274,
0.0056329029612243176,
0.5048376321792603,
0.3272033929824829,
0.4539875090122223,
-0.07929839938879013,
-0.6691165566444397,
-0.11255190521478653,
0.34857094287872314,
-0.039312396198511124,
-0.257593691349... | |
sharp S. Currently I have a simple WinForms application with a textfield and some buttons with the extra characters on it. I type into the textfield and I can press the buttons to append text to the textfield. I then copy the text and paste it where ever. What would be nice though if I could just just hit one of the bu... | [
0.21568796038627625,
-0.33347180485725403,
0.48105841875076294,
0.160468190908432,
-0.2996055781841278,
0.14320652186870575,
0.2301228642463684,
0.027482740581035614,
0.05845072120428085,
-0.6974119544029236,
0.18822205066680908,
1.0355658531188965,
0.28067678213119507,
0.14059987664222717... | |
I've been working with ASP.NET MVC for the last few weeks, learning as I go, from tutorials and mostly trial and error.
I'm sorta groping in the dark, since I have no other experience with MVC frameworks and I'm just moving ahead blindly trying to figure things out as I move along.
So, I'm looking for better, more ... | [
0.6016622185707092,
0.23331278562545776,
0.21920087933540344,
-0.012656079605221748,
0.035535529255867004,
-0.14414739608764648,
0.14066508412361145,
0.08001548796892166,
-0.2552984356880188,
-0.4707029163837433,
0.11111507564783096,
0.3785817623138428,
0.4018341600894928,
-0.0230159647762... | |
anyone know of any good, thorough resources from which I can expand my knowledge about the ASP.NET MVC framework?
Rob Conery has his [ASP.NET MVC Storefront](http://blog.wekeroad.com/mvc-storefront/) series, which is what I used to get my feet wet. It is around twenty-something parts long already.
He takes you threw t... | [
0.7420966029167175,
0.2057851105928421,
-0.07297460734844208,
0.10412545502185822,
0.1114896833896637,
0.09370880573987961,
0.3277810215950012,
0.09702504426240921,
-0.4120120108127594,
-0.2352433055639267,
0.05263452231884003,
0.04441073164343834,
0.2911933660507202,
-0.13744458556175232,... | |
We have to convert EVERYTHING to images for archiving purpose. DOC, HTML, email, ZIP, PDF, TXT and any document you can read/view on computer. In addition, it must recursive convent on all embed attachment and files in zip.
I know ImgMaker only. Is it the best or I can have something better?
My boss ask me to search t... | [
0.6727620363235474,
0.24348562955856323,
0.5687521696090698,
0.2624635100364685,
-0.16919530928134918,
-0.032496366649866104,
0.24279657006263733,
0.10628802329301834,
-0.22399455308914185,
-0.8681710958480835,
0.04433969035744667,
0.5896240472793579,
-0.018364597111940384,
-0.016481589525... | |
off buying than building it on your own.
The idea of converting Everything is fundamentally a fool's errand as you would need a single program that could render every file type ever created (in essence recreating every piece of software that ever wrote a data file AND recreating every version of each). Also, not every... | [
0.832298755645752,
-0.1434578150510788,
-0.10570722073316574,
0.41127318143844604,
0.12254635989665985,
0.021484721451997757,
-0.09265220165252686,
0.06108831986784935,
0.037762343883514404,
-0.5409097671508789,
0.12318597733974457,
0.8229572176933289,
0.034524690359830856,
0.2370765805244... | |
are two main players with OEM toolkits, but both are extremely expensive and neither supports the Java platform directly. I use the former if you have any additional questions.
Stellent (now Oracle) OutsideIn: <http://www.oracle.com/technologies/embedded/outside-in.html>
Autonomy KeyView: <http://www.autonomy.com/con... | [
0.25639256834983826,
-0.2313215583562851,
0.1976001262664795,
0.1606423407793045,
-0.43101605772972107,
-0.1059361919760704,
0.055420637130737305,
-0.12470302730798721,
-0.05107557028532028,
-0.37438836693763733,
0.10669048130512238,
0.5436665415763855,
-0.022804781794548035,
0.04937548562... | |
manual tweaking of the spreadsheet to make the printout look right (else you get 900 pages added to your tiff with that one extra column that wouldn't fit) | [
0.20848512649536133,
0.08527051657438278,
-0.05265067517757416,
0.42355477809906006,
0.27559950947761536,
0.16549769043922424,
0.10346517711877823,
-0.2463950514793396,
-0.263797789812088,
-0.29588833451271057,
-0.00443720817565918,
0.6138310432434082,
-0.18645581603050232,
-0.370962262153... | |
I need to update a group of cells by inserting the same two characters into all of them, but I'm just drawing a blank on how to do this. Could someone point me in the right direction?
**Old Cells**
HI.1
HI.2
HII.1
**New Cells**
H08I.1
H08I.2
H08II.1
```
UPDATE Cells SET Cell = LEFT(Cell, 1) + '08' ... | [
-0.041545942425727844,
0.27431628108024597,
0.48758673667907715,
-0.014016600325703621,
0.05036909878253937,
0.22220049798488617,
0.07338090240955353,
-0.2959846556186676,
-0.10925599932670593,
-0.7486653923988342,
0.024925321340560913,
0.05930202454328537,
-0.16533462703227997,
0.05944033... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.