text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
the syntax
description of the Set-Cookie header)
* at least 20 cookies per unique host or domain name
Those are minimum requirements. The IE6 team didn't get that. Everything else is highly browser-specific. You'd better write a test-platform to test each browser. Test the maximum size and number with little incremen... | [
0.46887701749801636,
0.1338900923728943,
0.0949263945221901,
0.0227031409740448,
-0.27367648482322693,
-0.5110446214675903,
0.6515266299247742,
-0.15754389762878418,
-0.27263185381889343,
-0.7078524231910706,
0.03811797872185707,
0.4649827182292938,
-0.09685420989990234,
-0.314572215080261... | |
OK, struggling to get a definitive answer to this one...
I have an application written in VB6 which requires MDAC (2.8 for this installation). MDAC is included in the installer for my application. When the software is removed and re-installed on the same machine MDAC seems to go awry and I receive the following error ... | [
0.36261388659477234,
0.432790607213974,
0.12613703310489655,
0.08590975403785706,
0.20609363913536072,
-0.1388920545578003,
0.6650297045707703,
-0.02031218446791172,
-0.17802079021930695,
-0.5261121988296509,
-0.13636162877082825,
0.7647704482078552,
-0.4183881878852844,
0.2785694897174835... | |
with a similar problem in different environments (VS.NET, JAVA etc), in fact anything that relies on MDAC, but cannot find a clear answer. Anyone who has a clean solution would receive my most merrily given thanks and appreciation.
Yours in bated anticipation.
Have you tried the [MDAC Component Checker](http://support... | [
0.5750598311424255,
-0.021733660250902176,
-0.09547702223062515,
0.1634412258863449,
-0.06938275694847107,
-0.3913875222206116,
0.423739492893219,
0.34366145730018616,
-0.13661892712116241,
-0.3998528718948364,
-0.14539027214050293,
0.3679179549217224,
-0.15024827420711517,
0.1487688422203... | |
I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package.
My question is: **Is there a way to access this object in the default-package from a Java-clas... | [
0.09717099368572235,
0.19636304676532745,
-0.001571167609654367,
-0.18169398605823517,
-0.39738088846206665,
-0.12275251746177673,
0.22525754570960999,
-0.0099406186491251,
-0.1911090761423111,
-0.5462576150894165,
-0.01711178943514824,
0.3506815731525421,
-0.02232980541884899,
0.213125601... | |
1.4 you could import classes from the default package using a syntax like this:
```
import Unfinished;
```
That's [no longer allowed](http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4989710). So to access a default package class from within a packaged class requires moving the default package class into a package... | [
-0.14117515087127686,
0.027561873197555542,
0.26954495906829834,
-0.27227678894996643,
-0.13144434988498688,
-0.10325219482183456,
0.3178843557834625,
-0.0992053970694542,
-0.21158702671527863,
-0.6473569869995117,
-0.5045687556266785,
0.5280007719993591,
-0.7296505570411682,
0.19106955826... | |
type, enum type, or annotation type.
>
> The type must be either a member of a **named package**, or a member of a type whose outermost lexically enclosing type is a member of a **named package**, **or a compile-time error occurs**.
---
[Andreas](https://stackoverflow.com/users/5221149/andreas) points out [in the ... | [
-0.1435791552066803,
0.2583237886428833,
-0.001397848827764392,
-0.1888395994901657,
0.14220666885375977,
-0.038698311895132065,
0.21408480405807495,
-0.39849546551704407,
-0.05258901044726372,
-0.29424911737442017,
-0.47090572118759155,
0.10807360708713531,
-0.25921866297721863,
0.1510745... | |
He want's to know our opinions on whether we should have flexitime, allow non-work related internet access etc.
We've got about 200 people in the company, half are programmers half are sales. We all want the workplace to be productive and fun.
* What issues should I bring up?
* What are the arguments for and against ... | [
1.0478918552398682,
0.22757700085639954,
0.26199549436569214,
0.3149915635585785,
0.11917870491743088,
0.2533004581928253,
-0.18101206421852112,
-0.05323100462555885,
-0.3894882798194885,
-0.5092160105705261,
-0.12050510197877884,
0.7189153432846069,
0.10049692541360855,
0.0498512834310531... | |
they want, etc, but it also means that if they aren't available when they're needed, are looking at inappropriate web sites or offend a customer, you punish them like adults. | [
0.4174315631389618,
0.17280259728431702,
0.1711721271276474,
0.13097518682479858,
0.15313829481601715,
-0.27045658230781555,
0.4774470627307892,
0.3622936010360718,
-0.2539241313934326,
-0.448304146528244,
-0.18986478447914124,
0.6400603652000427,
0.17320626974105835,
-0.09855784475803375,... | |
I have an XML input file and I'm trying to output the result of a call like:
```
<xsl:value-of select="Some/Value"/>
```
into an attribute.
```
<Output Attribute="Value should be put here"/>
```
My problem is, since I'm outputting XML, the XSL processor won't allow me to write:
```
<Output Attribute="<xsl:v... | [
0.048118654638528824,
0.17247752845287323,
0.1801385134458542,
-0.053963664919137955,
-0.23010578751564026,
-0.23546217381954193,
0.055953189730644226,
-0.30789676308631897,
0.05616098269820213,
-0.6899781227111816,
-0.20377084612846375,
0.6185899376869202,
-0.2395123988389969,
0.102459155... | |
I'm trying to add a new node to an jQuery [SimpleTree](http://news.kg/wp-content/uploads/tree/), but all I seem to be able to get is "sTC.addNode is not a function"...
```
var simpleTreeCollection = $('.simpleTree').simpleTree({
animate:true,
drag:false,
autoclose: false,
afterClick:function(node){},
... | [
0.09017503261566162,
-0.2123602330684662,
0.313122034072876,
-0.3365243077278137,
-0.055632296949625015,
0.04816821962594986,
0.6326500177383423,
-0.23876331746578217,
-0.22023986279964447,
-0.5205820202827454,
-0.1822068840265274,
0.46724507212638855,
-0.5335797667503357,
0.06305109709501... | |
I'm trying to make a setup program for an ASP.NET web site. I need to make sure the target machine has sqlxml installed.
I must verify the target machine has the software installed, and if not, launch a .msi file either before or after the main installation.
I'm a complete newbie with setup projects, so maybe this is... | [
0.6170900464057922,
0.3406006991863251,
0.0982108786702156,
0.008475316688418388,
0.09375007450580597,
-0.413307785987854,
0.24728472530841827,
0.14993926882743835,
-0.16288571059703827,
-0.8249310255050659,
0.1854185163974762,
0.4559621810913086,
0.020172759890556335,
-0.00656203739345073... | |
similar to Prerequisites (in project properties). There I can check a component and it will be automatically installed if it isn't. I don't need to do anything else. But, the most important thing for me is that the installation won't run if it's not needed.
I also tried the .msm solution, but I couldn't find any. Mayb... | [
0.49992311000823975,
-0.13922719657421112,
0.443180114030838,
0.12794534862041473,
0.09753850102424622,
-0.33610987663269043,
0.3122651278972626,
-0.12638522684574127,
-0.3203635811805725,
-0.7542652487754822,
-0.17923900485038757,
0.7566059231758118,
-0.365082710981369,
0.0578450113534927... | |
I had a look to see how you can check of the SQLXML is installed and come across this:
<http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.xml/2005-04/msg00110.html>
The system I am on just now has the following key HKEY\_CLASSES\_ROOT \ SQLXMLX (note the X at the end), so you might need to d... | [
0.366695761680603,
0.2830476462841034,
0.6056540608406067,
0.004778194706887007,
0.11841125041246414,
-0.2935026288032532,
0.11968451738357544,
0.22526037693023682,
-0.15760526061058044,
-0.7140907645225525,
-0.09277141094207764,
0.5950925946235657,
0.056233011186122894,
0.2646611630916595... | |
gives you the option to set a property with a value from the registry if found. You can then use this in the condition on a custom action.
A lot to put together, but I hope it move you in the right direction. | [
0.585113525390625,
-0.2513647973537445,
0.24302777647972107,
0.4018813371658325,
0.3822959363460541,
-0.19493664801120758,
0.0023863993119448423,
-0.0271285492926836,
-0.2749764323234558,
-0.4038858413696289,
0.38616809248924255,
0.5534747242927551,
0.20359869301319122,
-0.0270672682672739... | |
Ok so I have an abstract base class called Product, a KitItem class that inherits Product and a PackageKitItem class that inherits KitItem. ie.
```
Product
KitItem : Product
PackageKitItem : KitItem
```
I have my KitItems loaded and I need to load up a collection of PackageKitItems which are, effectively, shallow co... | [
0.27751001715660095,
0.12977781891822815,
0.4185813367366791,
-0.4638236165046692,
0.04142863303422928,
-0.153593510389328,
0.19058269262313843,
-0.4338284432888031,
0.186139777302742,
-0.6570270657539368,
-0.2568722367286682,
0.5791682600975037,
-0.49249067902565,
0.11592254042625427,
-... | |
// copy each value over to 'this'
foreach (FieldInfo fi in fields)
fi.SetValue(this, fi.GetValue(product));
}
```
I've tried setting up a copy on KitItem like so:
```
public KitItem ShallowCopy()
{
return (KitItem)this.MemberwiseClone();
}
```
and cal... | [
0.19966162741184235,
-0.2808832824230194,
0.4181426167488098,
-0.1449705809354782,
0.2508624792098999,
-0.3171781897544861,
0.34711959958076477,
-0.5173486471176147,
0.0880487933754921,
-0.7187468409538269,
-0.09529756754636765,
0.6813660860061646,
-0.25136101245880127,
0.03490034863352775... | |
I get an invalid cast. I'm looking for ideas for the best way to accomplish this.
The problem you have is that since ShallowCopy() is a member of KitItem, MemberwiseClone() is just copying the KitItem fields and returning a KitItem even if the original object is a PackageKitItem.
I think what you have to do in this ci... | [
0.14199760556221008,
-0.09827756881713867,
0.2680560350418091,
0.06762181967496872,
0.17193926870822906,
-0.3126698136329651,
0.3237527310848236,
-0.23538066446781158,
0.15145465731620789,
-0.604444146156311,
0.04553140699863434,
0.6024742126464844,
-0.3217419683933258,
0.4279020130634308,... | |
{
return (PackageKitItem) this.MemberwiseClone();
}
```
Thus you will get the proper MemberwiseClone() call done depending on the object you are trying to ShallowCopy().
If you wanted to go further, you could define a ShallowCopy() in Product (returning a Product) and then have overridden ve... | [
0.09316715598106384,
-0.3210528492927551,
0.34009087085723877,
-0.0931352823972702,
0.1682313084602356,
-0.339426189661026,
0.11833478510379791,
-0.3148283064365387,
0.26194140315055847,
-0.5207517743110657,
-0.027972640469670296,
0.6379162073135376,
-0.24602855741977692,
0.187698051333427... | |
Could somebody please explain to me what happens here?
I am creating a binding in code.
The target object is a UserControl
The target property is a boolean DependencyProperty
The source object is a FrameworkElement and implements INotifyPropertyChanged
The source property is of type ObservableCollection
... | [
0.23295749723911285,
0.11773985624313354,
0.6593684554100037,
0.02390858344733715,
-0.0337674617767334,
-0.389952689409256,
0.4001125693321228,
-0.2641109526157379,
-0.04563480615615845,
-0.8625053763389587,
-0.0023198085837066174,
0.4898771643638611,
-0.4782590866088867,
0.312915354967117... | |
a result of another databinding. The UserControl tries to fire the PropertyChanged event.
* ....but nobody is listening. PropertyChanged is null.
I am sure that nothing else is assigned to the target property, so it should still be bound. Why is the binding not listening for the PropertyChanged event?
Alright, I found... | [
0.11225497722625732,
0.02345026098191738,
0.3086795210838318,
0.08004201948642731,
-0.05702656880021095,
-0.4553202986717224,
0.2292380928993225,
-0.3124992549419403,
-0.23843763768672943,
-0.4419020712375641,
-0.057479377835989,
0.5097593665122986,
-0.31487441062927246,
0.3957988917827606... | |
method on a base class and moving it to the derived class made the difference. | [
-0.25393953919410706,
-0.3509146571159363,
-0.2375912368297577,
0.20215675234794617,
-0.2457977831363678,
0.08442461490631104,
0.15764868259429932,
-0.36185523867607117,
0.049059849232435226,
-0.21273063123226166,
-0.05238216370344162,
0.1550988256931305,
-0.257547527551651,
0.081190429627... | |
I have a JComponent that's painting various shapes on itself. I'm detecting whenever the mouse enters one of these shapes and changing the tooltip accordingly.
The problems I'm having are:
* The tooltip doesn't follow the mouse as the user tracks the mouse across the shape. It
stays where it was first set and then o... | [
0.7854785919189453,
-0.34399911761283875,
0.2823227047920227,
-0.2943226993083954,
-0.12457957863807678,
0.06320827454328537,
0.27531152963638306,
-0.230858713388443,
-0.6037024855613708,
-0.7895499467849731,
0.4090573489665985,
0.41886430978775024,
-0.20230019092559814,
-0.249945953488349... | |
component with that manager and then adjust a number of settings. Its pretty straight forward to use.
That at least can solve your initialdelay problem.
For your first problem you can overide the createTooltip command from your component to get a hold of the JTooltip instance. and then its easy make the position chan... | [
-0.14022278785705566,
-0.6829140186309814,
0.5325673222541809,
0.14024420082569122,
0.08427999168634415,
-0.23367063701152802,
0.15908101201057434,
-0.007727900054305792,
-0.04317124933004379,
-0.6405807733535767,
0.08297182619571686,
0.8822056651115417,
-0.3459167778491974,
-0.00885622762... | |
Does anyone have sample code to copy open (in-use and locked by another program) files using Volume Shadow Copy Service (VSS) API?
There was an article about this in The Delphi Magazine (September 2005). But that code is no longer available and even if it was, it's not current.
I am looking for sample code that works... | [
0.6589663028717041,
-0.07766441255807877,
0.05761638656258583,
0.19161759316921234,
-0.1409866064786911,
-0.17989489436149597,
0.044354163110256195,
-0.03254469484090805,
-0.4012928009033203,
-0.3424241244792938,
0.31734201312065125,
0.14583724737167358,
-0.3166770935058594,
0.001232080743... | |
also found here:
<http://www.delphipraxis.net/998560-post3.html> | [
0.39822322130203247,
-0.04607822373509407,
-0.22151091694831848,
-0.04015817493200302,
0.20585238933563232,
-0.1972358673810959,
-0.322914183139801,
0.02042601816356182,
-0.35658836364746094,
-0.5135694146156311,
-0.3763180375099182,
0.284355491399765,
0.13098452985286713,
0.17953020334243... | |
I'm currently refactoring code to replace Convert.To's to TryParse.
I've come across the following bit of code which is creating and assigning a property to an object.
```
List<Person> list = new List<Person>();
foreach (DataRow row in dt.Rows)
{
var p = new Person{ RecordID = Convert.ToInt32(row["ContactID"]) ... | [
0.04183405265212059,
0.1537976861000061,
0.43306708335876465,
-0.27768048644065857,
0.1871560961008072,
0.3144175410270691,
0.3714388608932495,
-0.6073864102363586,
-0.21476341784000397,
-0.5912368297576904,
-0.20510217547416687,
0.5975094437599182,
-0.26202458143234253,
0.3999228775501251... | |
out k))
return k;
return null;
}
``` | [
-0.19559352099895477,
0.2057490348815918,
0.19011272490024567,
-0.39509397745132446,
-0.05321931466460228,
-0.015774598345160484,
0.5786948800086975,
-0.4208688735961914,
-0.050114911049604416,
-0.20565536618232727,
-0.5153248906135559,
0.42323923110961914,
-0.7242354154586792,
0.584598779... | |
I'm getting the error: wintypes.dcu not found several times a day in the Delphi 2009 IDE, after this error code completion stops working, also I can't open any unit's source code with Ctrl + Click, then I have to reopen the IDE to fix it.
Anyone has a clue about what can be causing this?
The only IDE extension I have... | [
0.1391996443271637,
0.07512330263853073,
0.41416868567466736,
0.07408402115106583,
-0.2203720211982727,
-0.28143760561943054,
0.5829765796661377,
0.10235422849655151,
-0.07397136837244034,
-0.8552176356315613,
0.036466676741838455,
0.5702072381973267,
-0.1483231633901596,
0.444497287273407... | |
What is the best way to do cross-platform handling of hidden files?
(preferably in Python, but other solutions still appreciated)
Simply checking for a leading '.' works for \*nix/Mac, and file attributes work on Windows. However, this seems a little simplistic, and also doesn't account for alternative methods of hidi... | [
0.34469106793403625,
-0.07459164410829544,
0.03605731576681137,
0.2561165988445282,
0.017546620219945908,
-0.3929564356803894,
0.3609885275363922,
0.035390742123126984,
-0.1608155369758606,
-0.4537997841835022,
0.03669034689664841,
0.5625879764556885,
-0.12101412564516068,
-0.2402851730585... | |
hidden or not.
These checkers are not only for different OS's etc, but we plug into version control "ignored" files, and optional user overrides by glob or regular expression.
It mostly amounts to what you have done, but in a pluggable, flexible and extensible way.
See source code here: <https://bitbucket.org/aafsha... | [
0.5763041973114014,
-0.5202155113220215,
0.00838523916900158,
0.15880925953388214,
0.36641594767570496,
-0.12331296503543854,
0.31898897886276245,
-0.143403559923172,
-0.425776869058609,
-0.378162682056427,
-0.12257583439350128,
0.43028485774993896,
-0.17259268462657928,
-0.249897077679634... | |
Here is my problem. I am hitting a web service (hosted on a Java based server) that will only accept text encoded Requests, but it returns MTOM Responses. What I've found is that if I set the web service to RequireMtom, it sends an Mtom request! Unfortunately, the server chokes on an Mtom request and returns a 500 erro... | [
0.05283695086836815,
0.0753292590379715,
0.09429073333740234,
0.03054732456803322,
-0.07945635169744492,
0.07978955656290054,
0.6237131357192993,
-0.2971741855144501,
-0.27262943983078003,
-0.5797509551048279,
0.016503460705280304,
0.48504576086997986,
-0.37846943736076355,
0.0228507872670... | |
text encoded. I would like to RequireMtom on the response only. Can anyone help me here?
*As you can see in the error below (which occurs with the standard web services API, WCF or WSE3), when I send the request with text encoding, the response comes back correctly with all the data in a multipart/related response, bu... | [
-0.3592826724052429,
-0.1153256744146347,
0.3796331286430359,
0.10666447877883911,
-0.13674518465995789,
0.1876235157251358,
0.5544301271438599,
-0.30552566051483154,
-0.02863963134586811,
-0.6226683259010315,
-0.2997398376464844,
0.771623969078064,
-0.20514947175979614,
0.0855346396565437... | |
at TestWseService.AdesaJasperWse.ManagementServiceService.runReport(String requestXmlString) in C:\Documents and Settings\xxx\My Documents\Visual Studio 2005\Projects\TestWseService\Web References\AdesaJasperWse\Reference.cs:line 229
at TestWseService.Form1.buttonRunService_Click(Object sender, EventArgs e) in C:\Do... | [
-0.3309361934661865,
-0.20119771361351013,
0.8002578020095825,
0.07857436686754227,
-0.3058874309062958,
0.5218872427940369,
0.430419921875,
-0.865982174873352,
-0.12138444930315018,
-0.5253732204437256,
-0.3695216476917267,
0.48358383774757385,
-0.07688694447278976,
-0.16324996948242188,
... | |
message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.... | [
-0.08207856863737106,
-0.07869485765695572,
0.8648148775100708,
-0.16100826859474182,
-0.09254711866378784,
0.27207931876182556,
0.4810769855976105,
-0.582953691482544,
-0.13488025963306427,
-0.6232545375823975,
-0.49238625168800354,
0.49649253487586975,
-0.10339915007352829,
-0.0536096543... | |
GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Length: 2580
Content-Type: multipart/related; type="text/xml"; start="<30ED8FE3004CDA67723CC7164A6CFEEC>"; boundary="----=_Part_209545_389093169.1226526546805"
Content-Language: en-US
------=_Part_209545_389093169.1226526546805
Content-Type: text/xml; cha... | [
-0.46041035652160645,
0.15131635963916779,
0.5948306322097778,
-0.13254797458648682,
-0.13378696143627167,
0.36439985036849976,
0.07889916002750397,
-0.27791324257850647,
-0.37256303429603577,
-0.5062887668609619,
-0.5966426134109497,
0.5127082467079163,
-0.3433936834335327,
0.083714924752... | |
valign="top">
<td colspan="4"><img alt="" src="images/px" style="width: 595px; height: 20px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="images/px" style="width: 35px; height: 30px;"/></td>
<td valign="middle"><span style="font-family: Arial; font-size: 12.0px; font-weight: bold;">The value of the parame... | [
-0.2813431918621063,
0.01803724654018879,
0.9903821349143982,
-0.08041471242904663,
-0.29721498489379883,
0.3578449785709381,
0.2341964691877365,
-0.6555879712104797,
-0.273340106010437,
-0.4139339327812195,
-0.525999128818512,
0.9810605049133301,
0.0225332360714674,
-0.2678801417350769,
... | |
500 Internal Server Error
Date: Wed, 12 Nov 2008 21:47:42 GMT
Server: IBM_HTTP_Server
Surrogate-Control: no-store
$WSEP:
Set-Cookie: JSESSIONID=0000_iMrdp-TnK9FG3jZFzjx_hA:13kftunf6; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Content-Length: 12
Connection: close
Con... | [
-0.539176344871521,
0.35308757424354553,
0.6851469874382019,
-0.021998034790158272,
0.010328082367777824,
0.36186614632606506,
0.42510074377059937,
-0.2604908347129822,
-0.13631951808929443,
-0.4793787896633148,
0.023616649210453033,
0.5303503274917603,
-0.026649199426174164,
0.23406435549... | |
I'm currently working on a Google Maps project and am implementing a search function. In my search function I'm trying to have content on the side listing which search makers that were just added to the map correspond to each hall. However in assembling this string I run into a problem where my `side_bar_html` variable... | [
0.004996768664568663,
-0.01001046970486641,
1.0297081470489502,
-0.15534456074237823,
-0.14409837126731873,
-0.1001753881573677,
0.32107213139533997,
-0.3386262059211731,
-0.0877017006278038,
-0.6860671043395996,
-0.19560278952121735,
0.4477026164531708,
-0.3411939740180969,
0.494116544723... | |
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = GXml.parse(request.responseText);
var points = xmlDoc.documentElement.getElementsByTagName("point");
var polygonsToShow = [];
for (var i = 0; i < points.length; i++) { | [
-0.12278586626052856,
-0.24446819722652435,
0.9977986812591553,
-0.035140469670295715,
0.0066368477419018745,
0.280352383852005,
0.20137669146060944,
-0.4380534291267395,
-0.18607981503009796,
-0.460104763507843,
-0.5642725825309753,
0.2613059878349304,
-0.29189229011535645,
0.131038516759... | |
var lat = parseFloat(points[i].getAttribute("lat"));
var lng = parseFloat(points[i].getAttribute("lng"));
var pid = points[i].getAttribute("id");
for(var j = 0; j < polygons.length; j++) {
if(polygons[j].vt_bid == pid) { | [
-0.32792025804519653,
-0.10811018943786621,
0.44120532274246216,
-0.25940170884132385,
-0.29276761412620544,
0.4604211747646332,
0.45795169472694397,
-0.5034328699111938,
-0.1747005581855774,
-0.4856316149234772,
-0.5465695858001709,
0.38916897773742676,
-0.08274541050195694,
-0.0554504357... | |
polygonsToShow.push(j);
}
}
var point = new GLatLng(lat,lng);
var pname = points[i].getAttribute("name");
var curMarker = createSearchMarker(point, pid, pname,getLetter(i)); | [
-0.5403957962989807,
-0.18068890273571014,
0.4593230187892914,
-0.28040072321891785,
-0.2372557669878006,
0.21474088728427887,
0.3551192581653595,
-0.18510815501213074,
-0.15316961705684662,
-0.567135214805603,
-0.5053382515907288,
0.12826545536518097,
-0.2527157664299011,
0.15051525831222... | |
map.addOverlay(curMarker);
}
//olays.buildings.checked = false; : Figure out some way to uncheck the buildings overlay checkbox?
for(var k = 0; k < polygons.length; k++) {
polygons[k].hide();
}
for(var l = 0; l < polygonsToShow.length; l++){ | [
0.010045007802546024,
-0.07506107538938522,
0.42725878953933716,
-0.11441370099782944,
0.06912954151630402,
0.15568268299102783,
0.5285852551460266,
-0.34411272406578064,
-0.23204469680786133,
-0.7759844660758972,
-0.37133193016052246,
0.2977257966995239,
-0.30348822474479675,
0.0560451894... | |
polygons[polygonsToShow[l]].show();
}
}
}
request.send(null);
alert(side_bar_html); //side_bar_html will be empty unless I alert the variable
searchResults = new HtmlControl('<div style="background-color:white; border:solid 1px grey; padding:2ex; overflow:auto; width:125px; margin:1px; font-size:14px;"><... | [
-0.3123975694179535,
0.01844967156648636,
0.8314195275306702,
-0.008171413093805313,
-0.18914736807346344,
0.44556665420532227,
0.3796883523464203,
-0.2949932813644409,
-0.3859700858592987,
-0.6555507183074951,
-0.4438782334327698,
0.36064305901527405,
-0.34320715069770813,
-0.005308611784... | |
marker.openInfoWindowHtml('<a href="#" onclick=\'tb_show("' + pname + '","admin/get_info.php?b=' + id + '&KeepThis=true&TB_iframe=true&height=400&width=600",false); return false;\'>' + pname + '</a>');
});
side_bar_html = side_bar_html + '<a href="javascript:clickSearch(' + searchCount + ')">' + String.fromCharC... | [
0.034609194844961166,
0.12468735128641129,
0.7869691848754883,
-0.17414572834968567,
0.010790561325848103,
-0.31924596428871155,
0.39093154668807983,
-0.2821720540523529,
-0.06787680089473724,
-0.767252504825592,
-0.2469550371170044,
0.45748549699783325,
-0.4677565395832062,
0.343892157077... | |
not seeing it being set unless you alert it.
Here's what's probably happening: the Ajax request takes some time to happen. When you call `req.send(null)` then that kicks off the request, but your `onreadystatechange` function won't get called until sometime later, after your web browser has made the request and gotten... | [
0.4418010711669922,
-0.1556554138660431,
0.565150260925293,
-0.14587002992630005,
-0.08551424741744995,
-0.4347310960292816,
0.5995557904243469,
-0.009050278924405575,
-0.3515964150428772,
-0.5958139896392822,
-0.2781673073768616,
0.6257228255271912,
-0.40384066104888916,
0.022125888615846... | |
underlying problem is that Ajax is asynchronous (which is there the A comes from) and you're trying to use it synchronously (meaning that you assume that things will always happen in a particular order). Your best bet is to put the code that uses `side_bar_html` in your `onreadystatechange` function, so that it doesn't... | [
0.02277342975139618,
-0.10662441700696945,
0.1889020800590515,
0.20882372558116913,
-0.14372245967388153,
-0.47541600465774536,
0.33885350823402405,
0.2155085653066635,
-0.06700462847948074,
-0.6673813462257385,
-0.04661479592323303,
0.5375630855560303,
-0.3710000514984131,
0.0171912703663... | |
If I have an xmlreader instance how can I use it to read its current node and end up with a xmlElement instance?
Not tested, but how about via an `XmlDocument`:
```
XmlDocument doc = new XmlDocument();
doc.Load(reader);
XmlElement el = doc.DocumentElement;
```
Alternatively (from the cmoment), something ... | [
-0.15244658291339874,
0.15876786410808563,
0.6526272892951965,
0.0460919514298439,
-0.0006406171596609056,
-0.1245989128947258,
-0.0050919209606945515,
-0.19548079371452332,
-0.0532449334859848,
-0.9101449251174927,
-0.06203800067305565,
0.48307499289512634,
-0.17333051562309265,
0.0819657... | |
{
XmlDocument doc = new XmlDocument();
doc.Load(subReader);
XmlElement el = doc.DocumentElement;
}
``` | [
-0.08831329643726349,
-0.10391955077648163,
0.6021000146865845,
-0.06532777845859528,
0.145720437169075,
-0.04557904601097107,
-0.2538530230522156,
-0.30446627736091614,
-0.0699472650885582,
-0.6448004245758057,
-0.6713825464248657,
0.6510940194129944,
-0.29120662808418274,
0.2725168764591... | |
If you had some social networking applications and you wanted your users to interact with them using a mobile device would you use WAP or a slimmed down version of your regular website with HTML?
My train of thought is that WAP is dead or at least starting to bleed to death because of all the mobile web browsers avail... | [
0.45427215099334717,
0.09784237295389175,
0.26240772008895874,
0.23864540457725525,
-0.15482203662395477,
0.031230323016643524,
0.247279554605484,
0.41500648856163025,
-0.3707633316516876,
-0.6123349070549011,
0.1468895971775055,
0.29005688428878784,
-0.365749716758728,
0.09450993686914444... | |
be more "modern" so we can assume Windows Mobile, iPhone, and Blackberry devices.
WAP 2.0 = XHTML Mobile Profile. I'm assuming by WAP you mean WAP 1.0 and WML. Pretty much all mobile browsers these days support XHTML MP (or some close cousin).
For best practices on mobile development, refer to the [dotMobi Mobile Web ... | [
0.4148627519607544,
-0.18115410208702087,
0.5581151843070984,
-0.04103665053844452,
-0.3609980344772339,
-0.468828022480011,
0.369196355342865,
-0.12334810942411423,
-0.29436981678009033,
-0.85011225938797,
-0.16094180941581726,
0.6086380481719971,
-0.47048646211624146,
-0.0670253112912178... | |
I have an application that needs to "poll" a webservice to see if the user has any new messages waiting. I have no control over the webservice so I cannot switch to a "push" mechanism, I'm stuck making a request every X number of seconds to see what's available.
I am using a System.Threading.Timer to make the request ... | [
0.3300904631614685,
0.04461351037025452,
0.5882540345191956,
-0.20662358403205872,
-0.10341707617044449,
0.08215610682964325,
0.4955005347728729,
-0.029375864192843437,
-0.12386857718229294,
-0.5838106274604797,
0.26851311326026917,
0.36424869298934937,
-0.18966934084892273,
0.263601720333... | |
background applications. What can I do to make it work without being too big of a drain on the battery?
Hate to answer my own question, but I was pointed to [this](http://blog.opennetcf.com/ctacke/PermaLink,guid,169fcc25-a42f-4a8f-b8af-6b6c85d8819d.aspx "this"), which was able to perform even when the device is asleep.... | [
0.21798177063465118,
-0.06159850209951401,
0.4546985924243927,
0.09169718623161316,
0.3752688765525818,
-0.22431330382823944,
0.3175921142101288,
0.07261980324983597,
-0.2815168499946594,
-0.363081693649292,
-0.010627998039126396,
0.6333152055740356,
0.021230341866612434,
-0.46327677369117... | |
We're using Infragistics grid (most probably, we'll have 8.2 version at the end) and we want to configure row/cells appearances "on-demand" in order to be able to provide sort of "dynamic appearance".
For example, I want some cell to be red or green, depending on its value. We might want to tweak other characteristics... | [
0.2651817500591278,
-0.27352869510650635,
0.5931439399719238,
-0.15439338982105255,
0.07735663652420044,
-0.10285087674856186,
0.11697747558355331,
-0.10139966011047363,
-0.30559325218200684,
-0.9412460327148438,
-0.06812679767608643,
0.5257922410964966,
-0.23186711966991425,
-0.1052253842... | |
with two solutions for that problem.
For some of the dynamic content we use grid elements appearance and reinitialize it "on-demand".
For the extremely resource-critical appearance we use UltraGrid.DrawFilter (see also IUIElementDrawFilter interface). | [
-0.016098767518997192,
-0.6880935430526733,
0.48598816990852356,
0.2012007087469101,
-0.2994941174983978,
-0.21986442804336548,
-0.15303851664066315,
-0.1085294559597969,
0.12630346417427063,
-0.9311710000038147,
-0.2552296817302704,
0.7301852703094482,
-0.23413239419460297,
-0.27200612425... | |
I have an application with 5 `UIViewController`s each inside a corresponding `UINavigationController`, all tucked inside a `UITabBarController` that displays 5 tabs at the bottom of the screen.
I want to display another `UIViewController` (inside a `UINavigationController`) when a dialog button is pressed.
This view ... | [
0.21761730313301086,
0.04491269215941429,
0.9345074892044067,
-0.015255517326295376,
-0.1442594826221466,
0.10359398275613785,
0.4582645297050476,
-0.013664772734045982,
0.04621198773384094,
-0.9021353721618652,
-0.19984321296215057,
0.6732932925224304,
-0.041746627539396286,
-0.0085054757... | |
so appears further down than expected.
A solution would be to have the 6th `UINavigationController` added to the `UITabBar` with the others, but with its `tabBarItem` hidden. Then I can show it and hide it using the `tabBar`s `selectedIndex` property.
Accessing the `tabBarItem` through the `UIViewController` shows no... | [
0.17516258358955383,
0.07498937100172043,
0.562455952167511,
0.2124362736940384,
0.1852552443742752,
-0.2173229306936264,
0.21476098895072937,
0.0461062528192997,
-0.22090809047222137,
-0.810872495174408,
-0.04293627664446831,
0.4239610731601715,
-0.16378752887248993,
0.26216405630111694,
... | |
have the modal view appear with a hide button to bring back the normal interface. But it would be nice to keep the tab bar always visible, so I was just wondering if anyone knew of a way.
Well, it sounds like what you really want to do is present a modal view with the tab bar still visible. You could add your view as a... | [
0.10947146266698837,
-0.48281797766685486,
0.7555532455444336,
0.20839042961597443,
-0.2449314296245575,
-0.07950357347726822,
0.18085695803165436,
-0.04225386679172516,
-0.20501671731472015,
-0.5269913673400879,
0.06264832615852356,
0.90977543592453,
-0.39943456649780273,
0.13387532532215... | |
calling presentModalViewController:animated: with the *selected tab* (i.e. [tabBarController.selectedViewController presentModalViewController:animated:]) as the receiver instead of the tab bar. I seem to recall doing this once (quite by accident) and the tab bar remained visible.
One more thought: since each of your ... | [
-0.0731966644525528,
-0.3133655786514282,
0.9330676794052124,
0.04716316983103752,
-0.0302580576390028,
0.11622137576341629,
0.22022400796413422,
0.004370314069092274,
-0.20147937536239624,
-0.683373749256134,
-0.17105023562908173,
0.9085785746574402,
-0.3503815233707428,
0.177507802844047... | |
Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?
---
Some similar question on stackoverflow:
* (asked earlier) [How c... | [
-0.30832964181900024,
0.06195031851530075,
-0.02226109988987446,
-0.09129112958908081,
0.1830882579088211,
0.22879160940647125,
0.16248953342437744,
-0.023933565244078636,
-0.2778104841709137,
-0.7620093822479248,
-0.10782550275325775,
0.041602931916713715,
-0.12101216614246368,
0.39692172... | |
killed](https://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed)
Child can ask kernel to deliver `SIGHUP` (or other signal) when parent dies by specifying option `PR_SET_PDEATHSIG` in `prctl()` syscall like this:
`prctl(PR_SET_PDEATHSIG, SIGHUP);`
See `man 2 prctl` for details.
E... | [
-0.03200771287083626,
-0.033118776977062225,
0.20724789798259735,
-0.04936885088682175,
0.2672314941883087,
0.27012771368026733,
-0.031209254637360573,
-0.050725530833005905,
-0.18228384852409363,
-0.35440146923065186,
-0.3435802161693573,
0.5979673862457275,
-0.2529621124267578,
0.0753162... | |
My colleague has written a DLL which drives Excel.
When I reference his DLL in my .NET app, I get a warning:
```
The dependency 'Microsoft.Office.Interop.Excel' could not be found.
```
My app will compile.
However, when I get to the bit that uses my colleague's DLL to access Excel, an exception is thrown, wit... | [
0.005151618272066116,
0.42707663774490356,
0.24296578764915466,
0.04268711805343628,
-0.2289637178182602,
-0.30100804567337036,
0.29765716195106506,
0.10280951112508774,
-0.13994954526424408,
-0.5154500007629395,
-0.13902899622917175,
0.6778409481048584,
-0.5065479278564453,
0.051491029560... | |
`Microsoft.Office.Interop.Excel`.
Surely I shouldn't have to?
**However**: When I tried to add this reference, I cannot find `Microsoft.Office.Interop.Excel` in the Add Reference dialog.
Presumably this means that I am missing a DLL?
... But I don't understand how that could happen?!
Update (fixed):
--------... | [
0.4455130994319916,
0.13153311610221863,
0.44272297620773315,
0.11821062117815018,
-0.13880863785743713,
-0.21773216128349304,
0.05982687324285507,
-0.00449910294264555,
-0.3705329895019531,
-0.7594961524009705,
-0.24398572742938995,
0.5561503767967224,
-0.3845531642436981,
0.0657373070716... | |
I have a requirement for an admin user to set up an export directory on the web server, or relative to the web server using a UNC. Is there anything already out there that I can use for this, or must I recurs a limited directories and populate a home-rolled directory browser on the client?
I noticed this today ...a JQu... | [
0.49671587347984314,
-0.011582093313336372,
-0.12981611490249634,
0.02654881961643696,
0.013847013004124165,
-0.07519890367984772,
0.08096885681152344,
0.17535501718521118,
-0.07097397744655609,
-0.6704462766647339,
0.05755215883255005,
0.3232821226119995,
0.1479121595621109,
0.19246776401... | |
I would like to add a backcolor for specific line depending of a Property of the object binded.
The solution I have (and it works) is to use the Event `DataBindingComplete` but I do not think it's the best solution.
Here is the event:
```
private void myGrid_DataBindingComplete(object sender, DataGridViewBinding... | [
-0.09900824725627899,
-0.31917595863342285,
0.5657983422279358,
-0.1791350394487381,
0.0175480879843235,
-0.16098709404468536,
0.3154284954071045,
-0.09296059608459473,
0.03390123322606087,
-0.6158856749534607,
-0.1503993272781372,
0.41537606716156006,
-0.25676408410072327,
0.2567273676395... | |
{
this.myGrid.Rows[i].DefaultCellStyle.BackColor = Color.FromArgb(240, 128, 128);
}
}
}
```
Any other option that would be better?
You can also attach an event handler to RowPostPaint:
```
dataGridView1.RowPostPaint += OnRowPostPaint;
void OnRowPostPaint(object sender, DataGr... | [
-0.14014151692390442,
-0.14420028030872345,
0.6316660642623901,
-0.12621624767780304,
0.1575370877981186,
0.06150424852967262,
0.4022963345050812,
-0.2624718248844147,
-0.11966297030448914,
-0.6287528872489929,
-0.22910165786743164,
0.5890238881111145,
-0.25639185309410095,
0.1071531698107... | |
So here's my current code:
```
List<string> rowGroups = GetFileGroups((int)row.Cells["document_security_type"].Value);
bool found = false;
System.Security.Principal.WindowsPrincipal p = new System.Security.Principal.WindowsPrincipal(System.Security.Principal.WindowsIdentity.GetCurrent());
foreach (string group in row... | [
0.0613587386906147,
-0.11646537482738495,
0.5722655653953552,
0.07068143039941788,
0.31988343596458435,
-0.18349111080169678,
-0.0060149733908474445,
0.01548180915415287,
-0.4643253684043884,
-0.41208529472351074,
-0.12697161734104156,
0.5239744186401367,
-0.19264326989650726,
0.4837768971... | |
in the office where this is running could be on 2 seperate domains. In the `List<string>` object, i've got both domains possible. so it could contain items such as "domainA\groupA", "domainA\userB", domainB\groupC", and/or "domainB\userD".
So my major problem is that the IsInRole function is never returning true. i kn... | [
-0.10199198871850967,
0.029287513345479965,
0.32134687900543213,
0.019691430032253265,
0.03127247467637062,
-0.07006589323282242,
0.40815219283103943,
-0.0655021071434021,
-0.13704468309879303,
-0.7688801884651184,
0.3787117302417755,
0.5305529236793518,
-0.4941844344139099,
0.425229787826... | |
you need to be very careful not to introduce race conditions (`Monitor` or `lock` your properties).
However, multiple *processes* should be in separate AppDomains and therefore each have their own instance. | [
-0.12229038029909134,
0.19141359627246857,
-0.46724483370780945,
0.3930673599243164,
0.24992243945598602,
0.19601069390773773,
0.3178419768810272,
0.12856829166412354,
-0.34632420539855957,
-0.894994854927063,
-0.05419408902525902,
-0.1741052269935608,
-0.4838763475418091,
0.13289530575275... | |
`Html.TextBox("ParentPassword", "", new { @class = "required" })`
what the gosh darned heck is the @ for the @class.
`class` is a reserved keyword, so you can't use this as a variable name.
The @ operator allows you to get around this rule. The reason why its being done here is that the anonymous object is used to po... | [
0.22734501957893372,
0.22605380415916443,
0.3965105414390564,
-0.16961145401000977,
-0.5235899090766907,
-0.43728208541870117,
0.5430061221122742,
0.10875611752271652,
-0.16104939579963684,
-0.46373671293258667,
-0.08814962953329086,
0.41475653648376465,
-0.4878346025943756,
0.256777763366... | |
I am writing a lib and a demo project. The project doesn't care which version of the lib I use (I can use sdl, directx or whatever I like as the gfx backend). To get the object I do
```
Obj *obj = libname_newDevice();
```
Now, should I use delete or should I do `obj->deleteMe();`? I ask because I am not exactly doi... | [
0.06873637437820435,
0.15367259085178375,
0.5505249500274658,
-0.25382867455482483,
-0.1359310895204544,
-0.0034437854774296284,
0.35216638445854187,
-0.09200508892536163,
-0.08103692531585693,
-0.9375187158584595,
-0.16015930473804474,
0.537293016910553,
-0.41571804881095886,
0.2256200909... | |
one step further.
If you are using a factory function to create, it may be logical to use a factory function to destroy. In addition to this to make it all nice and exetion safe wrap in in an object.
```
class ObjWrap
{
public:
ObjWrap()
:obj(libname_newDevice())
{}
~ObjWrap(... | [
-0.04403810575604439,
-0.20119480788707733,
0.21786370873451233,
-0.3090709149837494,
0.248141810297966,
-0.017882337793707848,
0.7862499356269836,
0.07430793344974518,
-0.24319684505462646,
-0.6881476640701294,
-0.3385303318500519,
0.44517815113067627,
-0.6629782915115356,
0.3569235205650... | |
ObjWrap(ObjWrap const&); // Dont copy
void operator=(ObjWrap const&); // Dont copy
Obj* obj;
}; // If you want to copy then you need to extra work on ref counting
// This may need some form of smart pointer.
``` | [
0.16107620298862457,
0.4980009198188782,
0.40736445784568787,
-0.2822640538215637,
0.2746989130973816,
0.08286380767822266,
0.5454375147819519,
-0.0937148928642273,
-0.3089179992675781,
-0.39824214577674866,
-0.2625686526298523,
0.688606858253479,
-0.7066270112991333,
0.07947977632284164,
... | |
I have a SQL Mobile database with one table. It has several columns with useful, often queried data and one column that stores a relatively large string per record (1000+ characters) that is not queried often.
Imagine this fake schema, the "lifeStory" field is the large one.
```
table1
String firstName
String lastNam... | [
0.09894192963838577,
0.5451052188873291,
0.4458003044128418,
0.03578520938754082,
0.07136137783527374,
0.20781785249710083,
0.057433824986219406,
-0.24139241874217987,
-0.27707475423812866,
-0.5096389055252075,
0.20302769541740417,
0.20606057345867157,
-0.2972985804080963,
0.26052388548851... | |
that svn would open more than one file at a time.
To make svn invoke my script, I added the following line in the [helpers] section in ~/.subversion/config
```
diff-cmd=/usr/bin/bcompare_svn
``` | [
0.1263456642627716,
0.027073271572589874,
0.24734686315059662,
-0.17187222838401794,
-0.2107727974653244,
-0.16094261407852173,
0.21319939196109772,
0.24899740517139435,
-0.18223942816257477,
-0.3155719041824341,
-0.1857222020626068,
0.3763379156589508,
-0.3595888912677765,
0.1800565421581... | |
Into some view data i have put the result of an anonymous type:
```
var projectData = from p in db.Projects
orderby p.title
select new | [
0.3761463165283203,
-0.18546630442142487,
0.4320882558822632,
-0.11097931116819382,
-0.19442220032215118,
-0.04580482095479965,
0.17095787823200226,
-0.33448946475982666,
-0.07867901772260666,
-0.6272645592689514,
-0.4047304093837738,
0.443274587392807,
-0.1289053112268448,
0.4375885426998... | |
{
Title = p.title,
DevURL = p.devURL ?? "N/A", | [
-0.22495073080062866,
0.1830252856016159,
0.15161630511283875,
0.19869470596313477,
0.17692849040031433,
0.34222185611724854,
-0.04581208899617195,
-0.16843000054359436,
-0.4040319323539734,
-0.20712190866470337,
-0.4980810880661011,
0.12168137729167938,
-0.038493793457746506,
0.2724313437... | |
QAURL = p.qaURL ?? "N/A",
LiveURL = p.liveURL ?? "N/A",
Users = p.GetUsers().MakeUserList() | [
0.07440279424190521,
-0.2113158106803894,
0.3000604510307312,
-0.33993929624557495,
0.11225240677595139,
0.4668672978878021,
0.5140994787216187,
-0.1592423915863037,
-0.29195457696914673,
-0.49169301986694336,
-0.5832027196884155,
0.2316318303346634,
-0.4693516194820404,
0.1809657514095306... | |
};
ViewData["ProjectSummary"] = projectData;
```
How do I iterate through this view data in the MVC view on the front end to say, make a table of results?
In your case it would be much simpler to create a model to hold your data rather than using an anonymous type.
The issue you're having is that your anon... | [
0.18220539391040802,
-0.004758177790790796,
0.36980944871902466,
-0.03934085741639137,
0.024013031274080276,
-0.04966719076037407,
0.15557441115379333,
-0.2974892258644104,
-0.06698232144117355,
-0.607329249382019,
-0.08184795081615448,
0.6481908559799194,
-0.4376560151576996,
0.0672931000... | |
want to do this in your UI. It will be highly ugly. Instead, just add the following class to your Models:
```
public class Project{
public string Title {get;set;}
public string DevUrl {get;set;}
public string QAUrl {get;set;}
public string LiveUrl {get;set;}
public IEnumerable<User> Users {get;set;}
public static IE... | [
0.5384975075721741,
-0.1881381869316101,
0.41416192054748535,
0.03922748938202858,
0.0318603552877903,
-0.02419907972216606,
0.4222698509693146,
-0.531804621219635,
-0.07867205888032913,
-0.776822030544281,
-0.4675852358341217,
0.4009336233139038,
-0.1496097296476364,
0.3947846293449402,
... | |
Title = p.title,
DevURL = p.devURL ?? "N/A",
QAURL = p.qaURL ?? "N/A",
LiveURL = p.liveURL ?? "N/A",
Users = p.GetUsers().MakeUserList()
};
}
```
In your controller do this:
```
public ActionResult Index()
{ | [
-0.14824450016021729,
-0.45988714694976807,
0.5598560571670532,
-0.006201345007866621,
0.21731358766555786,
0.04030127823352814,
0.25897181034088135,
-0.39571326971054077,
-0.2982957363128662,
-0.2705581784248352,
-0.5903351902961731,
0.5573030710220337,
-0.2846941351890564,
0.336037844419... | |
return View("Index", Project.RetrieveAllProjects());
}
```
and in your view's codebehind, strongly type it thusly:
```
//snip
public partial class Index : ViewPage<IEnumerable<Project>>
{
//snip
```
You might think its a bit wasteful to have all these models laying around, but its much easier to understand, and ma... | [
0.06656773388385773,
-0.05237310379743576,
0.16173481941223145,
0.05638640746474266,
-0.023339437320828438,
-0.032669562846422195,
0.09609212726354599,
0.020384645089507103,
-0.04506998881697655,
-0.8397451639175415,
-0.17151983082294464,
0.7076663374900818,
-0.09908011555671692,
-0.256550... | |
I've just wasted the past two hours of my life trying to create a table with an auto incrementing primary key bases on [this tutorial](http://www.lifeaftercoffee.com/2006/02/17/how-to-create-auto-increment-columns-in-oracle/), The tutorial is great the issue I've been encountering is that the Create Target fails if I h... | [
0.2149188220500946,
0.4723103940486908,
0.2986655533313751,
-0.2633977234363556,
0.0396004319190979,
0.16201724112033844,
0.22032861411571503,
-0.2941935956478119,
-0.02890322357416153,
-0.5790849328041077,
-0.06787765771150589,
0.7301516532897949,
-0.28330111503601074,
-0.0891906321048736... | |
NUMBER,
);
```
2. Creating the Sequence:
```
CREATE SEQUENCE test_sequence
START WITH 1
INCREMENT BY 1;
```
3. Creating the trigger:
```
CREATE OR REPLACE TRIGGER test_trigger
BEFORE INSERT
ON myTable
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
SELECT test_sequence.nextval INTO :NEW.ID FROM dual;
END; ... | [
0.394351065158844,
0.34764742851257324,
0.20807713270187378,
-0.22844813764095306,
0.23629188537597656,
0.19342581927776337,
0.353046178817749,
-0.47624701261520386,
-0.00423926068469882,
-0.37089648842811584,
-0.15109211206436157,
0.5262836217880249,
-0.4276930093765259,
0.027565652504563... | |
and a column name.
As I've said I don't understand why the table is created fine but oracle falls over when I try to create the trigger...
**CLARIFICATION**
I know that the issue is that there is a column called timestamp which may or may not be a keyword. MY issue is why it barfed when I tried to create a trigger ... | [
0.28217652440071106,
0.31981179118156433,
0.30348217487335205,
0.028386453166604042,
-0.35155773162841797,
-0.03295046463608742,
-0.01680946536362171,
-0.06399070471525192,
-0.2535165548324585,
-0.4869619309902191,
0.4180406332015991,
0.3467750549316406,
-0.19045940041542053,
-0.0395947434... | |
version though.
If this is a bug in Oracle how would one who doesn't have a support contract go about reporting it? I'm just playing around with the express version because I have to migrate some code from MySQL to Oracle.
There is a note on metalink about this (227615.1) extract below:
```
# symptom: Creating Trigge... | [
0.1608191430568695,
0.17916250228881836,
0.3747495710849762,
-0.1644703596830368,
-0.13456366956233978,
-0.22523906826972961,
0.7188257575035095,
-0.17540878057479858,
-0.09633177518844604,
-0.5741040110588074,
0.09004492312669754,
0.4435601532459259,
-0.4064677655696869,
0.049346145242452... | |
a column name that is one of the datatypes (reserved key word). Even though the field is not referenced in the PL/SQL SQL statements, this error will still be produced.
fix:
Workaround:
1. Rename the column to a non-reserved word.
2. Create a view and alias the column to a different name.
``` | [
0.013709562830626965,
0.18510004878044128,
0.32608455419540405,
-0.04158421605825424,
0.19280880689620972,
-0.1577172577381134,
0.42223647236824036,
-0.0026968205347657204,
-0.024135511368513107,
-0.35136500000953674,
-0.3499343693256378,
0.5194898247718811,
-0.45998743176460266,
0.2325246... | |
I am working on an automated testing app, and am currently in the process of writing a function that compares values between two XML files that should be identical, but may not be. Here is a sample of the XML I'm trying to process:
```
<?xml version="1.0" encoding="utf-8"?>
<report xmlns="http://www.**.com/**">
<sub... | [
0.5077999830245972,
0.3314211070537567,
0.05377459526062012,
-0.10058537125587463,
-0.01056983694434166,
0.07874186336994171,
0.12880365550518036,
-0.41704821586608887,
0.28321054577827454,
-0.5663545727729797,
0.3148360550403595,
0.5237993001937866,
-0.12509849667549133,
0.044834852218627... | |
<field name="Unreliability">
<value>0.000000</value>
</field>
<field name="Availability">
<value> </value>
</field>
<field name="Unavailability">
<value> </value>
</field>
<field name="Failure Rate">
<value>N/A</value>
</field>
<field name=... | [
-0.047264695167541504,
0.3335338830947876,
-0.041732922196388245,
-0.1254664957523346,
0.17934729158878326,
0.17331306636333466,
0.42929187417030334,
-0.2555805742740631,
-0.1514843851327896,
-0.2615441679954529,
-0.36074507236480713,
0.6957845091819763,
-0.1902180314064026,
0.457667142152... | |
<value> </value>
</field>
<field name="Total Downtime">
<value> </value>
</field>
</record>
```
(Note there may be multiple `<subreport>` elements and within those, multiple `<record>` elements.)
What I'd like is to extract the `<value>` tags of two documents and then compare their valu... | [
0.03687673434615135,
0.009288993664085865,
0.35331740975379944,
-0.04428426921367645,
0.09377805143594742,
-0.16461503505706787,
-0.1428379863500595,
-0.23304027318954468,
0.13241268694400787,
-0.5566611289978027,
-0.11215558648109436,
0.5491148829460144,
-0.2595977187156677,
-0.3845372200... | |
case I ever decide to change my data format.
That wrapper, CSimpleXMLParser, loads an XML document and sets its "top record" to the document element of the XML document. (CRecord being an abstract class with CXMLRecord one of its subclasses, and which gives access to child records singularly or by group, and also allo... | [
0.055482760071754456,
-0.0006503807380795479,
0.6085043549537659,
0.19250230491161346,
0.14705567061901093,
0.029102064669132233,
-0.05704743042588234,
-0.2662063539028168,
-0.029971756041049957,
-0.4486926794052124,
-0.20347808301448822,
0.35088852047920227,
-0.1633300930261612,
0.0847000... | |
its child records.
In my code, I do the following (trying to return all `<subreport>` nodes just to see if it works):
```
CSimpleXMLParser parserReportData;
parserReportData.OpenXMLDocument(strPathToXML);
bool bGetChildrenSuccess = parserReportData.GetFirstRecord()->GetChildRecords(listpChildren, _T("subreport"));
`... | [
0.0030667665414512157,
0.02747306227684021,
0.6389064788818359,
-0.023769540712237358,
0.3607528805732727,
0.05569862946867943,
0.2218034565448761,
-0.3667702078819275,
0.03949263319373131,
-0.5905832052230835,
-0.026252472773194313,
0.4289589822292328,
-0.15377521514892578,
0.414357453584... | |
getting its child nodes (through the MSXML interface, not through my wrapper) or its name, etc. I know that my wrapper *can* work, because I use it elsewhere in the app for parsing an XML configuration file, and that works flawlessly.
I thought maybe I was doing something faulty with the XPath query expression, but ev... | [
-0.132492795586586,
-0.2977834641933441,
0.6290176510810852,
0.2168758511543274,
0.35628920793533325,
0.23504388332366943,
0.21172113716602325,
0.16140760481357574,
-0.005311710759997368,
-0.8131099343299866,
-0.10869964212179184,
0.41790977120399475,
-0.06217467784881592,
0.23796215653419... | |
the same here:
If the XML document includes a namespace -- even an unnamed one -- then the Xpath query has to use one as well. So, you'll have to add the namespace to the XMLDoument which you might as well give a name in the code, and the include the prefix in the XPATH query (it doesn't matter that the prefixes are d... | [
0.38409456610679626,
0.09394050389528275,
0.3363957107067108,
0.09151197224855423,
-0.14764384925365448,
-0.15123498439788818,
-0.24769693613052368,
-0.2845364809036255,
-0.11376050859689713,
-0.6270692944526672,
-0.3734855651855469,
0.31252866983413696,
-0.4193950593471527,
-0.12130142748... | |
_bstr_t("xmlns:r="http://www.**.com/**"));
```
and then `selectNodes()` using `/r:report/r:subreport/r:record/r:field/r:value` | [
0.05044402927160263,
0.2496415078639984,
0.38746535778045654,
-0.3745550811290741,
-0.036796048283576965,
-0.00014778826152905822,
-0.05865180864930153,
-0.36665043234825134,
-0.2126130908727646,
-0.1682261824607849,
-0.6474659442901611,
0.5160220861434937,
-0.42173823714256287,
0.25064420... | |
Is there any way in a Win32 environment to "tune" the timeout on a socket `connect()` call? Specifically, I would like to increase the timeout length. The sockets in use are non-blocking. Thanks!
Yes, this is possible.
If you're in non-blocking mode after [`connect()`](http://msdn.microsoft.com/en-us/library/ms737625(... | [
0.1424517184495926,
-0.32415565848350525,
0.0963476374745369,
0.05862013250589371,
0.33715349435806274,
-0.29723548889160156,
0.08322984725236893,
0.1406322717666626,
-0.05949871614575386,
-0.5997641682624817,
-0.2827967703342438,
0.7817486524581909,
-0.1904570460319519,
-0.011653787456452... | |
I have an implementation of default handler. When it gets to a in the character data it stops parsing. Is there any reason that it is doing this? Are there additional properties that I need to set in order for it to deal with  ?
This breaks because the XML entity is not defined. You could add
```
<!DOCTYPE docum... | [
0.2465982586145401,
0.07958651334047318,
0.3630230128765106,
-0.3215995728969574,
-0.024418143555521965,
0.20006875693798065,
0.35143348574638367,
-0.16086025536060333,
0.11706268787384033,
-0.7638451457023621,
-0.0760570839047432,
0.4188225269317627,
-0.2997882664203644,
0.052612200379371... | |
If I have a DrawingVisual in WPF with Opacity=0, is that enough for it not to be drawn? We have hundreds of DrawingVisuals on a Canvas, and are currently setting Opacity=0 on the visuals that are not to be displayed, and I wanted to make sure there is no rendering performance hit for rendering a DrawingVisual with Opac... | [
0.30416175723075867,
-0.28125831484794617,
0.5271945595741272,
0.1652153730392456,
-0.3431139886379242,
0.0018327286234125495,
0.058684468269348145,
0.02325345017015934,
-0.03456752002239227,
-0.8364927172660828,
0.18058498203754425,
0.6571913361549377,
-0.09450726956129074,
-0.02382118068... | |
any suggestions are welcome.
The most efficient seems to be setting the opacity in my tests. Another simple approach is to redraw the visuals that are affected.
```
using (DrawingContext dc = RenderOpen()) {} //Hide this visual
```
And then redraw when they become visible again.
Rendering a blank drawingcontext see... | [
0.05846162140369415,
-0.04831613972783089,
0.1975741982460022,
0.18058393895626068,
-0.239093616604805,
0.15595091879367828,
0.18385404348373413,
0.05651751160621643,
-0.054052162915468216,
-0.9536864161491394,
0.014643526636064053,
0.6068817973136902,
-0.18221405148506165,
0.0001745319896... | |
How do you automate [integration testing](http://en.wikipedia.org/wiki/Integration_testing)? I use JUnit for some of these tests. This is one of the solutions or is totally wrong? What do you suggest?
JUnit works. There are no limitations that restrict it to being unit tests only. We use JUnit, Maven and CruiseControl ... | [
0.3758861720561981,
-0.37079253792762756,
0.07492907345294952,
0.1226324662566185,
0.09007073938846588,
-0.3653346300125122,
-0.19160908460617065,
0.01689980737864971,
-0.10241948813199997,
-0.7991889119148254,
0.20632624626159668,
0.9035733938217163,
-0.27546632289886475,
-0.4322212040424... | |
```
For Each line As String In System.IO.File.ReadAllLines("file.txt")
'Do Something'
Next
```
and
```
Using f As System.IO.FileStream = System.IO.File.OpenRead("somefile.txt")
Using s As System.IO.StreamReader = New System.IO.StreamReader(f)
While Not s.EndOfStream
Dim line As St... | [
0.16712914407253265,
-0.576460063457489,
0.8686078190803528,
-0.04498259723186493,
0.08717825263738632,
0.15160371363162994,
0.015859656035900116,
-0.1030130460858345,
-0.1685936003923416,
-0.6612847447395325,
-0.2506885230541229,
0.435160368680954,
-0.2973712086677551,
0.14823530614376068... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.