text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
2", "2008/01/02 04:34", 2 );
d[4].set( "Line 8", "2008/01/08 04:34", 8 );
d[5].set( "Line 6", "2008/01/06 04:34", 6 );
d[6].set( "Line 3", "2008/01/03 04:34", 3 );
d[7].set( "Line 5", "2008/01/05 04:34", 5 );
d[8].set( "Line 9", "2008/01/09 04:34", 9 );
d[9].set( "Line 7", "2008/01/07 04:34", 7 );
// S... | [
-0.46230071783065796,
-0.6134478449821472,
0.7222592234611511,
-0.1415637880563736,
-0.059912171214818954,
0.46593961119651794,
0.06500875949859619,
-0.5244694352149963,
-0.426494300365448,
-0.7056746482849121,
-0.6457129716873169,
0.05431244894862175,
-0.5601626634597778,
-0.1618745326995... | |
04:34", 4 ) );
e.push_back( Data( "Line 0", "2008/01/00 04:34", 0 ) );
e.push_back( Data( "Line 2", "2008/01/02 04:34", 2 ) );
e.push_back( Data( "Line 8", "2008/01/08 04:34", 8 ) );
e.push_back( Data( "Line 6", "2008/01/06 04:34", 6 ) );
e.push_back( Data( "Line 3", "2008/01/03 04:34", 3 ) );
e.push_back( ... | [
-0.6769264340400696,
-0.3942086398601532,
0.8309181332588196,
-0.3976844251155853,
-0.03832640498876572,
0.5484080910682678,
-0.09973345696926117,
-0.289072722196579,
-0.35323283076286316,
-0.7141302824020386,
-0.5218715071678162,
0.32734808325767517,
-0.47567659616470337,
0.16987350583076... | |
Simple question, spurred on by the removal of the target attribute in HTML 4.0 Strict and XHTML 1.0 Strict.
I personally don't think so, as web users become more savvy, they'll ask for a new window from the browser. It annoys me when a website does this a lot.
I think the question is sort of subjective. It could be go... | [
0.7270302772521973,
0.09473876655101776,
0.1319461166858673,
-0.020550576969981194,
-0.2285023182630539,
-0.22332234680652618,
0.1553809493780136,
-0.19936248660087585,
-0.15536779165267944,
-0.3154774308204651,
0.04937116801738739,
0.4893835783004761,
-0.5175358057022095,
0.12126348912715... | |
When I look at a directory in Windows Explorer, I can see a ProductName and ProductVersion property for the DLL's in that directory.
I need to export this DLL list with ProductName and ProductVersion into a text file.
If I do `c:\>dir *.dll > test.log`, the test.log does not have the ProductName and ProductVersion.
... | [
0.3778333365917206,
0.19695407152175903,
0.354533851146698,
-0.3509663939476013,
-0.07950112223625183,
0.08264456689357758,
0.23561769723892212,
-0.38044875860214233,
-0.006475831847637892,
-0.8153502941131592,
-0.0857904851436615,
0.509575366973877,
-0.4782264530658722,
0.1974828094244003... | |
i = 0 to 40
arrHeaders(i) = objFolder.GetDetailsOf (objFolder.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 40
Wscript.echo arrHeaders(i) & ": " & objFolder.GetDetailsOf (strFileName, i)
Next
Wscript.Echo
Next
``` | [
-0.336470365524292,
0.26751524209976196,
0.5162328481674194,
-0.2641632854938507,
-0.184113010764122,
0.37950676679611206,
0.553884744644165,
-0.7222352623939514,
-0.14086587727069855,
-0.6798991560935974,
-0.4174690842628479,
0.17720988392829895,
-0.2626851499080658,
0.00977175310254097,
... | |
I'm working with some example java code for making md5 hashes. One part converts the results from bytes to a string of hex digits:
```
byte messageDigest[] = algorithm.digest();
StringBuffer hexString = new StringBuffer();
for (int i=0;i<messageDigest.length;i++) {
hexString.append(Integer.toHexString(0xFF & ... | [
-0.09235524386167526,
-0.07493840157985687,
0.2452421933412552,
-0.31041163206100464,
-0.2073799967765808,
-0.01029914803802967,
0.013571081683039665,
-0.49900761246681213,
-0.19030843675136566,
-0.4626145362854004,
0.028540605679154396,
0.5020159482955933,
-0.3784801959991455,
0.108718514... | |
needed. Something like this:
```
public static String toHexString(byte[] bytes) {
StringBuilder hexString = new StringBuilder();
for (int i = 0; i < bytes.length; i++) {
String hex = Integer.toHexString(0xFF & bytes[i]);
if (hex.length() == 1) {
hexString.append('0');
}
... | [
-0.21313276886940002,
-0.07242307811975479,
0.8192493319511414,
-0.4025413990020752,
0.13256701827049255,
0.19260001182556152,
0.2664130628108978,
-0.5876299142837524,
-0.274034321308136,
-0.43306678533554077,
-0.4340234696865082,
0.6306995153427124,
-0.4644644260406494,
0.2593344449996948... | |
I have a website that employs a generic mod\_rewrite rule to push all requests to the index.php page, with the exception of certain file extensions:
```
RewriteRule !\.(js|ico|gif|jpg|JPG|png|css|php|phtml|pdf|txt|xml)$ index.php
```
What I need to be able to do is also exclude a certain directory (including any fil... | [
0.07895046472549438,
0.41970565915107727,
0.7362700700759888,
-0.16362714767456055,
0.007986847311258316,
-0.22409473359584808,
0.6351580023765564,
-0.27108508348464966,
-0.08682691305875778,
-0.5563299655914307,
0.00566156255081296,
0.3648872673511505,
-0.2555481493473053,
0.2525357902050... | |
'style' for instance, you need:
```
RewriteRule ^style/ - [L]
```
The hyphen means 'no redirection', and the '[L]' means 'last rule', as in don't carry on trying to match the URL to the follwing rules. You can put as many of these lines in as you like, but they must be before the line you give in the question. | [
0.36649492383003235,
-0.010027698241174221,
0.6852744221687317,
-0.18671129643917084,
-0.06646447628736496,
-0.10242030024528503,
0.14622211456298828,
0.029606260359287262,
-0.022820966318249702,
-0.5167841911315918,
-0.4710748493671417,
0.662306010723114,
-0.17653164267539978,
-0.09955322... | |
I need to deploy a few .net dlls. They need to be put in the GAC and the required entries need to be in the registry. On my machine I have both the SDK and Visual Studio running, so currently I am utilizing .net sdk tools like gacutil and regasm. However, when I need to install these dlls on a customer machine, how sho... | [
0.5308901071548462,
0.11834445595741272,
0.4605652689933777,
-0.2097938358783722,
-0.21124133467674255,
-0.2467731088399887,
0.2028341144323349,
0.17666499316692352,
-0.19178266823291779,
-1.1583915948867798,
-0.1186547726392746,
0.7294590473175049,
-0.15108659863471985,
0.1003437861800193... | |
MSI files - like WiX)
This might be useful to you:
<http://blogs.msdn.com/astebner/archive/2006/11/04/why-to-not-use-gacutil-exe-in-an-application-setup.aspx> | [
0.2546970844268799,
-0.2641679346561432,
0.12111188471317291,
0.06136732175946236,
0.046776920557022095,
-0.3003910481929779,
0.2642248570919037,
0.12467510998249054,
-0.3770985007286072,
-0.7321885228157043,
-0.048830412328243256,
0.41865265369415283,
-0.46393632888793945,
-0.033174570649... | |
Someone within my organization has started pushing for us to pilot the CMU SEI's TSP process (see website [here](http://www.sei.cmu.edu/tsp/)). I have an instinctual aversion to any attempts to cure software development illnesses with alphabet soup, but I would like to know if anyone has experience with this process an... | [
0.4752489924430847,
0.24766291677951813,
-0.030930669978260994,
-0.17284180223941803,
-0.31140923500061035,
0.03479889780282974,
0.5409684181213379,
0.12635335326194763,
-0.2702467143535614,
-0.4483679234981537,
-0.1713687926530838,
0.27719610929489136,
-0.19669274985790253,
-0.09504050761... | |
Is there any way to do it? I only have client access and no access to the server. Is there a command I've missed or some software that I can install locally that can connect and find a file by filename?
You could grep the output of
```
cvs rlog -Nh .
```
(note the period character at the end - this effectively means... | [
0.3551965355873108,
-0.11977586150169373,
0.24193646013736725,
0.21695096790790558,
0.17085255682468414,
-0.12679316103458405,
0.1532876193523407,
0.21281537413597107,
-0.5508878231048584,
-0.04413484036922455,
-0.15841257572174072,
0.39515766501426697,
0.1380821317434311,
0.53513318300247... | |
I've developed an application at working using MySQL 5, that uses Views to access the major pieces of data. It turns out that our production server uses MySQL 4, which does not have Views included.
Does anybody have a quick and dirty way to deal with this that doesn't involve rewriting all my code?
This certainly poin... | [
0.5313019156455994,
0.09075645357370377,
-0.027445655316114426,
0.14746975898742676,
-0.0756504088640213,
0.06487729400396347,
0.3411027789115906,
0.14824382960796356,
-0.2677578926086426,
-0.43089619278907776,
0.18878573179244995,
0.7598195672035217,
-0.2465084195137024,
0.205820515751838... | |
match your views.
* Upgrade your production database to MySQL 5.0. If you're talking about a hosting provider, then contact that provider and ask if they have an option for MySQL 5.0, otherwise you need to relocate to a provider who does.
I'd recommend the latter path, it'll be far less work than writing code to manag... | [
0.3593449592590332,
0.11005540192127228,
0.7136087417602539,
-0.04936067759990692,
-0.15539513528347015,
0.03426390886306763,
0.22260203957557678,
0.349057137966156,
-0.1712799370288849,
-0.42693644762039185,
-0.23222288489341736,
0.6696770787239075,
-0.14402689039707184,
-0.00191453099250... | |
I am using GWT for my client side application. I am not using GWT/Java for the server. However, I am not sure how I can handle session management. The GWT application resides on one page, all server calls are done via AJAX. If a session expires on the server... let's assume the user didn't close the browser, but left t... | [
0.14697988331317902,
0.24936577677726746,
0.4260719418525696,
-0.1680954247713089,
-0.22130611538887024,
-0.29073160886764526,
0.4632905423641205,
0.04800257086753845,
-0.2502674162387848,
-0.775016725063324,
0.05001261457800865,
0.5854621529579163,
-0.14848797023296356,
0.3942776620388031... | |
code. I'm looking for ideas, techniques, potential solutions etc. I've considered Comet <http://en.wikipedia.org/wiki/Comet_(programming)>, but that doesn't seem like that will work very well without using Java on the server side. Maybe, I'm wrong? I don't want to poll the server either.
Any thoughts or insight?
With... | [
0.6394440531730652,
0.12299031019210815,
-0.09018688648939133,
0.1968926042318344,
-0.2986625134944916,
-0.179136261343956,
0.7431796789169312,
0.15316759049892426,
-0.13966865837574005,
-0.5313845276832581,
-0.04783426225185394,
0.636601984500885,
-0.2942019999027252,
-0.1881975531578064,... | |
set the user up for re-authentication. | [
0.2593502700328827,
0.06960310786962509,
0.11172856390476227,
0.09141162782907486,
0.11477842926979065,
-0.3568013608455658,
0.34334301948547363,
-0.14815986156463623,
-0.0003775075310841203,
-0.33260056376457214,
-0.5057017207145691,
0.27444344758987427,
-0.04260200634598732,
-0.234756469... | |
I'd like to serialize some LINQ generated objects and store them in a table as a binary field (Never you mind why). I'd like to be able to write some code that looks something like this:
```
SerialTestDataContext db = new SerialTestDataContext();
relation_table row = db.relation_tables.First();
MemoryStream memStrea... | [
0.2668789029121399,
-0.0006598024046979845,
0.6483407616615295,
0.12959516048431396,
0.088707834482193,
-0.10560585558414459,
0.289200097322464,
-0.40756717324256897,
-0.19390785694122314,
-0.6454411149024963,
-0.1570495218038559,
0.5005587935447693,
-0.1193583682179451,
0.2921223044395447... | |
which uses the [DataContract]/[DataMember] approach. You do this by setting the "Serialization Mode" to "Unidirectional" in the designer, or you can do it in the dbml itself:
```
<Database ... Serialization="Unidirectional">...
```
You can then use DataContractSerializer or NetDataContractSerializer to write this (a... | [
0.4089043140411377,
-0.34010371565818787,
0.5170207619667053,
-0.19239597022533417,
-0.06704676896333694,
-0.045932408422231674,
-0.20883193612098694,
-0.37940794229507446,
-0.022905489429831505,
-0.7682420015335083,
-0.3844394385814667,
0.2399027943611145,
-0.5530791878700256,
0.005807745... | |
Here is a specific example which is not CLS-complaint according to VS.NET 2005.
```
Public Interface IDbId
Function GetNativeObject() As Object
Function Equals(ByVal compObj As IDbId) As Boolean
Function CompareTo(ByVal compObj As IDbId) As Integer
Function ToString() As String
End Interface
```
Th... | [
-0.12889327108860016,
0.0619136318564415,
0.509937584400177,
-0.26682284474372864,
-0.5227240324020386,
-0.09577701985836029,
0.16737383604049683,
-0.26197534799575806,
0.0726361945271492,
-0.7426403164863586,
0.15204545855522156,
0.6790654063224792,
-0.48889392614364624,
0.200286790728569... | |
Server type 'int', for example) given a native database type.
Now let's say I go to use this interface like so:
```
Public MustOverride ReadOnly Property ID() As IDbId
```
VS now outputs this warning message:
> Return type of function 'ID' is not CLS-complaint.
I can stop these warnings by adding this attribute ... | [
0.1138409823179245,
0.03613830730319023,
0.4903397560119629,
-0.08827704191207886,
-0.2574496865272522,
-0.6535324454307556,
0.42974695563316345,
-0.010236302390694618,
-0.13331681489944458,
-0.5074192881584167,
-0.09156280010938644,
0.45415425300598145,
-0.599685549736023,
0.2480262219905... | |
CLS-compliant class](http://msdn.microsoft.com/en-us/library/0haa76bc.aspx) | [
-0.30788639187812805,
-0.049960292875766754,
0.5473655462265015,
0.2884915769100189,
0.18277588486671448,
-0.5284147262573242,
-0.07385259121656418,
0.034967415034770966,
-0.4095357060432434,
0.018401166424155235,
-0.4214927852153778,
0.2935011088848114,
-0.376446396112442,
0.3131293952465... | |
I'm in need of a functional OleDB data provider for PostgreSQL. It should be similar to the ODBC provider for MySQL. See <http://dev.mysql.com/downloads/connector/odbc/5.1.html>
The postgres [software catalog](http://www.postgresql.org/download/products/2) has some providers on there. | [
0.40568915009498596,
0.10877903550863266,
0.1663694530725479,
0.08140750229358673,
-0.1600794643163681,
-0.32560086250305176,
-0.07003459334373474,
0.31598275899887085,
-0.26917165517807007,
-0.6962595582008362,
-0.07009468227624893,
0.3115129768848419,
-0.06884142011404037,
0.359737813472... | |
I've been trying to run a jar file - let's call it test.jar - that uses the Sybase jconn3.jar on a Unix system.
I have created a MANIFEST.MF file that has the following:
```
Class-Path: $SYBASE/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar
```
This gives a ClassNotFoundError. $SYBASE is the system variable ... | [
0.3680684268474579,
0.42645418643951416,
0.1517220139503479,
-0.19000133872032166,
0.04155770316720009,
-0.09254104644060135,
0.31828758120536804,
-0.04930076003074646,
0.02914430946111679,
-1.0364760160446167,
0.11659789085388184,
0.5462996959686279,
-0.19929106533527374,
0.15405158698558... | |
includes the path to my Main-Class, so that's not at issue here.
What do you think could be the problem? I've been looking at this thing for too long now.
Thanks!
The entries in the class-path are either relative to the JAR in which they are embedded (which you have working) or are URLs. To make your absolute paths wo... | [
0.28669410943984985,
0.07596409320831299,
0.05592985451221466,
-0.024647649377584457,
-0.025834226980805397,
-0.18201175332069397,
0.1668979823589325,
-0.018220126628875732,
-0.0013325862819328904,
-0.6142854690551758,
-0.09930796176195145,
0.733822226524353,
-0.03313697502017021,
-0.05229... | |
Let's say that I want to merge from a release branch to the master branch and there are some commits in the release branch that I don't want to include in the master branch. Is there a way to do the merge so that one or more of those commits will not be merged?
My strategy so far is to do the following (in master):
`... | [
0.32932886481285095,
-0.03746714070439339,
-0.26413244009017944,
-0.1654776781797409,
0.1891174018383026,
-0.17564091086387634,
0.2122873067855835,
-0.10394150763750076,
-0.33667871356010437,
-0.7899961471557617,
-0.1316688507795334,
0.70055091381073,
-0.5022342205047607,
0.187127932906150... | |
to do this?
Create a new branch, rebase the branch interactively and drop commits you don't want, and then merge that.
You can't take changes out of the middle of a branch without rehashing, but the right thing will happen when it sees the same changes in a later merge (e.g. from cherry-picking and what-not). | [
0.4717002213001251,
-0.3995456397533417,
-0.3714078962802887,
0.3352093994617462,
0.24112847447395325,
0.03324700519442558,
0.11773722618818283,
-0.2993871569633484,
-0.35521507263183594,
-0.4142729341983795,
0.0670972466468811,
0.24090979993343353,
-0.28566721081733704,
-0.035411521792411... | |
Please advise if you can.
I am building an SMS web service API that will allow people to send SMS to their desired cellphone numbers. A request will be sent to the interface, we then process that request based on the account details provided and credits available on their account.
We have two proposed XML structures ... | [
0.3656046986579895,
0.040827974677085876,
0.5712118148803711,
0.04947648569941521,
0.017423812299966812,
0.15329082310199738,
0.2347431778907776,
-0.13910365104675293,
0.12040486931800842,
-0.7266314029693604,
0.045433755964040756,
0.5090337991714478,
-0.3287745714187622,
-0.43938025832176... | |
<ClientID>11111</ClientID>
<PassPhrase>shjfkh</PassPhrase>
<Request Type="sms" Refno="10" ToAddress="27732687745332">
<Content>
hello world
</Content>
</Request> | [
-0.6701825857162476,
-0.09979883581399918,
0.49854254722595215,
-0.042054757475852966,
-0.3721749186515808,
0.35449111461639404,
0.6457108855247498,
0.050338782370090485,
-0.3562625050544739,
-0.3131329119205475,
-0.3259704113006592,
0.16578379273414612,
-0.4864460229873657,
-0.31461158394... | |
</Message> ");
```
Interface B
```
print("<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<Message>
<mmtag name="Version">1.0</mmtag>
<mmtag name="ClientID">1001</mmtag>
<mmtag name="RefNO">120</mmtag>
<mmtag name="Encoding">base64</mmtag>
<mmtag name="Type">SMS... | [
-0.33620476722717285,
-0.12535764276981354,
1.0069105625152588,
-0.24780914187431335,
-0.03168448060750961,
0.2684491276741028,
-0.15653705596923828,
-0.4223916828632355,
-0.39757832884788513,
-1.0352686643600464,
-0.20330412685871124,
0.7042860388755798,
-0.31412145495414734,
-0.077047564... | |
examples, which do you think would be best-suited for our API interface, regardless of the technology in the back end. Please support your answer should you pick one.
Interface A.
Interface B is essentially just a list of key/values, where as Interface A takes advantage of the structured nature of XML and provides mea... | [
0.21657000482082367,
0.0028625382110476494,
0.23933231830596924,
0.14982037246227264,
-0.3269571363925934,
0.16243097186088562,
-0.21070677042007446,
-0.13562741875648499,
-0.30295130610466003,
-0.4488036632537842,
0.009739695116877556,
0.4316410720348358,
-0.41010963916778564,
-0.21879409... | |
I haven't really looked into the new .NET stuff since 2.0, but I'm wondering what the preffered way is for creating Web Services is now (SOAP, not RESTful). I remember in the old days, you created a ASP.NET Web Service. Now, I've been looking at WCF, but it seems like there's some added complexity.
I've GOOGLED for so... | [
0.730827271938324,
0.00786250177770853,
0.3184570074081421,
0.05309117212891579,
-0.19577598571777344,
-0.08582531660795212,
0.13372622430324554,
0.15933454036712646,
-0.29547956585884094,
-1.0114742517471313,
0.3585830330848694,
0.3180040419101715,
-0.14504285156726837,
0.2248819917440414... | |
site, but also haven't stumbled -- yet -- upon that golden article.)
Thanks
A couple of things.
1) It's still OK to do Add -> New Web Service (asmx).
2) It's equally easy to do that with WCF (and it's still just SOAP).
The benefit of going WCF is that you're 'future-compatible' if you want to change some features (... | [
0.6268636584281921,
-0.20683960616588593,
0.6326226592063904,
0.36432209610939026,
-0.2685694098472595,
-0.5228421092033386,
0.1610722541809082,
-0.029318802058696747,
-0.28982192277908325,
-0.740314245223999,
0.18837179243564606,
0.5799791216850281,
0.05578073859214783,
-0.035937335342168... | |
When I switch tabs with the following code
```
tabControl1.SelectTab("MyNextTab");
```
It calls the tabPage\_Enter for the tab it is switching from and the tab it is switching to. I want it to be called for the tab it is switching to, but not the tab it is switching from. How would I turn this off. I do know when it... | [
0.32967638969421387,
-0.1721443235874176,
0.6333235502243042,
-0.3550548553466797,
0.038588088005781174,
-0.06546591222286224,
0.05634583160281181,
0.07676830887794495,
-0.036506325006484985,
-0.8697113394737244,
-0.12582272291183472,
0.7814335227012634,
-0.4017197787761688,
0.147880032658... | |
before it changes SelectedIndex. This appears to have been done to avoid problems with the Validating event. The focus change produces the first Enter event, for the active tab, the tab change then produces the second Enter event.
Knowing this, you could set a helper boolean member, indicating that the first Enter eve... | [
-0.23041510581970215,
-0.40544652938842773,
0.25501707196235657,
-0.009433970786631107,
0.016500672325491905,
0.10562372207641602,
0.1042943000793457,
-0.011374291032552719,
-0.23436887562274933,
-0.6003945469856262,
-0.21904489398002625,
0.2969810366630554,
-0.4693503677845001,
0.20069858... | |
How to figure out if a table is in use in SQL (on any type database)? if somebody is already using it, or have it "open" then its in use.
Actually this will give you a better result:
```
select spid
from master..sysprocesses
where dbid = db_id('Works') and spid <> @@spid
``` | [
0.08368624001741409,
-0.042251501232385635,
0.3911581337451935,
0.20274105668067932,
0.09060913324356079,
-0.3572288751602173,
0.0373108871281147,
-0.4624894857406616,
-0.22926314175128937,
-0.9416350722312927,
-0.013089354149997234,
0.1858651041984558,
-0.2618558406829834,
0.0367807634174... | |
Greetings!
I'm calling a Web service from Javascript when a user clicks on a link. I need to get the coordinates where the user clicked so that I can display a DIV in an appropriate location. My client-side script looks like the following:
```
var g_event;
function DoWork(event, theId)
{
if (IsIE())
g_ev... | [
-0.283066064119339,
0.13350149989128113,
0.7831382155418396,
-0.2465669959783554,
-0.11238585412502289,
-0.03864813223481178,
0.2979412078857422,
-0.22891008853912354,
0.026712533086538315,
-0.6723589301109314,
-0.3901100754737854,
0.25461336970329285,
-0.3193811774253845,
0.25957968831062... | |
works great in Firefox, Safari, and Opera. In IE7, not so much. For example, if I place the following code at the end of both the DoWork() and DoWorkSuccess() functions:
```
alert(g_event.clientX + ", " + g_event.clientY);
```
In IE, I'll get two alerts; the first one has correct coordinates, but the second one (w... | [
0.02609959803521633,
-0.049107395112514496,
0.5475253462791443,
-0.357601523399353,
-0.060413673520088196,
-0.33964645862579346,
0.4337324798107147,
-0.011081881821155548,
-0.24763831496238708,
-1.021366000175476,
-0.10617236793041229,
0.8890683650970459,
-0.2557399570941925,
-0.0183624960... | |
not extract and save the coordinates in DoWork and simply use them in DoWorkSuccess rather than saving the event. Of course this won't work if there is more data you are extracting from the event.
```
var client_x;
var client_y;
function DoWork(event, theId)
{
var g_event;
if (IsIE())
g_event = window... | [
-0.2538023889064789,
-0.11472681909799576,
0.6514406800270081,
-0.2238360196352005,
0.19233150780200958,
-0.05377832427620888,
0.15783126652240753,
-0.33365118503570557,
-0.24394288659095764,
-0.6306532025337219,
-0.26307278871536255,
0.6366227269172668,
-0.23063616454601288,
0.40429928898... | |
DisplayAreaDiv( { clientX : client_x, clientY : client_y }, l_elemDiv, result);
}
``` | [
-0.1302853524684906,
0.04742574319243431,
0.6055359840393066,
-0.3705756664276123,
-0.28480833768844604,
0.2716200053691864,
-0.35109344124794006,
0.16513647139072418,
-0.28864866495132446,
-0.9359756112098694,
-0.08841034024953842,
0.47252875566482544,
-0.3523023724555969,
0.3853288888931... | |
**This problem has been solved thanks to your suggestions.** See the bottom for details. Thanks very much for your help!
Our ASP.NET website is accessed from several specific and highly secure international locations. It has been operating fine, but we have added another client location which is exhibiting very strang... | [
0.2829344868659973,
-0.03116992674767971,
0.318376362323761,
0.253929078578949,
0.022074468433856964,
-0.14593566954135895,
0.6352523565292358,
0.3191929757595062,
-0.6259555816650391,
-0.46317124366760254,
-0.12356898188591003,
-0.09137292206287384,
-0.006161280442029238,
0.16586020588874... | |
the site. The user is able to log in to the site fine and their profile information is displayed.
I have logged in to the site locally using exactly the same credentials as them and the site works well from here. We have gone through the steps carefully so I am confident it is not a user issue.
I bind the search res... | [
0.5359758734703064,
0.2507855296134949,
0.5180222392082214,
-0.2027372419834137,
-0.273222953081131,
-0.1883327215909958,
0.5721843838691711,
-0.13324038684368134,
-0.09652628749608994,
-0.9138967394828796,
-0.09599719941616058,
0.6741724014282227,
-0.19672910869121552,
0.1764657199382782,... | |
method call.
Does anybody know how the value of IsPostBack is calculated? Is it possible that their highly-secure firewall setup would cause IsPostBack to always return true, even when it is a redirect from another page? That could be a red herring as the problem might be elsewhere. It does exactly replicate the resu... | [
0.029010703787207603,
0.06502849608659744,
0.4993179142475128,
0.1692793220281601,
-0.09658690541982651,
-0.2517651617527008,
0.7561120986938477,
-0.1839136928319931,
-0.21281678974628448,
-0.26237794756889343,
0.20504099130630493,
0.6221071481704712,
-0.09710625559091568,
-0.1495116353034... | |
Internet Explorer trusted sites list and tried in FireFox and Google Chrome, all with the same result.
**SOLUTION**: The winner for me was the suggestion to use Fiddler. What an excellent tool that no web developer should be without. Using this I was able to strip various headers from the request until I reproduced th... | [
-0.2795635163784027,
0.024599874392151833,
0.6443938612937927,
0.15248116850852966,
-0.3989626169204712,
-0.1829981505870819,
0.25240668654441833,
-0.07558919489383698,
-0.12672552466392517,
-0.8004668951034546,
0.048757389187812805,
0.6758204698562622,
-0.3814578056335449,
-0.066079869866... | |
decompression support (Accept-Encoding: gzip, deflate).
Factor two – A bug in my code meant that some processing was bypassed when the content was being sent uncompressed. This problem was not noticed before because the application is used by a limited audience, all of which supported GZIP decompression.
If they're a... | [
-0.028294997289776802,
-0.16918699443340302,
0.3847206234931946,
0.12676236033439636,
0.04514433071017265,
-0.13730129599571228,
0.5848255157470703,
-0.11365304887294769,
-0.22539697587490082,
-0.5321093797683716,
-0.3450414538383484,
0.6978215575218201,
-0.3693183958530426,
-0.20501828193... | |
if you have or know anyone with a sub) and see if you can replicate it locally. | [
0.5402933955192566,
-0.45451703667640686,
0.11561447381973267,
0.23543725907802582,
0.22623784840106964,
-0.10917413234710693,
0.6302682161331177,
0.3196835219860077,
-0.21109169721603394,
-0.7156609296798706,
-0.16815684735774994,
-0.0762559324502945,
-0.0714036226272583,
0.38671231269836... | |
I'm dealing with a large group of entities that store locations. They are displayed on a map. I'm trying to come up with an efficient way to group near located entities into one entity when viewed from a higher location. So, for example, if you are very high, when looking down, you will see one entity that represents a... | [
0.4471116364002228,
0.07546467334032059,
0.27085667848587036,
0.24679246544837952,
0.11870482563972473,
-0.16454355418682098,
-0.06712672859430313,
-0.023919962346553802,
-0.3026330769062042,
-0.6338579058647156,
0.2128915786743164,
0.4269740581512451,
-0.020931731909513474,
0.271956354379... | |
entities into grid boxes based on location then rendering the box point. My only concern is if all the entities are in the upper right of that box, the entity rendered to represent them might be centered in the middle instead of the location of the group of entities.
Any thoughts or ideas?
You could use a regex agains... | [
0.1898745447397232,
0.2849987745285034,
0.11638574302196503,
0.18738588690757751,
0.1943964660167694,
0.009941862896084785,
0.37757325172424316,
0.015449760481715202,
-0.11697757989168167,
-0.5439592599868774,
0.002357541350647807,
0.3333657681941986,
-0.38663777709007263,
0.27584996819496... | |
"Hello");
myhashtable.Add("1TestString1", "World");
myhashtable.Add("2TestString2", "Test");
List<String> newht = new List<String>;
//match all strings with a number at the front
Regex rx = new Regex("^[1-9]");
foreach (string key in myhashtable.Keys)
{
... | [
-0.3339489996433258,
0.17805930972099304,
0.47584307193756104,
-0.3310907483100891,
0.270734965801239,
0.24609701335430145,
0.6149237155914307,
-0.2749680280685425,
0.022740215063095093,
-0.43354707956314087,
-0.3905754089355469,
0.3034004867076874,
-0.36091479659080505,
0.3920571208000183... | |
{
newht.Add(key);
}
}
//Loop through all the keys in the new collection and remove them from
//them from the main hashtable.
foreach (string key in newht)
{ | [
-0.002377900527790189,
-0.033964525908231735,
0.08900221437215805,
-0.3032876253128052,
0.2896399199962616,
-0.09364033490419388,
0.3134283125400543,
-0.35774537920951843,
-0.1892310380935669,
-0.3280624449253082,
-0.3984760642051697,
0.23892322182655334,
-0.5281492471694946,
0.13528126478... | |
myhashtable.Remove(key);
}
}
```
EDIT: And just for fun, here is the LINQ version (sorry I just had too).
```
Hashtable myhashtable = new Hashtable();
myhashtable.Add("Teststring", "Hello");
myhashtable.Add("1TestString1", "World");
myhashtable.Add("2TestSt... | [
-0.01334390975534916,
0.39753901958465576,
0.3474245071411133,
-0.1567051112651825,
0.2428559511899948,
-0.1790926456451416,
0.5554006099700928,
0.04110579565167427,
-0.02780458889901638,
-0.6752128601074219,
-0.2292059063911438,
0.2526926100254059,
-0.4849439263343811,
0.4034355878829956,... | |
= new Regex("^[1-9]");
var k = (from string key in myhashtable.Keys
where rx.IsMatch(key)
select key).ToList();
k.ForEach(s => myhashtable.Remove(s));
```
EDIT: I have just added list of sting rather then a hashtable, I couldn't remember which .net ve... | [
0.10694323480129242,
-0.03653520345687866,
0.4181602895259857,
-0.2139509618282318,
-0.1492997705936432,
-0.046857334673404694,
0.532508909702301,
-0.2888909578323364,
-0.29503676295280457,
-0.4521506726741791,
-0.024237029254436493,
0.5128434896469116,
-0.6149911284446716,
0.4237099587917... | |
in it \*\*\*slaps forehead | [
-0.3774197995662689,
0.6393072009086609,
0.5347561240196228,
-0.28279608488082886,
0.09777925163507462,
-0.08725077658891678,
0.30405744910240173,
-0.026708902791142464,
-0.12431525439023972,
-0.5823842883110046,
0.21575915813446045,
0.016793183982372284,
-0.017479032278060913,
0.049312420... | |
I have double (or float) variables that might be "empty", as in holding no valid value. How can I represent this condition with the built in types float and double?
One option would be a wrapper that has a float and a boolean, but that can´t work, as my libraries have containers that store doubles and not objects that... | [
0.3961065709590912,
0.04880638048052788,
-0.10498864948749542,
-0.15912319719791412,
-0.29382866621017456,
0.01737474463880062,
0.1096988171339035,
-0.06124475598335266,
-0.13653425872325897,
-0.4369979500770569,
0.13228927552700043,
0.48346737027168274,
-0.36976251006126404,
-0.1629073619... | |
is a non-standard [`_isnan(double)`](http://msdn.microsoft.com/en-us/library/tzthab44.aspx) function that you can import through `float.h`.
In C, there is a [`isnan(double)`](http://www.opengroup.org/onlinepubs/009695399/basedefs/math.h.html) function that you can import through `math.h`.
In C++, there is a isnan(dou... | [
0.1275593489408493,
-0.010833845473825932,
-0.17123161256313324,
0.013829907402396202,
-0.1937144696712494,
0.0645311027765274,
0.13958610594272614,
0.27235469222068787,
-0.3458363711833954,
-0.3742840886116028,
0.06868743896484375,
0.26183897256851196,
-0.26875051856040955,
0.151783436536... | |
an offensive coding practice. | [
0.1564066857099533,
0.12475962191820145,
-0.3145885169506073,
-0.14239265024662018,
0.032164882868528366,
-0.028865311294794083,
0.2520967721939087,
0.01858517900109291,
0.09624293446540833,
-0.35584160685539246,
-0.33736515045166016,
0.19369155168533325,
-0.15733179450035095,
-0.269678890... | |
This is for my DB class. I am new to OO, been a procedural lad for some time, so I'm still a bit murky.
My first idea was using a bunch of setter functions/methods.. but after writing a whole bunch, I thought about using PHP's define function, like so.
```
define('MYSQL_USERNAME', 'jimbo');
```
Is this an accepted ... | [
0.299256294965744,
0.2689785957336426,
0.04758596047759056,
-0.03411858156323433,
-0.15232913196086884,
-0.19943518936634064,
0.026638399809598923,
0.012830134481191635,
0.16000251471996307,
-0.5291510224342346,
0.2143089920282364,
0.2964814603328705,
-0.44614145159721375,
0.08811122924089... | |
does not create constants as part of the class, it creates constants in the global space.
```
class MyClass
{
const CONFIG_FILE = 'myapp.ini';
```
Class configuration data I usually declare as a `protected` hash-array in the class. Keys are useful for mnemonics. Values are defaults.
```
protected $config = arra... | [
-0.2984243929386139,
-0.02557763084769249,
0.18885086476802826,
-0.1268206387758255,
0.1141783744096756,
-0.016677116975188255,
0.07741140574216843,
-0.06789787113666534,
-0.12068101763725281,
-0.5549042224884033,
-0.22210296988487244,
0.6542519927024841,
-0.547054648399353,
0.159783303737... | |
}
}
``` | [
0.17493881285190582,
0.41805654764175415,
0.05209751054644585,
-0.04864929988980293,
0.437467485666275,
-0.15825650095939636,
0.13202530145645142,
0.5446501970291138,
0.35430577397346497,
-0.4846813380718231,
-0.2295716553926468,
0.546978771686554,
-0.3188462555408478,
0.2798506021499634,
... | |
My app needs to build a buffer from all the selected cells on a worksheet. I have it working correctly when the selected cells are all one contiguous group, but if the user selects a group of cells, then holds down the control key and selects other cells that are not contiguous to the first set of cells, the Worksheet'... | [
0.0939217060804367,
-0.05212945118546486,
0.41275525093078613,
-0.01969616860151291,
0.33993473649024963,
0.37843936681747437,
0.21726872026920319,
-0.2495155930519104,
-0.04735913500189781,
-0.6955128908157349,
0.05567885935306549,
0.0878656879067421,
-0.3765239417552948,
-0.0651391223073... | |
comma)
When I select B4 to D10 and then H9 to 016 (by holding ctrl), Selection.Address returns
$B$4:$D$10,$H$9:$O$16. | [
-0.155198335647583,
0.22787021100521088,
0.5625489950180054,
-0.27886641025543213,
0.20035502314567566,
0.47147971391677856,
-0.006413540802896023,
-0.13992621004581451,
-0.03636031597852707,
-0.6579158902168274,
-0.2485269159078598,
0.26373523473739624,
-0.1737704873085022,
0.489133745431... | |
Generally speaking what do you get out of extending an artificial neural net by adding more nodes to a hidden layer or more hidden layers?
Does it allow for more precision in the mapping, or does it allow for more subtlety in the relationships it can identify, or something else?
There's a very well known result in mac... | [
0.2483307272195816,
-0.43569090962409973,
0.20174196362495422,
0.2774412930011749,
-0.061380911618471146,
-0.4627433121204376,
0.17889700829982758,
0.10810315608978271,
-0.4799380302429199,
-0.7331798672676086,
0.14273406565189362,
0.24444857239723206,
-0.10372216254472733,
0.3825950324535... | |
may need to be arbitrarily wide.
* This says nothing about the ease with which an approximation may be found; in general large networks are hard to train properly and fall victim to overfitting quite frequently (the exception are so-called "convolutional neural networks" which really are only meant for vision problems)... | [
0.02413828670978546,
-0.32421714067459106,
0.023311402648687363,
0.27565327286720276,
-0.054737936705350876,
0.005697987042367458,
0.27847686409950256,
-0.23957806825637817,
-0.4234127402305603,
-0.6888229250907898,
-0.1265498846769333,
0.7003382444381714,
-0.0870075523853302,
-0.221427917... | |
even harder to train. You end up with very very small gradients being backpropagated to the earlier hidden layers and the learning not really going anywhere, especially if weights are initialized to be small (if you initialize them to be of larger magnitude you frequently get stuck in bad local minima). There are some ... | [
0.5596876740455627,
-0.4354262948036194,
-0.495976984500885,
0.12615136802196503,
-0.09071887284517288,
0.014154759235680103,
0.733607828617096,
-0.12005726993083954,
-0.10835384577512741,
-0.43989279866218567,
-0.16615816950798035,
0.48377111554145813,
0.1422121226787567,
-0.0996371433138... | |
The software base I am developing for uses a signficant amount of yacc which I don't need to deal with. Some times I think it would be helpful in understanding some problems I find but most of the time I can get away with my complete ignorance of yacc.
My question are there enough new projects out there that still use... | [
0.5852065086364746,
0.35270822048187256,
-0.24217770993709564,
0.15614613890647888,
-0.03732219710946083,
-0.13918374478816986,
0.3730959892272949,
0.3538384735584259,
0.05678439885377884,
-0.5407693386077881,
0.13331221044063568,
0.7916041612625122,
0.064751997590065,
-0.1509898453950882,... | |
to create or modify code that parses a grammar.
For many years the de facto tool for generating code to parse a grammar was yacc, or its GNU cousin, bison.
Lately I've heard there are a couple of new kids on the block, but the principle is the same: you write a declarative grammar in a format that is more or less in... | [
0.6585234999656677,
0.20694047212600708,
-0.28233951330184937,
0.15681056678295135,
-0.7661793828010559,
-0.14599503576755524,
0.39064347743988037,
0.2926160395145416,
0.11869626492261887,
-0.33004996180534363,
0.08990886807441711,
0.3635953366756439,
-0.3952963650226593,
-0.04813893511891... | |
code directly. I haven't worked with parsers much since taking a course on Compiler Design in college, but understanding runtime stacks, lookahead parsers, expression evaluation, and a lot of other related things has helped me immensely to write and debug my code effectively.
**edit:** Given your followup question abo... | [
0.8469517230987549,
0.2898389995098114,
-0.23848481476306915,
0.4494042992591858,
-0.5757777094841003,
0.03145241364836693,
0.4061972200870514,
0.15976648032665253,
-0.11236054450273514,
-0.5448351502418518,
-0.04408128187060356,
0.7030194401741028,
-0.25452858209609985,
-0.332060992717742... | |
See <http://en.wikipedia.org/wiki/Comparison_of_parser_generators> | [
-0.15895549952983856,
0.2583932876586914,
-0.25666260719299316,
0.3312658965587616,
-0.369650661945343,
0.19239723682403564,
0.2755572497844696,
-0.40273934602737427,
-0.21104277670383453,
-0.5519416332244873,
-0.21070992946624756,
0.3416157066822052,
-0.15380774438381195,
-0.2103562057018... | |
Is there a good tutorial on using regular expressions, especially with [grep](http://en.wikipedia.org/wiki/Grep)? I tried googling for some, but most tutorials are too basic and cover things I already know.
[Regular-expressions.info has a tutorial section](http://www.regular-expressions.info/tutorial.html). This site i... | [
0.008179519325494766,
-0.004293504171073437,
-0.12472551316022873,
0.29471132159233093,
-0.043551038950681686,
-0.10891975462436676,
0.5144860148429871,
0.3560434579849243,
-0.2750905454158783,
-0.27373838424682617,
-0.2853843569755554,
0.6066210269927979,
-0.11755350977182388,
-0.71934622... | |
book. Browsing around for tutorials is not really conducive to proficiency, in regex-land. | [
0.3231867849826813,
0.029528826475143433,
0.3343256711959839,
0.5057858228683472,
0.01767316833138466,
-0.2351219356060028,
0.3004927635192871,
0.08141696453094482,
0.12553690373897552,
-0.4903372824192047,
-0.0374341756105423,
0.35022491216659546,
0.20593112707138062,
-0.10726560652256012... | |
How can I parse integers passed to an application as command line arguments if the app is unicode?
Unicode apps have a main like this:
```
int _tmain(int argc, _TCHAR* argv[])
```
argv[?] is a wchar\_t\*. That means i can't use atoi. How can I convert it to an integer? Is stringstream the best option?
if you have a... | [
-0.37723100185394287,
0.07966867834329605,
0.4026947319507599,
-0.07456083595752716,
-0.17038413882255554,
0.23226821422576904,
0.3198922574520111,
-0.4680180847644806,
-0.09481523185968399,
-0.5358457565307617,
-0.09493828564882278,
0.5563585162162781,
-0.43630415201187134,
-0.14926062524... | |
you say) mode. | [
0.13878479599952698,
-0.5952222347259521,
0.5152936577796936,
0.080339215695858,
0.0241861492395401,
-0.31537583470344543,
0.6233484148979187,
0.028127172961831093,
0.03271177411079407,
-0.31361907720565796,
-0.368937611579895,
1.0090680122375488,
-0.5733715891838074,
-0.1582426130771637,
... | |
How do you safely encode a URL using JavaScript such that it can be put into a GET string?
```
var myUrl = "http://example.com/index.html?param=1&anotherParam=2";
var myOtherUrl = "http://example.com/index.html?url=" + myUrl;
```
I assume that you need to encode the `myUrl` variable on that second line?
Check out th... | [
0.4025264084339142,
0.5111954808235168,
0.6258940696716309,
-0.19259808957576752,
0.2771197259426117,
-0.16390852630138397,
0.17299498617649078,
-0.39712899923324585,
-0.17657680809497833,
-0.5441713333129883,
-0.5178307294845581,
0.3593406677246094,
-0.2728724777698517,
-0.013066657818853... | |
What is the purpose of the LongLength property for arrays in .Net. Using a standard integer for length, you could accommodate up to 2 billion indices. Are there really people using .Net to maintain a single array with more the 2 billion elements. Even if each element was a single byte, that would still be 2 GB of data.... | [
0.0381423644721508,
-0.2874881327152252,
0.3794545829296112,
0.33480292558670044,
-0.015982113778591156,
0.0342947281897068,
-0.04609294235706329,
-0.10876119136810303,
-0.558977484703064,
-0.49280646443367004,
0.14493881165981293,
0.2201373130083084,
-0.07324358075857162,
0.10208860784769... | |
make it needed to be 64-bit int. | [
-0.24710460007190704,
0.1136380210518837,
-0.21577855944633484,
-0.0024152861442416906,
-0.2883192002773285,
0.010290835984051228,
0.3730768859386444,
-0.10075028985738754,
-0.026696501299738884,
-0.278559148311615,
0.1853439062833786,
0.2240346372127533,
-0.4113321900367737,
-0.0960983186... | |
I'm looking for something like:
```
svnserve stop
```
The recommended way is to do it is by using the `kill` command which will allow subversion to shut down properly. I don't think there is any better way to do it. | [
0.657357394695282,
-0.04588846489787102,
0.16862939298152924,
0.020398130640387535,
-0.05338573083281517,
-0.6038532257080078,
-0.0029579976107925177,
0.3767551779747009,
-0.009566325694322586,
-0.10379491746425629,
-0.06465783715248108,
0.5233480334281921,
-0.34092485904693604,
0.21245023... | |
I have been noticing some very strange usage of O(1) in discussion of algorithms involving hashing and types of search, often in the context of using a dictionary type provided by the language system, or using dictionary or hash-array types used using array-index notation.
Basically, O(1) means bounded by a constant t... | [
-0.06308373808860779,
-0.03809233754873276,
0.019378842785954475,
0.16618475317955017,
0.22690971195697784,
-0.08330722898244858,
-0.11768396198749542,
-0.15596668422222137,
-0.2076154500246048,
-0.383402556180954,
-0.2726088762283325,
0.4358896017074585,
-0.5084124207496643,
-0.2658804357... | |
on, I still don't understand how the leap to assumption that certain techniques that involve some kind of searching can be O(1) except under very special conditions.
Although I have noticed this before, an example just showed up in the [Pandincus question, "'Proper’ collection to use to obtain items in O(1) time in C#... | [
-0.01697390340268612,
0.060968656092882156,
-0.0942741185426712,
0.12441054731607437,
0.2616807222366333,
-0.2850005328655243,
-0.03432805836200714,
-0.18999511003494263,
-0.4391571283340454,
-0.48254504799842834,
-0.3030324876308441,
0.3429500460624695,
-0.23262223601341248,
0.24187090992... | |
locate the cell having that index.
For collections that involve some sort of searching to determine the location of a matching cell for a different kind of index (or for a sparse array with integer index), life is not so easy. In particular, if there are collisons and congestion is possible, access is not exactly O(1)... | [
-0.14557798206806183,
0.02622680924832821,
0.17616930603981018,
0.271500825881958,
0.39779430627822876,
0.05995955690741539,
0.05739734321832657,
-0.0826355516910553,
-0.4153233468532562,
-0.6826826333999634,
-0.20105639100074768,
0.39500606060028076,
-0.18827801942825317,
0.11115371435880... | |
flexible and dynamic structures as O(1). Yet I see them offered up as O(1) solutions without any identification of the conditions that must be maintained to actually have O(1) access be assured (as well as have that constant be negligibly small).
THE QUESTION: All of this preparation is really for a question. What is ... | [
0.01783665642142296,
0.03474419564008713,
0.05801700800657272,
0.2499409168958664,
0.11426962167024612,
0.011801599524915218,
-0.02971838228404522,
-0.10783939808607101,
-0.546415388584137,
-0.45999735593795776,
-0.45042237639427185,
0.374003529548645,
-0.1554337739944458,
0.14933602511882... | |
was casual about defining O(1) myself, and I have repaired that. I am still looking for good answers, and some of the comment threads are rather more interesting than their answers, in a few cases.
My understanding is that O(1) is not necessarily constant; rather, it is not dependent on the variables under consideratio... | [
-0.1770828813314438,
-0.015377957373857498,
-0.039128102362155914,
0.022251741960644722,
-0.08676178008317947,
0.04883895441889763,
-0.061959002166986465,
0.12882038950920105,
-0.29951560497283936,
-0.18951745331287384,
-0.08534746617078781,
0.07951616495847702,
-0.4354277551174164,
0.0342... | |
big O notation describes limiting behavior. Thus, a function f(N) for small values of N may indeed show great variation, but you would still be correct to say it is O(1) if the limit as N approaches infinity is constant with respect to N. | [
-0.20407310128211975,
-0.2088804394006729,
0.36791864037513733,
-0.3140392005443573,
0.35897770524024963,
-0.12263127416372299,
-0.1481134295463562,
-0.15123684704303741,
-0.3291284143924713,
-0.45009252429008484,
-0.21878640353679657,
0.4897160232067108,
-0.3794052004814148,
0.25351938605... | |
I have Visual Studio 2008 with SP1 installed and it is crashing when I'm using lambda expressions in the Moq Framework.
At first I thought the problem was Resharper...but now that I have uninstalled it, VS 2008 still crashes. I'm able to replicate the issue every time.
I'm thinking perhaps it may be some other plugin... | [
0.14803555607795715,
0.29268544912338257,
0.036993104964494705,
0.013205593451857567,
-0.45571571588516235,
-0.28755441308021545,
0.5428479909896851,
0.2973039746284485,
-0.26977428793907166,
-0.47631004452705383,
0.1384993940591812,
0.8296422362327576,
-0.5446799397468567,
0.1252552270889... | |
look?
Thanks in advance!
Just a few days ago, I learned about [`devenv.exe`'s `/log` switch](http://blogs.msdn.com/saraford/archive/2008/11/27/did-you-know-there-s-a-way-to-have-visual-studio-log-its-activity-for-troubleshooting-366.aspx). I suggest you give that a try. | [
0.5882155299186707,
-0.19499611854553223,
0.12750250101089478,
0.17326977849006653,
0.091684490442276,
-0.4935157299041748,
0.35023120045661926,
0.5302799344062805,
-0.5604159235954285,
-0.35504651069641113,
0.24406641721725464,
0.5072089433670044,
0.20578508079051971,
-0.19934135675430298... | |
how do i get a list of user that have completed or not completed or not responded to a survey.
so i have a survey, lets say "survey A". in this survey i have a list of people or groups that must fill the survey. sharepoint already gives us a list of respondents, but i want to make a list of people that have not respo... | [
0.245366632938385,
0.22557127475738525,
0.315261572599411,
-0.07904743403196335,
-0.05857902020215988,
-0.10696575045585632,
0.15894727408885956,
-0.11388354748487473,
-0.3945743143558502,
-0.35281842947006226,
-0.2035772055387497,
0.33539924025535583,
-0.28034886717796326,
-0.052756037563... | |
Trying to build a dashboard using Oracle's Brio. I have to access 6 different databases to grab the same type of data, aggregate it and display it. Except that when I do it, Brio grabs the data from the first source just fine. When I grab the data from the second data source, Brio replaces the original data with the se... | [
0.18334117531776428,
0.2726508677005768,
0.11654029786586761,
0.008426211774349213,
-0.06414937973022461,
0.21221178770065308,
0.0950557142496109,
0.29033228754997253,
-0.18319083750247955,
-0.46191588044166565,
0.3094758689403534,
0.6858944296836853,
-0.5686750411987305,
-0.23215411603450... | |
I'll phrase this in the form of an example to make it more clear.
Say I have a vector of animals and I want to go through the array and see if the elements are either dogs or cats?
```
class Dog: public Animal{/*...*/};
class Cat: public Animal{/*...*/};
int main()
{
vector<Animal*> stuff;
//cramming the dogs and ca... | [
0.30164897441864014,
-0.01723279431462288,
0.016788877546787262,
0.018088169395923615,
0.054108019918203354,
0.1500842571258545,
0.222206249833107,
-0.28604912757873535,
-0.23798617720603943,
-0.6866655945777893,
0.019102487713098526,
0.49762746691703796,
-0.7502514719963074,
-0.1118218526... | |
do this? Thanks in advance.
As others has noted, you should neither use the `typeid`, nor the `dynamic_cast` operator to get the dynamic type of what your pointer points to. virtual functions were created to avoid this kind of nastiness.
Anyway here is what you do if you **really** want to do it (note that dereferenc... | [
0.28728580474853516,
-0.2299429178237915,
0.3838180601596832,
0.021603291854262352,
0.19014109671115875,
-0.06705068051815033,
0.3700469136238098,
-0.3465269207954407,
-0.2799299955368042,
-0.4380188286304474,
-0.1138930395245552,
0.6082872152328491,
-0.3467218279838562,
-0.265498161315917... | |
} else if(typeid(**it) == typeid(Cat)) {
// it's a cat
}
}
```
Note you can apply the `typeid` operator to types itself too, as shown above. You don't need to create an object for this. Also note the typeid way doesn't work if you pass it a pointer like `typeid(*it)` . Using it like that will give you jus... | [
0.09933321177959442,
-0.3437438905239105,
0.32318517565727234,
-0.25903430581092834,
-0.03851943090558052,
-0.06851129978895187,
0.20952951908111572,
-0.34694886207580566,
-0.05728792026638985,
-0.652010977268219,
-0.06425516307353973,
0.5812153220176697,
-0.6624454259872437,
0.01195106096... | |
// it's a dog (or inherited from it). use the pointer
} else if(Cat * cat = dynamic_cast<Cat*>(*it)) {
// it's a cat (or inherited from it). use the pointer.
}
}
```
Note that in both cases, your Animal type should be polymorph. That means it must have or inherited at least one virtual function. | [
0.14401225745677948,
-0.2501024007797241,
-0.12163210660219193,
0.06765138357877731,
0.17756712436676025,
-0.025911198928952217,
0.17803429067134857,
0.11478126049041748,
-0.15259984135627747,
-0.5488287806510925,
-0.3227052092552185,
0.5623237490653992,
-0.6075018644332886,
0.260919660329... | |
I'm working on a P2P application, and I need to get it to communicate through NAT Routers / Firewalls using UPnP. However, it doesn't seem that the .NET Framework includes support for UPnP.
Is there a UPnP Library for .NET? C# or VB.NET?
UPDATE: I have since found the NATUPnP 1.0 Type Library (NATUPNP.DLL) COM Compon... | [
0.4211764335632324,
-0.13598249852657318,
0.37699174880981445,
0.04372067004442215,
-0.2131676822900772,
-0.22178897261619568,
0.16029053926467896,
-0.2784571349620819,
-0.628099262714386,
-0.7386764287948608,
0.1004818007349968,
0.5740596055984497,
-0.3513564467430115,
0.01157452072948217... | |
APIs](http://msdn.microsoft.com/en-us/library/aa382303.aspx) Purpose**
>
>
> The UPnP™ framework enables dynamic
> networking of intelligent appliances,
> wireless devices, and PCs. There are
> two APIs for working with
> UPnP-certified devices:
>
>
> The **Control Point API**, which consists
> of a set of COM... | [
0.47422048449516296,
0.020915746688842773,
0.5921956896781921,
0.2881223261356354,
0.1607760488986969,
0.002823689952492714,
-0.20926621556282043,
-0.28066012263298035,
-0.3901475965976715,
-0.855031430721283,
-0.02439502440392971,
0.3487063944339752,
-0.40317317843437195,
0.01177651807665... | |
I have a page which work like a navigation and a iframe in this page which show the content.
Now there are some situation when the inner page is directly shown in the browser.
eg: if somebody types the inner page's url in the browser address bar, the page is displayed in the window.
I want to prevent this.
Bette... | [
0.3130910396575928,
0.1635505110025406,
0.40941935777664185,
0.0619194433093071,
-0.2948530614376068,
-0.13498319685459137,
0.36982402205467224,
0.08735447376966476,
-0.20238666236400604,
-0.9167842268943787,
-0.1315719336271286,
0.29151904582977295,
-0.2033744603395462,
0.3211119174957275... | |
object, even if the current window is the top level window object.
**window.self**: The current window object. (It is a synonym of window.)
So, I'd write my check like this:
```
if (window.top == window.self) {
window.location = "index.html";
}
```
Which would be identical to the slightly more ambiguous:
```
if... | [
-0.32418033480644226,
-0.003245714120566845,
0.6698312163352966,
-0.017211338505148888,
-0.03598719835281372,
-0.1560341715812683,
0.24074207246303558,
0.10162024945020676,
-0.15205970406532288,
-0.7171788215637207,
-0.23120975494384766,
0.4862242639064789,
-0.2553364038467407,
0.166418552... | |
I have a goal to build an application with UI that would run on both Windows Mobile and "normal" desktop Windows. The priority is for it to "look good" under Windows Mobile, and for desktop Windows it is OK if it distorted. Before I invest days trying, I would like to hear if that is possible to begin with. There are s... | [
0.3302975296974182,
-0.16782069206237793,
0.3055349290370941,
-0.009762480854988098,
-0.236021488904953,
-0.10235963016748428,
0.23557129502296448,
0.1154508888721466,
0.10243243724107742,
-0.9940828084945679,
0.036140698939561844,
0.5815469026565552,
-0.2883995473384857,
-0.04318302124738... | |
edit) framework?
2. Is behavior of shared classes same in both frameworks?
3. Is it possible to have a single Visual Studio 2005 solution / project for both platforms? If yes, how do to set it up?
4. Any other comments and advice? Any relevant links?
1. The CF **contains** a subset of the full framework (FFx), but it i... | [
0.4731491804122925,
0.1108403280377388,
0.46260663866996765,
0.1699051558971405,
-0.36616024374961853,
-0.12294979393482208,
0.15555338561534882,
-0.2574068009853363,
-0.2828924357891083,
-0.4704853594303131,
0.021203678101301193,
0.6055485606193542,
-0.600653350353241,
-0.5104182362556458... | |
desktop to the device, so they are not directly portable (though with a little abstraction you can have a platform-agnostic interface).
2. For the most part, behavior is the same. I've seen some cases [where it's not](http://blog.opennetcf.com/ctacke/2008/10/02/BehavioralDifferencesBetweenTheCFAndFFx.aspx), and I recal... | [
0.06579531729221344,
-0.01666836068034172,
0.44568902254104614,
0.045944273471832275,
-0.10747458040714264,
-0.2299024909734726,
0.2829989492893219,
-0.104758121073246,
-0.47875335812568665,
-0.9364166259765625,
0.13174045085906982,
0.8740907311439514,
-0.3602063059806824,
-0.1439988464117... | |
each project so they both use the same physical source file. I'd recommend using some form of [CI](http://www.martinfowler.com/articles/continuousIntegration.html) to help ensure they both build at all times.
4. Take a look at [Dan Moth's MSDN article](http://msdn.microsoft.com/en-us/magazine/cc163387.aspx) and [blog e... | [
0.5090309977531433,
0.01752515882253647,
0.17778508365154266,
0.04408963769674301,
0.17555780708789825,
-0.029285116121172905,
-0.08435498923063278,
-0.2194558084011078,
-0.18716798722743988,
-0.46409955620765686,
-0.008592351339757442,
0.3041069805622101,
-0.02429756335914135,
0.238623827... | |
I am using CODBCRecordset (a class found on CodeProject) to find a single record in a table with 39 columns. If no record is found then the call to CRecordset::Open is fine. If a record matches the conditions then I get an Out of Memory exception when CRecordset::Open is called. I am selecting all the columns in the qu... | [
-0.18388086557388306,
0.3564585745334625,
0.4232083559036255,
-0.16833651065826416,
0.12884670495986938,
0.07469363510608673,
0.2570500075817108,
-0.11465530097484589,
-0.4247360825538635,
-0.8024298548698425,
-0.04783989489078522,
0.3272910714149475,
-0.4794919788837433,
0.243124544620513... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.