text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:126)
at com.bea.core.repackaged.springframewo... | [
-0.3138751983642578,
0.12909594178199768,
0.5819485187530518,
-0.13543494045734406,
0.008664948865771294,
0.48585209250450134,
0.42741304636001587,
-0.5823355913162231,
-0.28605687618255615,
-0.7709450125694275,
-0.2574463188648224,
0.5519936680793762,
0.06239156424999237,
0.13849651813507... | |
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.ja... | [
-0.39243894815444946,
0.28050288558006287,
0.06545348465442657,
-0.15684285759925842,
-0.09584812819957733,
0.09482923150062561,
0.8978167772293091,
-0.4525361657142639,
-0.46221259236335754,
-0.37769368290901184,
-0.23106400668621063,
0.24201878905296326,
-0.41317448019981384,
0.213782370... | |
at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java... | [
-0.5074485540390015,
0.23954367637634277,
0.4487189054489136,
0.002088972833007574,
-0.12503503262996674,
0.32020407915115356,
0.4744785726070404,
-0.6978805661201477,
-0.45267730951309204,
-0.5772249698638916,
-0.14941251277923584,
0.2649247348308563,
-0.20142091810703278,
0.0462313257157... | |
i missing here?
You should write your native query like this (use :1 instead of ?) WHERE IESTATUT=:1
```
Query q = exp.createNativeQuery
(
"SELECT IESTATUT, IINICIO FROM \n SATTET0 WHERE IESTATUT=:1 AND DATAFIM IS NULL",
SATTET0Key.class
);
q.setParameter(1, estatuto)... | [
-0.2648099362850189,
-0.299380898475647,
0.31369301676750183,
0.05995414778590202,
-0.014482640661299229,
-0.19134408235549927,
0.4491606652736664,
-0.22616863250732422,
0.15223920345306396,
-0.7675272822380066,
0.0554751455783844,
0.5551019310951233,
-0.3234729468822479,
0.112829267978668... | |
I am using MSBuild to Publish a web site, then copy the published site to a web server on the same network. I set the copy command to "SkipUnchangedFiles."
It works swimmingly, but Skip Unchanged won't work because when I use AspNetCompiler to publish the website, each and every file is "new" -- its date is set to the... | [
0.42970210313796997,
-0.02616509236395359,
0.4571123421192169,
0.03578637167811394,
0.16452457010746002,
-0.21284812688827515,
0.22736656665802002,
-0.057129230350255966,
-0.7690520286560059,
-0.4348713755607605,
-0.014883501455187798,
0.2963990271091461,
-0.48720645904541016,
0.2000105828... | |
GCC in Max Lybbert's post is based on the tables om the C++ Standard that map iostream behaviour onto printf/scanf converters (or at least that;'s my reading). However, the scanf behaviour of g++ seems to be different from the istream behavior:
```
#include <iostream>
#include <cstdio>
using namespace std;;
int main(... | [
-0.14877180755138397,
-0.2566094994544983,
0.501462459564209,
-0.5291994214057922,
-0.1254309117794037,
0.09208251535892487,
0.028472865000367165,
-0.2717745304107666,
-0.27056899666786194,
-0.40534019470214844,
-0.3759165108203888,
0.49991485476493835,
-0.7292470932006836,
0.0451348870992... | |
}
}
```
actually prints 65535. | [
0.004030714742839336,
0.24158817529678345,
0.09288923442363739,
0.143342062830925,
0.4612217843532562,
0.06264586001634598,
0.09109164029359818,
0.22912222146987915,
-0.023488102480769157,
-0.239787295460701,
-0.06409776210784912,
0.6114735007286072,
-0.26956698298454285,
0.124297544360160... | |
**Q1:**
1. Does `aspnet_compiler.exe` compile into assembly(ies) all files contained inside the website directory, even JPG, DOC, and PDF types?
2. If you add images to the list of files (thus add them to the project file) in your web project, will these images also get compiled by VS into assembly?
**Q2:**
When `as... | [
0.7050139307975769,
0.14339977502822876,
-0.02495141513645649,
0.07452143728733063,
-0.25067174434661865,
-0.14670047163963318,
0.20766784250736237,
-0.16213800013065338,
-0.29074856638908386,
-0.849426805973053,
-0.1979692280292511,
0.5265936255455017,
-0.34724581241607666,
0.024917708709... | |
files, such as JPG, DOC etc?
thanx
EDIT:
> However, I must ask, why do you want to have these files embedded in an assembly in the first place? Maybe you're not going in the right direction..
I don't plan to embed files in an assembly, but I wasn't sure whether or not this happens automatically when Asp.Net compile... | [
0.4661025106906891,
0.12455993890762329,
-0.1486760675907135,
0.18538351356983185,
-0.09719205647706985,
-0.32303354144096375,
0.3862208127975464,
0.44813525676727295,
-0.34244653582572937,
-0.47828662395477295,
-0.20491129159927368,
0.3029891550540924,
-0.2827771306037903,
0.1321708559989... | |
At my robotics club we are trying to get the multi-threading capability to work on LEGO Mindstorms NXT, but it seems that the threads are interfering with each other and causing the program to stop entirely.
Does anyone know how to correctly implement multi-threading on the NXT visual programming environment.
Oh, too ... | [
0.30358368158340454,
0.2874982953071594,
0.23052823543548584,
0.11487696319818497,
0.007426051422953606,
-0.33686935901641846,
0.5084053874015808,
0.3237208127975464,
-0.4194360375404358,
-0.3903323709964752,
0.029760533943772316,
0.32227709889411926,
-0.13929088413715363,
0.36752340197563... | |
I am using Microsoft's Unity for dependency injection and I want to do something like this:
```
IDataContext context = _unityContainer.Resolve<IDataContext>();
var repositoryA = _unityContainer.Resolve<IRepositoryA>(context); //Same instance of context
var repositoryB = _unityContainer.Resolve<IRepositoryB>(context);... | [
-0.1352016031742096,
0.2288079410791397,
0.14044930040836334,
-0.2014535665512085,
-0.03969361633062363,
0.1595604419708252,
0.35912010073661804,
-0.4656335711479187,
0.11181838810443878,
-0.6847605109214783,
0.11261901259422302,
0.5423628687858582,
-0.3116453289985657,
0.3967554271221161,... | |
{ { "name", "bar" }, { "address", 42 } });"
``` | [
-0.007178488187491894,
0.42130643129348755,
0.46541765332221985,
-0.3532312214374542,
0.4597907066345215,
0.04245702549815178,
0.26082468032836914,
-0.2354670763015747,
0.19501571357250214,
-0.31401491165161133,
-0.696897029876709,
0.6144622564315796,
-0.4124748408794403,
0.334788292646408... | |
Lets assume I've allocated the address where my codecave is placed using `VirtualAllocEx` (it returns the address) and I write my code into that address using `WriteProcessMemory()`.
Here's the question:
How do I write a jump to my codecave? I know that jumps start with "`E9`", but how do I convert the address return... | [
-0.1859716922044754,
0.19337284564971924,
0.31380245089530945,
-0.03808904439210892,
0.07954655587673187,
0.22030285000801086,
0.13773366808891296,
-0.10975047945976257,
-0.10590232163667679,
-0.7540208101272583,
-0.38559481501579285,
0.47221314907073975,
-0.17602747678756714,
-0.035797730... | |
Command Comments
00402020 E9 AA080000 JMP 004028CF
```
"`E9`" is how we indicate a JMP. What about "`AA080000`", how do I generate this?
I need to do something similar so I can initialize a JMP to my codecave, which will be located at an address returned by `VirtualAllocEx()`.
An... | [
0.09650116413831711,
-0.0154957827180624,
0.5437150597572327,
0.277599960565567,
0.07232910394668579,
0.008259929716587067,
0.39902588725090027,
0.08076470345258713,
-0.25407689809799194,
-0.6129961013793945,
-0.19923312962055206,
0.5891039967536926,
-0.032697975635528564,
-0.1840321421623... | |
an offset to the current instruction pointer. See [Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2A: Instruction Set Reference, A-M](http://download.intel.com/design/processor/manuals/253666.pdf) pages 549ff for details. For more information see [Intel® 64 and IA-32 Architectures Software Develop... | [
0.08503833413124084,
-0.2076541632413864,
0.38093847036361694,
-0.11534793674945831,
0.06824751198291779,
0.1423930674791336,
-0.1429392546415329,
-0.28589752316474915,
-0.3792009651660919,
-0.2455534040927887,
-0.22131168842315674,
0.4645351469516754,
-0.12269656360149384,
-0.415512591600... | |
instruction and the current instruction pointer value differ by 5.
```
CurrentInstructionPointer = AddressOfJumpInstruction + 5
```
**UPDATE**
Corrected error about the current instruction pointer value. Thanks jn. | [
-0.12071356177330017,
0.16069823503494263,
0.3999403715133667,
0.15288837254047394,
0.1449253112077713,
0.27073585987091064,
0.6247304677963257,
-0.012429342605173588,
-0.01979842223227024,
-0.5630373358726501,
-0.18722881376743317,
0.6369361281394958,
0.18051986396312714,
-0.2465528845787... | |
I would like to be able to print object properties, and I've hit a snag when I hit nested collections of the iLists.
```
foreach (PropertyInformation p in properties)
{
//Ensure IList type, then perform recursive call
if (p.PropertyType.IsGenericType)
{ | [
0.11297183483839035,
0.056559670716524124,
0.22072935104370117,
-0.08816029876470566,
0.02215569093823433,
-0.1296655535697937,
0.11508100479841232,
-0.3800203502178192,
0.08950578421354294,
-0.7847989797592163,
-0.23237404227256775,
0.707003653049469,
-0.2716078460216522,
0.10050617158412... | |
// recursive call to PrintListProperties<p.type?>((IList)p," ");
}
```
Can anyone please offer some help?
Cheers
KA
I'm just thinking aloud here. Maybe you can have a non generic PrintListProperties method that looks something like this:
```
private void PrintListProperties(IList list, Type... | [
0.10095550864934921,
0.22763293981552124,
0.22262504696846008,
-0.16928261518478394,
-0.08999897539615631,
0.09719812870025635,
0.18408218026161194,
-0.17940016090869904,
-0.10252373665571213,
-0.7661811709403992,
-0.08171436190605164,
0.6630726456642151,
-0.3492503762245178,
-0.0973844528... | |
PringListProperties((Ilist)p,p.PropertyType.GetGenericArguments()[0]);
}
```
Again, haven't tested this, but give it a whirl... | [
0.00843198224902153,
0.17994333803653717,
0.3049589991569519,
-0.24674533307552338,
0.1483483612537384,
-0.41644051671028137,
0.17503580451011658,
-0.32278355956077576,
-0.21576619148254395,
-0.21128934621810913,
-0.15494520962238312,
0.41638046503067017,
-0.35371193289756775,
0.4025481641... | |
TFileStream provides buffered output, which is great in most cases, but in some cases (especially during debugging) it's nice to flush the buffer immediately. Thing is, I don't know of any way to do that except calling Free, which is kind of counterproductive.
Is there a better way to do it?
You need to flush the stre... | [
0.4485081136226654,
-0.34127533435821533,
0.07358711212873459,
-0.029845712706446648,
0.15277889370918274,
-0.32197877764701843,
0.28917795419692993,
0.3024231195449829,
-0.12395500391721725,
-0.6143684387207031,
-0.11003795266151428,
0.7745935916900635,
-0.361695796251297,
-0.317970752716... | |
I'm using ASP.NET Web Deployment Projects with TortoiseSVN and VisualSVN, but this is a general question about generated files in Subversion.
A Web Deployment Project automatically generates a parallel "deployment" version of your website with all code stripped out and compiled into a single assembly. My file structur... | [
0.2920787036418915,
0.16483841836452484,
0.4385371208190918,
-0.3738354742527008,
-0.05602036416530609,
0.01823548972606659,
0.4469696283340454,
0.008241810835897923,
-0.4932785928249359,
-0.7430126667022705,
-0.24153397977352142,
0.6080905199050903,
-0.05988045781850815,
-0.01728313416242... | |
means that there's an unmanaged local folder with the same name as a managed folder on the server.
(I could just ignore the Release folder, but I want to do FTP deploy directly from the Subversion server.)
What's the best way to deal with auto-generated files in Subversion?
Set the svn:ignore property. Don't add the... | [
0.4791049063205719,
-0.19909998774528503,
0.24886023998260498,
0.15977928042411804,
-0.009417152032256126,
-0.37222710251808167,
0.27888065576553345,
0.06671565026044846,
-0.5873757004737854,
-0.37294667959213257,
-0.12805669009685516,
0.758222222328186,
-0.2733955681324005,
0.066163294017... | |
source, and then do the deploy from that. This will put you in the position of using 2 best practices instead of 1, and still solve your problem. | [
0.42798176407814026,
-0.043944746255874634,
0.19844219088554382,
0.07280108332633972,
0.16809150576591492,
-0.022731604054570198,
0.4144863188266754,
-0.5966023206710815,
-0.004998619668185711,
-0.7745996117591858,
0.10058111697435379,
0.8392161726951599,
0.09555033594369888,
-0.3803443014... | |
IE8 throws an "Error: Object required" message (error in the actual jquery library script, not my javascript file) when the switch statement in this function runs. This code works in IE6, IE7, FF3, and Safari... Any ideas? Does it have something to do with the '$(this)' selector in the switch? Thanks!
```
function to... | [
0.2544551193714142,
-0.2867976129055023,
0.5365126132965088,
-0.26708415150642395,
0.1359148621559143,
-0.19933775067329407,
0.2522141635417938,
-0.00022749135678168386,
-0.25565117597579956,
-0.5997455716133118,
-0.20821011066436768,
0.38059860467910767,
-0.37168362736701965,
-0.056392565... | |
case "cxs":
cxs ++;
$('input[name="cxs"]').val(cxs);
break;
case "cs":
cs ++;
$('input[name="cs"]').val(cs); | [
-0.2524137794971466,
0.006533971056342125,
0.12126388400793076,
-0.0981343612074852,
0.15058808028697968,
0.2913702726364136,
0.20738226175308228,
0.20957837998867035,
-0.3393711745738983,
-0.29775312542915344,
-1.078867793083191,
0.26213157176971436,
-0.382434606552124,
0.0692848637700080... | |
break;
case "cm":
cm ++;
$('input[name="cm"]').val(cm);
break;
}
});
}
```
I upgraded the jQuery library from 1.2.6 to 1.3.2 and this | [
-0.3385290205478668,
-0.2279376983642578,
0.5735837817192078,
-0.1502118706703186,
-0.14572250843048096,
-0.17306704819202423,
0.15450242161750793,
-0.19646233320236206,
-0.4194810688495636,
-0.4897736608982086,
-0.48000118136405945,
0.412436842918396,
-0.4630112946033478,
0.03758502379059... | |
solved the problem. Didn't realize I had an old version- oops.
Thanks for your help all! | [
-0.05654646083712578,
0.3975728154182434,
0.20477627217769623,
0.6436806321144104,
0.2358163297176361,
-0.09211757034063339,
0.43247097730636597,
0.33174362778663635,
-0.1754099726676941,
-0.2522023916244507,
-0.061521921306848526,
0.1599462628364563,
0.31672894954681396,
0.245147317647933... | |
I have code like the following:
```
class MyClass
{
string Name;
int NewInfo;
}
List<MyClass> newInfo = .... // initialize list with some values
Dictionary<string, int> myDict = .... // initialize dictionary with some values
foreach(var item in newInfo)
{
if(myDict.ContainsKey(item.Name)) // 'A' I hash t... | [
-0.08786064386367798,
-0.0564403310418129,
0.24764885008335114,
-0.41069191694259644,
-0.24324582517147064,
0.13320596516132355,
0.2901113033294678,
-0.1328611671924591,
-0.03209180757403374,
-0.7574632167816162,
0.04704216495156288,
0.4466319680213928,
-0.20617665350437164,
0.288192182779... | |
to see if contains an entry, and the second time to update the value? There may even be two hash lookups on line 'B' -- one to get the int value and another to update it.
Yes - use `Dictionary.TryGetValue`. It takes an `out` parameter to receive the value, and returns whether or not the value was found. Here's your adj... | [
-0.14730271697044373,
0.08876543492078781,
0.5079313516616821,
-0.3081996738910675,
0.06914125382900238,
0.16627267003059387,
0.21094781160354614,
-0.22998841106891632,
-0.028454318642616272,
-0.5460880994796753,
-0.20022457838058472,
0.5032373070716858,
-0.16329094767570496,
0.07959178835... | |
{
myDict[item.Name] = item.NewInfo;
}
}
```
However, we can do better than that **in this particular case**. If the key- *isn't* found, the `out` parameter is set to 0. As we're going to set the new value to either `item.NewInfo` or `item.NewInfo + value` we're really doing the same thing either way. We c... | [
-0.14486698806285858,
0.16273359954357147,
0.4478568434715271,
-0.1726987063884735,
-0.08140160888433456,
0.000577733269892633,
0.3884161412715912,
-0.07649457454681396,
-0.26400095224380493,
-0.5917424559593201,
-0.20029552280902863,
0.47267061471939087,
-0.19362139701843262,
0.5954954028... | |
- usually you *would* use the return value, obviously.
**Digression**
It's only because you're really doing a `GetValueOrDefault` operation that it works. In fact, that would be a valid pair of extension methods:
```
public static TValue GetValueOrDefault<TKey, TValue>
(this IDictionary<TKey, TValue> dictionary,... | [
0.3502746820449829,
-0.40639495849609375,
0.7931817173957825,
-0.17932558059692383,
-0.07711533457040787,
-0.2068290263414383,
0.40401431918144226,
-0.3488610088825226,
-0.17490535974502563,
-0.5730059742927551,
-0.5806899666786194,
0.9154655933380127,
-0.566599428653717,
-0.07196505367755... | |
return value;
}
else
{
return customDefault;
}
}
```
At that point you could make your code clear *and* concise:
```
foreach(var item in newInfo)
{
myDict[item.Name] = myDict.GetValueOrDefault(item.Name) + item.NewInfo;
}
```
(You could call `GetValueOrDefault(item.Name, 0)` for potenti... | [
0.31694576144218445,
-0.261563777923584,
0.6833822131156921,
-0.1878647357225418,
-0.09896237403154373,
0.02482341229915619,
0.2264300286769867,
-0.20183061063289642,
-0.39194566011428833,
-0.6960245370864868,
-0.28440237045288086,
0.649346113204956,
-0.27540212869644165,
0.327199250459671... | |
possible, but not terribly nice.
In the original code, you're potentially doing *three* lookups - one for `ContainsKey`, and then two (if the key is found) to replace the value. It's easier to see that if we expand the `+=`:
```
myDict[item.Name] = myDict[item.Name] + item.NewInfo;
```
(`item.Name` would only be ev... | [
-0.18980050086975098,
-0.1289687305688858,
0.5004293322563171,
0.06926272809505463,
0.10353904217481613,
0.10649474710226059,
0.2729325592517853,
-0.1753140091896057,
-0.09735069423913956,
-0.7250678539276123,
-0.2808149755001068,
0.6222531199455261,
-0.20345745980739594,
-0.00694691296666... | |
value (or the default value of `TValue` if the key wasn't found) and a Boolean to say whether or not the key *was* actually found, and returns the new value. The dictionary could then look up the key, call the replacement function and update the value in place. (This one can't be implemented as an extension method.) | [
0.27705347537994385,
-0.3973290026187897,
0.5057939291000366,
-0.12351074814796448,
-0.0408516600728035,
0.06107795238494873,
0.13136884570121765,
0.04899706318974495,
-0.06711558997631073,
-0.2986232042312622,
-0.3648243844509125,
0.7407453060150146,
-0.15733246505260468,
0.07817713916301... | |
I received a .swf (Flash) file and they asked me to modify some things.
I don't know (yet) Flash.
Is a .swf itself a source file or it is a compiled form of something other.
What is the suggested IDE to work with Flash, where to starts?
The **swf** fileformat has not source code in Action Script (the language which yo... | [
0.6219726204872131,
0.2037653923034668,
0.4393659234046936,
0.11684884130954742,
-0.20496495068073273,
-0.21300609409809113,
-0.05880460515618324,
-0.042341798543930054,
-0.18753385543823242,
-0.5919502973556519,
-0.11561232805252075,
0.6593145132064819,
-0.23684453964233398,
-0.1053862348... | |
compile them into .swf files. The Flash source file format is currently a binary file format based on the Microsoft Compound File Format. In Flash Pro CS5, the fla file format is a zip container of an XML-based project structure.
**.as** — .as files contain ActionScript source code in simple source files. FLA files ca... | [
0.5091814398765564,
-0.1331859529018402,
0.6579638123512268,
-0.14218296110630035,
-0.20544788241386414,
-0.1749570071697235,
0.03619711101055145,
-0.24498307704925537,
-0.258963018655777,
-0.39206966757774353,
-0.557918906211853,
0.4455280005931854,
-0.3095313012599945,
-0.138276249170303... | |
best way to start with Flash is to learn the Adobe Flash CS (<http://www.adobe.com/products/flash/>). | [
0.2355542778968811,
0.2373904138803482,
0.09315842390060425,
0.10906249284744263,
-0.27343595027923584,
-0.2850988805294037,
0.08100404590368271,
0.11238698661327362,
0.04048328474164009,
-0.7179417610168457,
-0.05906469747424126,
0.46407026052474976,
0.21864572167396545,
-0.27959907054901... | |
Does anyone have an Emacs macro for indenting (and unindenting) blocks of text?
And I mean "indent" in the commonly-understood sense, not in Emacspeak. In other words, I want to mark a region, press C-u 2, run this macro, and have it add two spaces before every line in the region.
Or press C-u -2 before running the m... | [
-0.0728422999382019,
-0.1312127411365509,
0.741172194480896,
0.026904823258519173,
0.23891030251979828,
0.13573041558265686,
0.017903096973896027,
0.1269453465938568,
-0.4460713863372803,
-0.5699423551559448,
-0.35645803809165955,
0.26249611377716064,
-0.1870342195034027,
-0.05143687129020... | |
of the standard emacs distribution.
Also, to have it complain/abort when there's not enough whitespace somewhere, you can do something like this: (quick ugly hack of the original indent-rigidly code)
```
(defun enough-whitespace-to-indent-p (start end arg)
(save-excursion
(goto-char end)
(setq end (point-ma... | [
-0.23595598340034485,
-0.1240754947066307,
0.3583950996398926,
-0.010635782964527607,
0.20801222324371338,
-0.07044259458780289,
0.3836814761161804,
-0.35299479961395264,
-0.24126112461090088,
-0.44203662872314453,
-0.47852152585983276,
0.5323071479797363,
-0.41158327460289,
-0.20672269165... | |
(start end arg)
(interactive "r\np")
(if (or (plusp arg) (enough-whitespace-to-indent-p start end arg))
(indent-rigidly start end arg)
(message "Not enough whitespace to unindent!")))
``` | [
-0.4417671263217926,
-0.08470599353313446,
0.28087669610977173,
-0.15767735242843628,
0.10874536633491516,
-0.0159375611692667,
0.5913189053535461,
-0.27149030566215515,
-0.3242696225643158,
-0.19504626095294952,
-0.8427277207374573,
0.473461389541626,
-0.6160120964050293,
-0.2377613037824... | |
I have a completed web app in PHP 5 + MySQL. I have not yet started its conversion, but it will migrate to ASP.NET MVC + MS SQL 2008. I'm not sure how to progress for the easiest transition:
1. Edit the PHP DAL for SQL Server. Migrate to the new db immediately
2. Leave the live code alone. Create ASP.NET MVC with a My... | [
0.252498060464859,
0.1167130395770073,
0.6900639533996582,
-0.16275006532669067,
-0.34346941113471985,
0.18912695348262787,
0.08863811939954758,
-0.2398202121257782,
-0.15149927139282227,
-0.7181731462478638,
0.17405052483081818,
0.262321799993515,
-0.10227451473474503,
-0.0850390270352363... | |
to take?
---
**Edit:** addressing Dave's question:
> How are you accessing the database? If you have really good separation
> between your code and database and are using stored procedures it would
> probably affect the answers given.
None of the ASP.NET MVC stuff has been written at all. There will have to be so... | [
0.3400266468524933,
-0.29033395648002625,
0.097235769033432,
0.345548152923584,
-0.11802283674478531,
-0.11140436679124832,
0.13286922872066498,
-0.3075498342514038,
0.09662462025880814,
-0.3453834354877472,
0.3751640021800995,
0.4102497696876526,
-0.3648015558719635,
-0.08003272116184235,... | |
invasive.
> Also what's your release plan? Will you be forced to release incrementally
> or do you plan on just "flipping the switch" one day?
Flipping the switch -- it's just a hobby site for my family. But I'm not opposed to leaving 1 db and both code sets live for a while until I feel confident that the new one i... | [
0.44069451093673706,
0.05799465626478195,
0.579328715801239,
0.1790192425251007,
-0.20356734097003937,
-0.5026386976242065,
0.1961895227432251,
0.0950123742222786,
-0.21463607251644135,
-0.3487491011619568,
0.5020660161972046,
0.6694084405899048,
-0.07302676886320114,
0.3361315429210663,
... | |
so I can't really ask them to install drivers for me. Looks like I unfortunately have my answer :(
The purists will suggest starting with TDD so you can have a gauge of when the migration is fairly complete by having all unit tests pass.
However, I would suggest that you start with the app from scratch in ASP.NET MVC ... | [
0.4279722571372986,
0.02091888338327408,
0.5017791986465454,
0.28571033477783203,
-0.18272896111011505,
0.2040708363056183,
-0.08735992014408112,
-0.19056914746761322,
-0.18287643790245056,
-0.7612991333007812,
0.10712756961584091,
0.8039437532424927,
-0.11554282158613205,
0.01487492211163... | |
studio surface designer. | [
0.4168110191822052,
0.3801186680793762,
-0.08207996934652328,
-0.13293208181858063,
0.5256355404853821,
0.3132510781288147,
-0.08576006442308426,
-0.16944095492362976,
-0.46968284249305725,
-0.7050966024398804,
-0.12603941559791565,
0.6306429505348206,
0.41783496737480164,
0.04392230138182... | |
I'm testing a ClickOnce application deployment. I have setup a virtual directory on my machine (running IIS). I have specified <http://localhost/SampleApplication> as the Installation Folder URL in the Publish tab of Visual Studio. However, when I publish the application I get the following error:
> Warning: Files co... | [
0.34491807222366333,
0.19231027364730835,
0.4551069438457489,
-0.1873926967382431,
-0.13761405646800995,
-0.13871268928050995,
0.2575812041759491,
-0.0028899055905640125,
-0.3380967378616333,
-0.6784837245941162,
0.07853805273771286,
0.2700735330581665,
-0.21379916369915009,
0.268397152423... | |
happening a week ago.
ClickOnce installation involves verifying that the server name matches the expected name. Thus localhost always gets translated under the covers to the computer name [not the username as you suggest in your question] (one of many confusing things ClickOnce does - one side effect of this is that if... | [
-0.12176084518432617,
-0.08899709582328796,
0.6700531840324402,
0.13194294273853302,
0.1784176528453827,
-0.49491822719573975,
0.14108610153198242,
0.4555295705795288,
-0.5350744724273682,
-0.5261653065681458,
0.05326045677065849,
0.3928608298301697,
-0.20142224431037903,
0.213081479072570... | |
being diverted via a proxy such as Microsoft ISA Server. Have a look in your IE Internet Options Connections Proxy Settings and make sure its bypassing for local addresses [such as `chrish`].
The reason it's reporting success is that the upload likely uses an alternate mechanism than the verification does and isn't be... | [
-0.05410829558968544,
-0.3992273211479187,
0.8212400078773499,
0.28903698921203613,
0.008631072007119656,
-0.11572153121232986,
0.21407833695411682,
0.30436038970947266,
-0.2771107852458954,
-0.45077142119407654,
-0.13145439326763153,
0.33060845732688904,
-0.3080246150493622,
0.08913034200... | |
extra code that does send the proxy credentials](<http://blogs.msdn.com/jpsanders/archive/2009/03/24/httpwebrequest-webexcepton-the-remote-server-returned-an-error-407-proxy-authentication-required.aspx>). See also [How should I set the default proxy to use default credentials?](https://stackoverflow.com/questions/2999... | [
-0.019197192043066025,
-0.0729561373591423,
0.43494606018066406,
0.261207640171051,
0.2922845184803009,
-0.05139780789613724,
0.33719250559806824,
-0.16416305303573608,
-0.2854744493961334,
-0.4428524971008301,
-0.2988172769546509,
0.6768466234207153,
-0.14655333757400513,
-0.1403494477272... | |
I'm trying to retrieve the amount of memory my iPhone app is using at anytime, programmatically. Yes I'm aware about ObjectAlloc/Leaks. I'm not interested in those, only to know if it's possible to write some code and get the amount of bytes being used and report it via NSLog.
Thanks.
To get the actual bytes of memory... | [
0.29283151030540466,
0.5837035775184631,
0.18724973499774933,
0.11208681762218475,
0.020587226375937462,
-0.031274814158678055,
0.29698553681373596,
0.19251328706741333,
-0.2609887421131134,
-0.7985764741897583,
0.057539694011211395,
0.9540314078330994,
-0.18610771000385284,
0.093441516160... | |
struct task_basic_info info;
mach_msg_type_number_t size = TASK_BASIC_INFO_COUNT;
kern_return_t kerr = task_info(mach_task_self(),
TASK_BASIC_INFO,
(task_info_t)&info, | [
-0.5579526424407959,
0.04103190079331398,
0.7647883296012878,
-0.14104169607162476,
-0.3595445156097412,
0.3815021514892578,
0.22353942692279816,
-0.4971955418586731,
-0.10775846987962723,
-0.6935179233551025,
-0.07098381966352463,
0.6645296812057495,
0.07890632748603821,
0.137618586421012... | |
&size);
if( kerr == KERN_SUCCESS ) {
NSLog(@"Memory in use (in bytes): %lu", info.resident_size);
NSLog(@"Memory in use (in MiB): %f", ((CGFloat)info.resident_size / 1048576));
} else {
NSLog(@"Error with task_info(): %s", mach_error_string(kerr));
}
}
```
There is also a field in the structure info... | [
-0.2782384157180786,
0.13082009553909302,
0.7505308389663696,
-0.008549196645617485,
0.3525488078594208,
0.3798263370990753,
0.19516132771968842,
-0.1529247760772705,
-0.5564503073692322,
-0.5884521007537842,
-0.23154911398887634,
0.5358597636222839,
-0.09855928272008896,
0.165489733219146... | |
available to the device and what type of memory it is. | [
0.06417158246040344,
0.20436203479766846,
0.26983335614204407,
0.32387152314186096,
0.5127688050270081,
0.09365589916706085,
-0.5084867477416992,
0.35245341062545776,
-0.18928658962249756,
-0.5792965292930603,
-0.36402663588523865,
0.36082923412323,
0.31532689929008484,
0.0963374525308609,... | |
Would be gratefull for some advice on the following - Is it possible to validate email and postcode fields through some kind of check constraint in the sql in oracle ? or this kind of thing as i suspect pl/sql with regular expressions ?
Thanks
If you're only concerned with the US, there are several sources of zip code... | [
0.5244008898735046,
0.3056434392929077,
0.09543247520923615,
0.3279356360435486,
0.07946432381868362,
-0.2937110364437103,
-0.03057781234383583,
-0.13287106156349182,
-0.194746732711792,
-0.314546138048172,
0.005655147135257721,
0.4463302195072174,
0.01675025373697281,
-0.2276073545217514,... | |
to see if they are actual addresses is a much more difficult task. | [
0.48567667603492737,
0.2407776117324829,
0.11000744998455048,
0.29014965891838074,
0.2042095810174942,
0.24672658741474152,
0.07064846903085709,
-0.007240622770041227,
-0.024085339158773422,
-0.6592212319374084,
-0.18700027465820312,
0.14784839749336243,
0.3561573326587677,
0.0451284013688... | |
I need to give a short presentation (2-4 hours) on Test-Driven Development and need to come up with a small class that I can build using the TDD methodology. The class has to be relatively small, but "sell" the concept of TDD.
If anyone has read James Newkirk's book, Test-Driven Development for in Microsoft.Net, the S... | [
0.4935666620731354,
0.13394981622695923,
-0.4425746202468872,
0.14733034372329712,
-0.2028709203004837,
-0.10744602233171463,
0.10149805247783661,
-0.2194935530424118,
0.13948954641819,
-0.4503374397754669,
0.1674853414297104,
0.516436755657196,
-0.08171367645263672,
0.06578681617975235,
... | |
few good ideas for a sample class.
Thanks.
How about using the [1st section of Kent Beck's Money example](http://www.amazon.co.uk/Test-Driven-Development-Addison-Wesley-signature/dp/0321146530). It starts out very simply but when you arrive at addition of two different currencies, TDD suddenly shows you the falisity o... | [
0.39089658856391907,
-0.36402133107185364,
-0.1983974426984787,
0.49263298511505127,
-0.23468643426895142,
0.02760671079158783,
-0.1839967519044876,
0.13930845260620117,
-0.3259296417236328,
-0.39880549907684326,
0.31003665924072266,
0.2444097101688385,
0.06648505479097366,
0.1621236354112... | |
to design the two scenarios using whatever methods they find appropriate. You then would show the TDD way of designing them.
The real WTF moment for me with TDD was when Beck removed the two subclasses of Money, and the tests worked. This is not a trivial action; the man deleted two classes! The confidence to do some... | [
0.5078546404838562,
-0.2597096264362335,
-0.3239887058734894,
-0.03663833439350128,
0.041986845433712006,
-0.28995922207832336,
0.4572180509567261,
-0.6585686206817627,
0.08194468915462494,
-0.5323321223258972,
0.3397379219532013,
0.864625871181488,
-0.11185373365879059,
-0.204180851578712... | |
I made a `CollectionToStringConverter` which can convert any `IList` into a comma-delimited string (e.g. "Item1, Item2, Item3").
I use it like this:
```
<TextBlock Text="{Binding Items,
Converter={StaticResource CollectionToStringConverter}}" />
```
The above works, but only once when I load the ... | [
0.016513196751475334,
-0.2898608446121216,
0.7321131825447083,
-0.06972038000822067,
-0.1512233316898346,
-0.17528864741325378,
0.03226592019200325,
-0.325166255235672,
-0.22217974066734314,
-0.5508731007575989,
-0.3094280958175659,
0.4661344289779663,
-0.3035658597946167,
0.27102166414260... | |
the collection instance itself changes, not when items in the collection are changed.
There are quite a few ways to achieve the behavior you want, including:
1) Bind an `ItemsControl` to the collection and configure the `ItemTemplate` to output the text preceded by a comma if it's not the last item in the collection.... | [
-0.15206493437290192,
-0.4400891959667206,
0.4762069582939148,
0.20820918679237366,
0.19291171431541443,
0.06592628359794617,
-0.12640339136123657,
-0.28383082151412964,
-0.44172734022140503,
-0.8488093614578247,
-0.2345716953277588,
0.2751760482788086,
-0.24280142784118652,
0.299523293972... | |
.}"/>
</TextBlock>
</ItemsControl.ItemTemplate>
</ItemsControl>
```
2) Write code in your code-behind to watch the collection for changes and update a separate property that concatenates the items into a single `string`. Something like:
```
public ctor()
{
_items = new ObservableCollection<string... | [
0.06925167143344879,
-0.3189180791378021,
0.7083955407142639,
0.007937478832900524,
0.025771649554371834,
0.08974450081586838,
0.1523214876651764,
-0.7251409888267517,
-0.5330525040626526,
-0.7818484306335449,
-0.17100705206394196,
0.41930893063545227,
-0.4595130980014801,
0.22970648109912... | |
maintains a separate concatenated string similar to #2. | [
-0.07633045315742493,
-0.019619816914200783,
0.16539527475833893,
-0.1317349672317505,
-0.051298223435878754,
-0.2868705689907074,
0.294233500957489,
0.10510881245136261,
-0.11065831035375595,
0.0421072356402874,
-0.5196316242218018,
0.22884206473827362,
-0.24588221311569214,
-0.1203739941... | |
I have read arguments on both sides about whether one should link to the C runtime library statically or dynamically in Visual Studio projects, and I'm still not entirely sure what to think.
My project pulls in some third-party libraries (Python, HDF5, Trilinos, and Microsoft MPI), each of which has to be built with t... | [
0.5488365292549133,
0.18199627101421356,
0.04462839290499687,
0.008418642915785313,
-0.11554056406021118,
-0.07117477059364319,
-0.1957424134016037,
0.16511547565460205,
-0.0781751498579979,
-0.5711545944213867,
-0.015044406056404114,
0.6716213226318359,
-0.48539862036705017,
0.16545809805... | |
the runtime, none of which can interact with each other. But wouldn't the linker complain if the same symbols were multiply defined?
I would like to avoid "DLL Hell" but am worried about insidious errors that could arise from statically linking in multiple copies of the runtime. Am I reading things wrong?
Also, I'm u... | [
0.2321407049894333,
0.10407617688179016,
0.4049701392650604,
-0.05245069041848183,
-0.33011260628700256,
-0.19308364391326904,
0.4946584701538086,
-0.07382076233625412,
-0.31822922825813293,
-0.6533610820770264,
-0.2247033715248108,
0.7865198254585266,
-0.7596941590309143,
-0.1253313124179... | |
all your EXEs and DLLs, and can cause crashes (eg. if code in one DLL calls free() with a pointer allocated by malloc() in a different DLL).
You can get the best of both worlds by linking dynamically and deploying the runtime DLLs as private assemblies. This simply means putting a copy of a specially-named directory c... | [
0.35033005475997925,
0.029526041820645332,
0.19532153010368347,
0.09724555164575577,
-0.10621965676546097,
-0.050783608108758926,
0.2608887553215027,
0.002632308751344681,
-0.44390735030174255,
-0.717763364315033,
-0.1527242511510849,
0.62309730052948,
-0.6152005791664124,
0.17373189330101... | |
the target machine needs the correct versions of the runtime DLLs to work, but by deploying them as private assemblies, you guarantee that.
Another benefit is that non-admin users can install your app (not into Program Files, but elsewhere) - they don't need permission to write files into the WinSxS area. | [
0.34321534633636475,
0.20829877257347107,
0.44375696778297424,
0.19584105908870697,
0.224903404712677,
-0.10068447142839432,
0.05572282895445824,
0.08730800449848175,
-0.11962192505598068,
-0.7496393322944641,
-0.5320624709129333,
0.6767199039459229,
-0.27699515223503113,
-0.33235013484954... | |
I have a constant data flux. All data must be stored into the database with a timestamp. The data comes in a 5 minutes interval, and a select of the latest data is made in the same interval, in pseudo SQL code:
```
SELECT * FROM TB_TABLE WHERE TIMESTAMP = MAX(TIMESTAMP)
```
As this table grows really big (gigabytes)... | [
0.4832844138145447,
0.17443807423114777,
0.4252823293209076,
0.029305405914783478,
0.21079261600971222,
0.07733404636383057,
0.16712984442710876,
-0.1343759447336197,
-0.13964635133743286,
-0.5166765451431274,
0.16493192315101624,
0.35512036085128784,
-0.08714707940816879,
0.34260854125022... | |
that it improved my application performance. As general guidelines, would you recommend what I did?
**Update** BTW I use MS SQL Server 2005 and .NET C# Linq-To-Sql
I wonder if table partitioning would be helpful. I haven't personally used it so cannot speak from experience, but this sounds like the appropriate situati... | [
0.23067006468772888,
0.3148198127746582,
0.1446150690317154,
-0.13191762566566467,
-0.021451380103826523,
-0.16270409524440765,
-0.043007418513298035,
0.06390645354986191,
0.01755143143236637,
-0.3660305440425873,
0.31149008870124817,
0.6834099888801575,
0.22256949543952942,
-0.23430649936... | |
Listening to a podcast, I heard that C# is not dynamic language while Ruby is.
What is a "dynamic language"? Does the existence of dynamic languages imply that there are static languages?
Why is C# a dynamic language and what other languages are dynamic? If C# is *not* dynamic, why is Microsoft pushing it strongly to... | [
0.13141052424907684,
-0.22555401921272278,
0.04152362421154976,
0.25278109312057495,
-0.21735802292823792,
-0.23679839074611664,
0.1870165765285492,
0.3730910122394562,
-0.39554330706596375,
-0.2717798352241516,
-0.16577278077602386,
0.6414502263069153,
-0.5595538020133972,
0.1548428088426... | |
compiler does: static or late binding.
Static binding simply means that the method (or method hierarchy for virtual methods) is bound at compile time. There may be a virtual dispatch involved at runtime but the method token is bound at compile time. If a suitable method does not exist at compile time you will receive... | [
-0.01764158345758915,
-0.11663996428251266,
0.013424591161310673,
0.11463633179664612,
-0.5459817051887512,
-0.15961524844169617,
0.1932780146598816,
0.13631439208984375,
-0.14249370992183685,
-0.15223796665668488,
-0.018572436645627022,
0.34344542026519775,
-0.6736183166503906,
-0.0444520... | |
a statically bound language and hence is not a dynamic language.
Why is Ruby the language of the future?
---------------------------------------
This question is based on a false premise, namely that there does exist one language that is the future of programming. There isn't such a language today because no single ... | [
-0.02314559370279312,
-0.21608471870422363,
0.2481052279472351,
0.42192432284355164,
0.07657883316278458,
-0.10259844362735748,
0.31269094347953796,
0.5075223445892334,
-0.3190542459487915,
-0.4985186457633972,
-0.193255215883255,
0.3007897138595581,
-0.681654155254364,
0.2536017596721649,... | |
I have the following XML document:
```
<?xml version="1.0" encoding="UTF-8"?>
<FamilyTree>
<Parent name="Ken">
<Child name="Lorna">
<Grandchild name="Andrew"/>
<Grandchild name="Brian"/>
</Child>
<Child name="Mike">
<Grandchild name="Ann"/>
<Grandchild name="Beth"/>
</Child>
... | [
0.03565913811326027,
0.39258578419685364,
0.3114909529685974,
-0.3488175570964813,
0.2934325337409973,
0.30061694979667664,
-0.023815486580133438,
-0.25460541248321533,
0.24343335628509521,
-0.8471894264221191,
-0.06018872559070587,
0.1294872760772705,
0.04334285482764244,
0.35332369804382... | |
<Child name="Robert">
<Grandchild name="Debbie"/>
<Grandchild name="Eric"/>
</Child>
<Child name="Susan">
<Grandchild name="Frank"/>
</Child>
</Parent>
<Parent name="Tom">
<Child name="Ursula">
<Grandchild name="George"/>
<Grandchild name="Harriet"/>
</Child>
<C... | [
-0.13314633071422577,
0.5539922118186951,
0.33949145674705505,
-0.04095350578427315,
0.38008448481559753,
0.4877021014690399,
0.3409000635147095,
-0.39391282200813293,
-0.6509582996368408,
-0.21011434495449066,
0.0184964407235384,
0.12274841219186783,
-0.03247804939746857,
0.95760077238082... | |
who has at least two children ("Grandchild") of his/her own. Note that I'm *not* looking for "Parents" with at least two "Grandchild[ren]".
The following LINQ query works, but I've a feeling it's not the most elegant.
```
IEnumerable<XElement> parents = (from c in familyTreeElement.Descendants("Child")
... | [
0.2002936452627182,
0.10299704968929291,
0.24107418954372406,
-0.06061109900474548,
0.43065953254699707,
-0.012558400630950928,
-0.12380241602659225,
-0.10196815431118011,
-0.2001935988664627,
-0.5095073580741882,
-0.3082275390625,
0.0831567645072937,
0.07013463973999023,
0.290528327226638... | |
select c.Parent).Distinct();
```
Is there a better way to specify this?
Ahh the edit (2 grand-children) helps ;-p
While `XDocument` is useful, at times I miss XPath/XQuery. With `XmlDocument` you could just use `doc.DocumentElement.SelectNodes("Parent[Child/Grandchild[2]]")`. | [
-0.046598248183727264,
-0.08556415140628815,
0.3496261239051819,
0.030951786786317825,
0.29461365938186646,
-0.11514761298894882,
-0.3573530912399292,
-0.15531118214130402,
-0.015418660826981068,
-0.5270293951034546,
-0.3181024491786957,
0.3235129117965698,
-0.0938408374786377,
0.461326926... | |
I'm using [Pisa/XHTML2PDF](http://www.xhtml2pdf.com/) to generate PDFs on the fly in Django. Unfortunately, I need to include SVG images as well, which I don't believe is an easy task.
What's the best way to go about either a) converting the SVGs to PNG / JPG (in Python) or b) including SVGs in the PDF export from Pis... | [
0.08704824000597,
-0.08077980577945709,
0.5018256306648254,
-0.007361987605690956,
-0.874822199344635,
-0.14569741487503052,
-0.12347758561372757,
-0.186055988073349,
-0.33442240953445435,
-0.5247800350189209,
-0.23682793974876404,
0.4164968729019165,
-0.47928860783576965,
-0.0215766299515... | |
import gdk`, suggested by [Lukasz](https://stackoverflow.com/users/211413/lukasz), is necessary and has to precede creation of the pixbuf, otherwise you will not get the `save` method, as observed by [the original poster](https://stackoverflow.com/users/22468/nick-sergeant). | [
-0.3022661805152893,
0.008485937491059303,
0.3282817304134369,
-0.1703399121761322,
0.15517869591712952,
-0.05472717806696892,
0.20231691002845764,
0.03089856170117855,
-0.2489456683397293,
-0.4403741657733917,
-0.6747984886169434,
0.32128283381462097,
-0.5855804085731506,
-0.1532290577888... | |
I may be wrong, but all(?) examples I've seen with Apache Hadoop takes as input a file stored on the local file system (e.g. org.apache.hadoop.examples.Grep)
Is there a way to load and save the data on the Hadoop file system (HDFS)? For example I put a tab delimited file named 'stored.xls' on HDFS using `hadoop-0.19.1... | [
0.2713695764541626,
-0.08555097132921219,
-0.07096768170595169,
-0.14124321937561035,
-0.3705361485481262,
-0.19637127220630646,
0.31787458062171936,
-0.0058995443396270275,
-0.22658495604991913,
-0.7601785659790039,
0.019495131447911263,
0.5737094879150391,
-0.22421284019947052,
-0.030883... | |
around passing the string into do\_stuff either by reference or by value - if I use the original code, it complains about the buffer overflow but if I pass the string in by *value*, it runs fine. This is with the multithreaded debug DLL runtime. The error disappears when you like against the static MT Debug runtime.
I... | [
0.517127275466919,
-0.02237248793244362,
0.30416980385780334,
-0.21116089820861816,
0.00544343888759613,
-0.21128438413143158,
0.4593333601951599,
0.2945657968521118,
-0.26655352115631104,
-0.4544389843940735,
0.06891176104545593,
0.3363431692123413,
-0.45010697841644287,
0.222183391451835... | |
actually residing in the runtime library if you build with the debug DLL runtimes (just try to link a VS2008-generated binary against an earlier library and watch out for the unresolved externals to confirm this). | [
0.2808975875377655,
-0.10291004180908203,
0.013539044186472893,
0.28898271918296814,
0.06817872822284698,
-0.3776295781135559,
0.25331318378448486,
0.19529247283935547,
-0.2189258486032486,
-0.5528310537338257,
-0.19989223778247833,
0.25386884808540344,
-0.08895551413297653,
0.289547830820... | |
I want to return the TOP 100 records using Linq.
Use the Take extension method.
```
var query = db.Models.Take(100);
``` | [
0.10770367830991745,
0.15703709423542023,
0.5260018706321716,
-0.19214843213558197,
0.23335115611553192,
0.07188918441534042,
0.17553935945034027,
-0.3267074525356293,
0.1880808174610138,
-0.39057376980781555,
0.1490590125322342,
0.44871896505355835,
-0.2904757857322693,
0.0844007059931755... | |
Is there any library or software or any way of saving the state of a single process in Windows to a file, then restoring the running process to a running state with all the memory already loaded at a later time?
I am aware that open handles will have to be re-opened, threads may have to started, etc, but can the heap ... | [
0.26269444823265076,
-0.020758867263793945,
0.030833395197987556,
0.1415303647518158,
0.22008633613586426,
-0.03703293576836586,
0.08167296648025513,
0.10930503904819489,
-0.7842816710472107,
-0.20046980679035187,
-0.21033550798892975,
0.31289392709732056,
-0.0964529737830162,
0.3185879588... | |
do it myself, but I'd like to know if it is possible without that.
[Raymond Chen](http://en.wikipedia.org/wiki/Raymond_Chen_(Microsoft)) (who may even kick Jon Skeet's ass when it comes to obscure Windows knowledge) says [it isn't possible](http://blogs.msdn.com/oldnewthing/archive/2004/04/20/116749.aspx).
Essentiall... | [
0.2058497816324234,
0.4597925543785095,
0.0047677066177129745,
0.03319501504302025,
0.12986938655376434,
-0.20911073684692383,
0.5804822444915771,
0.04468434676527977,
-0.6249278783798218,
-0.41588371992111206,
-0.2997845709323883,
0.3245415985584259,
-0.11336963623762131,
0.18280933797359... | |
use the [VMWare VIX API](http://www.vmware.com/support/developer/vix-api/) to suspend/resume the VM programmatically.
* This of course suspends the guest OS, and your process with it, solving the OS state problem. | [
0.3981955349445343,
0.20592212677001953,
0.613545298576355,
-0.023394741117954254,
0.16509655117988586,
-0.5103752613067627,
0.4583893418312073,
0.30837374925613403,
-0.5879678726196289,
-0.15807224810123444,
-0.773706316947937,
0.5844026207923889,
-0.31981316208839417,
0.48996537923812866... | |
We started using C# (.NET 3.0) and I wonder how you guys are using extension methods? When do you use them?
Also, I would appreciate if you also list all dark prerequisites for using them.
Extension methods allow existing classes to be extended without relying on inheritance or having to change the class's source cod... | [
0.6506788730621338,
-0.20336118340492249,
0.03568729758262634,
0.008612608537077904,
0.0829022154211998,
-0.30192455649375916,
0.08132091164588928,
0.03794020786881447,
-0.39775991439819336,
-0.45813772082328796,
0.10794119536876678,
0.6687182784080505,
-0.4053516983985901,
0.0545353479683... | |
methods
* An extension method with the same name and signature as an instance method will not be called
* The concept of extension methods cannot be applied to fields, properties or events
* Use extension methods sparingly....overuse can be a bad thing! | [
0.3088415861129761,
0.07705873996019363,
0.3138582706451416,
0.11208634823560715,
-0.06028146669268608,
-0.28603509068489075,
0.6554363965988159,
0.17289535701274872,
-0.24237728118896484,
-0.40944936871528625,
-0.2767302691936493,
0.26565614342689514,
-0.4896348714828491,
0.22215956449508... | |
I've successfully made several Visual Studio debugger visualizers, and they're working very well, except that on some objects I get a time out error when I try to deserialize the object with `objectProvider.GetObject()`
```
System.Exception: Function evaluation timed out.
at Microsoft.VisualStudio.DebuggerVisualizer... | [
0.13867025077342987,
-0.0008150844951160252,
0.4505378305912018,
-0.014353631064295769,
0.16152140498161316,
-0.021099265664815903,
0.40288761258125305,
-0.14504946768283844,
-0.2336140125989914,
-0.8201884627342224,
0.03536602109670639,
0.5241076946258545,
0.1668194979429245,
0.0715352967... | |
else can I do to get the data to deserialize without timing out?
```
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger
```
I think this is not documented, but you can try changing some of the Timeouts in the above registry key, and restart Visual Studio. | [
0.4206642508506775,
0.26479947566986084,
0.19406649470329285,
0.015005391091108322,
0.002522561699151993,
-0.29766321182250977,
0.386825829744339,
0.1674654483795166,
-0.1475071907043457,
-0.9114484786987305,
-0.023049160838127136,
0.8920213580131531,
-0.07052360475063324,
0.29112920165061... | |
This way lies madness, I know.
I have an executable (the source code to which I do not have access) that I would like to extend via .NET. It's a native executable, so I would need to inject a CLR host in order to do this. My basic idea is to provide scripting-like functionality via a .NET language (C#, for example) an... | [
0.6137619018554688,
0.1875504106283188,
0.29817700386047363,
0.20380908250808716,
0.16790612041950226,
-0.13533322513103485,
0.28022003173828125,
0.0006301178364083171,
-0.11199750006198883,
-0.301743745803833,
0.1793546825647354,
0.6555213928222656,
-0.4899218678474426,
0.2869684994220733... | |
this: is what I'm talking about possible? Better still - has anyone done something like this before?
You can do this using COM interop, if your native executable is capable of using COM objects. If you register your .NET assembly for interop then your native executable can use your .NET classes just like "ordinary" COM... | [
0.414783239364624,
-0.07954312115907669,
0.09223806858062744,
0.21536631882190704,
-0.12400663644075394,
0.03326161950826645,
-0.16541247069835663,
-0.07153991609811783,
-0.4493998885154724,
-0.8506895303726196,
-0.07337628304958344,
0.5735021233558655,
-0.4357817471027374,
0.2389237880706... | |
without a type library, if you use only IDispatch).
The basics are straightforward but I'm just scratching the surface - for a serious project like this you need a serious reference. I highly recommend [.NET and COM, The Complete Interoperability Guide](https://rads.stackoverflow.com/amzn/click/com/067232170X) by Ada... | [
0.4326079785823822,
0.22811728715896606,
0.19054894149303436,
0.12265580892562866,
-0.12593059241771698,
-0.12786854803562164,
0.4777196943759918,
-0.18276453018188477,
0.008528142236173153,
-0.41172873973846436,
0.0513962097465992,
0.5560283660888672,
-0.4124090075492859,
-0.1025471985340... | |
start with the COM interop route, and only host the CLR natively if you have no other option. | [
0.2300540953874588,
-0.04012291133403778,
0.6488428115844727,
0.06847777962684631,
0.19513092935085297,
-0.11305054277181625,
-0.19682881236076355,
0.4629756808280945,
-0.22845488786697388,
-0.7715774774551392,
-0.5157027840614319,
0.5456483364105225,
-0.22098001837730408,
0.09077604115009... | |
I want to write a Flash applet(or any other possible app) to embed in my website that will play part of a video (for example: from the 0:20 to 0:40). The video is in MPEG format. I'm new to Flash - any suggestions on how to get started on this?
Well, if you're new to flash (as the edit says;) ), this might be a bit too... | [
0.5780680179595947,
0.14731334149837494,
0.7143245935440063,
0.026667024940252304,
0.010696033015847206,
-0.3164293169975281,
-0.2707088887691498,
-0.008142126724123955,
-0.2899904251098633,
-0.6532268524169922,
-0.05398998409509659,
0.9808363914489746,
-0.1927996724843979,
-0.102305315434... | |
server (media temple has a cheap one if it's just for personal use) you can then call netStream.play(flvName, startPosition); and add a listener to stop it when it reaches the point you wanted to stop it at using a cuePoint.
There's an example here:
<http://www.actionscript.org/forums/showthread.php3?p=875934> | [
0.15681804716587067,
-0.3656998574733734,
0.5515562295913696,
0.00910627655684948,
-0.2621143162250519,
0.0026393781881779432,
0.13264580070972443,
-0.1792374849319458,
-0.48096737265586853,
-0.5242877006530762,
0.1008470356464386,
0.4239271283149719,
-0.3451484441757202,
0.029979096725583... | |
I'm trying to determine the regular expression to verify that a string has at least one alphabetic character.
Try this
```
"^.*[a-zA-Z].*$"
```
This will work with most regex engines. However it is limited to ASCII alphabetical characters. For international characters we'd need to know the regex engine involved. | [
0.0868317186832428,
-0.02029328979551792,
0.22217310965061188,
-0.04071255028247833,
-0.12251575291156769,
0.003518113400787115,
0.02885103039443493,
0.2747890055179596,
-0.14409427344799042,
-0.3826209306716919,
-0.18442314863204956,
0.40400055050849915,
-0.4576762020587921,
-0.0166466701... | |
I would like to know if it is possible using IIS and ASP.NET (and ideally something that might be employed on a shared hosting account, but this isn't required) to mimic WordPress.com's ability to allow end users to use their own domain names.
WordPress has users who own their own domains change the domain's DNS setti... | [
0.6439386010169983,
-0.21420398354530334,
0.3246881663799286,
0.1829400658607483,
-0.07658720761537552,
-0.15531639754772186,
0.23647361993789673,
0.2660143971443176,
-0.2987290024757385,
-0.7180706262588501,
0.1329890638589859,
0.27826300263404846,
-0.15780115127563477,
0.4791912436485290... | |
is this something that might be automated programmatically on perhaps a VPS?
> My guess is this is not something that would be able to be done on a shared hosting account
You're nearly correct. The default site in IIS listens to all connections on port 80 for the default IP address.
You can add more sites in 3 ways:... | [
0.2888175845146179,
-0.08014020323753357,
0.34512412548065186,
0.12450358271598816,
-0.23250654339790344,
-0.40071678161621094,
0.6508192420005798,
-0.3342311680316925,
-0.31593436002731323,
-0.7085029482841492,
0.14077824354171753,
0.8977572321891785,
-0.5008518099784851,
0.20239418745040... | |
new IP addresses independently.
3. Add new sites to the server listening to different "host headers" (domain names to you and I) but on the same (default) IP address .
So called "Shared hosting" usually uses options 3, because a hosting company can get away with only using a single IP address for possibly hundreds of ... | [
0.5471825003623962,
-0.028805775567889214,
0.3111126720905304,
0.05009090155363083,
-0.2660176455974579,
-0.4597568213939667,
0.36059796810150146,
-0.21953997015953064,
-0.2935308814048767,
-0.9148674011230469,
-0.02201039530336857,
0.33976423740386963,
-0.3815970718860626,
0.2103312760591... | |
ISAPI module to intercept the calls and set up some clever (ish) database/hash table of domain names and target folders to server as the different sites.
Bottom line is, there are various ways to achieve this on Windows. Probably none quite as easy as on a \*nix platform where everything is super-scriptable. | [
0.08247270435094833,
-0.27529093623161316,
0.25417888164520264,
0.24602000415325165,
0.010863590985536575,
-0.3535679280757904,
0.3227941691875458,
-0.05947895720601082,
0.13150513172149658,
-0.61430424451828,
0.1998741328716278,
0.6842864751815796,
-0.5596297979354858,
-0.2755275368690491... | |
Working with SSRS and a SQL 2000 source, I have a stored procedure that takes three parameters and returns a result set.
I have a dataset with the *Command Type* set to *StoredProcedure* and the procedure name in the *Query String*.
When I attempt to execute the procedure in Visual Studio/BIDS, the *Define Query Para... | [
0.20652537047863007,
-0.032857783138751984,
-0.018812395632267,
-0.14303454756736755,
-0.17651362717151642,
0.2551247477531433,
0.15836288034915924,
-0.6597527265548706,
-0.252219021320343,
-0.6281671524047852,
0.2661231458187103,
0.7118330001831055,
-0.3375808894634247,
-0.120264992117881... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.