text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I am not familiar with this, and can use a kick start.
I am using ATL (unmanaged C++) user control and would like to use the ShockWave ActiveX object. I need to know how to declare it so that I can set a property or call a method.
For instance, if I could assign a variable to it, then I would like to call 'variable->... | [
0.5021542310714722,
-0.2509379982948303,
0.16054601967334747,
0.12709635496139526,
0.005874332971870899,
-0.5225966572761536,
0.009589423425495625,
0.12906961143016815,
-0.15318796038627625,
-0.607942521572113,
-0.03811569884419441,
0.7933855056762695,
-0.2461155652999878,
0.16505753993988... | |
pointer paired with the CLSID of the object. Remember that smart pointer classes have the post-fix 'Ptr' after the interface name.
For instance:
```
ISomeInterfacePtr pSomeInterface( CLSID_SomeComponent );
HRESULT hr = pSomeInterface->SomeMethod();
```
Hope that helps.
**EDIT:** If you want to check the HRESULT of... | [
-0.23292337357997894,
-0.16858886182308197,
0.32454797625541687,
0.20861871540546417,
0.18378515541553497,
-0.024377211928367615,
0.1250009685754776,
-0.007851280272006989,
0.02268342114984989,
-0.7991300821304321,
-0.20951399207115173,
0.5702310800552368,
-0.3460865914821625,
-0.225573658... | |
I have written the following function.. and executed using WinHugs
```
teneven = [x | x <- [1..10], even x]
```
My output:
```
Main> teneven
[2,4,6,8,10] :: [Integer]
(63 reductions, 102 cells)
```
is there anyway to print all the reductions.. so I can learn the core evaluation happening inside WinHugs?
Some id... | [
0.06660916656255722,
0.1007370799779892,
0.1984397917985916,
-0.06321477890014648,
-0.2737254500389099,
0.11378062516450882,
0.6270265579223633,
-0.5342649817466736,
-0.10878796875476837,
-0.5739650726318359,
-0.1530345231294632,
0.586129367351532,
-0.4620348811149597,
-0.3655584454536438,... | |
know how difficult it would be to get it running. It's likely fairly difficult, which is a shame since it's cool and essentially what you want. If you do get it running, you can get something like this information from Hat:
```
main = {IO}
teneven = [2,4,6,8,10]
_foldr (\..) [1,2,3,4,5,6,7,8, ...] [] = [2,4,6,8,10]
(\... | [
0.24046459794044495,
0.09724704176187515,
0.5657957792282104,
-0.08463700115680695,
0.12950080633163452,
-0.13300731778144836,
0.4408356249332428,
-0.33393412828445435,
-0.17614124715328217,
-0.12006454169750214,
0.12157842516899109,
0.6318906545639038,
-0.44937169551849365,
-0.18982891738... | |
can trace into calls of `foldr` and other internal calls; by default, it doesn't do that. | [
-0.023483097553253174,
-0.4088813066482544,
0.32737118005752563,
0.10192979872226715,
0.388384610414505,
-0.40795013308525085,
0.23090463876724243,
0.09934578835964203,
0.1462116539478302,
-0.44980162382125854,
-0.23435847461223602,
0.30921974778175354,
-0.21708980202674866,
0.070819430053... | |
Lately all modern programming languages have a definitive web site to support, distribute, learn the programming language, as well as community forums, e-mail lists and so on. Java has java.sun.com, python has python.org, etc.
However C/C++ does not seem to have such a site. Which site do you use, say in a document, ... | [
0.5348692536354065,
0.4702722430229187,
-0.03974103555083275,
-0.0053491597063839436,
-0.3405010998249054,
-0.4134517014026642,
0.04688923805952072,
0.48976966738700867,
-0.7390338778495789,
-0.5106609463691711,
-0.2431040108203888,
-0.16103623807430267,
-0.15293234586715698,
0.34762027859... | |
Iam a great fan of javascript frameworks especially jQuery .I have always wanted to design sites like "plurk.com" but i know that it needs very huge lines of javascript.so that shut me off.But since i came to know GWT , i really want to test it out and want to ask you if it makes our job easier to develop complex thing... | [
0.7370986938476562,
0.17570194602012634,
-0.04656274989247322,
0.24623487889766693,
-0.4898248016834259,
-0.4577842056751251,
0.17775443196296692,
0.16594430804252625,
-0.04433532804250717,
-0.36850735545158386,
0.4751085638999939,
0.790367603302002,
-0.029166709631681442,
0.12632797658443... | |
a tricky process of continuous refinement. Trying to decipher where some generated, obscured Javascript is going wrong is a major headache. It's bad enough fixing bugs in the pure JS libraries.
To me, GWT is a trick aimed at allowing backend developers to write front-end, in-browser code. Unfortunately, the realities ... | [
0.6418371200561523,
0.1999901533126831,
0.08370188623666763,
0.3689275085926056,
-0.10801772773265839,
-0.25234997272491455,
0.3882734179496765,
0.09870799630880356,
-0.22282494604587555,
-0.4703689515590668,
-0.17219039797782898,
0.7617071270942688,
0.08813688904047012,
0.0428654775023460... | |
that SHOULD be abstracted away and is unlikely to break in edge cases, like array operations and AJAX requests. | [
-0.04647761583328247,
-0.06862780451774597,
-0.041676104068756104,
0.3935837745666504,
0.1797613650560379,
-0.5104786157608032,
0.029730435460805893,
-0.03565973415970802,
-0.08463218808174133,
-0.5192772150039673,
-0.3797339200973511,
0.2628973722457886,
-0.04540954530239105,
-0.174529954... | |
Is it possible to use a .NET DLL in Delphi 2007 for Win32? I've tried to import the DLL in the same way I've done for an ActiveX component, but it doesn't appear to work (Component Menu -> Import Component -> Import .NET Assembly.
Is it possible and if so what are the steps?
If you want a Delphi specific article on do... | [
-0.015546262264251709,
-0.29488059878349304,
0.14396177232265472,
0.03750866651535034,
-0.11806028336286545,
-0.13917477428913116,
0.29751458764076233,
-0.3854462802410126,
-0.2677593529224396,
-0.26593780517578125,
0.1124429851770401,
0.8498362302780151,
-0.3682694137096405,
-0.4148991703... | |
It is often useful to have a field in a DAO whose value comes from a Java enumeration. A typical example is a login DAO where you usually have a field that characterises the user as "NORMAL" or "ADMIN". In Hibernate, I would use the following 2 objects to represent this relationship in a (semi-)typesafe way:
```
class... | [
0.20826764404773712,
-0.1252635419368744,
0.1423158198595047,
-0.09510699659585953,
-0.07924779504537582,
-0.05846508964896202,
0.13643471896648407,
-0.0996895432472229,
0.2759425640106201,
-0.5891646146774292,
-0.40671196579933167,
0.47332847118377686,
-0.5158950686454773,
-0.020189279690... | |
setType(String type);
public String getType();
//Setters/Getters for user
public void setUserType(UserType.Type t);
public UserType.Type getUserType();
public static UserType fromType(UserType.Type t);
}
```
This works, but I find the UserType class ungly and requiring too much bureaucracy just ... | [
0.294083833694458,
0.08104415982961655,
0.5096158385276794,
-0.191922128200531,
-0.21333836019039154,
-0.13837867975234985,
0.33463460206985474,
-0.3955075442790985,
0.1779976189136505,
-0.6749538779258728,
-0.36068734526634216,
0.6276699304580688,
-0.6321328282356262,
-0.11306989192962646... | |
missing something? What other patterns do people use?
using hibernate or JPA annotations:
```
class User {
@Enumerated(EnumType.STRING)
UserType type
}
```
UserType is just a standard java 5 enum.
I can't imagine this is just limited to just annotations but I don't actually know how to do this with hbm files... | [
0.3002378046512604,
0.029356133192777634,
0.0987691581249237,
-0.12394581735134125,
-0.06994423270225525,
-0.1919441968202591,
0.5182105302810669,
-0.00772966630756855,
-0.4200538098812103,
-0.5884556174278259,
-0.0006276338244788349,
0.2701038122177124,
-0.6496779918670654,
0.108007393777... | |
Is there a maximum lengh for a file extension? The longest one I've seen is .compiled (8 chars)
**Useless Background**
I'm creating a IHttpHandler to return image icons for a specific filename. I'm simply calling a FileImage.axd?ext=pptx. I'm generating the files on the fly using SHGetFileInfo similar to [my post](ht... | [
0.28827399015426636,
-0.24200378358364105,
0.5232852697372437,
-0.13865697383880615,
-0.43566402792930603,
0.14649738371372223,
0.14016494154930115,
-0.3422776162624359,
-0.45417726039886475,
-0.6457943916320801,
0.14489270746707916,
0.628844678401947,
-0.33423641324043274,
0.0559887737035... | |
except the maximum length of the file name. Extension is not treated specially except in FAT16. | [
0.3771366477012634,
-0.1080259382724762,
0.2663068175315857,
-0.31419968605041504,
0.1602874994277954,
-0.27664491534233093,
-0.0692020133137703,
-0.13717441260814667,
-0.5464763641357422,
-0.32769203186035156,
-0.435322642326355,
0.4378643333911896,
-0.36484837532043457,
0.004799611866474... | |
Why are there dashes in a .NET GUID? Are there dashes in most implementations of a GUID, or is it just a Microsoft thing?
Signed,
741ecf77-9c92-4435-8e6b-85975bd13452
Technically, there are no "dashes" in a [GUID](http://en.wikipedia.org/wiki/GUID). A GUID is a 128-bit value which is usually stored in the following m... | [
-0.3190910816192627,
-0.22945980727672577,
0.20074878633022308,
0.13505561649799347,
-0.3509979844093323,
0.03446170315146446,
0.4471677243709564,
0.16834256052970886,
0.1075536236166954,
-0.6272780299186707,
-0.4447174370288849,
0.4391159117221832,
-0.41539716720581055,
-0.401883572340011... | |
to where the placement of the dashes are](https://stackoverflow.com/a/3557678/50776), related to how the GUIDs were generated, but that historical semantic no longer applies. | [
-0.2779149115085602,
-0.1917850822210312,
0.40203291177749634,
0.012317543849349022,
-0.1406003087759018,
0.16969721019268036,
0.23751887679100037,
-0.08363690227270126,
-0.38943544030189514,
-0.3957821726799011,
-0.36632081866264343,
0.3400447368621826,
-0.06656287610530853,
-0.1682223379... | |
Is it possible to add rows to a dataset?
yes.
```
dim row as DataRow
row = ds.tables(0).NewRow
' Add Values to Row here
ds.tables(0).rows.add(row)
``` | [
-0.24121646583080292,
0.06478966027498245,
0.624019205570221,
-0.12021341174840927,
-0.026432393118739128,
0.10545537620782852,
-0.08654838800430298,
-0.3349911570549011,
-0.2677654027938843,
-0.5049062967300415,
-0.16514849662780762,
0.3149128258228302,
-0.4107569456100464,
0.227525666356... | |
I just got handed an SDK made of C++ dll, lib, exe, and various .h files. I presume it is meant for C++ developers. The sample projects they provide with their documentation are all written in C++. I am able to spin them up with Visual Studio 8 (2005) and run them. They do control the device as advertised. However the ... | [
0.39805030822753906,
0.36156415939331055,
0.22050605714321136,
-0.05277127027511597,
0.08461785316467285,
-0.09307827800512314,
-0.23850958049297333,
-0.08182159811258316,
-0.0913824513554573,
-0.4072781205177307,
0.1876692920923233,
0.6123602390289307,
-0.08513502031564713,
0.211727887392... | |
the COM object into my C# solution. My boss says it should take less than an hour to "wrap" there SDK up as a COM object, even for me with no knowledge of C++ compiling.
I've used COM objects in C# solutions before so once this is made, I can continue on from there without a problem.
However, I don't know what to do... | [
0.4708518087863922,
0.1827280968427658,
0.4993480443954468,
0.06328435242176056,
-0.04540159925818443,
0.0888875424861908,
-0.006933682132512331,
-0.03292476013302803,
-0.1701529324054718,
-0.9561609029769897,
-0.12635836005210876,
0.6518090963363647,
-0.10119173675775528,
0.28389853239059... | |
happen?
> My boss was a C++ developer and says all I need to do is to compile it as a COM object and then import the COM object into my C# solution.
That's true, **however** compiling it as a COM object is "difficult" (by which, I mean that you can't do it) unless it already implements the COM APIs (if it doesn't then... | [
0.5817404389381409,
0.22992657124996185,
0.19218195974826813,
0.03894819691777229,
0.25877565145492554,
-0.18152953684329987,
0.3963572382926941,
-0.0673808604478836,
-0.005532006733119488,
-0.8805871605873108,
-0.036930810660123825,
0.7384707927703857,
-0.2586336135864258,
0.3448297679424... | |
objects there may be better books than *Essential COM*, and better/easier tools than C++).
I think you and/or your boss have 3 options:
1. Ask the vendor to give them to you as COM objects
2. Design a COM API that would wrap the SDK's API. Create a COM project (in the language of your choice) which exports this API. ... | [
0.7156695127487183,
0.1641007363796234,
0.19025669991970062,
0.3536244034767151,
-0.26722657680511475,
0.1532837152481079,
0.1951722800731659,
-0.11336882412433624,
-0.19625937938690186,
-0.5455359816551208,
-0.10388011485338211,
0.5980474948883057,
-0.2334790974855423,
-0.0518173389136791... | |
DLL, and use PInvoke to invoke it from .NET code.
> My boss says it should take less than an hour to "wrap" there SDK up as a COM object, even for me with no knowledge of C++ compiling.
Based on what you've said I don't know of any way to make that happen. | [
0.5105416774749756,
-0.1691485196352005,
0.40757715702056885,
0.19466765224933624,
-0.17123091220855713,
-0.20083670318126678,
0.06977933645248413,
-0.02830282598733902,
-0.060988590121269226,
-0.7166731357574463,
0.05274210497736931,
0.4842700958251953,
-0.03643452376127243,
0.27036896347... | |
Has anyone out there used [Postsharp](http://www.postsharp.org/) AOP framework in a production environment? Are there any pitfalls? In order to do some logging etc, can Postsharp be used in conjunction with Log4Net?
Any tutorials on using Postsharp with Web Apps and/or Log4Net will be highly appreciated.
I and one oth... | [
0.5808507800102234,
0.25406792759895325,
-0.0836227610707283,
0.15414199233055115,
-0.048538774251937866,
-0.3026043176651001,
-0.027773302048444748,
-0.1721278876066208,
-0.5032748579978943,
-0.3085499107837677,
0.24297229945659637,
0.17157770693302155,
-0.23805347084999084,
-0.4549431800... | |
entry, exit and on exceptions, for example) and you could easily add log calls to log4net registered loggers.
It has increased build times, enough to slightly change my build habits, but certainly not too much for the benefits it provides, IMO. While writing code, you may wish to exclude it from your local build, whic... | [
0.9551666378974915,
0.007344550918787718,
0.36531180143356323,
0.08788497745990753,
-0.03221043944358826,
-0.20417258143424988,
-0.24073800444602966,
-0.09145408123731613,
-0.30080655217170715,
-0.6319907903671265,
0.1844247579574585,
0.27935078740119934,
0.40113624930381775,
0.12133172899... | |
really no difference in using it in a console, winforms, WPF or WebApp that I've encountered so far.
I would also say that once you've figured out how to add Laos aspects to a project, repeating the exercise is very easy. And there is a relationship between how many assemblies/classes you apply the aspects to and how ... | [
0.518029510974884,
0.078321672976017,
-0.04583728685975075,
0.20790116488933563,
-0.09831860661506653,
-0.04695496708154678,
0.2174881547689438,
0.08334659785032272,
-0.48661428689956665,
-0.5514829158782959,
0.2613619267940521,
0.4468943476676941,
0.09674576669931412,
-0.08480583876371384... | |
messed up code. And I have even used it in ASP.NET apps, with code coverage and performance instrumentation (so it's played nicely with MS' Assembly instrumentation tools).
All in all, I would def. recommend you try it out for your log4net requirements. | [
0.3300984501838684,
0.3827100992202759,
0.10975974053144455,
0.4503505229949951,
0.16966870427131653,
-0.43800991773605347,
0.4165150225162506,
0.48841989040374756,
-0.30382102727890015,
-0.4641439914703369,
0.21924732625484467,
0.1755417436361313,
-0.2948666214942932,
0.11645551770925522,... | |
Here is one more newbie question:
```
require 'tasks/rails'
```
I saw this line in Rakefile in the root path of every rails project. I guess this line is used to require vendor/rails/railties/lib/tasks/rails.rb to get all rake tasks loaded:
```
$VERBOSE = nil
# Load Rails rakefile extensions
Dir["#{File.dirname(__F... | [
-0.01891530305147171,
-0.01621420495212078,
0.457342267036438,
0.039603009819984436,
-0.20860418677330017,
-0.04355848580598831,
0.11497871577739716,
-0.5643563270568848,
-0.055455777794122696,
-0.6381760835647583,
-0.15361632406711578,
0.40340757369995117,
-0.31312325596809387,
0.00135249... | |
list of directories to find the files specified on a `require` line. If you give it an absolute path like `require '/home/lolindrath/ruby/lib.rb'` it will skip that search.
This is roughly analogous to `#include <stdlib.h>` in C/C++ where it searches the include path you give the compiler to find that header file. | [
0.43070873618125916,
-0.08909498900175095,
0.25039416551589966,
-0.02268976904451847,
0.04680201783776283,
-0.412925124168396,
0.16901525855064392,
-0.24208633601665497,
-0.2774791121482849,
-0.4162095785140991,
-0.47335538268089294,
0.14921924471855164,
-0.548820972442627,
0.0452957488596... | |
Here's a standard scenario:
```
if(string.IsNullOrEmpty(Configuration.AppSettings["foobar"]))
throw new SomeStandardException("Application not configured correctly, bozo.");
```
The problem is, I am not entirely certain *which* exception `SomeStandardException` should be.
I perused the 3.5 Framework and found t... | [
-0.12713615596294403,
0.29139357805252075,
0.24788755178451538,
-0.13731752336025238,
0.06309067457914352,
-0.21428194642066956,
0.21170639991760254,
-0.14880353212356567,
-0.0813910961151123,
-0.655989408493042,
-0.3427881896495819,
0.6920167803764343,
-0.3135324716567993,
0.1462313383817... | |
the configuration file, file
> permission issues, and configuration
> properties with values that are not
> valid.
>
>
> **Note:**
>
>
> The `ConfigurationException` object is
> maintained for backward compatibility.
> The `ConfigurationErrorsException`
> object replaces it for the
> configuration system.
T... | [
-0.26040786504745483,
0.16248738765716553,
0.4925678074359894,
0.3092116415500641,
0.13021866977214813,
-0.31830474734306335,
0.31019315123558044,
0.24817922711372375,
-0.09299182146787643,
-0.8241143822669983,
-0.212233304977417,
0.5979472398757935,
-0.1714494526386261,
0.3671350777149200... | |
An examination of the class itself shows that it's drastic overkill for what I want.
In a nutshell, I need a standard exception that should be thrown when an application configuration setting is missing or contains an invalid value. You'd think the Framework had such an exception baked into it for applications to use... | [
0.36158424615859985,
0.1845388412475586,
-0.08275942504405975,
0.2589738070964813,
0.008591502904891968,
-0.3017045259475708,
0.3818075656890869,
0.20949217677116394,
-0.1380397081375122,
-0.49581605195999146,
0.06405610591173172,
0.32826298475265503,
-0.04631312936544418,
0.14337742328643... | |
whether or not I could provide a default value, and continue. In certain cases, yes, and in those cases, the exception would not be thrown. However, for certain settings, this won't apply. For instance: database server names and credentials, authentication servers, and paths to installed third party applications.
It ... | [
0.39233699440956116,
0.15132296085357666,
0.16391247510910034,
-0.010073327459394932,
0.44767624139785767,
-0.18592873215675354,
0.1342620551586151,
0.1327744722366333,
-0.28120458126068115,
-0.34581077098846436,
-0.14979879558086395,
0.4137306809425354,
-0.07286688685417175,
0.24015873670... | |
*assumes* everything's peachy.)
You're not limited in your exception-throwing to existing exceptions in the Framework. If you do decide to use existing exceptions, you don't absolutely have to follow the documentation to the letter. The documentation will describe how the *framework* uses a given exception, but doesn't... | [
0.5359594821929932,
0.0764971598982811,
-0.009674938395619392,
0.2002420574426651,
0.11456321179866791,
-0.3330514132976532,
0.32356372475624084,
-0.011175542138516903,
-0.2878558933734894,
-0.7697041034698486,
-0.12997983396053314,
0.4986311197280884,
-0.1692175418138504,
-0.2591755390167... | |
of a *missing* value, you might consider writing your own ConfigurationSettingMissing exception:
```
[Serializable]
public class ConfigurationMissingException : ConfigurationErrorsException
{}
```
EDIT: Writing your own exception in this case carries the added benefit of guaranteeing that there will never be any con... | [
0.2716154158115387,
0.06768319755792618,
-0.007937987335026264,
0.07657133042812347,
-0.056398533284664154,
-0.32526856660842896,
0.39620241522789,
0.1282920390367508,
-0.2736707925796509,
-0.7683960199356079,
-0.2530404031276703,
0.7202566266059875,
-0.44552212953567505,
0.077890619635581... | |
I'm using the ValidatorCalloutExtender found in AjaxControlToolkit version 3.0.20299.9. The validation is occuring in a browser window that has resizable=0 set. The popout box is getting positioned mostly outside of the viewable window - off to the right.
It had positioned correctly with AjaxControlToolkit version 1.0... | [
0.22333212196826935,
0.007715321611613035,
0.7306139469146729,
0.004903099033981562,
-0.10398409515619278,
-0.1193530410528183,
0.18831117451190948,
-0.01031023170799017,
0.07515949755907059,
-0.8855472207069397,
0.3507026433944702,
0.4515377879142761,
0.2547142505645752,
-0.09226521104574... | |
been playing around with the .ajax\_\_validatorcallout\_\* css classes, but everything I change seems to really screw up the display.
I figured this one out. Thought I'd post an answer for anyone interested. The rendering is different between the two versions of AjaxControlToolkit. In order to reposition the ValidatorC... | [
0.33857235312461853,
0.039736825972795486,
0.4543163478374481,
0.050283219665288925,
-0.19818249344825745,
-0.0854358896613121,
0.33412954211235046,
0.05282343178987503,
-0.0985066220164299,
-0.9059913754463196,
0.2283126711845398,
0.8462809324264526,
-0.2005876749753952,
-0.01065174117684... | |
discover the styles that were being generated and then I overrode them as follows.
```
<style>
.CustomValidator {position:relative;margin-left:-80px;}
.CustomValidator div {border:solid 1px Black;background-color:LemonChiffon; position:relative;}
.CustomValidator td {border:solid 1px Black;background-color:LemonChi... | [
-0.49751177430152893,
-0.11747126281261444,
0.7643649578094482,
0.09908018261194229,
-0.1759399175643921,
0.5805808305740356,
0.30119404196739197,
-0.44511985778808594,
-0.3434830605983734,
-0.7383221983909607,
-0.15210571885108948,
0.6352277994155884,
-0.17969997227191925,
-0.051372930407... | |
left.
Then just stick the CustomValidator CssClass into your ValidatorCalloutExtender:
```
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="MyValidatorControl" CssClass="CustomValidator">
``` | [
0.0626206248998642,
0.16682517528533936,
0.7762940526008606,
-0.05897745490074158,
0.21140895783901215,
-0.13329850137233734,
-0.19261528551578522,
0.08299926668405533,
-0.31847888231277466,
-0.6419607400894165,
-0.08803825825452805,
0.5846062302589417,
-0.03185659646987915,
0.157522737979... | |
I'm currently using the usual technique in my Makefile to install individual files:
```
install:
install -D executable ${BIN_DIR}
```
But I just ran across a situation where I need to move a whole directory and all files underneath it into place.
Is `cp -r` the best way or is there a more linux-y/unix-y way to... | [
0.5562082529067993,
0.2487177550792694,
0.3056078553199768,
-0.23915772140026093,
0.10548508912324905,
-0.3146061897277832,
-0.041139256209135056,
-0.06419777125120163,
-0.25078874826431274,
-0.4881618320941925,
-0.20262327790260315,
0.579392671585083,
-0.2460092455148697,
0.45091688632965... | |
the source directory you want to move, and `/path/to/target` be an absolute path to the target. Then you can use:
```
$ tar cf - src | (cd /path/to/target; tar xf -)
``` | [
0.13512250781059265,
-0.005981560796499252,
0.2880493998527527,
-0.10636983811855316,
0.35067427158355713,
-0.16911453008651733,
-0.08311183005571365,
0.2825133204460144,
0.20657728612422943,
-0.5217964053153992,
-0.3090076446533203,
0.9124063849449158,
-0.23326124250888824,
-0.12255121767... | |
I've got a list of People that are returned from an external app and I'm creating an exclusion list in my local app to give me the option of manually removing people from the list.
I have a composite key which I have created that is common to both and I want to find an efficient way of removing people from my List us... | [
-0.18684469163417816,
-0.2072010636329651,
-0.024253668263554573,
-0.01723145693540573,
-0.03636976704001427,
0.3583797812461853,
0.2057688683271408,
-0.21594002842903137,
-0.4359375536441803,
-0.6563729047775269,
-0.0928371250629425,
0.30437788367271423,
-0.4903919994831085,
0.16090534627... | |
exclustions using the composite key as a comparer
```
I thought LINQ was the ideal way of doing this but after trying joins, extension methods, using yields, etc. I'm still having trouble.
If this were SQL I would use a `not in (?,?,?)` query.
Have a look at the [Except](http://msdn.microsoft.com/en-us/library/bb33... | [
0.017944052815437317,
0.002439265139400959,
0.6078967452049255,
-0.12341464310884476,
-0.058906424790620804,
-0.11025755107402802,
0.19760674238204956,
-0.3652920424938202,
-0.2558440566062927,
-0.5970914363861084,
-0.08396118879318237,
0.5131185054779053,
-0.6657049059867859,
-0.043477106... | |
Since it appears you're using two different types of classes, here's another way that might be simpler. Assuming a `List<Person>` called `persons` and a `List<Exclusion>` called `exclusions`:
```
var exclusionKeys =
exclusions.Select(x => x.compositeKey);
var resultingPersons =
persons.Where(x => !ex... | [
-0.3828500509262085,
-0.14991788566112518,
-0.3866414427757263,
0.14178286492824554,
-0.08270280063152313,
0.3510349690914154,
0.04907773807644844,
-0.2743867039680481,
-0.3257206380367279,
-0.5170238614082336,
-0.3103208839893341,
0.24389326572418213,
-0.37580087780952454,
0.1192475780844... | |
While discussing a Java synchronization [question](https://stackoverflow.com/questions/416183/in-java-critical-sections-what-should-i-synchronize-on#416324), someone made a comment that the following snippets are not equivalent (and may compile to different bytecodes):
```
public synchronized void someMethod() {
//s... | [
0.3547343611717224,
-0.0622221864759922,
0.2659788429737091,
-0.0028504475485533476,
-0.12884728610515594,
-0.04360748827457428,
0.11944490671157837,
-0.27480530738830566,
-0.2689065933227539,
-0.3665565252304077,
0.03877756744623184,
0.22134056687355042,
-0.5164491534233093,
0.10353974997... | |
the bytecode level, and it's up to the JVM to make their behavior the same. However, they do have the same functional effect - see the [example](http://web.archive.org/web/20120212170310/http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.3.6) in the Java Language Specification.
It should be noted, ... | [
0.24013787508010864,
-0.04440871626138687,
0.17398004233837128,
0.127104252576828,
-0.12012187391519547,
-0.20243413746356964,
0.4756194055080414,
-0.31110715866088867,
-0.2602922022342682,
-0.27684485912323,
0.14548557996749878,
0.45105090737342834,
-0.46681785583496094,
-0.01399446092545... | |
difference there either. | [
0.057971853762865067,
-0.12822964787483215,
-0.36366793513298035,
0.16884741187095642,
-0.2574269771575928,
0.283648818731308,
-0.21157826483249664,
0.17374515533447266,
-0.21458834409713745,
-0.24102532863616943,
0.5349316596984863,
0.35475870966911316,
0.2525833547115326,
0.1000268235802... | |
I have a java script code that works fine when run through a browser, is there a way i can use that code in flash without much editing, i want the to get the input from user through flash and have the code do the computing and display the result in flash, any clues?
Well, ActionScript 1 is essentially javascript, and 2... | [
0.32378071546554565,
0.08261812478303909,
-0.1440431922674179,
0.1655111014842987,
-0.2312723994255066,
-0.11472825706005096,
0.03538801148533821,
0.12259265780448914,
0.012776477262377739,
-0.5917456150054932,
0.07186666876077652,
0.6078166365623474,
-0.2616856098175049,
-0.39811444282531... | |
Moving it to ActionScript 3 (for Flash 9 or later) would be a little more work as it's more strict about types and such, but still probably not too difficult.
As others have mentioned, the UI-related stuff is quite different in Flash than Javascript, as there is no DOM. I assumed the methods you were talking about are... | [
-0.06511436402797699,
-0.1891644448041916,
0.5904312133789062,
-0.09606633335351944,
-0.3087009787559509,
-0.11592568457126617,
0.057482920587062836,
-0.17858725786209106,
-0.363592267036438,
-0.5167387127876282,
0.029506273567676544,
0.5806910991668701,
-0.4930375814437866,
-0.31871238350... | |
you can reuse it with other javascript stuff) then you could create a Flash movie that takes the input, passes it to javascript, and then have javascript report the results back to Flash. Take a look at the Flash [ExternalInterface](http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Li... | [
0.43981581926345825,
0.051134128123521805,
0.2542247176170349,
0.04394741356372833,
0.0764974057674408,
-0.04171071946620941,
0.020996972918510437,
-0.38385123014450073,
-0.1273111253976822,
-0.6435267329216003,
0.034396830946207047,
0.7145964503288269,
-0.13932260870933533,
-0.14362773299... | |
In the very near future I'll be migrating some web applications from VS2003 projects to VS2005 projects.
What should I watch out for?
Anyone done this in the past and have it go bad?
How much time should I expect it will take to migrate a project?
I know this is more than one question, but please provide your exper... | [
0.5216185450553894,
0.022971192374825478,
0.10050494223833084,
0.2687540054321289,
0.02961520291864872,
-0.08232777565717697,
0.051375288516283035,
0.3151291608810425,
-0.33286288380622864,
-1.186456322669983,
0.1370910406112671,
0.5903897881507874,
-0.1445220708847046,
0.19568827748298645... | |
that's a requirement.
As far as what to watch out for - ASP.NET 1.1 and ASP.NET 2.0 are very different creatures, I've discovered. ASP.NET 1.1 let you put objects on a web page much the way you would drop buttons, labels and text boxes on a desktop forms application. This is no longer true in 2.0. I had a LOT of self-... | [
0.35698461532592773,
-0.3642876148223877,
0.27500641345977783,
0.10678884387016296,
-0.2549329698085785,
-0.4063946306705475,
-0.0076616303995251656,
0.09223207086324692,
-0.49673178791999817,
-0.586359977722168,
0.04163409024477005,
0.1947844922542572,
-0.21804791688919067,
-0.14949160814... | |
better in fact. This all depends on what kind of web projects you're migrating and how they were written in the first place. | [
0.834122896194458,
0.05122869089245796,
-0.0942656397819519,
0.24029742181301117,
-0.03134973347187042,
0.3109893798828125,
-0.07646030187606812,
0.3395301103591919,
-0.23589006066322327,
-0.5891957879066467,
0.1304386407136917,
0.5399624705314636,
0.1981215924024582,
-0.22207465767860413,... | |
First check out this code. I seems like it should work for me, but it doesn't! (surprise!)
Anyway, this is what I tried first:
```
SELECT
Status as status,
Address as ip,
PCName as pc_name,
(Numbers.Phone = 'CPU/' + PCName) as cpu_contact,
(Numbers.Phone = 'PC/' + PCName) as pc_contact,
(Numbers.Phone = 'LOGIN/' + PC... | [
-0.549074113368988,
0.24515603482723236,
0.49734997749328613,
0.009710220620036125,
0.22221986949443817,
0.056899409741163254,
0.10976333171129227,
0.12064516544342041,
-0.5550652146339417,
-0.8584272265434265,
-0.16302481293678284,
0.4617183804512024,
-0.33421486616134644,
-0.086347930133... | |
to single rows. For example, I think the current setup would do something like this:
```
status ip cpu_contact pc_contact login_contact
-----------------------------------------------
foo bar true false false
foo bar false true false
foo bar false false true
```
And obvio... | [
-0.15035516023635864,
0.33700689673423767,
0.6191838979721069,
-0.09288407862186432,
0.27907902002334595,
-0.07280003279447556,
-0.3419640362262726,
-0.017122328281402588,
-0.4202272295951843,
-0.602717399597168,
0.075276218354702,
0.8843100666999817,
-0.3169361650943756,
0.081268712878227... | |
true
```
Any ideas? Database redesign isn't an option. If it were, I'd do that :-)
You could use a `GROUP BY` and `SUM` to collapse the rows:
```
SELECT
Status as status, Address as ip, PCName as pc_name,
cast(sum(case when (Numbers.Phone = 'CPU/' + PCName) then 1 else 0 end) as bit)
as cpu_contact,
cast(s... | [
-0.033235978335142136,
0.10268721729516983,
0.8182078003883362,
0.014277135953307152,
0.2730063498020172,
0.16327539086341858,
0.17031548917293549,
0.03969134762883186,
-0.2141626924276352,
-0.611698567867279,
-0.22869670391082764,
0.5677720904350281,
-0.3539068102836609,
-0.02053529955446... | |
JOIN Numbers ON
('CPU/' + PCName = Numbers.Phone) OR ('PC/' + PCName = Numbers.Phone) OR
('LOGIN/' + PCName = Numbers.Phone)
WHERE
$where --Generated In code
GROUP BY
Status, Address, PCName
```
Since you are doing a logical or between the rows, a sum of zero is false, while any value greater than ... | [
0.021917669102549553,
0.12623362243175507,
0.27943727374076843,
0.13092470169067383,
0.2835656404495239,
0.0236576646566391,
0.12250733375549316,
-0.10795346647500992,
-0.1194743812084198,
-0.423099547624588,
-0.31482410430908203,
0.15197227895259857,
-0.24348193407058716,
0.17171007394790... | |
I have a function (for ease, I'll just use count()) that I want to apply to maybe 4-5 different variables. Right now, I am doing this:
```
$a = count($a);
$b = count($b);
$c = count($c);
$d = count($d);
```
Is there a better way? I know arrays can use the array\_map function, but I want the values to remain as separ... | [
0.27520859241485596,
0.006024484988301992,
0.12601475417613983,
-0.25118470191955566,
0.11031049489974976,
-0.011910741217434406,
0.323833703994751,
-0.2769690155982971,
-0.26005709171295166,
-0.3279038071632385,
0.024028314277529716,
0.48957502841949463,
-0.6457796096801758,
0.08115048706... | |
$var = count($var);
}
```
I'm not sure if that really is much tidier than the original way, though. | [
0.17387618124485016,
0.12867958843708038,
0.26136156916618347,
-0.27053311467170715,
-0.15806767344474792,
-0.17816828191280365,
0.34537625312805176,
-0.10674484074115753,
0.037215135991573334,
-0.34787195920944214,
0.09982500970363617,
0.692696213722229,
-0.2884153425693512,
0.16315373778... | |
Using GTK, how do I query the current screen's dpi settings?
The current accepted answer is for PHPGTK, which feels a bit odd to me. The pure GDK library has this call: [gdk\_screen\_get\_resolution()](http://library.gnome.org/devel/gdk/stable/GdkScreen.html#gdk-screen-get-resolution), which sounds like a better match.... | [
-0.13420192897319794,
-0.1066373810172081,
0.3882334530353546,
-0.03750568628311157,
-0.4047691524028778,
-0.2061471790075302,
0.16041186451911926,
-0.09872320294380188,
-0.2255798876285553,
-0.7762826085090637,
-0.04674235358834267,
0.6679857969284058,
-0.4682491719722748,
-0.024066511541... | |
Why do we need to create custom exceptions in `.NET?`
Specific customs exceptions allow you to segregate different error types for your catch statements. The common construct for exception handling is this:
```
try
{}
catch (Exception ex)
{}
```
This catches *all* exceptions regardless of type. However, if you have ... | [
0.39018842577934265,
-0.20363356173038483,
-0.13867633044719696,
0.19407051801681519,
-0.16188548505306244,
-0.11315423995256424,
0.2618562877178192,
-0.31731829047203064,
-0.42594727873802185,
-0.4398561716079712,
0.09454728662967682,
0.4963374435901642,
-0.40657272934913635,
-0.096148274... | |
is shared not only by custom exceptions, but all other exception types in the .NET system libraries as well. | [
0.22229498624801636,
-0.03626425564289093,
-0.08751196414232254,
0.005057960748672485,
0.40848278999328613,
-0.4010610580444336,
0.15454690158367157,
0.08255027234554291,
-0.3190794587135315,
-0.5703517198562622,
-0.43133971095085144,
0.08419044315814972,
-0.21310216188430786,
0.1552227288... | |
I have an asp.net app and I am trying to save a text file to a folder that changes with each client. How can I write it to save the files to a folder that changes. For example one customer might be C:\inetpub\wwwroot\site1\ another might be C:\inetpub\wwwroot\site2.
Relative paths don't seem to work, and I've tried Get... | [
0.1067720353603363,
-0.038385774940252304,
0.6706398129463196,
-0.1847572922706604,
0.06653638929128647,
0.2816535532474518,
0.2635887861251831,
0.2246551215648651,
-0.3220374584197998,
-1.141274333000183,
0.2641134262084961,
0.3847593069076538,
-0.23237977921962738,
0.09961588680744171,
... | |
I am programming with normal pointers, but I have heard about libraries like Boost that implement smart pointers. I have also seen that in Ogre3D rendering engine there is a deep use of shared pointers.
What exactly is the difference between the three, and should I stick on using just a type of them?
Sydius outlined t... | [
0.37142667174339294,
-0.04904918372631073,
0.06226634234189987,
0.337833434343338,
-0.2724607288837433,
0.019376380369067192,
-0.1174190416932106,
0.1571333259344101,
-0.30206209421157837,
-0.5509551763534546,
-0.035033658146858215,
0.5208256244659424,
-0.11962249130010605,
-0.047912970185... | |
types; I'll assume you meant scoped pointer which uses the [RAII](http://en.wikipedia.org/wiki/Resource_acquisition_is_initialization) pattern. It is a stack-allocated object that wraps a pointer; when it goes out of scope, it calls delete on the pointer it wraps. It "owns" the contained pointer in that it is in charge... | [
0.44186562299728394,
0.003120508510619402,
0.14813686907291412,
0.05952675640583038,
0.12211598455905914,
-0.301913321018219,
-0.05767492949962616,
-0.32441774010658264,
-0.30791202187538147,
-0.6475069522857666,
-0.23056955635547638,
0.2814543545246124,
-0.42900630831718445,
0.24838258326... | |
you don't have to know who owns it. When the last shared pointer for an object in memory is destructed, the wrapped pointer will also be deleted.
How about when you should use them? You will either make heavy use of scoped pointers or shared pointers. How many threads are running in your application? If the answer is ... | [
0.4533056914806366,
0.0016534659080207348,
0.2104155570268631,
0.4878489673137665,
0.32803088426589966,
-0.2724788188934326,
0.326467365026474,
-0.01824234612286091,
-0.5637232661247253,
-0.7162331342697144,
-0.12759391963481903,
0.5235680341720581,
-0.17304645478725433,
0.2909953594207763... | |
won't always be the case - only testing will tell you for sure.
There is an argument (that I like) against shared pointers - by using them, you are allowing programmers to ignore who owns a pointer. This can lead to tricky situations with circular references (Java will detect these, but shared pointers cannot) or gene... | [
0.5280084013938904,
0.017572276294231415,
0.21065683662891388,
0.17689210176467896,
-0.021496664732694626,
-0.46583321690559387,
0.3553299307823181,
-0.1599646359682083,
-0.25785091519355774,
-0.46907514333724976,
-0.05924178659915924,
0.38632985949516296,
-0.3779461681842804,
0.0926592871... | |
you don't want to stack allocate that object, put it in a scoped pointer. If the operation is a success, you can feel free to transfer it over to a shared pointer, but in the meantime save the overhead with a scoped pointer.
The other case is when you want clear object ownership. Some teams prefer this, some do not. F... | [
0.04657763987779617,
-0.2506955862045288,
-0.08782888948917389,
0.3501313030719757,
0.07316189259290695,
-0.41220730543136597,
0.1430407464504242,
-0.1739381104707718,
-0.37203678488731384,
-0.6106448173522949,
-0.3477347493171692,
0.354742169380188,
-0.14214961230754852,
0.145622864365577... | |
the data structure that owns it is destructed, and it is an error to delete it. Under a shared pointer, the owning object can't destruct the internal data it returned if someone still holds a handle on it - this could leave resources open for much longer than necessary, or much worse depending on the code. | [
-0.1486431509256363,
0.23333072662353516,
-0.010758250020444393,
0.4159362316131592,
0.3052351772785187,
-0.16195286810398102,
0.3764124810695648,
0.12394732981920242,
-0.23471501469612122,
-0.5276212692260742,
-0.4642387628555298,
0.2720182240009308,
-0.056123215705156326,
0.5442425012588... | |
I've got a hosted VPS hosted by a UK hosting company that for some reason is set to US settings. In fact, until recently, the regional settings were 'English - United States'. I've corrected the regional settings, but my application is still working with the wrong date format. See:
<http://www.albaassoc.com/events/lis... | [
0.32756567001342773,
-0.16290096938610077,
1.0547983646392822,
-0.10557882487773895,
-0.020914185792207718,
0.004153289832174778,
0.31216979026794434,
0.5770089030265808,
-0.5307974219322205,
-0.5092677474021912,
-0.04938790202140808,
0.1087276041507721,
0.1693791151046753,
0.4466935694217... | |
than January!
I know there are various ways to set a page or an application to use a particular locale, but I'd rather go for a global approach.
Is it possible to re-configure IIS to work in a different locale, or if not, can I tweak machine.config so that it is a once-only change?
I've got a ticket open with the ho... | [
0.2833150327205658,
-0.33350926637649536,
0.5756772756576538,
0.29900044202804565,
-0.0032233577221632004,
-0.2938787043094635,
0.5175265073776245,
0.3504646420478821,
-0.3308025002479553,
-0.7900994420051575,
-0.16190142929553986,
-0.279331773519516,
0.1028052568435669,
0.4709525406360626... | |
I have 100 million lines of data, the data is a word no longer than 15 chars,one word per line. Those data are stored in multiple files.
My goal to to find the unique words among all files.
One solution is to import all words into database and add a unique key for the field. but this is too slow for this large data ... | [
0.42296716570854187,
0.32782474160194397,
0.2226896733045578,
0.09303057938814163,
-0.0046117426827549934,
0.4472407102584839,
0.3451630175113678,
0.20588397979736328,
-0.07739868015050888,
-0.7749062180519104,
0.09930463135242462,
0.09255055338144302,
-0.17061066627502441,
0.4154654741287... | |
that would be with 100,000,000 words, and I'm not sure how fast you want it to be. (E.g., do you need to run it lots of times or just once? If just once, I'd go with the sort and uniq option and let it run overnight if you can).
Alternatively, you could write a script in ruby or a similar language that stored the word... | [
0.25299209356307983,
0.0032302525360137224,
0.05021112412214279,
0.35143429040908813,
-0.08952692151069641,
0.21088264882564545,
0.4878339171409607,
0.2997298538684845,
-0.18887315690517426,
-0.764553427696228,
0.19098716974258423,
0.3682745695114136,
0.04678903520107269,
-0.30388307571411... | |
then you might want to write something in C, but to me that feels a bit like overkill.
Ben | [
0.3721347749233246,
0.23513835668563843,
0.17076385021209717,
-0.029042787849903107,
0.08440985530614853,
-0.21597371995449066,
0.11560412496328354,
0.30236902832984924,
-0.11408999562263489,
-0.26828622817993164,
0.08945977687835693,
0.3817124664783478,
0.03113597445189953,
0.206942915916... | |
I did some timing tests and also read some articles like [this one](http://www.cincomsmalltalk.com/userblogs/buck/blogView?showComments=true&title=Smalltalk+performance+vs.+C%23&entry=3354595110#3354595110) (last comment), and it looks like in Release build, float and double values take the same amount of processing ti... | [
0.32572904229164124,
0.17599374055862427,
0.7390193343162537,
0.028498316183686256,
0.0813971534371376,
-0.07946733385324478,
-0.1063288152217865,
-0.17798194289207458,
-0.39425763487815857,
-0.009811554104089737,
-0.06433131545782089,
0.6850612759590149,
-0.20665401220321655,
0.0284030251... | |
applied 100 years ago when most CPUs didn't have built-in FPUs (and few people had separate FPU chips), so most floating-point manipulation was done in software. On these machines (which were powered by steam generated by the lava pits), it *was* faster to use `float`s. Now the only real benefit to `float`s is that the... | [
0.40464597940444946,
0.2677936255931854,
0.46458107233047485,
0.4548298120498657,
-0.1163029819726944,
0.05309182405471802,
-0.07161916792392731,
-0.30041831731796265,
-0.29056233167648315,
0.0145779550075531,
0.48071038722991943,
0.10188931226730347,
-0.15457317233085632,
0.10593327879905... | |
I have seen several projects that use the Trace functionality to capture events and stream them out to a log file. I have been unsuccessful in finding a simple to follow guide that will show me how to configure Trace to capture and write said logfile. Does anyone have a link recommendations, or provide some simple step... | [
0.5191226005554199,
-0.16362547874450684,
-0.03098461776971817,
0.34423595666885376,
0.036717742681503296,
-0.5751487016677856,
0.3825778663158417,
0.34273749589920044,
-0.3287428021430969,
-0.4635375142097473,
0.2616181969642639,
0.23181934654712677,
-0.09471503645181656,
0.16999140381813... | |
I'm using Visual Studio 2008 and I'm used to C# where when Intellisense pops up, I select what I want by hitting enter and it doesn't skip down to the next line. In VB when I hit the enter on intellisense, I jump to the next line. Does anyone know where the setting for this intellisense option might be?
Hitting the SPA... | [
-0.011825893074274063,
-0.29535332322120667,
0.4665963351726532,
-0.04482531547546387,
0.010409786365926266,
0.11351985484361649,
-0.10741093754768372,
0.291935533285141,
-0.06449470669031143,
-0.7547053694725037,
-0.15737764537334442,
0.5748661160469055,
-0.12109047919511795,
-0.154879391... | |
During an investigation of some client machines losing their connection with SQL Server 2005, I ran into the following line of code on the web:
Select \* FROM sys.dm\_exec\_query\_optimizer\_info WHERE counter = 'timeout'
When I run this query on our server - we are getting the following results:
counter - occurrenc... | [
-0.05060721933841705,
0.21773816645145416,
0.2018475979566574,
-0.14090177416801453,
0.07312040776014328,
0.06960944831371307,
0.4801018536090851,
-0.05203372240066528,
-0.38359150290489197,
-0.38233816623687744,
0.2914715111255646,
0.5174951553344727,
-0.2773325741291046,
0.16042782366275... | |
any timeout specific errors.
Can anyone tell me what this number of “occurrences” means? Is this an issue we should be concerned about?
This counter is nothing to do with your connection issues.
SQL Server won't spend forever trying to compile the best possible plan ([at least without using trace flags](https://dba.s... | [
0.23687665164470673,
-0.26389890909194946,
0.529826819896698,
0.18836450576782227,
0.22739611566066742,
-0.12938983738422394,
0.2555817663669586,
-0.28350770473480225,
-0.28182393312454224,
-0.6799379587173462,
0.17673814296722412,
0.635075569152832,
-0.18437382578849792,
-0.06477520614862... | |
optimising. Also if it exceeds the number of tasks budgeted then optimisation will also end and it will return the best plan found so far.
The reason that optimisation finished early shows up in the execution plan in the `StatementOptmEarlyAbortReason` attribute. There are actually three possible values.
* Good enoug... | [
-0.33706673979759216,
-0.4767858684062958,
0.7865447998046875,
0.051952335983514786,
0.021746644750237465,
0.352010577917099,
0.2833169400691986,
-0.4899604320526123,
-0.161941260099411,
-0.4526352882385254,
0.0034435458946973085,
0.7090994119644165,
-0.34204182028770447,
-0.61549133062362... | |
I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project\_docs".
I'd like to move the "docs" folder (**and all of its revisions**) to the "project\_docs" repository. Is there a way to do this?
If y... | [
0.5683752298355103,
0.10593181848526001,
0.37627077102661133,
-0.049505263566970825,
0.14558300375938416,
-0.18945495784282684,
0.14212791621685028,
-0.0653313398361206,
-0.25955694913864136,
-0.5817162394523621,
-0.210165873169899,
0.5402371287345886,
-0.2456893026828766,
0.30122467875480... | |
< ./repository.dump > ./docs_only.dump
svnadmin load /svn/new_repos < ./docs_only.dump
```
Without access to the repository, you cannot maintain the revision history and you have to settle for copying the files into the new repository and committing. | [
0.12023138999938965,
0.08396781235933304,
0.4236578345298767,
0.09347817301750183,
0.13778099417686462,
-0.16517487168312073,
0.2138424664735794,
-0.24140645563602448,
-0.3912968933582306,
-0.2272241711616516,
-0.4060637354850769,
0.5756842494010925,
0.021044263616204262,
0.606780052185058... | |
I am searching for a program like Google Analytics or Clicky which runs on my own servers. I have used awstats, which looks really old. It doesn't have to be open source but I would prefer something free.
If possible it should also analyse my Apache Logs.
You might like to evaluate [Piwik](http://piwik.org/). | [
0.6159185171127319,
0.09008479863405228,
-0.07382912933826447,
0.15328535437583923,
-0.2069995105266571,
-0.34657758474349976,
0.2532082200050354,
0.2351284772157669,
-0.018803924322128296,
-0.601076602935791,
0.5313913822174072,
0.28121277689933777,
0.11271008849143982,
0.2596952915191650... | |
I see lots of TDD practitioners following this cycle:
> 1) Write your test as if the target
> objects and API already exists.
>
>
> 2) Compile the solution and see it
> break.
>
>
> 3) Write just enough code to get it to
> compile.
>
>
> 4) Run the test and see if fail.
>
>
> 5) Write just enough code t... | [
0.6485302448272705,
-0.2061305046081543,
0.023746086284518242,
0.10345788300037384,
-0.24281275272369385,
-0.3868100047111511,
0.4988328516483307,
-0.8086915016174316,
0.3037627637386322,
-0.7005914449691772,
0.23256833851337433,
0.8591614365577698,
-0.12337983399629593,
-0.206418365240097... | |
Visual Studio this is really annoying to do, since intellisense jumps all over the place trying to guess methods and attributes that are not there.
I usually start on step 3, having all my methods throwing NotImplementedException, and this seems perfectly fine for me, but maybe I am missing something.
**Edit for clar... | [
0.36771878600120544,
-0.04591415822505951,
0.28175294399261475,
-0.02333267219364643,
-0.35713937878608704,
-0.3290962278842926,
0.1969044953584671,
-0.1953330934047699,
-0.17855800688266754,
-0.6204257607460022,
0.010827148333191872,
0.6148725152015686,
-0.09473147243261337,
-0.1764291375... | |
(therefore VS will show a red squiggle, or paint the whole method name red etc) and try to compile anyway. For me the fact that VS is telling me that the method does not exist is good enough.
Then try it by writing the method name first. I find by writing the test first and the methods, it forces me to really think abo... | [
0.4295807182788849,
-0.009762007743120193,
0.10966678708791733,
0.06281353533267975,
-0.12752452492713928,
-0.17840972542762756,
0.3914995789527893,
-0.24016603827476501,
-0.20525644719600677,
-0.5076779723167419,
0.15340019762516022,
0.6486074924468994,
-0.35996514558792114,
-0.1072882711... | |
that it causes problems, switch back. And if it doesn't, you've got a new way of working now.
Remember also that when you are first learning about things, generally you need a clear set of rules to give you context. As you begin to move from Beginner to more advanced, you'll gain more context and be able to make tweak... | [
0.36077186465263367,
0.07424868643283844,
-0.27779674530029297,
0.042196959257125854,
0.040357768535614014,
-0.341825008392334,
0.29682502150535583,
0.11787602305412292,
-0.4177513122558594,
-0.6473559737205505,
0.13852156698703766,
0.4289546310901642,
0.004498519469052553,
0.0062624337151... | |
I tried to compile the example posted ([C++ Service Providers](https://stackoverflow.com/questions/412165/c-service-providers)) and failed to VS8 VC9. I have little experience with template.
Any suggestions?
Tanks.
These are the errors :
dictionarystl.cpp(40) : error C2663: 'std::\_Tree<\_Traits>::find' : 2 o... | [
0.030733397230505943,
0.1736574023962021,
0.3670910894870758,
-0.2574763894081116,
0.0030537990387529135,
0.2149387001991272,
0.6320515871047974,
-0.1384885311126709,
-0.16536232829093933,
-0.658802330493927,
-0.0574195496737957,
0.5750341415405273,
-0.3877383768558502,
0.24771036207675934... | |
std::type_info* lhs, const std::type_info* rhs) const
{
return lhs->before(*rhs) != 0;
}
};
class TypeMap
{
typedef map <type_info *, void *, type_info_less> TypenameToObject;
TypenameToObject ObjectMap;
public:
template <typename T>
T *Get () const
{
TypenameToObject::con... | [
-0.3933507204055786,
-0.3253178298473358,
0.6106840968132019,
-0.18576152622699738,
0.14662759006023407,
0.13620425760746002,
0.23338204622268677,
-0.5004253387451172,
0.024843117222189903,
-0.7802227139472961,
-0.5634963512420654,
0.6766822338104248,
-0.4791516661643982,
-0.05393993854522... | |
return reinterpret_cast<T *>(iType->second);
}
template <typename T>
void Set(T *value)
{
ObjectMap[&typeid(T)] = reinterpret_cast<void *>(value);
}
};
int main()
{
TypeMap Services;
Services.Set<SomeClass>(new SomeClass());
SomeClass *x = Services.Get<SomeClass>();
}
```
For... | [
-0.057946015149354935,
-0.26820075511932373,
0.536521315574646,
-0.3062044084072113,
0.018791530281305313,
0.13827091455459595,
0.57942795753479,
-0.2712988555431366,
0.1623380184173584,
-0.8053768873214722,
-0.3178347051143646,
0.7104831337928772,
-0.3414447605609894,
0.11983733624219894,... | |
I'm parsing simple (no sections) INI file in PowerShell. Here code I've came up with, is there any way to simplify it?
```
convertfrom-stringdata -StringData ( `
get-content .\deploy.ini `
| foreach-object `
-Begin { $total = "" } `
{ $total += "`n" + $_.ToString() } `
-End { $total } `
).Replace("\",... | [
0.025437068194150925,
0.22299721837043762,
0.39313891530036926,
-0.06811786442995071,
-0.06175987422466278,
0.2177165448665619,
0.2389359027147293,
-0.23237824440002441,
-0.36939942836761475,
-0.6454901695251465,
-0.10967407375574112,
0.5447190403938293,
-0.46167275309562683,
-0.0390074811... | |
solutions as [this](http://www.leeholmes.com/blog/2007/10/02/managing-ini-files-with-powershell/) which support writing scenario.
There are simpler ones and as far as I need no writing support I've chose following very elegant code snippet:
```
Function Parse-IniFile ($file) {
$ini = @{}
# Create a default sect... | [
-0.38475704193115234,
0.01645551063120365,
0.5120599269866943,
-0.03631832078099251,
0.36817437410354614,
0.020494820550084114,
0.40274786949157715,
-0.3927631378173828,
-0.16307954490184784,
-0.6997399926185608,
-0.12669189274311066,
0.40630823373794556,
-0.2686302959918976,
-0.0605882778... | |
$name,$value = $matches[1..2]
# skip comments that start with semicolon:
if (!($name.StartsWith(";"))) {
$ini[$section][$name] = $value.Trim()
}
}
}
$ini
}
```
This one is [Jacques Barathon](http://groups.google.com/group/microsoft.public.windows.powershell/msg/238e432354e9b433)'s.
... | [
-0.18881963193416595,
0.31816017627716064,
-0.07017397880554199,
-0.11195114254951477,
-0.20590151846408844,
0.07410493493080139,
0.1012362465262413,
-0.0475740060210228,
-0.4752114713191986,
-0.5588176846504211,
-0.5185286998748779,
-0.11461937427520752,
-0.6734433174133301,
-0.1893263906... | |
A coworker of mine mentioned that one use of XSLT is processing business rules. He mentioned that there were systems that allowed users to write business rules in some kind of text format, and then the program uses XSLT to process the text and apply the rules at run-time in the application.
Can someone shed some light... | [
0.3198528289794922,
0.1686563342809677,
0.060498420149087906,
0.24535636603832245,
-0.22878767549991608,
-0.18048840761184692,
-0.24506130814552307,
-0.05764700844883919,
-0.3981647789478302,
-0.32209208607673645,
-0.09377128630876541,
0.3986934423446655,
-0.5361719727516174,
0.03411624208... | |
BPEL so I don't know any system doing something like that. | [
0.5311961770057678,
0.35989657044410706,
0.14297327399253845,
-0.0029203330632299185,
-0.014379503205418587,
-0.22599317133426666,
-0.0061248247511684895,
0.4116559326648712,
-0.22619687020778656,
-0.21490056812763214,
0.3789026737213135,
0.4973776936531067,
-0.11780653148889542,
0.1190094... | |
I'm at a loss to explain this one:
I am getting an error:
> Error "91" (Object or With block not set)
on the second line below:
```
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM employees")
```
The following also causes it:
```
`Set rs = CurrentDb.OpenRecordset("employees")`
```
Exe... | [
0.09954187273979187,
0.17565502226352692,
0.4116186499595642,
-0.18306924402713776,
0.13394828140735626,
-0.3912178575992584,
0.05824718996882439,
0.06676312536001205,
-0.32695984840393066,
-0.43923884630203247,
-0.11513935774564743,
0.5265587568283081,
-0.30997177958488464,
0.512616515159... | |
I've just discovered J2ME and I love the possibilities that it presents. I'm currently working on a simple application and I'd like to maybe release it as an open-source project sometime in the future.
As part of my research into J2ME and mobile devices, I looked into applet signing. It seems that people who want to c... | [
0.8709865212440491,
0.3846297264099121,
-0.08305192738771439,
0.20110362768173218,
0.3362986147403717,
-0.18269185721874237,
0.1899905502796173,
0.37350741028785706,
0.01467281673103571,
-0.7923570275306702,
0.11517629027366638,
0.574256420135498,
-0.2741309404373169,
0.042110640555620193,... | |
it would be a shame to have to ignore them, and just wait patiently for the next wave (e.g. Android).
I was wondering if other people have any ideas about ways to approach this problem?
**UPDATE: I found this blog article which summarises the problem for those interested... <http://javablog.co.uk/2007/08/09/how-midl... | [
0.6935835480690002,
-0.2941818833351135,
0.5947430729866028,
-0.08121626824140549,
-0.09210614860057831,
-0.0761813074350357,
0.17927247285842896,
-0.05388878285884857,
-0.13948659598827362,
-0.5046985149383545,
0.1625402271747589,
0.6224998235702515,
-0.00847535952925682,
-0.1855138093233... | |
rep and they thought the idea could work (as long as the organisation was registered as a legal entity).**
**However, since handset manufacturers now seem to be moving to support *only* UTI root certificates (which you can only get through the 'Java verified' programme) - this might not be as useful as I thought it co... | [
0.8100064992904663,
-0.05662580206990242,
0.46149614453315735,
-0.10453588515520096,
-0.28003060817718506,
0.09020984917879105,
0.6491736769676208,
-0.03659101203083992,
-0.6912629008293152,
-0.2714749276638031,
-0.013890254311263561,
0.6531562209129333,
0.04690506309270859,
0.050489678978... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.