text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Is there a way to query the current DATEFORMAT SQLServer 2005 is currently using with T-SQL?
I have an application that reads pregenerated INSERT-statements and executes them against a database. To make the data to be inserted culture independent I store datetime-values represented in the invariant culture (month/day/... | [
0.20982666313648224,
0.1372135430574417,
0.3102022707462311,
-0.049657005816698074,
-0.09266465157270432,
0.1246454119682312,
0.0021865020971745253,
-0.09777070581912994,
-0.02067018672823906,
-0.1482183188199997,
0.38656380772590637,
0.2948814928531647,
-0.3686268925666809,
0.195813402533... | |
to make these changes permanent (are they permanent?), so I'm looking for a way to read the DATEFORMAT from the DB, store it, change the format to my liking and reset it to the stored value after the data has been inserted.
Any ideas where to find that value in the server?
Set Language and Set DateFormat only affect t... | [
0.30484387278556824,
0.09258875995874405,
0.8214144110679626,
-0.048251986503601074,
0.20312349498271942,
-0.15970298647880554,
0.25572678446769714,
-0.038372620940208435,
-0.2449127584695816,
-0.4591829180717468,
-0.10586944967508316,
0.556803286075592,
-0.16138456761837006,
0.36055546998... | |
either way. It's Jan 2, or Feb 1. If this query returns a 1, then you have MDY. If it returns a 2, you have DMY. | [
0.06948354095220566,
-0.04302489385008812,
0.8908581733703613,
0.10448078066110611,
-0.04473667964339256,
0.15856370329856873,
-0.05949673056602478,
0.18041019141674042,
-0.43499600887298584,
-0.7686262130737305,
-0.19436539709568024,
0.15190407633781433,
0.08118659257888794,
0.52195739746... | |
I know Windows has SMTP capabilities under IIS, but I thought a basic SMTP would be a good project for learning Windows application development. I don't want a relay. I want an actual SMTP server that will send email from localhost anonymously. Obviously, it is only to be used for routing emails sent during a developme... | [
0.3813936710357666,
-0.201588436961174,
0.29948315024375916,
-0.03293899819254875,
-0.4184771776199341,
-0.41881752014160156,
0.6622563004493713,
0.052855413407087326,
-0.4084349572658539,
-0.56186443567276,
0.11025603115558624,
0.17442233860492706,
-0.5191941857337952,
0.2510661780834198,... | |
the SMTP protocol (or at least a reasonable subset of it). If you're familiar with C++, you could grab the source code for [Blat](http://sourceforge.net/projects/blat) to get an idea of how to create a simple mailing system. | [
0.5583300590515137,
-0.2839827537536621,
0.13405701518058777,
0.1142275482416153,
-0.18815387785434723,
-0.4207255244255066,
0.2799936532974243,
0.37617337703704834,
-0.3146754801273346,
-0.36379140615463257,
-0.3119152784347534,
-0.16750168800354004,
-0.5829077363014221,
-0.03669531643390... | |
I have a program in which the user adds multiple objects to a scene. These objects are all represented as a classes.
Now I want the user to be able to save the scenario, so it can be loaded again.
Is there some genereic save method I can use, or do I have to write my own that saves the values of all properties and su... | [
0.3699433207511902,
-0.08807122707366943,
-0.1059071272611618,
0.38964003324508667,
-0.11898526549339294,
0.11784248054027557,
0.07830771058797836,
0.15274891257286072,
-0.5025987029075623,
-0.7485792636871338,
0.13152651488780975,
0.5968700051307678,
-0.3057502508163452,
0.032113309949636... | |
SQL compact 3.5 database right now. So if anyone knows how to serialize to SQL, that would be great info.
Edit 2: Thanks again! I'm going to serialize to xml, then store it as a string to the SQL database.
Assuming your objects have all values available as public properties, you can use an XMLSerializer to convert the... | [
0.2624133229255676,
0.12241648882627487,
0.5707260370254517,
0.15041746199131012,
-0.20871031284332275,
-0.5535838603973389,
0.16816623508930206,
-0.19376793503761292,
-0.2696123719215393,
-0.4650646448135376,
-0.08094795793294907,
0.6304047107696533,
-0.35115334391593933,
-0.0759110748767... | |
these serialization techniques to store the string into a database. Another option would be to use an ORM (Object Relational Mapper) to bridge the gap between your objects and the databases. | [
0.19017380475997925,
-0.25521478056907654,
0.07068624347448349,
0.4437981843948364,
-0.02409151941537857,
-0.2199082374572754,
-0.05274290591478348,
-0.030626418069005013,
-0.6208665370941162,
-0.6699821352958679,
-0.08112725615501404,
0.3249812722206116,
-0.27521148324012756,
0.1683842241... | |
Access can open DBF (dBase) files, but instead of physically converting the data into MDB format, it has the ability to link to the DBF table itself. This way the DBF is "linked" to the MDB.
Is it possible to attach a DBF file in such manner using C#?
**Edit**: I would like to use Jet and avoid using MS Access direct... | [
0.03700818121433258,
0.22551843523979187,
0.4629836678504944,
0.2684059739112854,
-0.1367502212524414,
-0.20819145441055298,
-0.053830359131097794,
-0.007556498516350985,
-0.23403775691986084,
-0.7108164429664612,
-0.11599817872047424,
0.2826988399028778,
-0.3114260137081146,
0.37637460231... | |
TransferDatabase
> method by passing it a DSN (pointing
> to the source database), a source
> table name and target table name. The
> code is as follows:
```
Public Function Import(dsnName As String, sourceTableName As String, targetTableName As String)
‘ if the table already existsm, delete it.
On Error GoTo C... | [
-0.26056650280952454,
-0.1349889189004898,
0.830008327960968,
0.15174520015716553,
-0.10119051486253738,
-0.030680691823363304,
-0.08350683748722076,
-0.44792529940605164,
-0.06263858079910278,
-0.6734506487846375,
-0.21644267439842224,
0.4560914635658264,
-0.6306716203689575,
0.5031425356... | |
then the C# code:
```
object accessObject = null;
try
{
accessObject = Activator.CreateInstance(Type.GetTypeFromProgID("Access.Application"));
accessObject.GetType().InvokeMember(
"OpenCurrentDatabase",
System.Reflection.BindingFlags.Default System.Reflection.BindingFlags.InvokeMethod,
null,
... | [
-0.3509196937084198,
-0.07381799072027206,
0.5257120132446289,
-0.1704975664615631,
0.15049061179161072,
-0.08410811424255371,
0.31305089592933655,
-0.38800930976867676,
0.06430176645517349,
-0.4896322190761566,
-0.5839787721633911,
0.603361964225769,
-0.4595300257205963,
0.306838661432266... | |
accessObject.GetType().InvokeMember(
"CloseCurrentDatabase",
System.Reflection.BindingFlags.Default System.Reflection.BindingFlags.InvokeMethod,
null,
accessObject,
null);
MessageBox.Show("Copy succeeded.");
}
catch (Exception ex)
{
string message = ex.Message;
while (ex.InnerEx... | [
-0.40150219202041626,
-0.1624067723751068,
0.6322017908096313,
-0.16377411782741547,
0.11913326382637024,
0.07213065028190613,
0.407761812210083,
-0.3522408604621887,
-0.3000476360321045,
-0.44730639457702637,
-0.2779005765914917,
0.5208211541175842,
-0.3763006925582886,
0.2539204955101013... | |
null;
}
}
```
**Edit re comments**
I cannot help with c#, but here is some VBScript that links a table from
one MDB to another.
```
strLinkFile = "C:\Docs\Link.mdb"
strAccessFile = "C:\Docs\LTD.mdb"
'Create Link... '
Set cn = CreateObject("ADODB.Connection")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
... | [
-0.09983833879232407,
0.2325199693441391,
0.9763600826263428,
-0.04015803709626198,
-0.01813541352748871,
-0.23734648525714874,
-0.07476886361837387,
-0.32802706956863403,
-0.28660306334495544,
-0.8268618583679199,
-0.2956029772758484,
0.3087589740753174,
-0.3199375867843628,
0.25508645176... | |
modified from: <http://support.microsoft.com/kb/240222> | [
0.06701511889696121,
0.00578607153147459,
0.13542501628398895,
-0.0032245817128568888,
0.17919832468032837,
0.15920303761959076,
0.2541508972644806,
0.19626232981681824,
-0.17984475195407867,
-0.45507681369781494,
-0.6538192629814148,
-0.30126896500587463,
-0.3679559528827667,
0.1390267759... | |
I'm trying to convert some code that uses datasets to LINQ. Some of the code passes column names into other functions as strings.
Is there anyway I can easily rewrite this into LINQ?
```
string s = getElement(tr, elementName);
private string getElement (tableRow re, string elementName){
if(tr[elementName] != nul... | [
0.16652025282382965,
0.30341875553131104,
0.6554818153381348,
0.00036806438583880663,
0.022414101287722588,
-0.014135739766061306,
0.17503686249256134,
-0.41467201709747314,
-0.16121309995651245,
-0.546396017074585,
-0.1157912090420723,
0.5864803791046143,
-0.5107922554016113,
0.2175589203... | |
are easier to code LINQ and get better performance. It's related to another question here on stackoverflow:
[programming pattern using typed datasets](https://stackoverflow.com/questions/295291/programming-pattern-using-typed-datasets-in-vs-2008)
The reason I need to use the column name as a string is mainly because t... | [
-0.1474611461162567,
-0.05126599222421646,
0.5620545744895935,
-0.028953999280929565,
-0.1902080476284027,
-0.022558465600013733,
0.1006074771285057,
-0.43763238191604614,
-0.10321120917797089,
-0.4777785539627075,
-0.17937053740024567,
0.5398957133293152,
-0.3496345579624176,
-0.106797747... | |
}
catch //NULL value
{
val = "";
}
}
```
Or the copy scenario:
```
foreach (PropertyInfo c in tr.GetType().GetProperties())
{
thr.GetType().GetProperty(c.Name).SetValue(thr,
tr.GetType().GetProperty(c.Name).GetValue(tr, null), null);
}
``` | [
0.19993168115615845,
-0.21429426968097687,
0.25362247228622437,
-0.011820235289633274,
0.41693246364593506,
-0.2687874734401703,
0.24000102281570435,
-0.3757565915584564,
-0.001130760763771832,
-0.27817046642303467,
-0.4724898636341095,
0.8963531851768494,
-0.2676639258861542,
0.2977672815... | |
In an impersonation scenario related to Sharepoint I need to execute some code in a separate process (the process will run in the context of a certain user). I do not want to launch a separate application, basically I want to do a "run as" on just a method.
The Process.Start method has an overload to start the process ... | [
0.25311028957366943,
0.09202911704778671,
0.4867708384990692,
-0.08634244650602341,
0.23105919361114502,
-0.2155437469482422,
0.24161016941070557,
0.0923721045255661,
-0.14246220886707306,
-0.5644589066505432,
-0.14724944531917572,
0.5578296184539795,
-0.505429744720459,
0.4204784333705902... | |
= "MyPassword"
Process.Start(psiNewProcess)
```
Oh, Process is in the System.Diagnostics namespace if it isn't already imported for your project.
EDIT: Quick sidenote, the password field is actually a SecureString type object, so MSDN suggests filling the value in this way:
```
Dim instance As ProcessStartInfo
Dim... | [
0.07475161552429199,
-0.09615480154752731,
0.44585010409355164,
-0.0726059153676033,
0.3174489438533783,
-0.1529383510351181,
0.4679887890815735,
-0.08882404863834381,
-0.2697502374649048,
-0.7683449387550354,
-0.14517013728618622,
0.6254554390907288,
-0.28524357080459595,
0.32793059945106... | |
```
// A Mutex allows threads mutually exclusive access to a resource.
//-----------------------------------------------------------------------
class Mutex
{
private:
CRITICAL_SECTION m_mutex;
public:
Mutex() { InitializeCriticalSection(&m_mutex); }
~Mutex() { DeleteCriticalSection(&m_mutex); }
... | [
0.006195981986820698,
0.3243545591831207,
0.34286263585090637,
-0.18644966185092926,
0.3003396689891815,
0.20858106017112732,
0.6474100947380066,
-0.2606845498085022,
-0.3036142885684967,
-0.5601219534873962,
-0.2350204885005951,
0.4600048065185547,
-0.2919517755508423,
0.41030070185661316... | |
what it's exactly complaining about. Any ideas?
I'll bet you can fake out the snitch with ::memset ( & m\_mutex, 0, sizeof ( m\_mutex ) ); before the call to init it. | [
0.19485247135162354,
0.04747472703456879,
0.5239151120185852,
0.12132123112678528,
-0.008538037538528442,
0.2835749685764313,
0.3925710618495941,
0.38361263275146484,
-0.14437273144721985,
-0.36505126953125,
-0.05090685561299324,
0.6596078276634216,
-0.3125343918800354,
0.3318863809108734,... | |
Need to locate the following pattern:
The letter I followed by a space then three alpha numerics followed by a space
"I ALN "
"I H21 "
"I 31M "
these items are also followed by a lat/lon that is trapped by this expression:
Dim regex As New Regex("\d{6} \d{7}")
Can the expressions be combined to return a match that... | [
0.15877850353717804,
-0.044020697474479675,
0.7980039715766907,
-0.08360525965690613,
-0.00825951062142849,
-0.02644287794828415,
0.28437039256095886,
-0.3842523694038391,
0.01469938550144434,
-0.4063975214958191,
-0.0319567434489727,
0.589981734752655,
-0.33396315574645996,
-0.07206026464... | |
1 containing the AAA, match 2 containing the Lat/Long).
**Update #2:**
From OP: *No on the pattern. The only pattern is I AAA then on the same line the 4000931 0892006. Can you add an OR statement to an expression*
You can add an OR, sort of, but I'm uncertain that this is really what you want?
This new regex will... | [
0.2629138231277466,
-0.060252197086811066,
0.713682234287262,
0.0903947725892067,
-0.042638640850782394,
0.17459647357463837,
0.07154613733291626,
0.06643525511026382,
-0.20955218374729156,
-0.6109809875488281,
-0.10534093528985977,
0.42854827642440796,
-0.375052809715271,
0.03601079806685... | |
data, but follows a similar pattern), you'll probably catch that too.
`/^I ([0-z]{3}) .* (\d{6} \d{7})/` | [
0.0040002004243433475,
0.012274778448045254,
0.5025270581245422,
0.05270688980817795,
0.24487309157848358,
-0.11566008627414703,
0.2731737792491913,
-0.04175013303756714,
-0.1733759641647339,
-0.4854601323604584,
-0.34721383452415466,
0.46947982907295227,
-0.3751932382583618,
0.18521122634... | |
Assume I have a function like this:
```
MyClass &MyFunction(void)
{
static MyClass *ptr = 0;
if (ptr == 0)
ptr = new MyClass;
return MyClass;
}
```
The question is at program exit time, will the ptr variable ever become invalid (i.e. the contents of that ptr are cleaned up by the exiting process)? I realiz... | [
0.030519884079694748,
-0.025308264419436455,
0.32842114567756653,
-0.20811378955841064,
0.20704014599323273,
-0.2620069682598114,
0.3319915533065796,
0.1035035252571106,
-0.1152614951133728,
-0.6084477305412292,
-0.17791876196861267,
0.5211932063102722,
-0.12327933311462402,
0.347157150506... | |
variable due to static destruction order issues?
EDIT:
Just to clarify, I want to know what actually happens to the contents of the static pointer (or any other primitive type like an int or a float) and not to the memory it is pointing to. For instance, imagine that the ptr points to some memory address which I want... | [
0.2602173686027527,
-0.08891020715236664,
0.09466619044542313,
0.3790350556373596,
0.02291206829249859,
-0.03966905176639557,
0.1239238828420639,
0.1664244830608368,
-0.2248842418193817,
-0.31016096472740173,
0.09003590792417526,
0.6312915682792664,
-0.4223160743713379,
0.26921188831329346... | |
```
'imagine that the ptr points to some memory address which I want to check in the destructor of some other static class'
```
The answer is yes.
You can see the value of the pointer (the address).
You can look at the content if you have not called delete on the pointer.
Static function variables behave in th... | [
-0.029246389865875244,
0.14254514873027802,
0.3848484456539154,
0.10263369977474213,
0.09172946214675903,
0.19904519617557526,
0.07536254078149796,
-0.03914554417133331,
-0.29231610894203186,
-0.62393718957901,
-0.3629223108291626,
0.4013240933418274,
-0.2777073383331299,
0.488157480955123... | |
removed.
POD objects: Data can safely by referenced from the destructor of other objects (even global s).
Other static objects (i.e. those with destructors): In the general case, it is not safe to accesses these objects after main() has exited because the order of destruction is not know (it is the reverse of the ord... | [
-0.22228634357452393,
-0.17829547822475433,
0.5430518984794617,
0.1707690954208374,
0.3542260229587555,
-0.17606931924819946,
0.101638063788414,
-0.026769686490297318,
-0.5569390058517456,
-0.48280009627342224,
-0.5270379185676575,
0.3748449683189392,
-0.4308484196662903,
0.420315444469451... | |
valid after a destructor is called (note POD does not have a destructor).
### Note: Stack:
Only valid until the scope in which they are declared is left.
After the stack is popped the memory page that it is on could potentially be dropped resulting in SEG faults if you attempt to access it.
### Note: Heap:
Valid... | [
0.06638722866773605,
-0.1819048821926117,
0.393087774515152,
-0.11728805303573608,
0.04951664060354233,
-0.316256046295166,
0.31588664650917053,
-0.17580546438694,
-0.4664762020111084,
-0.1732124388217926,
-0.5253386497497559,
0.28667640686035156,
-0.03041061945259571,
0.33820995688438416,... | |
a SEG fault. | [
-0.03596799075603485,
0.07593580335378647,
-0.06300846487283707,
-0.03963653743267059,
-0.12558889389038086,
0.08954263478517532,
0.11086364090442657,
-0.07876528054475784,
0.19793052971363068,
-0.405229389667511,
0.014620495028793812,
0.15945583581924438,
-0.18008100986480713,
0.210918843... | |
I have inherited a project that has class libraries written in VB.NET, some of these have ".settings" files and the others have a ".dll.config" file to store connection strings. What is the difference between these 2 methods?
EDIT: In what scenarios would I prefer one over the other?
They're basically the same thing -... | [
0.380729079246521,
0.05209630727767944,
0.25216326117515564,
-0.023659244179725647,
0.128696009516716,
0.08973214030265808,
0.07339109480381012,
-0.25789129734039307,
-0.23385818302631378,
-0.9854146242141724,
-0.0013345987536013126,
0.4743453562259674,
-0.3711061477661133,
0.1359006166458... | |
hand, you can lose changes if the settings file overwrites them. In VS2008 it will prompt you, so you can choose to sync them. | [
-0.3223833739757538,
-0.3407004177570343,
0.7964602112770081,
-0.04944668337702751,
0.24343501031398773,
-0.1386181265115738,
0.13693872094154358,
-0.1914309710264206,
-0.30350375175476074,
-0.8148595690727234,
0.2687647342681885,
0.7411167621612549,
-0.00021688183187507093,
-0.12517265975... | |
Does anyone know of any C container libraries? I am looking for something which gives standard implementations of linked lists, arrays, hash tables etc, much in the same way as the C++ STL does. Key concerns are:
1. Client code should be able to create containers for multiple different data types without modifying the... | [
0.23662924766540527,
0.09836717694997787,
0.08197195082902908,
0.06948689371347427,
-0.2681281566619873,
-0.5138037204742432,
-0.1163533478975296,
0.2753899395465851,
-0.3822164535522461,
-0.7376229763031006,
0.12821844220161438,
0.34100407361984253,
-0.3557583689689636,
0.2349476367235183... | |
* What are your experiences regarding
project planning and creating hour
estimates for new projects?
* What is the approach you are using,
and why has or has it not worked
for you?
* Are there any best practices to take
into account?
Estimation Tasks
----------------
The principles that I try to use (I don't always ge... | [
0.22305002808570862,
0.1972903609275818,
0.04410933703184128,
0.14835421741008759,
-0.09801678359508514,
0.30012261867523193,
0.2951807975769043,
-0.3225061595439911,
-0.12928186357021332,
-0.6467929482460022,
0.33919620513916016,
0.7856112122535706,
0.09505127370357513,
-0.228230774402618... | |
analysis
Trying to work out where risks lie in each task (are there lead times for something? is there a lack of knowledge? could a competitor beat you to it? etc. etc.) helps to determine your confidence in the estimates, which allows you to determine how to treat those estimates. Risk analysis also helps to determin... | [
0.15300250053405762,
0.2194328010082245,
0.03420204669237137,
0.302322655916214,
-0.04752476140856743,
0.1836586445569992,
0.24092768132686615,
-0.2890244424343109,
-0.05601433292031288,
-0.40093618631362915,
0.23242679238319397,
0.6067391633987427,
-0.024702996015548706,
-0.30519688129425... | |
success of that task. Together with information on other related tasks, and risk analysis, a project manager can factor the risk, and other known elements like system testing into the estimates to get a more reliable estimate.
Of course, the granularity of estimates is also important. There's no point in estimating in... | [
0.170993372797966,
-0.09288129210472107,
-0.018154524266719818,
0.42073673009872437,
0.2846287190914154,
0.10893741995096207,
0.3529375195503235,
-0.14620207250118256,
-0.5763824582099915,
-0.7472119927406311,
-0.06497392803430557,
0.5247013568878174,
0.42985695600509644,
-0.15713778138160... | |
and functional specification phases, and half-days thereafter as I learn more about the tasks and their sub-tasks).
Conclusion
----------
All three of these items feed into each other, so quite often you have to refine each step a number of times. For example, you might have a stab at the requirments stage, then agai... | [
0.15634608268737793,
0.14146128296852112,
0.05162309482693672,
0.0007200153777375817,
0.15521371364593506,
0.379397988319397,
0.1532663255929947,
-0.6833919286727905,
0.13567470014095306,
-0.6934056878089905,
0.13704971969127655,
0.9965891242027283,
0.3032554090023041,
-0.14998948574066162... | |
you go through each step of a design process.
If you have the time, revisit your original estimates after you've completed a task and see how the actual time stacks up against your 3-point estimates and your project plan. If it differs, see where the time was lost or gained and try to learn what you can take from that... | [
0.5228447914123535,
0.029068896546959877,
-0.10944860428571701,
0.2040184587240219,
0.15288269519805908,
0.362151563167572,
0.11953876167535782,
-0.15128639340400696,
-0.030312201008200645,
-0.991106390953064,
0.3606598377227783,
0.610342800617218,
0.38921505212783813,
0.05734947696328163,... | |
I came across this snippet of code on MSDN:
```
entityBuilder.Metadata = @"res://*/AdventureWorksModel.csdl|
res://*/AdventureWorksModel.ssdl|
res://*/AdventureWorksModel.msl";
```
What does the `res://*/` mean and how does it work? I think it has to do with re... | [
0.20551352202892303,
-0.12353051453828812,
0.24136444926261902,
0.26435938477516174,
0.07754671573638916,
-0.21269665658473969,
0.18094538152217865,
0.3748893737792969,
-0.3877921998500824,
-0.5028290152549744,
-0.08623897284269333,
0.1854221224784851,
-0.22422578930854797,
-0.001974557526... | |
idea:
[res protocol](http://msdn.microsoft.com/en-us/library/aa767740.aspx "res protocol")
EDIT: Incidentally, you should check [searchdotnet](http://searchdotnet.com/ "searchdotnet") for technical searches, it still uses google but filters on .net stuff. | [
0.12420022487640381,
-0.40219825506210327,
0.42053714394569397,
0.35415947437286377,
-0.020901093259453773,
-0.5224323272705078,
0.40741297602653503,
-0.22513331472873688,
-0.45118919014930725,
-0.6323904991149902,
-0.1718861162662506,
0.4216061532497406,
-0.08803172409534454,
0.1962809860... | |
I need to signal a running application (Windows service) when certain things happen in SQL Server (2005). Is there a possibility to send a message from a trigger to an external application on the same system?
Either:
* Use RAISERROR (severity 10) to fire a SQL agent alert and job.
* Load a separate table that is polle... | [
-0.00008842839451972395,
0.15163467824459076,
0.6549215316772461,
-0.21265213191509247,
-0.21173223853111267,
-0.24634265899658203,
0.4505390226840973,
-0.36659833788871765,
-0.19826379418373108,
-0.4438793659210205,
0.14556074142456055,
0.3473956286907196,
-0.3295241594314575,
-0.00302612... | |
I have an already large table that my clients are asking for me to extend the length of the notes field. The notes field is already an NVARCHAR(1000) and I am being asked to expand it to 3000. The long term solution is to move notes out of the table and create a notes table that uses an NVARCHAR(max) field that is only... | [
0.21620814502239227,
0.24780146777629852,
0.6033503413200378,
0.03342919796705246,
0.12835188210010529,
0.17214325070381165,
-0.08961523324251175,
-0.47476351261138916,
-0.4480477273464203,
-0.6913110017776489,
0.38390079140663147,
0.23745088279247284,
0.1237880066037178,
0.308297008275985... | |
now?
text and ntext are deprecated in favor of varchar(max) and nvarchar(max). So nvarchar(3000) should be fine. | [
0.045834124088287354,
-0.12189211696386337,
0.6808209419250488,
0.07700606435537338,
-0.057510823011398315,
0.12051185965538025,
0.3985274136066437,
-0.2917521893978119,
-0.2920462191104889,
-0.4183121919631958,
-0.20885013043880463,
0.6348986029624939,
-0.09990948438644409,
0.113336056470... | |
There are many editions of Eclipse for Java development. I am trying out MyEclipse and am pretty impressed with the out-of-box experience. Before I get too comfortable with it, I would like to find out if it is the best edition available. Feel free to list free or commercial packages, but for the sake of other readers,... | [
0.24410812556743622,
0.07852230966091156,
-0.0482976958155632,
-0.18842320144176483,
-0.3226165473461151,
0.08526892960071564,
0.030171750113368034,
0.28164419531822205,
-0.026240641251206398,
-0.6715948581695557,
0.10000911355018616,
0.6514520049095154,
-0.0037713367491960526,
-0.38464337... | |
(I use dark colour schemes, and setting this up with MyEclipse was hell; that said, I only really need to do it once)
* Excellent debugging support
* Source control plugins (SVN or git if one exists)
* Don't care about GUI designers
I am aware that there is a thread discussing the best IDE for Java development; howeve... | [
0.5448668599128723,
-0.05835564807057381,
0.1859193593263626,
-0.10619133710861206,
-0.28917211294174194,
-0.014267328195273876,
0.2933048903942108,
0.18909424543380737,
-0.22644586861133575,
-0.7817438244819641,
0.15959657728672028,
0.8500429391860962,
-0.1222320944070816,
-0.179023623466... | |
having to manually change each color. | [
0.17346343398094177,
0.06828179955482483,
-0.08367180824279785,
-0.16526420414447784,
0.30152732133865356,
0.32822808623313904,
0.2828727066516876,
-0.1647460013628006,
-0.22828608751296997,
-0.5491026043891907,
-0.18549033999443054,
0.345462441444397,
-0.32304033637046814,
0.2322956472635... | |
Just trying to get my head around Generics by reading [this enlightening article by Juval Lowy](http://msdn.microsoft.com/en-us/library/ms379564.aspx)
Paraphrasing.. When you define a Generic class definition, it is compiled into IL.
* For value-types, as soon as you request for a specific value-type, it substitutes... | [
0.5809606313705444,
-0.08029823750257492,
-0.17276166379451752,
0.07197057455778122,
-0.48172903060913086,
-0.0485445037484169,
0.36207425594329834,
-0.2347266525030136,
-0.15487855672836304,
-0.7926701307296753,
-0.00363929383456707,
0.5456176996231079,
-0.611132800579071,
-0.172016978263... | |
actual requested ref type e.g. `MyList<String>`
Now pre-generics we could have written methods that take `Object` parameters. Generics claims 100% performance improvement because '*it avoids the performance penalty you incur when you downcast the object type to your specific type when you want to use it'*
```
// ass... | [
0.21372170746326447,
-0.19833610951900482,
0.6716685891151428,
0.14557960629463196,
-0.4530915915966034,
-0.058105047792196274,
0.5648631453514099,
-0.4786823093891144,
-0.1457524299621582,
-0.5069631338119507,
-0.05844205990433693,
0.8414402604103088,
-0.27916258573532104,
0.1090865582227... | |
and is just a no-op basically.
Downcasting requires an execution time check to make sure you're not casting a Stream to a String for example. It's a pretty small penalty, and very unlikely to be a bottleneck - but avoiding it is just one extra benefit for generics. | [
0.6820905208587646,
-0.17330670356750488,
0.19286690652370453,
0.16983304917812347,
-0.04319223761558533,
-0.28342384099960327,
0.40414896607398987,
0.33166077733039856,
-0.13758715987205505,
-0.39010658860206604,
-0.0727025642991066,
0.26797112822532654,
-0.15239569544792175,
0.1067210733... | |
I have a series of Eclipse projects containing a number of plugins and features that are checked into CVS. I now need to run an automated build of these plugins. Ideally I'd like to do it without having to hardcode large numbers of Eclipse library locations by hand, which has been the problem with the automatically gen... | [
0.8964029550552368,
0.3176325261592865,
-0.14207181334495544,
-0.06869277358055115,
-0.04887108877301216,
-0.1672157645225525,
0.2827049791812897,
0.022882569581270218,
-0.01850047893822193,
-0.6909098625183105,
0.1736019253730774,
0.6412975788116455,
0.051671646535396576,
-0.0968057587742... | |
language you're using:
* For [Maven2](http://books.sonatype.com/maven-book/reference/multimodule.html), the way forward seems to be Spring Dynamic Modules. Other options are [Pax Construct](http://www.ops4j.org/projects/pax/maven/), [m2eclipse](http://m2eclipse.codehaus.org/), [Maven BND](http://felix.apache.org/site/... | [
-0.05813948065042496,
-0.2684406638145447,
0.2629077434539795,
-0.36373674869537354,
-0.12841032445430756,
0.28628748655319214,
0.42524632811546326,
0.043456919491291046,
-0.4021665155887604,
-0.5231500864028931,
-0.3381137251853943,
0.7308030128479004,
-0.1936061531305313,
-0.383344113826... | |
Does ODBC support asynchronous calls? If it does, then can you tell me about any reference materials?
My preferred language is C++.
I've wanted to know the exact same thing. An obvious workaround is to maintain a pool of threads that each perform synchronous ODBC calls and are signalled (and signal back) asynchronousl... | [
0.17021004855632782,
0.1648300141096115,
0.2446954995393753,
-0.029319945722818375,
0.04135045036673546,
-0.24112176895141602,
-0.2190675288438797,
0.2599891126155853,
-0.11809330433607101,
-0.3801138401031494,
-0.07186409085988998,
0.647538959980011,
-0.4996928870677948,
-0.16899165511131... | |
I am developing some school grading software and decided to use Github to host the project. After building some code on my Ubuntu box I pushed it to Github and then cloned it down to my MacBook Pro. After editing the code on the MBP I pushed it back to Github. The next morning I tried to update my repo on the Ubuntu bo... | [
0.369843065738678,
0.04721987992525101,
0.40589308738708496,
-0.0461614653468132,
-0.2875949740409851,
0.11817426979541779,
0.16105914115905762,
0.2608400881290436,
-0.022994602099061012,
-0.561331033706665,
0.07986210286617279,
0.3173364996910095,
-0.20950385928153992,
0.21069219708442688... | |
emails or pull requests. Why can't I just treat Github like a master and push/pull from it onto all of my personal repos on different computers?
I'll assume your problem was that the machine on which you first created the repo crapped out when you tried to issue the `git pull` command.
When you clone an existing git r... | [
0.22047124803066254,
-0.20152629911899567,
0.3827382028102875,
0.24238765239715576,
-0.190144881606102,
0.10600842535495758,
-0.16795939207077026,
0.2593396008014679,
-0.32229968905448914,
-0.46761301159858704,
-0.060467224568128586,
0.6834321618080139,
-0.6171976923942566,
0.2309919446706... | |
you have to issue a few commands to make things as automated as a on cloned repo.
```
# GitHub gives you that instruction, you've already done that
# git remote add origin git@github.com:user_name/repo_name.git
# GitHub doesn't specify the following instructions
git config branch.master.remote origin
git config branc... | [
0.4814615845680237,
-0.12341824918985367,
0.3426865339279175,
-0.08345964550971985,
-0.1447860151529312,
-0.025516904890537262,
0.31265246868133545,
-0.03112572617828846,
-0.3714226186275482,
-0.39503705501556396,
-0.16037589311599731,
0.5357401371002197,
-0.3255522847175598,
0.38440448045... | |
don't use Ruby, my tool is probably gonna be too much of a hassle to install. What you can do is look at [an old post on my blog](http://programblings.com/2008/06/23/git-remote-branches/), where most of the stuff grb can do for you was explicitly shown. Whip out your git notes file :-) | [
0.5061229467391968,
0.1371721774339676,
-0.06400822848081589,
-0.014596989378333092,
-0.16857218742370605,
-0.2133752554655075,
0.7662608623504639,
0.2212180346250534,
-0.48225393891334534,
-0.39416632056236267,
0.19833466410636902,
0.28801429271698,
-0.14014293253421783,
0.214385017752647... | |
Hey all. We're sending quite a few emails (around 23k) using IIS6 SMTP service and receive about 7-8 error messages each time. The stack trace is:
```
System.Net.Mail.SmtpException: Exceeded storage allocation. The server response was: 4.3.1 Session size exceeds fixed maximum session size
at System.Net.Mail.DataSto... | [
-0.12044066190719604,
-0.023150717839598656,
0.9946532845497131,
-0.028034783899784088,
-0.12435580044984818,
0.14149795472621918,
0.7148721814155579,
-0.19855783879756927,
-0.34347277879714966,
-0.6608009934425354,
-0.2622758150100708,
0.20261108875274658,
-0.3565087914466858,
-0.13904753... | |
session size? If so, what is recommended? Should we just uncheck limit session size?
I don't claim to be an expert with SMTP setups, but if I can eliminate these error messages, that would seem like a step forward.
Thanks
Jim
Jim, this seems like it's running out of disk space storing all the temp queue files to be... | [
0.3743859827518463,
0.02942945994436741,
0.2306695282459259,
0.0751170814037323,
-0.38047289848327637,
-0.3770678639411926,
0.675262987613678,
0.2923235297203064,
-0.5761710405349731,
-0.6046139597892761,
0.23510153591632843,
0.37004026770591736,
-0.2841399013996124,
0.16510002315044403,
... | |
SMTP server can deliver them to the world, and thus, you can create a hell of a queue.
The failed deliveries don't help either...
I would look at a config option that sets the limit of how much drive space it's allowed to use for temp files.
The session limit is probably only for a said CONNECTION to your SMTP serv... | [
0.1623336523771286,
-0.24533654749393463,
0.5284367203712463,
-0.0002815272309817374,
-0.1115078404545784,
-0.2416175901889801,
0.646299421787262,
0.26865649223327637,
-0.49797433614730835,
-0.24660468101501465,
-0.06337670236825943,
0.20914193987846375,
-0.3732433319091797,
0.247329592704... | |
I usually, almost without thinking anymore, use forward declarations so that I won't have to include headers. Something along this example:
```
//-----------------------
// foo.h
//-----------------------
class foo
{
foo();
~foo();
};
//-----------------------
// bar.h
//-----------------------
class foo; // f... | [
-0.0723084807395935,
0.2858802378177643,
0.20012854039669037,
-0.1284690499305725,
-0.3285003900527954,
-0.0973968356847763,
0.13924717903137207,
-0.23941005766391754,
-0.3712787628173828,
-0.22672481834888458,
-0.32527756690979004,
0.35188615322113037,
-0.16226795315742493,
0.130316108465... | |
construction/destruction mechanism. This leads to the problem that forward declarations can't be used anymore, since the compiler needs the class definition in such case, eg:
```
//-----------------------
// foo.h
//-----------------------
class foo
{
foo();
~foo();
};
//-----------------------
// bar.h
//-----... | [
0.14903172850608826,
0.5942726135253906,
0.2544793486595154,
-0.21034552156925201,
-0.019040843471884727,
-0.03086947090923786,
0.6334635615348816,
-0.565507709980011,
-0.23639565706253052,
-0.4223702549934387,
-0.3479914665222168,
0.8207591772079468,
-0.11221372336149216,
0.21523955464363... | |
a smart pointer - you can even use auto\_ptr in this case.
```
//-----------------------
// bar.h
//-----------------------
#include <memory>
class foo; // Not enough given the way we declare "foo_object"..
class bar
{
public:
bar();
~bar();
foo &foo_object() { return *foo_ptr; }
const foo &foo_ob... | [
-0.04669506847858429,
0.01630387455224991,
0.3632986545562744,
0.09005935490131378,
0.49439212679862976,
-0.03218502923846245,
0.03180941939353943,
-0.3128548562526703,
-0.1460256278514862,
-0.3990768492221832,
-0.13854508101940155,
0.9236337542533875,
-0.6421060562133789,
-0.4612892568111... | |
T>
class DefaultConstuctorPtr
{
T *ptr;
void operator =(const DefaultConstuctorPtr &);
DefaultConstuctorPtr(const DefaultConstuctorPtr &);
public:
DefaultConstuctorPtr() : ptr(new T()) {}
~DefaultConstuctorPtr() { delete ptr; }
T *operator *() { return ptr; }
const T *operator *() const { ... | [
0.12758035957813263,
-0.4191749691963196,
0.6424521207809448,
-0.49347782135009766,
0.29277127981185913,
0.18271999061107635,
0.4379325807094574,
-0.3762176036834717,
0.02236577309668064,
-0.43334898352622986,
-0.7155882120132446,
0.8465263843536377,
-0.5038186311721802,
0.0522294901311397... | |
I have a project where multiple developers are using a copy of the same windows Virtual PC image (W2K3 SE SP2). Because our solution is tied to the machine-name (less than ideal, i know) all of the developers have the same machine name.
We use a VPN to connect to a remote system, upon connection we get the "Windows Er... | [
0.35355496406555176,
0.3216996192932129,
-0.0608513243496418,
0.15517957508563995,
0.08008644729852676,
-0.1343269944190979,
0.025217894464731216,
0.3818936049938202,
-0.4562574625015259,
-0.6415627002716064,
0.015075278468430042,
0.4647572934627533,
-0.3570798933506012,
0.4437667727470398... | |
What impact would this have?
Just use a smart pointer - you can even use auto\_ptr in this case.
```
//-----------------------
// bar.h
//-----------------------
#include <memory>
class foo; // Not enough given the way we declare "foo_object"..
class bar
{
public:
bar();
~bar();
foo &foo_object() { r... | [
0.09772666543722153,
0.264494925737381,
0.200542613863945,
-0.1810833364725113,
0.009082375094294548,
0.05559483915567398,
0.19293047487735748,
-0.3858511447906494,
-0.35953259468078613,
-0.29998648166656494,
-0.2937529385089874,
0.8896957039833069,
-0.4621872007846832,
-0.3173408806324005... | |
this:
```
#include <iostream>
using namespace std;
class Foo;
template <typename T>
class DefaultConstuctorPtr
{
T *ptr;
void operator =(const DefaultConstuctorPtr &);
DefaultConstuctorPtr(const DefaultConstuctorPtr &);
public:
DefaultConstuctorPtr() : ptr(new T()) {}
~DefaultConstuctorPtr() { d... | [
0.03898097947239876,
-0.14415067434310913,
0.5414831638336182,
-0.5368896722793579,
0.2884933054447174,
0.10081365704536438,
0.43240439891815186,
-0.4783695936203003,
-0.09975314140319824,
-0.40761256217956543,
-0.598606526851654,
0.6430760622024536,
-0.5494835376739502,
-0.122483432292938... | |
Bar bar;
}
``` | [
-0.02554718591272831,
0.7167913913726807,
0.44813674688339233,
-0.5020838975906372,
0.19621092081069946,
0.17172357439994812,
0.056040871888399124,
0.12987931072711945,
0.2624990940093994,
-0.3268079459667206,
-0.37353307008743286,
0.6658977270126343,
-0.37679576873779297,
0.48221173882484... | |
I'm setting up some Virtual PC images. I want to customize the machine with some pre-installed tools and then use this as a base for creating new machines.
What's the best practice for prepping the machine for use?
Should I use SysPrep or NewSid? When's the appropriate time for use and the contrast between them?
Sys... | [
0.690514087677002,
-0.02879139594733715,
0.6042929887771606,
0.2613620162010193,
0.1962006837129593,
-0.0983523279428482,
-0.32095852494239807,
0.09292317181825638,
-0.26229068636894226,
-0.7559365034103394,
0.2420128434896469,
0.6450785398483276,
-0.15488079190254211,
-0.09823741763830185... | |
of the image.
-- Steve Olson | [
0.15619060397148132,
0.2671433687210083,
-0.09328290075063705,
0.14527975022792816,
0.03216543048620224,
0.2656819820404053,
0.16104289889335632,
0.5147499442100525,
-0.23441636562347412,
-0.7177819609642029,
-0.11412632465362549,
0.4709623456001282,
-0.11224641650915146,
0.296228140592575... | |
I am trying to update an old JavaScript function used to detect support for AJAX (i.e. the XmlHttpRequest object). I've looked online (including SO) and found various solutions but I'm not sure which is the most efficient for simply detecting support.
The current function is:
```
function IsSyncAJAXSupported()
... | [
0.029311753809452057,
0.2782709300518036,
0.5257859826087952,
-0.07452306896448135,
0.0006523584015667439,
-0.1403929740190506,
0.5210455060005188,
0.06953667849302292,
-0.015490323305130005,
-0.6073948740959167,
-0.27009692788124084,
0.467373788356781,
-0.43211662769317627,
0.291350811719... | |
== null; i++) {
try {
xmlHttp = new ActiveXObject(clsids[i]);
} catch(e){}
}
if(xmlHttp == null && MS.Browser.isIE)
{
isSyncAJAXSupported = false; | [
-0.20441727340221405,
-0.3199947774410248,
0.525860071182251,
-0.34713178873062134,
0.11874493956565857,
-0.01661244034767151,
0.5277960896492004,
-0.2739717960357666,
-0.009788671508431435,
-0.6483830213546753,
-0.5834505558013916,
0.2590523064136505,
-0.6052953600883484,
0.08060733973979... | |
}
return isSyncAJAXSupported;
}
```
In Firefox 3, the above gives errors because MS is undefined.
I realise that using a library would be better but that's not an option for the short term. We are only supporting IE6 and above + recent versions of Firefox, Safari/WebKit and Opera.
What's the best way of... | [
0.05240819230675697,
-0.040081363171339035,
0.4489862620830536,
-0.14482896029949188,
-0.19189752638339996,
-0.20645621418952942,
0.44075289368629456,
-0.43533024191856384,
-0.034149959683418274,
-0.6158626079559326,
-0.2648216187953949,
0.602962076663971,
-0.6160776019096375,
-0.128853008... | |
(e) {}
return (xhr!=null);
```
It seems to work so thought I'd share it. | [
0.22716908156871796,
0.2632521688938141,
0.2593369781970978,
-0.19477815926074982,
0.2443874329328537,
-0.1423148512840271,
0.31395217776298523,
-0.12050900608301163,
0.20648087561130524,
-0.5386717319488525,
-0.17194058001041412,
0.5978192687034607,
-0.32258886098861694,
0.271278649568557... | |
I have a control, VideoControl, which displays video using DirectShow - it's set as the owner of an IVideoWindow. I have another control, AreaControl, which is supposed to show a dashed rectangle over the video control. AreaControl is set to be transparent using SetStyle(ControlStyles.SupportsTransparentBackColor, true... | [
0.14819781482219696,
-0.28651151061058044,
0.9553509950637817,
0.40228381752967834,
-0.20415082573890686,
-0.20948004722595215,
0.02570977248251438,
-0.22247418761253357,
-0.14877654612064362,
-0.5483331680297852,
0.07953668385744095,
0.547845721244812,
-0.2322862446308136,
0.2750399410724... | |
AreaControl, with the dashed rectangle overlaid on it? Is there a way to get the VideoControl to paint itself with the video, rather than just drawing its BackColor?
In the end the answer to this turned out to be to use the AreaControl's Region property, since we didn't need partial transparency. | [
0.4272850453853607,
-0.36959269642829895,
0.7510029077529907,
0.44574350118637085,
0.12750543653964996,
-0.13825073838233948,
-0.12770070135593414,
-0.3493562340736389,
-0.16441698372364044,
-0.3980939984321594,
0.2750507593154907,
0.3181561827659607,
-0.13528603315353394,
0.03315698355436... | |
I've just learned what ASP.NET MVC is and I'm wondering if the pattern is ever used in Windows Desktop application development?
I'm specifically looking at potentially trying to use it in a Desktop .NET application.
Please forgive me if this question is way out in left field in terms of how MVC is suppose to be use... | [
0.3497157096862793,
-0.10838432610034943,
0.522933840751648,
-0.08182081580162048,
-0.18053510785102844,
-0.06700419634580612,
0.12119794636964798,
-0.10299655795097351,
-0.4716155230998993,
-0.5514444708824158,
-0.11589300632476807,
0.4751802980899811,
-0.4244229793548584,
0.1543800234794... | |
There is an actual running Java ServerPages (JSP) application within a \*NIX box which I somewhat administer with kind of good permissions. The idea is to create a new but dead simple JSP page to control some Korn Shell scripts I've got running there. So the goal is to make some sort of HTML form that will be writing s... | [
0.4007250964641571,
0.07861942052841187,
0.6120789051055908,
0.2496369183063507,
-0.22853484749794006,
-0.6043691039085388,
0.23887106776237488,
0.5487906336784363,
-0.23593415319919586,
-0.6124664545059204,
-0.1486874520778656,
0.34667858481407166,
-0.03947174921631813,
-0.065472766757011... | |
# monitor enabled
fi
```
which then can be checked for existence within the running script, therefore allowing to easily activate / deactivate it without actually have do deal with cron. Please let me know if all this makes sense and do not hesitate to ask as many questions as needed.
Thanks much in advance!
You may... | [
0.7802175283432007,
-0.24274732172489166,
0.5277385711669922,
0.4066765606403351,
0.18429316580295563,
-0.5724304914474487,
0.36510834097862244,
0.3105875849723816,
-0.11380194872617722,
-0.7930566668510437,
-0.15431173145771027,
0.7726315855979919,
-0.4272003173828125,
-0.0843677446246147... | |
Apache Commons IO for a such simple task. [File.createNewFile](http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#createNewFile()) and [File.delete](http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#delete()) could be used if you are not concerned about a race condition between two different users.
```
... | [
0.16231217980384827,
0.2258218377828598,
0.10045420378446579,
0.07557973265647888,
-0.3101615309715271,
-0.19224613904953003,
0.5462843179702759,
-0.458781898021698,
-0.17263373732566833,
-0.4843175709247589,
0.06813234835863113,
0.3298695981502533,
-0.3883410394191742,
0.0926811471581459,... | |
After following the advice in [this question](https://stackoverflow.com/questions/302560/wix-custom-actions-with-wixuiminimal) successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system fold... | [
0.2854425609111786,
-0.17273250222206116,
0.5961006879806519,
-0.1409950852394104,
-0.17991536855697632,
0.23281867802143097,
0.3936045169830322,
-0.28216472268104553,
-0.4027021527290344,
-0.6104696393013,
0.07286542654037476,
0.8721221685409546,
-0.5025325417518616,
-0.03556329384446144,... | |
...>
...
<File Id="CapiCom.Dll" LongName="CapiCom.Dll" Name="CAPICOM.DLL" Source=... />
</component>
</directory>
...
<CustomAction Id="REGCAPICOM" ExeCommand='regsvr32.exe "[SystemFolder]capicom.dll"' Return = "ignore" Execute="deferred" />
...
<InstallExecuteSequence>
...
<Custom Action="REGCAPICOM" Af... | [
0.19297373294830322,
0.14823344349861145,
0.7615566849708557,
-0.15802128612995148,
-0.08274190127849579,
-0.10780917853116989,
0.16575965285301208,
-0.2540251612663269,
-0.2644837498664856,
-0.6052426099777222,
0.06777210533618927,
0.8927997350692749,
-0.4941985607147217,
0.24472510814666... | |
when my application is uninstalled, considering that it's a standard windows component.
Edit: Hmmm. Apparently, one of the things running selfreg on the dll does is to create a random seed to add to the registry. Not sure what mechanism it uses to generate this seed but I suspect it would be considered in poor taste t... | [
0.06102981045842171,
0.15901313722133636,
0.3270825743675232,
0.0006984751671552658,
0.04472648724913597,
0.04065180569887161,
0.0029158799443393946,
-0.07094043493270874,
-0.31666654348373413,
-0.5193088054656982,
0.34658223390579224,
0.54585200548172,
-0.22332295775413513,
-0.12650065124... | |
Adam Tengen's [post here](https://stackoverflow.com/questions/269423/how-to-generate-wix-xml-from-a-reg-file).
Note that Heat (and Tallow, IIRC) do not, as of this posting, work properly on Capicom.
The Wrong Way:
```
<CustomAction Id="RegisterCapicom" Directory="SystemFolder" ExeCommand="regsvr32.exe /s "[Syst... | [
0.05952079966664314,
0.10171174257993698,
0.38937339186668396,
0.05933806300163269,
-0.08722179383039474,
-0.016567492857575417,
0.2516566216945648,
-0.6124537587165833,
-0.19480717182159424,
-0.3067874312400818,
-0.12475032359361649,
0.357008159160614,
-0.10399287939071655,
0.122252166271... | |
I suppose there could be historical reasons for this naming and that other languages have similar feature, but it also seems to me that parameters always had a name in C#. Arguments are the unnamed ones. Or is there a particular reason why this terminology was chosen?
Yes, you're absolutely right (to my mind, anyway). ... | [
0.18600523471832275,
0.2132735252380371,
0.05042003467679024,
0.1217661052942276,
-0.5206038355827332,
-0.04849684238433838,
0.05565571039915085,
0.27817830443382263,
-0.3047056198120117,
-0.08179207146167755,
0.28271061182022095,
0.7159194946289062,
-0.1492472141981125,
0.3980121910572052... | |
become part of the significant metadata when you can specify them on the arguments as well.
I agree that it makes a difference, and that terminology is important.
"Optional parameters" is definitely okay though - that's adding metadata to the parameter when you couldn't do so before :) (Having said that, it's not goi... | [
0.577501654624939,
-0.002461398718878627,
0.15332919359207153,
0.2851981818675995,
0.10118258744478226,
-0.35752490162849426,
-0.24792291224002838,
-0.10204707831144333,
-0.1042070984840393,
-0.26099270582199097,
0.22869691252708435,
0.6268072128295898,
0.17414675652980804,
-0.212547153234... | |
We determined in a [previous question](https://stackoverflow.com/questions/303810/variable-dynamic-option-lists-in-html-select-using-ie) that many features of HTML SELECTs are not supported in IE. Is there an alternative widget that you would recommend from your experience that meets the following requirements?
1. Res... | [
0.11402030289173126,
-0.408943772315979,
0.5412387251853943,
-0.14100320637226105,
0.15255621075630188,
-0.17919321358203888,
0.06440870463848114,
-0.37020376324653625,
-0.07036486268043518,
-0.6452791094779968,
-0.43895694613456726,
0.6439833045005798,
-0.32710984349250793,
-0.49401247501... | |
and above
EDIT: As noted by @Joel Coehoorn, items 3 and 5 above are currently supported in IE. They are included here to make sure they are not overlooked in a replacement widget.
At last check IE6+ does support #3 and #5, and you can (mis)use OPTGROUP to work around most of the other items.
You can do this by having... | [
0.2434445321559906,
-0.08437070995569229,
0.3436390459537506,
-0.0902293398976326,
-0.016475031152367592,
-0.1941114217042923,
0.28000518679618835,
-0.09932070970535278,
-0.19374918937683105,
-0.8479676246643066,
-0.42534586787223816,
0.7026525735855103,
-0.22582681477069855,
-0.1848662644... | |
door to all kinds of fun:
* You can disable specific items by adding them as optgroups
* You can prevent selection changes by encoded all options but the current one as optgroups (use some other text key to indicate they are disabled, if you need to)
* You can use blank, --, or — labels to indicated simple separ... | [
0.0333116240799427,
-0.03161710500717163,
0.10810854285955429,
0.11125528067350388,
-0.1778678148984909,
-0.05601974576711655,
0.31858953833580017,
-0.05289982631802559,
-0.4748676121234894,
-0.5722252130508423,
-0.38497811555862427,
0.6528345346450806,
-0.2788424789905548,
-0.167628496885... | |
Is the source code for the common login controls available?
Those are the controls which are available under Login section in Toolbox:
* Login,
* LoginView,
* PasswordRecovery,
* LoginStatus,
* LoginName,
* CreateUserWizard,
* ChangePassword
Eventually could you point me to a good source of custom implementation of... | [
0.16754847764968872,
0.09385789930820465,
0.4432489573955536,
0.09745970368385315,
-0.13530957698822021,
-0.4147099554538727,
0.18094508349895477,
0.10377174615859985,
-0.24362221360206604,
-0.5459245443344116,
0.08139157295227051,
0.6770244240760803,
-0.18601487576961517,
-0.0349298007786... | |
using reflected source as a starting point (this was before symbol server integration).
Things seem to go swimmingly, with a few reflection hacks to get to core framework members that obviate reams of code.
Until you get to the designers. That infrastructure is a minefield and gets wide and deep with a quickness and ... | [
0.5149529576301575,
0.07672946155071259,
0.1922328770160675,
0.3276374042034149,
-0.2614861726760864,
-0.022198902443051338,
0.11284555494785309,
0.001818853779695928,
0.27091163396835327,
-0.7865789532661438,
0.6367427110671997,
0.3355202078819275,
-0.2884240448474884,
0.29970690608024597... | |
just shifted a login control to template mode and got everything I needed to get done in a few lines of code. ;-)
Except as a learning experience I would certainly recommend against going down that road.
Good luck. | [
0.37288329005241394,
0.0995677262544632,
0.18955975770950317,
0.24727344512939453,
0.33501699566841125,
-0.3944009840488434,
0.7275820970535278,
0.7131190299987793,
-0.0808337852358818,
-0.5545434951782227,
0.06973936408758163,
0.4988757371902466,
0.1842513084411621,
-0.056171249598264694,... | |
We're using interfaces to represent entity classes in our domain model. We have concrete implementations of these by virtue of using LinqToSql. We have added a factory method to each LinqToSql class which our service layer uses to instantiate a new entity (note; as opposed to the controller's DataBind attribute doing i... | [
0.1828080713748932,
-0.24883612990379333,
0.20714125037193298,
0.5565848350524902,
0.06455910205841064,
0.0036685671657323837,
0.2947366535663605,
-0.3174368441104889,
-0.04605086147785187,
-0.4703919589519501,
0.14250025153160095,
0.25054931640625,
-0.5486626029014587,
0.15696723759174347... | |
job is to translate between layers.
It's the end of a **really** long day over here; please can someone have mercy and point us at the parts of IDataBinder that we should overload with our own implementations, or hint at other approaches we might attempt? ;-)
You should be looking at IParameterBinder. take a look at [... | [
0.31430891156196594,
-0.030339134857058525,
0.1095891147851944,
0.2884305417537689,
-0.3259010314941406,
0.010471531189978123,
0.44512873888015747,
-0.22262108325958252,
-0.13744617998600006,
-0.5716255903244019,
0.2107268124818802,
0.3473973572254181,
-0.399199515581131,
-0.17868375778198... | |
I am trying to write a decorator to do logging:
```
def logger(myFunc):
def new(*args, **keyargs):
print 'Entering %s.%s' % (myFunc.im_class.__name__, myFunc.__name__)
return myFunc(*args, **keyargs)
return new
class C(object):
@logger
def f():
pass
C().f()
```
I would like... | [
0.19497911632061005,
0.18157945573329926,
0.34775984287261963,
-0.02609555423259735,
0.000737870461307466,
0.15699440240859985,
0.25442734360694885,
-0.1960819512605667,
-0.08269395679235458,
-0.3724325895309448,
-0.07395696640014648,
0.5054731369018555,
-0.28969553112983704,
0.26047161221... | |
correct, but you can also cheat by getting the class name off of the `self` argument. This will give misleading log statements in cases of inheritance, but will tell you the class of the object whose method is being called. For example:
```
from functools import wraps # use this to preserve function signatures and do... | [
0.0772990956902504,
0.09600163996219635,
0.22097426652908325,
-0.09010202437639236,
0.14041081070899963,
-0.24394682049751282,
0.35069650411605835,
-0.3865092992782593,
-0.276420921087265,
-0.3383726179599762,
-0.08837630599737167,
0.7879858016967773,
-0.2733728885650635,
-0.08887097239494... | |
def f(self):
pass
C().f()
```
As I said, this won't work properly in cases where you've inherited a function from a parent class; in this case you might say
```
class B(C):
pass
b = B()
b.f()
```
and get the message `Entering B.f` where you actually want to get the message `Entering C.f` since that's... | [
0.2913045287132263,
-0.013041982427239418,
-0.003918907139450312,
-0.3274558186531067,
-0.24902674555778503,
-0.24021503329277039,
0.44508421421051025,
-0.3862016797065735,
-0.019543590024113655,
-0.2508867084980011,
-0.28492361307144165,
0.6791747212409973,
-0.31455814838409424,
0.0250783... | |
I have a site made with php which uses server side sessions throughout the site.
In fact, it's a site with a user login which depends on session variables and if there were a problem with *all* session variables, no pages would load at all.
On the site, there's an iframe that holds a feed of little messages from o... | [
0.6481848955154419,
0.2007739096879959,
0.25924813747406006,
0.17597253620624542,
-0.15116854012012482,
0.05056628957390785,
0.30532392859458923,
0.08482491225004196,
-0.356609970331192,
-0.44794780015945435,
0.11107311397790909,
0.3115520179271698,
0.005665119271725416,
0.0761247649788856... | |
those pages have to have the onclick functions formatted a little differently or they break the page.
So I set a session variable on each page (`$_SESSION["current_page"]`) that lets the feed know how to format the clickable photos. Now Firefox, Opera, Chrome, Safari all work as they are supposed to.
But IE6 and ... | [
0.637974739074707,
0.10010726004838943,
0.7259454727172852,
-0.05579056218266487,
-0.16424204409122467,
-0.0754760205745697,
0.12462110817432404,
-0.1078958585858345,
-0.4147754907608032,
-0.46223506331443787,
-0.037680596113204956,
0.6090404987335205,
-0.49051690101623535,
-0.000282878521... | |
to "main" instead of "special1" or "special2".
I printed the same session variable in Firefox and all the other browsers I mentioned and they print out "special1" or "special2" as they're supposed to.
Can anyone think of something - possibly related to the fact that the feed is in an iframe??? - that would cause I... | [
0.3670158088207245,
-0.15530996024608612,
0.15020866692066193,
-0.15649466216564178,
-0.18702572584152222,
-0.0690251961350441,
0.40948542952537537,
0.44538530707359314,
-0.547798752784729,
-0.6251949667930603,
-0.3122466802597046,
0.3418242633342743,
-0.44251152873039246,
0.02252069860696... | |
doesn't make sense to me.
I thought some people might find the solution to this problem interesting. Fiddler certainly helped here. Thanks to Fiddler, I could see that I was, in fact, hitting the page main.php (thus setting the session variable moments after setting it on the target page), but the server was defaulting... | [
-0.05322994291782379,
0.3585983216762543,
0.32677802443504333,
-0.15458860993385315,
-0.2438695877790451,
-0.12992078065872192,
0.5545688271522522,
0.40168893337249756,
-0.634419322013855,
-0.33511489629745483,
0.29966846108436584,
0.3216112554073334,
-0.14452259242534637,
0.21213637292385... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.