text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
hurt as long as the files are 600.
Any problems you are having are client side, so be sure to include local OS information with any follow up questions! | [
0.22514450550079346,
0.04439166933298111,
0.08784977346658707,
0.36488139629364014,
-0.1014266237616539,
-0.15769658982753754,
0.4610089659690857,
0.2816365957260132,
-0.0016925000818446279,
-0.7990652322769165,
-0.09782414883375168,
0.9391627907752991,
0.08566806465387344,
0.0221376791596... | |
I want something that can check if a string is `"SELECT"`, `"INSERT"`, etc. I'm just curious if this exists.
Easy enough to add :
```
HashSet<String> sqlKeywords =
new HashSet<String>(Arrays.asList(
new String[] { ... cut and paste a list of sql keywords here .. }));
``` | [
0.2807353138923645,
0.053205154836177826,
0.18533916771411896,
-0.01733323745429516,
0.13283568620681763,
-0.15824159979820251,
0.019473135471343994,
-0.13407111167907715,
-0.04209434241056442,
-0.6144389510154724,
-0.0377802699804306,
0.6310336589813232,
-0.31425976753234863,
0.1304160505... | |
Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled)
As I understand it, and I may be wrong, the maximum addressable memory for a process is 4GB.
Is that 2GB of private bytes and 2GB of virtual bytes?
Do you get "out of memory" errors when the private byte limit or virtual byte limit is rea... | [
-0.37306496500968933,
0.16612353920936584,
0.6543543934822083,
-0.052951425313949585,
-0.030235767364501953,
-0.11413668841123581,
0.15083865821361542,
-0.008825327269732952,
-0.6019312739372253,
-0.5512211322784424,
-0.251150906085968,
0.777336835861206,
-0.25635090470314026,
-0.087510369... | |
instability. So, we are left with 2GB of addressable memory for the process to use on its own. Well, not entirely. It turns out that a part of this space is taken up by other stuff such as DLLs an other common code. The actual memory available to you as a programmer is around 1.5GB - 1.7GB.
I'm not sure about how you ... | [
-0.0703977569937706,
0.2818588316440582,
0.042754609137773514,
0.3879777491092682,
0.08364655077457428,
-0.07349251210689545,
0.18609055876731873,
0.26489177346229553,
-0.4467476010322571,
-0.4927231967449188,
0.3902430534362793,
0.4558853805065155,
-0.16730226576328278,
0.2024071514606475... | |
on a 64bit system unless they enable the /LARGEADDRESSAWARE:YES linker flag. | [
-0.22149811685085297,
0.01017808448523283,
0.4191410541534424,
0.19552533328533173,
0.5869200825691223,
-0.3055064082145691,
0.24414698779582977,
0.6292542815208435,
-0.31615275144577026,
-0.561817467212677,
-0.56572026014328,
0.2269553393125534,
-0.18812380731105804,
0.12298694252967834,
... | |
Are there any hard limits on the number of rows in a table in a sql server table? I am under the impression the only limit is based around physical storage.
At what point does performance significantly degrade, if at all, on tables with and without an index. Are there any common practicies for very large tables?
To g... | [
0.2569821774959564,
0.34454646706581116,
0.21109317243099213,
0.2697383165359497,
0.19589032232761383,
-0.15901964902877808,
-0.08248954266309738,
0.10879018902778625,
-0.49609097838401794,
-0.4365059435367584,
0.2586524188518524,
0.47594285011291504,
-0.05374523997306824,
0.08214938640594... | |
is limited by your available storage.
It is hard to give any numbers as it very much depends on your server hardware, configuration, and how efficient your queries are.
For example, a simple select statement will run faster and show less degradation than a Full Text or Proximity search as the number of rows grows. | [
-0.1899477243423462,
0.0030192548874765635,
0.1254872828722,
0.31492412090301514,
0.19871832430362701,
0.10509254783391953,
0.39178431034088135,
0.24495676159858704,
-0.14396676421165466,
-0.7029927372932434,
-0.20699459314346313,
0.23235797882080078,
-0.15438637137413025,
0.09317909181118... | |
A client of our has recently upgraded a ASP.NET 1.1 web application to ASP.NET that uses COM+ transaction processing and received the following exception while trying to process a transaction:
> Exception Type:
> System.Transactions.TransactionManagerCommunicationException
>
> Message: Communication with the
> ... | [
-0.09272676706314087,
-0.1410762071609497,
0.7673798203468323,
0.2213265746831894,
-0.028714053332805634,
0.0559392124414444,
0.2422095239162445,
0.01556254830211401,
-0.35511189699172974,
-0.9823604226112366,
-0.146527498960495,
0.35683587193489075,
-0.2436903864145279,
0.2328314334154129... | |
>
> -- Allow Outbound
>
> -- Incoming Caller Authenication Required
A Windows XP SP3 workstation is trying to establish a connection to a Windows Server 2003 machine.
Has anyone else experienced this error and know how to resolve it.
You'll need to have network DTC access enabled on both your XP workstation and... | [
-0.1700315624475479,
-0.0008623636676929891,
0.5711396932601929,
0.07377980649471283,
-0.1472313404083252,
-0.18575742840766907,
0.7966707944869995,
-0.024654142558574677,
-0.18193235993385315,
-0.4388061761856079,
-0.42363446950912476,
0.7224130034446716,
-0.2805406451225281,
0.0209017544... | |
I need to open a Microsoft Word 2003 file and change its file properties. Such as changing the Subject in the Summary Tab.

Microsoft provides a very useful little assembly called DSOFile. With a reference to it in your project, you can modify Office document properti... | [
0.2004288285970688,
0.10538360476493835,
0.4169068932533264,
0.2982792854309082,
0.1546265184879303,
-0.2932254672050476,
0.15075352787971497,
-0.057893745601177216,
-0.01878843829035759,
-0.8754671216011047,
-0.05831296369433403,
0.5621199607849121,
0.023875806480646133,
0.155185952782630... | |
(very old) VB code I used ages ago. Sorry I haven't converted to C# and be aware that it's part of a class so there are references to instance variables. Still, it should be pretty easy to understand and covert to your own needs:
```
Private Sub ProcessOfficeDocument(ByVal fileName As String)
Dim docDSO As New DSO... | [
0.11948376893997192,
0.11582086980342865,
0.8450701236724854,
0.14773699641227722,
0.27439627051353455,
-0.06074287369847298,
0.15374138951301575,
-0.18899990618228912,
-0.3606082797050476,
-0.4324077367782593,
-0.25824394822120667,
0.7360718846321106,
-0.13042335212230682,
0.4834556281566... | |
docTitle = docSummary.Title
docAuthor = docSummary.Author
docKeywords = docSummary.Keywords
docModified = CStr(docSummary.DateLastSaved)
If (Not String.IsNullOrEmpty(docTitle)) Then
_Title = docTitle
End If
If (Not String.IsNullOrEmpty(docAuthor)) Then
... | [
-0.2066858410835266,
0.13048958778381348,
0.7784289121627808,
-0.2571658492088318,
0.4989633858203888,
-0.27964311838150024,
0.04211931303143501,
-0.301561176776886,
-0.0656324103474617,
-0.41846632957458496,
-0.7255311608314514,
0.6637150049209595,
-0.0343644805252552,
0.39403238892555237... | |
If
If (Not String.IsNullOrEmpty(docModified)) Then
_DateModified = DateTime.Parse(docModified)
End If
Catch ex As Exception
'Do whatever you need to do here...'
Finally
If (Not docDSO Is Nothing) Then
docDSO.Close()
End If
End Try
End Sub
``... | [
0.04770432412624359,
-0.19924598932266235,
0.5832887291908264,
-0.3800986409187317,
0.578055739402771,
-0.4597952663898468,
0.34852197766304016,
-0.10091721266508102,
-0.09558426588773727,
-0.38182851672172546,
-0.7110599279403687,
0.4186227023601532,
-0.24716323614120483,
0.20013761520385... | |
Required is the true language version of the OS, not the user interface language or the current locale settings.
Use case: software installation which has to apply security settings and user account creation. The scripts have to know certain system properties like user group names in the original language of the OS.
... | [
0.004379009362310171,
0.3289320170879364,
0.49172812700271606,
-0.01126336120069027,
0.1358797252178192,
-0.2445993572473526,
0.5178887248039246,
-0.3014305830001831,
0.09886959195137024,
-0.5776546001434326,
-0.37776315212249756,
0.5162972807884216,
0.040117084980010986,
-0.08646985143423... | |
and then [LookupAccountSid](http://msdn.microsoft.com/en-us/library/aa379166.aspx). The name for other [well-known users and groups](http://support.microsoft.com/kb/243330) may be queried as well. | [
0.13508570194244385,
0.09499049186706543,
0.22823043167591095,
0.16564950346946716,
0.12247801572084427,
-0.09723170846700668,
0.08598686754703522,
0.13477227091789246,
-0.2739217281341553,
-0.15362299978733063,
-0.6147070527076721,
-0.01341056078672409,
0.06256771832704544,
0.241700664162... | |
I designed a data model which is represented by an XSD scheme.
The data model also provides the types that are being used as web service parameters in a WSDL descriptor.
I would like to send the XSD scheme around and ask the people involved to peer review the data model.
What tool or presentation method would you sug... | [
0.5478925704956055,
0.1604376584291458,
0.1942741572856903,
0.2484448403120041,
-0.07155059278011322,
-0.10368358343839645,
-0.061907682567834854,
-0.0861658826470375,
-0.053830232471227646,
-0.6729377508163452,
-0.06690752506256104,
0.40583693981170654,
-0.21215395629405975,
-0.0379496440... | |
code which is based on JAXB generated classes. My goal is
1. to freeze the data model and thus
the input parameters
2. to make sure
nothing got lost or forgotten from a
semantic (in the meaning of
business-relevant) point of view.
**Edit 2**
I've been thinking about how it probably would be best to spread a datamod... | [
0.5337592959403992,
0.0741722360253334,
0.2219126671552658,
0.22270536422729492,
-0.22060249745845795,
-0.1581854224205017,
0.181655153632164,
-0.15982571244239807,
-0.08467152714729309,
-0.7343347668647766,
-0.27803054451942444,
0.5160730481147766,
-0.33375877141952515,
-0.001955766463652... | |
XSD
* [xsddoc](http://xframe.sourceforge.net/xsddoc/index.html)
+ free / LGPL
+ mainly XSLT based
+ JavaDoc like output
+ see [xsddoc examples](http://xframe.sourceforge.net/xsddoc/examples.html)
* [xnsdoc](http://www.buldocs.com/xnsdoc/index.html)
+ improved commercial version of xsddoc
+ free for personal/educa... | [
0.2377096712589264,
0.01033127959817648,
0.47040486335754395,
0.04639337211847305,
-0.3566184937953949,
-0.16695822775363922,
-0.06423541903495789,
0.09853585064411163,
-0.2805096209049225,
-0.9439988732337952,
-0.2911333739757538,
0.42130428552627563,
-0.4460427463054657,
0.22996117174625... | |
Is there a way to have a RewriteRule fire on any domain that is requested on a box? For example, I have 5 VirtualHosts that would have the exact same RewriteRule applied to them and currently each VirtualHost directive has the rule, but can I put this somewhere 'global' so that upkeep is easier?
No, I'm afraid not | [
0.3915446400642395,
0.16761815547943115,
0.659212052822113,
0.13616010546684265,
0.2961972653865814,
-0.39939573407173157,
0.311395525932312,
0.038963764905929565,
-0.3186141550540924,
-0.5174781680107117,
0.09841566532850266,
0.5207616090774536,
-0.17122355103492737,
0.317707359790802,
... | |
This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these.
**Edit:** I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel gives in his article (as per my answer)... | [
0.18491904437541962,
0.15156647562980652,
-0.07428225129842758,
0.13802027702331543,
0.03362329304218292,
-0.021979806944727898,
0.08344584703445435,
0.4375056326389313,
-0.1133284866809845,
-0.46186140179634094,
-0.017148496583104134,
-0.11804980039596558,
0.0019108697306364775,
0.1224023... | |
I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions `get()`, `save()`, `all()` and `count()` available to the client. Additionally, it would be great to have the field list of the model a... | [
0.49389830231666565,
0.2821676433086395,
0.21847008168697357,
-0.017039790749549866,
-0.09300024062395096,
-0.48175889253616333,
-0.02089054137468338,
-0.07905355840921402,
-0.27194708585739136,
-0.6633716821670532,
0.15293817222118378,
0.6745164394378662,
-0.02038433961570263,
-0.07122691... | |
model from a Django model?
Thanks.
It sounds like you're looking for a complete JavaScript interface to the model and queryset APIs. I can't imagine that this would have ever been done or even be a simple task. Not only would you need to somehow generate JavaScript instances of models (much more than JSON serialisatio... | [
0.3419717252254486,
0.12861399352550507,
-0.07901345938444138,
0.23157979547977448,
-0.21268720924854279,
-0.02346029132604599,
0.1468561589717865,
-0.27286043763160706,
-0.20698539912700653,
-0.43502604961395264,
0.2027009278535843,
0.4770001173019409,
-0.4065224230289459,
0.1408776044845... | |
approach would be to use one of the various Django REST modules and JSON serialization. You could perform an AJAX GET request on a resource, which can be identified by a series of query parameters that would be equivalent to chained queryset filters. This would return the JSON representation of the model's values. You ... | [
-0.07451166212558746,
-0.3981170058250427,
0.1701246201992035,
0.3450033366680145,
-0.1614726185798645,
-0.10582511872053146,
-0.08077538013458252,
-0.3253565728664398,
-0.262736976146698,
-0.5446649193763733,
0.001316020730882883,
0.6457183361053467,
-0.3781834542751312,
-0.00979775935411... | |
straightforward enough - This is basically the JavaScript equivalent of using an HTML form to modify data. | [
0.2141844630241394,
0.003337602596729994,
0.20205606520175934,
0.0351533479988575,
-0.220432847738266,
-0.1842322200536728,
-0.04967009276151657,
-0.1627543866634369,
-0.0078088329173624516,
-0.405354380607605,
-0.09946843236684799,
0.5037627220153809,
-0.2241487354040146,
-0.3305522501468... | |
I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters.
Is there a way to change this?
Update: As was pointed out before, this is a limit to the default shell for Solaris (sh) ... | [
0.4614768326282501,
-0.05866251140832901,
0.369221568107605,
0.08919036388397217,
-0.20644275844097137,
0.06026764214038849,
0.3417254686355591,
0.004660073667764664,
-0.3563627600669861,
-0.7456288933753967,
0.004069939721375704,
0.8646247386932373,
-0.21794544160366058,
0.030703343451023... | |
same shell you're using on Linux, does that fix the problem?
Please comment if there's a better route to a solution, and I'll make the change in my answer. | [
0.3374594449996948,
0.14730381965637207,
0.004284050315618515,
0.3673143982887268,
0.12392114102840424,
0.019857248291373253,
-0.1696467399597168,
0.42134836316108704,
-0.21293233335018158,
-0.4368612766265869,
0.06702178716659546,
0.8636242151260376,
-0.21687988936901093,
-0.0079271802678... | |
I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example:
The user types "ma2" into an input element. The keydown event triggers for every keystroke, and the 2 never appears. Instead, w... | [
0.05779446288943291,
-0.10482831299304962,
0.3174946904182434,
-0.31913208961486816,
0.168732687830925,
0.15004214644432068,
0.10910644382238388,
-0.3666776716709137,
0.1614001840353012,
-0.6177288889884949,
-0.2288578897714615,
0.5250568985939026,
-0.1394556760787964,
-0.093504399061203,
... | |
calling .val("something"), the cursor moves to the end of the text. This works fine in most situations because a user just continues typing at the end of the field, but I want this to work in *all* situations.
...another solution to this problem would be to get/set the location of a cursor within an input or textarea ... | [
-0.14581681787967682,
-0.28574666380882263,
0.3774499297142029,
0.05081350728869438,
-0.13226798176765442,
-0.12119060754776001,
0.3955797255039215,
-0.10898736119270325,
0.14634637534618378,
-0.4722028970718384,
-0.26772400736808777,
0.8710253834724426,
-0.25169575214385986,
-0.0136777423... | |
the input/textarea, and then move the caret.
I haven't found anything good for caret getting/setting in jQuery, but the following really broke that problem down for me. I'll post a link to my final pinyin input code when it's stable. It's pretty close now.
<http://blog.vishalon.net/Post/57.aspx>
<http://demo.vishalon... | [
-0.0564221628010273,
-0.150124192237854,
0.6302585601806641,
0.16692380607128143,
-0.16486041247844696,
0.049243055284023285,
0.11970529705286026,
-0.16408520936965942,
0.19215232133865356,
-0.7687669992446899,
-0.15483298897743225,
0.47071942687034607,
0.12979061901569366,
-0.218225121498... | |
createTextRange (for IE).
I've put together a little demo - the replacements you'll see don't match real words, but it shows how it works:
<http://jsbin.com/emudi/> (to edit the source <http://jsbin.com/emudi/edit>)
The trick is to take note of where the carat is, replace the found word using substr (rather than reg... | [
0.09585873037576675,
-0.13383811712265015,
0.558958888053894,
0.12424006313085556,
-0.19015289843082428,
0.06235853210091591,
0.2984021306037903,
-0.14559072256088257,
0.21131695806980133,
-0.8837151527404785,
-0.2828540802001953,
0.44453176856040955,
-0.18495193123817444,
-0.2002928256988... | |
replacements on *every* keypress. | [
0.17749178409576416,
0.07393994182348251,
0.03941069543361664,
0.18480220437049866,
0.13412199914455414,
0.5935238599777222,
0.08368100970983505,
0.22429832816123962,
-0.475350558757782,
-0.7681595087051392,
-0.3567185401916504,
0.32134851813316345,
-0.2513662576675415,
0.13148589432239532... | |
How can you round *any* number (not just integers > 0) to N significant digits?
For example, if I want to round to three significant digits, I'm looking for a formula that could take:
1,239,451 and return 1,240,000
12.1257 and return 12.1
.0681 and return .0681
5 and return 5
Naturally the algorithm should not be... | [
-0.09277065843343735,
-0.05887700989842415,
0.13918082416057587,
-0.1499014049768448,
-0.2026747465133667,
0.19008080661296844,
0.22193236649036407,
-0.6452726125717163,
-0.32448846101760864,
-0.3763037621974945,
0.44355466961860657,
0.38687166571617126,
-0.11910077184438705,
0.01364739984... | |
more clear
The bug was caused by multiplying a large number with a small number. Instead I divide two numbers of similar size.
**EDIT**
Fixed more bugs. Added check for 0 as it would result in NaN. Made the function actually work with negative numbers (The original code doesn't handle negative numbers because a lo... | [
0.03333259001374245,
-0.18456882238388062,
0.2861260771751404,
-0.15042996406555176,
-0.02442578226327896,
0.21831268072128296,
0.31346920132637024,
-0.2550165355205536,
-0.29598870873451233,
-0.269450843334198,
-0.018887288868427277,
0.5664288401603699,
-0.2424921989440918,
0.163804948329... | |
-num: num));
final int power = n - (int) d;
final double magnitude = Math.pow(10, power);
final long shifted = Math.round(num*magnitude);
return shifted/magnitude;
}
``` | [
0.010312981903553009,
-0.18200181424617767,
0.3743564784526825,
-0.46500468254089355,
-0.34031376242637634,
0.48200950026512146,
0.4066002070903778,
-0.4083891212940216,
-0.17345699667930603,
-0.2677013874053955,
-0.3938479721546173,
0.37733981013298035,
0.22150978446006775,
0.530138790607... | |
I've created a PHP DOM xml piece and saved it to a string like this:
```
<?php
// create a new XML document
$doc = new DomDocument('1.0');
...
...
...
$xmldata = $doc->saveXML();
?>
```
Now I can't use the headers to send a file download prompt and I can't write the file to the server, or rather I don... | [
0.3866221606731415,
0.2438293993473053,
0.5134031772613525,
-0.16972443461418152,
-0.06010245904326439,
-0.1899050772190094,
0.10320644825696945,
-0.2056708037853241,
-0.28260740637779236,
-0.706005871295929,
0.006548052653670311,
0.5202853083610535,
-0.12558162212371826,
0.211635366082191... | |
framework and are unable to stop content from being output prior to where your code will be.
If the script in which you're working has already output content (beyond your control), then you can't do what you're trying to achieve in just one script.
Your script can either send headers saying "the following content is ... | [
0.5068715810775757,
0.02381276898086071,
0.20420478284358978,
0.11348258703947067,
-0.2214324176311493,
-0.4592477083206177,
0.21128132939338684,
-0.4089219868183136,
-0.21737223863601685,
-0.8010580539703369,
-0.2114943265914917,
0.43305301666259766,
-0.46355774998664856,
-0.0731947496533... | |
file download and output no HTML.
Therefore, you'll have to add a download link in the output of the CMS script you're modifying and then handle the download in a separate script.
I have made a working example that should help. The example includes a simple HTML document containing a download link, and a PHP script t... | [
0.18183554708957672,
0.08968769758939743,
0.7690536379814148,
0.24487650394439697,
0.07186514884233475,
-0.07363227009773254,
-0.11953789740800858,
-0.18486066162586212,
-0.27981334924697876,
-0.7550945281982422,
-0.328376442193985,
0.6545162200927734,
-0.10487843304872513,
0.0163375996053... | |
document are made
// Output headers
header('Content-type: "text/xml"; charset="utf8"');
header('Content-disposition: attachment; filename="example.xml"');
// Output content
echo $doc->saveXML();
?>
```
If you are fully unable to handle the download via a second script (perhaps you can't get access to th... | [
0.5030488967895508,
0.030927749350667,
0.8088552951812744,
0.06684990227222443,
0.2893957793712616,
-0.3048305809497833,
0.10750595480203629,
-0.4024309515953064,
-0.1092776209115982,
-0.5853618383407593,
-0.7367597222328186,
0.4627722203731537,
0.022521669045090675,
0.19891072809696198,
... | |
I know you can do a trick of putting an HTML element on top of a Silverlight app, but that will not work full screen. Is there anyway to show an html page inside a Silverlight application?
The answer is, you can't. At least right now you can't - in the future it might be added but that's certainly not going to occur fo... | [
0.616065263748169,
-0.00951419398188591,
0.5025873780250549,
0.16418224573135376,
-0.11802981793880463,
-0.34464186429977417,
0.33249765634536743,
-0.1329328566789627,
-0.2028077095746994,
-0.4542080760002136,
0.22936677932739258,
0.4410236179828644,
-0.34028178453445435,
0.166566714644432... | |
not be as complex as you need. | [
0.4100651741027832,
0.16273637115955353,
-0.7867207527160645,
0.03580617532134056,
-0.10383190959692001,
0.05671987310051918,
0.38772687315940857,
0.3668644428253174,
0.25135359168052673,
-0.6366667747497559,
-0.08446624130010605,
0.33571434020996094,
-0.21472029387950897,
0.08292912691831... | |
I have a source base that, depending on defined flags at build time, creates two different apps. I can build both of these apps using a Makefile by specifying two different targets, one that compiles with a flag and one that compiles without, and having an aggregate target that builds both.
How do I do the equivalent ... | [
1.01764976978302,
0.09174780547618866,
0.020897505804896355,
-0.005100912880152464,
0.1652856469154358,
0.3360457122325897,
0.032797377556562424,
-0.1465081125497818,
0.008900060318410397,
-0.8146846294403076,
0.32022354006767273,
0.4842996895313263,
-0.32779592275619507,
-0.14924861490726... | |
which always builds to intermediate binary and then have a postbuild step that copies it to the final binary depending on the flag. | [
-0.12060315907001495,
0.0065574622713029385,
0.14994096755981445,
-0.09575782716274261,
0.11434655636548996,
-0.037504252046346664,
0.20830893516540527,
-0.1381027102470398,
0.055196262896060944,
-0.4714103043079376,
-0.3026304841041565,
0.0645260289311409,
-0.1267932951450348,
-0.08107890... | |
Does anyone have any information about getting the current versions of ASP.NET MVC (Preview 5) working on Mono 2.0? There was info on the old versions (Preview 2, maybe Preview 3), but I've seen no details about making Preview 5 actually work.
The [Mono Project Roadmap](http://www.mono-project.com/Roadmap) indicates A... | [
0.6391044855117798,
0.05551987141370773,
0.14016419649124146,
-0.015804292634129524,
-0.23504112660884857,
-0.19642579555511475,
0.5851885676383972,
0.13926148414611816,
-0.3174840807914734,
-0.4449164569377899,
0.0013454353902488947,
0.5158379077911377,
-0.12165442109107971,
0.10188095271... | |
500. Error processing request.
Stack Trace:
System.Web.HttpException: The virtual path '' maps to another application.
at System.Web.HttpContext.RewritePath (System.String filePath, System.String pathInfo, System.String queryString, Boolean setClientFilePath) [0x00000]
at System.Web.HttpContext.RewritePath (Syst... | [
-0.32285046577453613,
-0.11193989217281342,
0.4647882282733917,
0.13700439035892487,
0.15755058825016022,
0.18071025609970093,
0.3725457489490509,
-0.6254681944847107,
-0.35837942361831665,
-0.6455050110816956,
-0.12195438891649246,
0.46648845076560974,
-0.17953550815582275,
-0.02679216116... | |
RewritePath to / has some sort of bug, so just avoid that. Changing the RewritePath(Request.ApplicationPath) to:
```
HttpContext.Current.RewritePath("/Home/Index");
```
Seems to fix the problem, and at least the demo works so far. | [
0.1539466679096222,
0.11250068992376328,
0.4158421456813812,
-0.1727677434682846,
0.28838005661964417,
-0.15578454732894897,
0.7163063883781433,
0.24714261293411255,
-0.12126977741718292,
-1.1490477323532104,
-0.3257546126842499,
0.6050240993499756,
-0.28134316205978394,
0.2242990434169769... | |
I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar.
screen output:
> Copying
> /user2/cdb/builds/tmp/uat/myfiles/\* to
> server /users/myfiles as cdb
>
>
> cdb@server's password:
> myfile 100% ... | [
0.3673057556152344,
0.036049216985702515,
0.557017982006073,
-0.1996692419052124,
0.01740511693060398,
-0.2754843831062317,
0.3266202509403229,
-0.015052922070026398,
-0.28070008754730225,
-0.9303143620491028,
0.0540059469640255,
0.501363217830658,
-0.1204495057463646,
-0.04128618910908699... | |
like your just missing whether the scp was succesful or not from the log.
I'm guessing the scroll bar doesn't print to stdout and uses ncurses or some other kind of TUI?
You could just look at the return value of scp to see whether it was successful. Like
```
scp myfile user@host.com:. && echo success!
```
`man ... | [
0.05268273130059242,
0.10038795322179794,
0.4105170965194702,
-0.020725660026073456,
0.1967499554157257,
-0.19561675190925598,
0.5669426321983337,
-0.0005400165682658553,
-0.6994512677192688,
-0.2630944848060608,
-0.20847275853157043,
0.360461950302124,
-0.2717558741569519,
0.3983458876609... | |
Is it correct to say that typically user\_dump\_dest is on a local drive?
If so, are there issues with mounting a NAS volume to both Unix and Windows and pointing user\_dump\_dest at that?
If so, what are they?
Are any issues worth not doing this in prod?
I've run 9.2 instances with user\_dump\_dest on a NAS and ne... | [
0.3065579831600189,
0.008889361284673214,
-0.00012023420276818797,
0.155350461602211,
-0.17618359625339508,
-0.35431528091430664,
0.01021474041044712,
0.31188830733299255,
-0.4099447429180145,
-0.7340019941329956,
0.08451822400093079,
1.1108057498931885,
0.0359167717397213,
0.2254691869020... | |
How can I use HttpWebRequest (.NET, C#) asynchronously?
Use [`HttpWebRequest.BeginGetResponse()`](http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse.aspx)
```
HttpWebRequest webRequest;
void StartWebRequest()
{
webRequest.BeginGetResponse(new AsyncCallback(FinishWebRequest), null);... | [
-0.1936783790588379,
-0.05125956982374191,
0.5374922156333923,
-0.160365030169487,
0.0995965525507927,
-0.14546360075473785,
0.4390619695186615,
-0.47549402713775635,
-0.10088074952363968,
-0.6894195079803467,
-0.3499983251094818,
0.6207854151725769,
-0.18632903695106506,
0.181234911084175... | |
Is there a way to automatically increment the "minimum required version" fields in a ClickOnce deployment to always equal the current build number? Basically, I always want my deployment to be automatically updated at launch.
I suspect I'm going to need a some pre-/post-build events, but I hope there's an easier way.
... | [
0.14856284856796265,
-0.27068665623664856,
0.7904873490333557,
-0.11589279025793076,
-0.14430104196071625,
-0.20203734934329987,
0.3766408860683441,
0.14189308881759644,
-0.2557316720485687,
-0.8249499201774597,
-0.21696418523788452,
0.9368806481361389,
-0.3473348915576935,
-0.166866451501... | |
<FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)">
<Output PropertyName="MinimumRequiredVersion" TaskParameter="OutputVersion" />
</FormatVersion>
<FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)">
<Output PropertyName="_DeploymentBuiltM... | [
0.12966689467430115,
-0.23562023043632507,
1.027209758758545,
-0.21970516443252563,
-0.12630817294120789,
0.02990618161857128,
-0.09323757886886597,
-0.3137717545032501,
-0.23042325675487518,
-0.814577043056488,
-0.12713274359703064,
0.5518395900726318,
-0.027699533849954605,
-0.0348927974... | |
set the 'Minimum Required Version' to be the same as the 'Publish Version' therefore ensuring that the new deployment will always be installed by users, ie no option to Skip the update.
Of course, if you don't want to set the minimum required version to the publish version and want to use a different source property t... | [
0.5144795179367065,
-0.00007896550232544541,
0.39092814922332764,
-0.0495508648455143,
0.09967650473117828,
-0.457151859998703,
0.25986990332603455,
-0.1423858106136322,
-0.06217510253190994,
-0.5417608618736267,
-0.2787521779537201,
0.9573757648468018,
-0.17415298521518707,
-0.31005963683... | |
My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains classes and services visible to the entire app.
Everything was working fine, until I added a ne... | [
0.30798131227493286,
0.2982696294784546,
0.40492677688598633,
-0.2502857744693756,
0.09026290476322174,
0.09724694490432739,
0.4894670844078064,
-0.08587687462568283,
-0.08921120315790176,
-0.6332898736000061,
0.03826647624373436,
0.625756561756134,
-0.4276879131793976,
0.13844750821590424... | |
the tests.
I've tried the following things:
* Rebuilt entire solution, refreshed stuff in GAC, then ran tests = failure
* Removed and re-added FooCore assembly reference in test project = failure
* Ensured that FooCore is set as "Copy Local" in properties = failure
What can I do to ensure that VSTS loads referenced ... | [
0.4210067689418793,
0.21654756367206573,
-0.07583939284086227,
-0.18401385843753815,
-0.04222922399640083,
0.1361178457736969,
0.7610628008842468,
-0.33990544080734253,
-0.3454954922199249,
-0.5531762838363647,
0.13113296031951904,
0.6332817673683167,
-0.08854260295629501,
0.19129131734371... | |
solution, then
2. Refreshing everything in the GAC, then
3. Removing and re-adding the assembly references in my test project, then
4. Closing and re-opening Visual Studio 2008
I'm not sure which of these steps were explicitly necessary, but this "kitchen sink" approach resolved the issue for me.
Update: [This Micros... | [
0.00886267889291048,
0.16128815710544586,
0.36346545815467834,
-0.300179660320282,
0.08297150582075119,
-0.08118424564599991,
0.5182849764823914,
-0.1960446983575821,
-0.13051511347293854,
-0.5290418267250061,
-0.37427881360054016,
0.6113573312759399,
-0.3128886818885803,
0.014461734332144... | |
So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields.
One common pattern is to use static methods as a static factory, but this could just as easily be done by overloading a constructor. Correct? ... | [
0.5076727867126465,
0.06129620224237442,
-0.059612736105918884,
0.08004920929670334,
-0.35132068395614624,
-0.06976847350597382,
0.20113949477672577,
-0.09002777934074402,
-0.3345487117767334,
-0.4244590401649475,
-0.03947492316365242,
0.45365267992019653,
-0.47070685029029846,
-0.09930633... | |
have a different meaning. For example, imagine if Bitmap had LoadFromResource(string) -- it would not be possible to have two constructors that both took string.
**EDIT**: From stevemegson in the comments
> A static factory can also return null, and can more easily return an instance that it got from cache. Many of m... | [
0.3976317048072815,
-0.29760244488716125,
0.038621872663497925,
0.008896378800272942,
-0.2926222085952759,
0.07486860454082489,
0.3570806384086609,
0.15504702925682068,
-0.21392221748828888,
-0.5570820569992065,
-0.037671662867069244,
0.31868091225624084,
-0.3360956907272339,
0.33496689796... | |
What is the best or most concise method for returning a string repeated an arbitrary amount of times?
The following is my best shot so far:
```
function repeat(s, n){
var a = [];
while(a.length < n){
a.push(s);
}
return a.join('');
}
```
Good news! [`String.prototype.repeat`](https://develope... | [
-0.025725219398736954,
-0.12933242321014404,
0.6421462893486023,
-0.34930261969566345,
-0.19346743822097778,
0.06690467894077301,
0.3612830340862274,
-0.2007603943347931,
-0.45006102323532104,
-0.4795527160167694,
-0.09950459003448486,
0.3907795250415802,
-0.3236886262893677,
0.37158071994... | |
Is there an Oracle equivalent to MS SQL's full text search service?
If so, has anyone implemented it and had good / bad experiences?
[Oracle Text](http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/content.htm#sthref2643) is the equivalent functionality.
I've had good experiences with it. Assuming that yo... | [
0.08618979901075363,
0.08435416966676712,
0.01005360297858715,
0.13189370930194855,
-0.11356314271688461,
-0.17434042692184448,
0.22877685725688934,
0.1846834421157837,
-0.1541052758693695,
-0.28808462619781494,
-0.047718700021505356,
0.8919904828071594,
-0.10064082592725754,
-0.3550349473... | |
I have a VB6 dll that is trying to create a COM object using the following line of code:
```
Set CreateObj = CreateObject("OPSValuer.OPSValue")
```
However this fails with the error "Object variable or With block variable not set".
I can see OPSValuer.OPSValue in dcomcnfg and it appears to be registered fine. Does ... | [
0.5103140473365784,
0.05701672285795212,
0.3749121427536011,
-0.06055651977658272,
0.07871628552675247,
-0.22535297274589539,
0.40403231978416443,
-0.02327742427587509,
-0.3208569884300232,
-0.8490739464759827,
0.039246585220098495,
0.8253440260887146,
-0.3797103762626648,
0.02335539832711... | |
in the constructor you will get that error. Is this a local DCom object or something running on another tier?
Instead of CreateObject try instantiating it with a standard New and see if it gives you a different error. Adding the reference itself may help out with determining that error. Is there a reason you are using... | [
0.5056977868080139,
-0.005850240122526884,
0.32144489884376526,
0.20747287571430206,
-0.21873416006565094,
-0.48624876141548157,
0.17417608201503754,
-0.2833847403526306,
-0.15226693451404572,
-0.7274893522262573,
0.11861733347177505,
0.4136946201324463,
-0.3773738443851471,
0.365545183420... | |
Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of widgets.
Have a look at [this](http://art.gnome.org/themes/gtk2/?sort_by=popularity&limi... | [
0.3144828975200653,
0.05498318746685982,
0.4135517477989197,
0.017976908013224602,
-0.3226931095123291,
-0.16616632044315338,
0.042993269860744476,
-0.07079571485519409,
-0.3599860370159149,
-0.6800594925880432,
-0.15268215537071228,
0.6068700551986694,
-0.17207996547222137,
0.147225543856... | |
Linux environment, please please please show me, I really WANT to use Linux.
(and I know, there's QT, and other managers like KDE etc. I noticed the same thing, so it probably isn't GTK or Gnome alone)
> The entire linux desktop doesn't have the visual integrity of OSX for instance, and I wonder why. If there is any e... | [
0.09265506267547607,
0.17587390542030334,
0.10888839513063431,
0.20339177548885345,
-0.014189462177455425,
-0.10114070773124695,
-0.0003527156659401953,
0.3600323796272278,
-0.43524599075317383,
-0.8031622171401978,
-0.03399953991174698,
0.8886569142341614,
-0.5780826807022095,
-0.12982305... | |
alone)
You basically just answered your own question - Mac OS X has **one** desktop environment (centered around Cocoa), which has a lot of very good programmers *and* designers spending much time designing, discussing and implementing it.
With "Linux", there's not only different window managers (Gnome, KDE, Flux/Ope... | [
0.2946375608444214,
0.3924482464790344,
0.2886475920677185,
0.18801942467689514,
-0.6145777702331543,
0.11834128201007843,
-0.015356802381575108,
-0.36532607674598694,
-0.6048645973205566,
-0.4753202199935913,
0.003776022233068943,
0.3845177888870239,
-0.29250985383987427,
0.03062282875180... | |
GUI toolkits, but they are spread over so many different projects. Even if they somehow were put onto a single project (Say, "wxQtGnome"), there would still be countless applications that use a different framework, or even a different version of one.. Then you still have the problem with inconsistency. Again, compared ... | [
-0.030593013390898705,
0.1534641534090042,
0.2692921459674835,
0.35521480441093445,
-0.1860993355512619,
-0.07942745089530945,
-0.05243076756596565,
0.22614671289920807,
-0.297678679227829,
-0.9068787693977356,
0.04109993577003479,
0.9468376040458679,
-0.37586352229118347,
-0.1406919807195... | |
Ubuntu installation is probably the closest to this. A decent theme, and all the applications fit fairly well together. | [
0.2594415843486786,
0.018643543124198914,
0.21686390042304993,
0.06378715485334396,
-0.21717195212841034,
-0.1255050152540207,
-0.13845783472061157,
0.6325612664222717,
-0.15135106444358826,
-0.6663927435874939,
-0.29519838094711304,
0.09165911376476288,
-0.26664361357688904,
0.18314383924... | |
If I try to insert data with a 20 digit primary key into a SQLite database I get an error with the second insert statement because it "is not unique".
If I select the values I can see from the SQLite commandprompt that the primary key is written in scientific notation.
The column type is decimal. Is there a way to for... | [
0.03652571141719818,
0.25742200016975403,
0.3310879170894623,
0.12159357964992523,
0.15757369995117188,
-0.1546032428741455,
0.1368401050567627,
0.047630637884140015,
-0.01024282444268465,
-0.1400580257177353,
0.051423460245132446,
0.2752778232097626,
-0.24044905602931976,
0.24541948735713... | |
Is there a good method for writing C / C++ function headers with default parameters that are function calls?
I have some header with the function:
```
int foo(int x, int y = 0);
```
I am working in a large code base where many functions call this function and depend on this default value. This default value now ne... | [
0.04301781952381134,
0.0741477757692337,
0.06021055579185486,
-0.14376777410507202,
-0.014887168072164059,
-0.027644719928503036,
-0.035162486135959625,
0.0022094943560659885,
0.03442486375570297,
-0.37269270420074463,
0.1367957890033722,
0.5807549953460693,
-0.5691257119178772,
-0.0037790... | |
y = baz.bar());
```
Where baz is a function belonging to an object that has not been instantiated within the header file.
Go figure! It does work. [Default arguments in C++ functions](http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/cplr237.htm) | [
0.2973373234272003,
0.06546902656555176,
0.32966330647468567,
-0.2880920171737671,
0.20821398496627808,
0.13799165189266205,
0.319622665643692,
-0.07636673003435135,
-0.2521970868110657,
-0.07823095470666885,
-0.431083619594574,
0.5390086770057678,
-0.49242424964904785,
-0.0983394980430603... | |
Can I set timeouts for JSP pages in tomcat either on a per page or server level?
For server level, you can try this.
you have to change `catalina.bat` / `catalina.sh` file
```
jvm OPTIONS : -Dsun.net.client.defaultConnectTimeout=60000 -Dsun.net.client.defaultReadTimeout=60000
``` | [
0.2437880039215088,
-0.22526653110980988,
0.5379191040992737,
0.364760160446167,
-0.007971393875777721,
-0.18390430510044098,
0.4433448612689972,
-0.11881987750530243,
-0.4394036531448364,
-0.506317675113678,
0.05540604516863823,
0.47024303674697876,
0.17683878540992737,
0.0063573080115020... | |
I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail).
The code I'm using to do this is:
```
UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zoomLevel];
[CATransaction setValue:(id)kCFBooleanTrue
... | [
0.14254558086395264,
0.00956304557621479,
0.7079847455024719,
-0.07718803733587265,
-0.031494613736867905,
-0.07477397471666336,
0.15025544166564941,
-0.11486954987049103,
-0.07195700705051422,
-0.865948498249054,
0.06372913718223572,
0.6790152192115784,
-0.28812175989151,
-0.0591545291244... | |
holds all the info I need for this thread.
Help?
There's not a big performance boost - if anything it's the other way around. By going throuh UIImage to load up your images, you'll get all the benefits of caching that it does for you and it'll be a very speedy critter to use with your various CALayers. | [
0.6391807794570923,
0.07820820063352585,
0.3560599386692047,
0.5143471360206604,
-0.09734518826007843,
0.056458212435245514,
-0.1670674979686737,
0.3392030596733093,
-0.25561249256134033,
-0.43046244978904724,
0.28346559405326843,
0.3340357840061188,
-0.012341602705419064,
0.12346499413251... | |
Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example:
```
int[] terms;
for(int runs = 0; runs < 400; runs++)
{
terms[] = runs;
}
```
For those who have used PHP, here's what I'm trying to do in C#:
```
$arr = array();
for ($i = 0; $i < 10; $i++) {
$ar... | [
0.025094572454690933,
0.04375772178173065,
0.4539381265640259,
-0.167881041765213,
-0.34240400791168213,
-0.09114529192447662,
0.1345248520374298,
-0.5247254371643066,
-0.19546616077423096,
-0.5301351547241211,
0.08938885480165482,
0.5721418261528015,
-0.3124621510505676,
-0.21204078197479... | |
need to know the array size when instantiating the list.
```
List<int> termsList = new List<int>();
for (int runs = 0; runs < 400; runs++)
{
termsList.Add(value);
}
// You can convert it back to an array if you would like to
int[] terms = termsList.ToArray();
```
**Edit:** [a) **for** loops on List<T> are a bit... | [
0.1436876654624939,
-0.29675137996673584,
0.48013657331466675,
-0.09557242691516876,
-0.13699130713939667,
0.02461809478700161,
0.35465550422668457,
-0.6915719509124756,
-0.40694865584373474,
-0.6216296553611755,
-0.04468823969364166,
0.6172744631767273,
-0.21905286610126495,
0.00840875599... | |
I am trying to start a service from the command line using "net start SERVICENAME" and I get an access denied error.
I am an administrator on this server since I am in a domain group that are admins on the server. I **can** start/stop the service from the Services tool.
I am new to 2008/Vista so maybe I am just missi... | [
0.2332536280155182,
-0.006813192740082741,
0.2278534471988678,
0.002085305517539382,
-0.277394562959671,
-0.38815736770629883,
0.5240565538406372,
0.33711302280426025,
-0.3031516671180725,
-0.9933178424835205,
-0.13401345908641815,
0.645219087600708,
-0.08046399801969528,
0.388726294040679... | |
create a shortcut to cmd and set the shortcut to run as administrator if this is something you're going to do often. | [
0.40023285150527954,
-0.2036915123462677,
-0.07998871803283691,
0.17828789353370667,
-0.09976603835821152,
-0.418852835893631,
0.17139756679534912,
0.4211200177669525,
-0.2912485599517822,
-0.9137341976165771,
0.06598533689975739,
0.355666846036911,
-0.05197315290570259,
0.0726845338940620... | |
I have some hierarchical data - each entry has an id and a (nullable) parent entry id.
I want to retrieve all entries in the tree under a given entry. This is in a SQL Server 2005 database. I am querying it with LINQ to SQL in C# 3.5.
LINQ to SQL does not support [Common Table Expressions](http://msdn.microsoft.com/en... | [
-0.031535450369119644,
0.34934139251708984,
0.411838561296463,
0.05625152587890625,
-0.0521194152534008,
-0.11443202942609787,
0.10996266454458237,
-0.22722449898719788,
-0.22126440703868866,
-0.48349806666374207,
0.12954917550086975,
0.21039333939552307,
-0.16545838117599487,
0.1929214298... | |
Server 2008's [HierarchyId type](http://msdn.microsoft.com/en-us/library/bb677173.aspx) supported in Linq to SQL?
I would set up a view and an associated table-based function based on the CTE. My reasoning for this is that, while you could implement the logic on the application side, this would involve sending the inte... | [
-0.40363189578056335,
0.04434952139854431,
0.6457765102386475,
-0.12749777734279633,
-0.3674992620944977,
-0.0787092074751854,
0.2554846405982971,
-0.16933798789978027,
0.026991235092282295,
-0.3764950931072235,
0.20275595784187317,
0.4557240605354309,
-0.4456183910369873,
-0.0011701828334... | |
engine to take your parameters into account while constructing the result set rather than applying a condition on the result set defined by the view after the fact.
```
CREATE TABLE [dbo].[hierarchical_table](
[id] [int] IDENTITY(1,1) NOT NULL,
[parent_id] [int] NULL,
[data] [varchar](255) NOT NULL,
CONST... | [
-0.5050296783447266,
-0.4057069420814514,
0.5532369613647461,
-0.03995463252067566,
-0.01004854403436184,
0.14540819823741913,
0.00682999799028039,
-0.4749315679073334,
-0.11707127839326859,
-0.821240246295929,
-0.2013203352689743,
0.7058557868003845,
-0.4583086371421814,
0.064779117703437... | |
AS lvl
FROM dbo.hierarchical_table
WHERE (parent_id IS NULL)
UNION ALL
SELECT t1.id, t1.parent_id, t1.data, h.lvl + 1 AS lvl
FROM dbo.hierarchical_table AS t1 INNER JOIN | [
-0.1698118895292282,
-0.280931681394577,
0.632138729095459,
-0.31053099036216736,
-0.21832214295864105,
0.36670491099357605,
0.08203058689832687,
-0.48642581701278687,
-0.09669937938451767,
-0.5718592405319214,
-0.3200762867927551,
0.1684803068637848,
-0.35463425517082214,
0.25639522075653... | |
hierarchy_cte AS h ON t1.parent_id = h.id)
SELECT id, parent_id, data, lvl
FROM hierarchy_cte AS result
CREATE FUNCTION [dbo].[fn_tree_for_parent]
(
@parent int
)
RETURNS
@result TABLE
(
id int not null,
parent_id int,
data varchar(255) not null,
lvl int not null
)
AS
BEGIN
WITH ... | [
-0.5509496927261353,
-0.23635032773017883,
0.5524523258209229,
-0.008942070417106152,
-0.15944872796535492,
0.29305770993232727,
0.1950889527797699,
-0.40420618653297424,
0.013569766655564308,
-0.5372831225395203,
-0.4053157567977905,
0.1226031556725502,
-0.23606838285923004,
0.47528877854... | |
dbo.hierarchical_table
WHERE (id = @parent OR (parent_id IS NULL AND @parent IS NULL))
UNION ALL
SELECT t1.id, t1.parent_id, t1.data, h.lvl + 1 AS lvl
FROM dbo.hierarchical_table AS t1 INNER JOIN
hierarchy_cte AS h ON t1.parent_id = h.id)
INSERT INTO @resu... | [
-0.2622319757938385,
-0.18596628308296204,
0.4721713960170746,
0.04940019175410271,
-0.10148263722658157,
0.2599690556526184,
0.17762131989002228,
-0.6589977741241455,
0.10953547805547714,
-0.4753761291503906,
-0.34767159819602966,
-0.05747381970286369,
-0.23738634586334229,
0.427629500627... | |
SELECT id, parent_id, data, lvl
FROM hierarchy_cte AS result
RETURN
END
ALTER TABLE [dbo].[hierarchical_table] WITH CHECK ADD CONSTRAINT [FK_hierarchical_table_hierarchical_table] FOREIGN KEY([parent_id])
REFERENCES [dbo].[hierarchical_table] ([id])
ALTER TABLE [dbo].[hierarchical_table] CHECK CONS... | [
-0.3532143235206604,
-0.003450007177889347,
0.43141472339630127,
0.22913116216659546,
-0.08680187165737152,
0.05581267178058624,
-0.09656801074743271,
-0.4207540452480316,
-0.04353286325931549,
-0.3371911942958832,
-0.23805035650730133,
0.13444870710372925,
-0.2252833992242813,
0.500055849... | |
select e).First();
var query = dc.FnTreeForParent( h.ID );
foreach (HierarchicalTableViewEntity entity in query) {
...process the tree node...
}
}
``` | [
-0.42993852496147156,
-0.23009949922561646,
0.6339803338050842,
-0.04164004698395729,
0.14776119589805603,
0.014807664789259434,
0.14376568794250488,
-0.3884353041648865,
-0.1433929204940796,
-0.7424083948135376,
-0.36206549406051636,
0.42941632866859436,
-0.45332765579223633,
0.4301396608... | |
I've got a PHP-based site where we allow users to upload a comma-separated text file of data to be imported by some server side scripts. However, sometimes we need to adjust the column order of the data that is uploaded, and it would be immensely helpful if we could identify the columns in the CSV file *before* the upl... | [
0.4224342405796051,
0.32093003392219543,
0.07838549464941025,
0.06668412685394287,
0.005579705350100994,
0.004766097757965326,
-0.01849265582859516,
0.34841635823249817,
-0.29125356674194336,
-0.6979058980941772,
0.11591126769781113,
0.4117872714996338,
-0.08426457643508911,
-0.02617627196... | |
the local hard drive, and then use ActionScript to examine **only** the first line (which corresponds to the column headings, in this example)?
Sometimes these files can be >100 MB, so loading the whole thing into memory and then throwing out all but the first line probably wouldn't work efficiently, so I'm wondering ... | [
0.009781599044799805,
-0.08560600131750107,
0.20380136370658875,
0.18535856902599335,
-0.20020875334739685,
-0.08255169540643692,
0.11184579879045486,
0.03683730214834213,
-0.17915545403957367,
-0.41402745246887207,
-0.17094017565250397,
0.6750288605690002,
-0.22566409409046173,
-0.1805599... | |
using an applet. However, as you rightly assert the user would need to grant permissions to the applet.
2. Provide a small client side application written with Adobe Air, using the [file system API](http://labs.adobe.com/wiki/index.php/AIR:Articles:Adobe_AIR_Local_File_System_Access). | [
0.34741833806037903,
0.1993943750858307,
0.25409579277038574,
0.028477435931563377,
0.023292282596230507,
-0.44345414638519287,
0.180453822016716,
-0.2954195439815521,
0.12066929787397385,
-0.6185983419418335,
-0.5609990954399109,
0.4148569107055664,
-0.43755292892456055,
-0.47940835356712... | |
I´m looking for a unit tests framework for database development. I´m currently developing for SQL Server 2000, 2005 and 2008. Do you know of any good frameworks with similar functionality as JUnit and NUnit?
Perhaps it´s better to ask, what do you use to unit test your stored procedures and user defined functions?
T... | [
0.11496613174676895,
-0.1697983294725418,
0.3659225404262543,
0.12250786274671555,
-0.3777255713939667,
-0.2422657459974289,
-0.10590119659900665,
-0.19898690283298492,
-0.3032703101634979,
-0.36236655712127686,
0.4007219672203064,
0.3408181667327881,
0.05961587280035019,
0.095576256513595... | |
I'm working on an application that makes extensive use of ComponentOne's C1FlexGrid. Of the dozens we use, three are missing their licenses.licx file and cause the demo splash screen to pop up while I'm starting the application.
Is there any way to determine which forms are causing this behavior. Short of checking hun... | [
0.7261378765106201,
0.1309441328048706,
0.28700923919677734,
0.059963125735521317,
0.17394199967384338,
-0.28899508714675903,
0.2157181203365326,
-0.19231563806533813,
-0.15537089109420776,
-0.7180722951889038,
0.040212083607912064,
0.5192307233810425,
-0.17290739715099335,
0.1985857784748... | |
designer view and rebuilding while in that view. This will usually add any missing license entries to the licenses.licx. It will not, however, update existing entries. This can be a problem if you've updated your components. For ComponentOne, you can usually edit the licenses.licx and remove the version information aft... | [
0.5175999999046326,
-0.07345052808523178,
0.15491698682308197,
-0.0011175958206877112,
-0.2057591825723648,
-0.4238117039203644,
0.38542571663856506,
-0.062332943081855774,
-0.17768806219100952,
-0.7969432473182678,
-0.10027408599853516,
0.8526392579078674,
-0.2933676838874817,
0.477246850... | |
I've built a simple application that applies grid-lines to an image or just simple colors for use as desktop wallpaper. The idea is that the desktop icons can be arranged within the grid. The problem is that depending on more things than I understand the actual spacing in pixels seems to be different from system to sys... | [
0.44868743419647217,
-0.0829351618885994,
0.5153133273124695,
0.20502549409866333,
-0.09216971695423126,
0.2971009910106659,
-0.13659118115901947,
0.12182287126779556,
-0.355654239654541,
-0.9396239519119263,
0.36651936173439026,
0.21251006424427032,
-0.1693105250597,
0.06646793335676193,
... | |
know 2) :-D
Windows Register:
```
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
```
values are **IconSpacing** and **IconVerticalSpacing**
by code:
`using System.Management;`
public string GetWinIconSpace()
{
```
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2","SELECT * F... | [
0.3118153214454651,
-0.057832006365060806,
0.7317636013031006,
-0.06042449548840523,
0.6653517484664917,
-0.18808621168136597,
0.5506030917167664,
-0.24075554311275482,
0.09794009476900101,
-0.6159355640411377,
0.3112541735172272,
0.8124502897262573,
-0.23910804092884064,
0.280931800603866... | |
I'm writing a simple CMS.
I want to be able to load a View, having it included inside a master page, and then scan the HTML so that I can replace some custom tags (like {{blog}} with my own blog output) and then serve it up to the browser.
How can I get access to the HTML from the ViewResult in order to intercept it?... | [
0.17618907988071442,
-0.06007630378007889,
0.7440365552902222,
-0.052283551543951035,
-0.2765890657901764,
0.1087198406457901,
0.23292861878871918,
-0.2241823971271515,
-0.2730417251586914,
-0.3784448802471161,
-0.1421232670545578,
0.5245053172111511,
-0.24325592815876007,
-0.2734029591083... | |
rendered.
* **OnResultExecuting** - callled before the result is rendered
* **OnResultExecuted** - called after the result is rendered
There is an example here which returns either JSON or XML data depending on the "Content-type" header: [Create REST API using ASP.NET MVC that speaks both Json and plain Xml](http://om... | [
-0.21188482642173767,
-0.18836292624473572,
0.3446395993232727,
-0.3978568911552429,
-0.13814617693424225,
0.33873167634010315,
0.22515061497688293,
-0.2033769190311432,
-0.2140800505876541,
-0.5538004636764526,
-0.6364966034889221,
0.7957993745803833,
-0.2555514872074127,
-0.0814184471964... | |
I've a windows service that updates our product. It copies the product files into a temp directory, usually "C:\Windows\Temp", patches the binaries, and then uses MoveFileEx to copy the files back to the install directory on a reboot, usually "C:\Program Files\Product". The files in the install directory are inheriting... | [
0.8794485330581665,
0.20360013842582703,
0.3308885097503662,
-0.14369577169418335,
0.25845640897750854,
-0.2297637015581131,
0.12087724357843399,
0.23286698758602142,
0.022837521508336067,
-0.8451833128929138,
-0.3230261206626892,
0.549902081489563,
-0.09387272596359253,
0.2410687208175659... | |
here? It seems that copying from the install directory to the temp directory, the files inherit the ACLs of the temp directory. On the MoveFileEx/Reboot, though, the files only inherit the ACLs that both the install and temp directories have in common.
In Windows if you copy a file the file takes on the ACLs of the des... | [
0.5868019461631775,
-0.04041453078389168,
0.4430774748325348,
-0.09246183186769485,
0.18947842717170715,
-0.3364054262638092,
-0.05778924375772476,
-0.0005239143501967192,
-0.23770731687545776,
-0.7288268804550171,
-0.32437220215797424,
0.5560762286186218,
-0.21466439962387085,
0.215498238... | |
%TEMP% usually point here) so copying files here will have permissions for that user. Moving those files to the program files directory will take only that users rights with them and therefore only runnable by the installing user. | [
0.09021978825330734,
0.057569947093725204,
0.5895094275474548,
0.022687755525112152,
0.18482111394405365,
0.09978269785642624,
0.35960477590560913,
-0.19735650718212128,
0.17216190695762634,
-0.39758044481277466,
-0.29113978147506714,
0.29699891805648804,
-0.13781771063804626,
0.2595493495... | |
I am building an app that talks to an Access database via OleDB/Jet. There is only a 32-bit Jet provider, no 64-bit provider, so the app needs to be running in 32-bit mode. My dev box is Vista 64, so I set the project to build for x86 instead of any cpu. That gets my app running and talking to the database.
But now I ... | [
0.10528523474931717,
0.25645366311073303,
0.25414544343948364,
0.25765249133110046,
0.2751784324645996,
0.0724288746714592,
0.119745172560215,
-0.038693517446517944,
-0.04690724238753319,
-0.6328699588775635,
-0.0566115565598011,
0.5065193772315979,
-0.3944721519947052,
-0.1774944663047790... | |
run until it's been re-signed).
Is there some way to run Gallio Icarus in 32-bit mode so I can load these unit tests?
Turns out the trick was using CorFlags.exe to mark Gallio.Host.exe as 32bit only. | [
0.1537126749753952,
-0.03807428479194641,
0.25317034125328064,
0.4337659776210785,
0.282392293214798,
0.08230957388877869,
0.30587881803512573,
0.13622461259365082,
-0.13701225817203522,
0.04403725266456604,
-0.0408443920314312,
0.5945098996162415,
-0.398489385843277,
-0.06517042964696884,... | |
I'm helping a customer who has a problem with a flash app. The flash app uses an XMLSocket to connect to a service running on localhost. It works fine under firefox.
It uses the following line to setup the security policy:
System.security.loadPolicyFile("xmlsocket://localhost:10032");
Running the flash app under fi... | [
0.5008076429367065,
0.07459504157304764,
0.5040659308433533,
-0.1800805777311325,
-0.03297806903719902,
-0.14336200058460236,
0.4913930296897888,
-0.1143699437379837,
0.1403013914823532,
-0.6374658942222595,
-0.20794183015823364,
0.6675397753715515,
-0.4828592836856842,
-0.1276285648345947... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.