text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
exactly.
Thanks for y'alls help.
UPDATE: I had to fix web.config line as well. I ended up putting the safecontrol line in the manifest instead of directly in the web.config; thanks JMD. (BTW, why doesn't VSeWSS do that for me, when it does for web parts?) | [
0.4570048153400421,
-0.15049035847187042,
0.3901999294757843,
0.5706746578216553,
-0.06769900768995285,
-0.07900413870811462,
0.5885059237480164,
0.22309169173240662,
0.02682747319340706,
-0.47965767979621887,
0.08018805831670761,
0.5681431889533997,
-0.0028834566473960876,
-0.083175405859... | |
In the application I'm working on, I've been trying to use the SaveFileDialog and OpenFileDialog for their customary purpose (saving and opening files.)
However, the application can't support modal forms/dialogs without crashing because too many time-sensitive things happen on the thread that owns the UI.
Rewriting t... | [
0.32758191227912903,
-0.02553914487361908,
0.2320994734764099,
0.27411437034606934,
0.017451835796236992,
-0.14619196951389313,
0.2044856995344162,
0.11424893885850906,
-0.17518962919712067,
-0.7621786594390869,
-0.15179170668125153,
0.6202618479728699,
-0.4057672321796417,
0.3892346620559... | |
thread?
The only existing option I know of is [Dialog Workshop.NET](http://www.componentage.com/dwnet.htm), a commercial product. They have a set of dialogs that have the option of being modeless (or embedded directly into a windows form instead of a separate window).
However, I'd really think about trying to move you... | [
0.49486860632896423,
-0.19195930659770966,
0.28926393389701843,
0.42577776312828064,
0.09160122275352478,
-0.02848818711936474,
0.048785384744405746,
0.2509208917617798,
-0.31350356340408325,
-0.5512508749961853,
0.3263670802116394,
0.4354875683784485,
-0.22054143249988556,
0.2819693088531... | |
I am having a problem with my $memcached\_keys being too long in my .conf file for nginx. I am using the memcached module but some of my urls are too long. I am in the process of trying to user MD5 hashes of the urls instead but in the meantime I was just wondering if there was a way I could check on the length of a st... | [
0.00304391304962337,
0.19827041029930115,
0.39412498474121094,
-0.4495597779750824,
-0.0005758935585618019,
0.005005907267332077,
0.4091235399246216,
-0.3057442307472229,
-0.29455113410949707,
-0.3914733827114105,
-0.1260412484407425,
0.540447473526001,
-0.5085201263427734,
0.3757216930389... | |
error_page 502 = @cache_miss;
}
else {
pass to @cache_miss;
}
```
I'm not positive, but I don't think it can be done within the nginx config language. I suspect it would be documented [here](http://wiki.nginx.org/NginxHttpMainModule) if it existed, and I don't see anything. | [
0.0718822106719017,
0.41750839352607727,
-0.10236535221338272,
-0.19974182546138763,
0.19663871824741364,
-0.12731054425239563,
0.6071974635124207,
0.16021889448165894,
-0.15493398904800415,
-0.6801848411560059,
0.035704221576452255,
0.5286014080047607,
-0.3745018243789673,
0.0262134987860... | |
I'm making an application where I interact with each running application. Right now, I need a way of getting the window's z-order. For instance, if Firefox and notepad are running, I need to know which one is in front.
Any ideas? Besides doing this for each application's main window I also need to do it for its child ... | [
0.4689559042453766,
-0.1171863004565239,
0.486841082572937,
0.20991818606853485,
0.13129138946533203,
0.17381231486797333,
-0.05555655062198639,
-0.010372386313974857,
-0.17870040237903595,
-0.8862043023109436,
0.02018916606903076,
0.637130856513977,
-0.20167674124240875,
0.297386348247528... | |
the next or previous window in z-order.
GetTopWindow: <http://msdn.microsoft.com/en-us/library/ms633514(VS.85).aspx>
GetNextWindow: <http://msdn.microsoft.com/en-us/library/ms633509(VS.85).aspx> | [
-0.12343738973140717,
-0.4181451201438904,
0.5818421244621277,
0.11031443625688553,
-0.006209773477166891,
0.13276174664497375,
0.02196081168949604,
0.15971790254116058,
-0.29833969473838806,
-0.8536790013313293,
-0.6806108951568604,
0.33913081884384155,
-0.16943764686584473,
0.16825538873... | |
Does anyone know anything about a programming language named "C Set 2" which is referenced in the SEI statistics on function point metrics?
I tried to google something about this programming language but this languages name is a collection of non-googlish keywords.
C Set/2 was an IBM C product, for OS/2. I think it wa... | [
0.7198646664619446,
0.1345759928226471,
0.0814216360449791,
0.0025380440056324005,
-0.3260214030742645,
-0.25663939118385315,
0.12238631397485733,
0.2428845763206482,
-0.18620824813842773,
-0.255435973405838,
0.07191350311040878,
0.28050968050956726,
-0.29747945070266724,
-0.12487386912107... | |
My unfamiliarity with the ASP.NET MVC framework and the plumbing thereof has brought me here, and I appreciate the patience it will take for anyone to read and consider my question!
Okay, here is the scenario: I have an application that has numerous pages with grids that display data based on searches, drilling down f... | [
0.4176166355609894,
0.3498845398426056,
0.30008336901664734,
-0.23698441684246063,
-0.006993199698626995,
0.053860317915678024,
0.12679815292358398,
-0.05768650025129318,
-0.33188802003860474,
-0.4274100661277771,
0.08254275470972061,
0.5611871480941772,
-0.21348360180854797,
-0.2326535135... | |
can save the "report" or grid by giving it a name and a description. This doesn't really save the data, displayed in the grid, so much as saves the parameters that define what the grid looks like, saves the parameters that were used to *get* the data, and saves the parameters that define "where" in the app they are (th... | [
0.424519419670105,
-0.053429488092660904,
0.3724907338619232,
0.5866389274597168,
0.11989162862300873,
0.21694493293762207,
-0.06499239057302475,
-0.10716387629508972,
-0.3422243893146515,
-0.6687766313552856,
-0.2135205864906311,
0.412840873003006,
-0.288027286529541,
-0.15286342799663544... | |
each linking to a generic URL, like "/Reports/Saved/248" (where 248 is an example of the report's ID).
*Here is the part I need help on:*
When I get to the action via the url "/Reports/Saved/248" and pull the metadata out of the database for that particular report, how can I redirect that data and the request to the... | [
0.38383597135543823,
-0.021437911316752434,
0.5151709914207458,
0.3441876769065857,
-0.3383753001689911,
-0.07892979681491852,
0.14472056925296783,
-0.2196020931005478,
-0.4659409523010254,
-0.5460456013679504,
-0.034492358565330505,
0.21724696457386017,
-0.2590184509754181,
0.205795720219... | |
be nice for me to be able to basically "call" that same action as though I am making a method call.
---
UPDATE: Unfortunately, our report pages (i.e. the pages these grids appear on) are NOT using RESTful URLs - for example, we have what we call an Advanced Search page, which takes a rather large number of potential ... | [
0.468510240316391,
-0.13500961661338806,
0.2568519711494446,
0.35044214129447937,
-0.12379594892263412,
-0.32996809482574463,
0.2720610797405243,
-0.08659334480762482,
-0.1585451066493988,
-0.4720446765422821,
0.03604753315448761,
0.5120221376419067,
-0.15753622353076935,
-0.20799908041954... | |
what I want to call when the user selects a saved Advanced Search from the database. That example epitomizes my problem.
Thanks
I think that you'll want to use RedirectToAction with the signature that takes a RouteValueDictionary. The method that you are redirecting to will need to be able to pull the values from the ... | [
0.12442082166671753,
-0.1642630696296692,
0.3546796143054962,
-0.07523089647293091,
-0.013111142441630363,
-0.13479037582874298,
0.30178698897361755,
-0.3747248351573944,
-0.15903320908546448,
-0.5535567998886108,
0.10110167413949966,
0.7570018172264099,
-0.4108544886112213,
0.198094770312... | |
= ParamsToRouteValueDictionary( reportParams );
return RedirectToAction( reportParams.Action, reportParams.Controller, routeValues );
}
private RouteValueDictionary ParamsToRouteValueDictionary( object parameters )
{
var values = new RouteValueDictionary();
var properties = parameters.GetType().GetPrope... | [
-0.06412018835544586,
-0.3542475700378418,
0.9249094724655151,
-0.13910619914531708,
0.125001922249794,
0.38288164138793945,
0.6018140912055969,
-0.9339537620544434,
-0.43230322003364563,
-0.4791983366012573,
-0.5999702215194702,
0.6218516826629639,
-0.3520728051662445,
0.07961905747652054... | |
prop.Name, prop.GetValue(parameters,null) );
}
return values;
}
```
**EDIT**
Using a filter model as the parameter for your method actually may make it easier. You just need GET and POST versions of your action.
```
[ActionName("People")]
[AcceptVerbs( HttpVerbs.Get )]
public ActionResult PeopleDispla... | [
-0.017694441601634026,
-0.4802889823913574,
0.4530372619628906,
0.05036265775561333,
-0.19516800343990326,
0.09618315100669861,
0.21331071853637695,
-0.556839644908905,
-0.44066885113716125,
-0.6865487694740295,
-0.20793665945529938,
0.6138030290603638,
-0.5649312734603882,
-0.157559707760... | |
and be directed to the PeopleDisplay method, which in turns simply calls the People method with the correct parameter. Posting from the form calls the People method directly. Using two methods allows you to use the CSRF prevention mechanism. You might be able to use a flag in TempData to ensure that the GET action is o... | [
0.3889128565788269,
-0.22436006367206573,
0.4099692106246948,
0.2513524889945984,
-0.2137664407491684,
-0.23591965436935425,
0.22706551849842072,
0.04519804194569588,
-0.27849283814430237,
-0.6960419416427612,
-0.07160301506519318,
0.6253611445426941,
-0.4850882291793823,
-0.07425988465547... | |
to consider is that doing the redirect will end up with a URL containing all the parameters, whereas rendering the View will leave the URL alone and just display the same view as the URL used when creating the report. | [
-0.04153444990515709,
-0.20270667970180511,
0.3658044636249542,
0.29786619544029236,
-0.2954382002353668,
0.17569896578788757,
0.3450777530670166,
-0.13939417898654938,
0.10242293775081635,
-0.36426472663879395,
-0.16572724282741547,
0.6635864973068237,
-0.2516944706439972,
0.1664245575666... | |
Users want to set up SSRS reports to be emailed to them. After a little googling i found this link that shows the subscription interface of Report Manager. This has almost every feature they need except, the hourly report subscription does not give them enough control. By default, they are able to set up hourly reports... | [
0.17010626196861267,
-0.398169606924057,
0.4412989914417267,
0.20852182805538177,
-0.14120295643806458,
-0.11414189636707306,
0.2824208736419678,
0.31676340103149414,
-0.5967252254486084,
-0.5762129426002502,
0.28841668367385864,
0.36412790417671204,
-0.19633236527442932,
-0.07939609140157... | |
Is there really an end time that I'm just missing?
2. If not, how can I override the hourly subscription page and get and end time.
Thanks
`OR` and `CASE` summing will work but are quite inefficient, since they don't use indexes.
You need to make `UNION` for indexes to be usable.
If a user enters `name`, `phone`, `e... | [
0.2882489264011383,
0.19875496625900269,
0.3575403392314911,
0.1833554357290268,
0.2750907838344574,
-0.2134062796831131,
0.10021425783634186,
-0.157470703125,
-0.11349664628505707,
-0.3839276432991028,
0.036669518798589706,
0.39931720495224,
-0.2905588448047638,
0.12802298367023468,
-0.... | |
FROM (
SELECT id
FROM t_info t
WHERE name = 'Eve Chianese'
UNION ALL
SELECT | [
0.6763675212860107,
-0.11621186882257462,
-0.10287056118249893,
0.024568285793066025,
0.03867415711283684,
-0.03884921595454216,
-0.3447401821613312,
-0.4958612322807312,
-0.054782845079898834,
-0.19785262644290924,
-0.11216633021831512,
0.4699456989765167,
0.01847078651189804,
0.124310016... | |
id
FROM t_info t
WHERE phone = '+15558000042'
UNION ALL
SELECT id
FROM t_info t | [
0.5666642785072327,
0.012204984202980995,
0.3462936282157898,
0.015471868216991425,
0.3269786834716797,
0.012764668092131615,
-0.23500700294971466,
-0.3834114670753479,
0.1759754717350006,
-0.6359599828720093,
-0.08676984161138535,
0.38027867674827576,
-0.07529762387275696,
0.1448387503623... | |
WHERE email = '42@example.com'
UNION ALL
SELECT id
FROM t_info t
WHERE address = '42 North Lane' | [
0.5511508584022522,
0.17304635047912598,
0.11154225468635559,
-0.2669813334941864,
0.37568604946136475,
0.5758486986160278,
0.18585139513015747,
0.032722197473049164,
-0.20445747673511505,
-0.7251396179199219,
-0.07088658958673477,
0.11744879931211472,
-0.2859816253185272,
0.20525474846363... | |
) q
GROUP BY
id
HAVING COUNT(*) >= 3
) dq
JOIN t_info i
ON i.id = dq.id
```
This will use indexes on these fields and the query will be fast.
See this article in my blog for details:
* [**Matching 3 of 4**](http://explainextended.com/2009/04/17/matching-3-of-4/): how | [
0.09251928329467773,
0.0386621467769146,
0.40875518321990967,
-0.11193037778139114,
-0.4547966420650482,
-0.25118565559387207,
0.35832613706588745,
-0.4517994821071625,
0.11109107732772827,
-0.34474846720695496,
0.10182318091392517,
0.3535696864128113,
-0.3601365089416504,
0.36856648325920... | |
to match a record which matches at least `3` of `4` possible conditions
Also see this [**question**](https://stackoverflow.com/questions/761014/mysql-can-you-pull-results-that-match-like-3-out-of-4-expressions) the article is based upon.
If you want to have a list of `DISTINCT` values in the existing data, you just w... | [
0.26903870701789856,
0.13076359033584595,
0.3635833263397217,
0.14973467588424683,
-0.023654209449887276,
-0.11109620332717896,
-0.00813915953040123,
-0.5679666996002197,
-0.08410549908876419,
-0.3197348117828369,
0.07864322513341904,
0.4726087749004364,
-0.39782652258872986,
-0.0581245794... | |
FROM t_info t
WHERE name = i1.name
UNION ALL
SELECT id
FROM t_info t | [
0.6509488821029663,
-0.029527556151151657,
0.07713645696640015,
0.014876170083880424,
0.26568612456321716,
0.005745848640799522,
-0.21830867230892181,
-0.362285852432251,
0.11048168689012527,
-0.6136216521263123,
-0.25247034430503845,
0.24159927666187286,
-0.2694566547870636,
0.33393168449... | |
WHERE phone = i1.phone
UNION ALL
SELECT id
FROM t_info t
WHERE email = i1.email | [
0.6054266095161438,
0.020326094701886177,
0.18245238065719604,
-0.10979586839675903,
0.2979467511177063,
0.16193842887878418,
-0.0014749750262126327,
-0.2371957153081894,
-0.03770387917757034,
-0.570370078086853,
-0.12806594371795654,
0.312656432390213,
-0.3554401695728302,
0.2104499787092... | |
UNION ALL
SELECT id
FROM t_info t
WHERE address = i1.address
) q
GROUP BY | [
0.5261653065681458,
-0.05702626332640648,
0.2855701446533203,
-0.17512710392475128,
0.09335995465517044,
0.033060550689697266,
-0.0910763218998909,
-0.4773916006088257,
0.34566375613212585,
-0.6055768728256226,
-0.3279929757118225,
0.044718187302351,
-0.2894197106361389,
0.5364111661911011... | |
id
HAVING COUNT(*) >= 3
)
```
Note that this `DISTINCT` is not transitive: if `A` matches `B` and `B` matches `C`, this does not mean that `A` matches `C`. | [
-0.19301806390285492,
0.010658861137926579,
0.05691903829574585,
-0.2689190208911896,
-0.19471795856952667,
-0.30045419931411743,
0.15201027691364288,
-0.42261365056037903,
0.12916328012943268,
-0.37616366147994995,
-0.212245374917984,
0.37803196907043457,
-0.34014061093330383,
0.030914636... | |
I have the following scenario in nHibernate:
```xml
<class name="TestApp.Components.User,TestApp.Components" table="Users">
<id name="Id" column="UserId" type="Int32" unsaved-value="0">
<generator class="native"></generator>
</id>
<property name="UserName" type="string" length="100" not-null="false... | [
-0.06943173706531525,
0.1262735277414322,
0.22691203653812408,
-0.23280808329582214,
-0.20059266686439514,
0.07487119734287262,
0.020687388256192207,
-0.7161540389060974,
-0.020823445171117783,
-0.7027047872543335,
0.07020102441310883,
0.4407632648944855,
-0.3022646903991699,
0.15748797357... | |
user_group ug
WHERE u.userid = ug.userid
AND (ug.groupid = 1 OR ug.groupid = 2 OR ug.groupid = 3)
```
I know I can do this in HQL, but I want to do it using the ICriteria interface.
```cs
var session = sessionManager.GetSession();
var items = session.CreateCriteria(typeof(User));
ICriterion criterion = null... | [
-0.260530024766922,
0.12981373071670532,
0.5344520807266235,
-0.18760207295417786,
-0.17199230194091797,
0.024963125586509705,
0.3760624825954437,
-0.6679143309593201,
-0.4046921133995056,
-0.6172788739204407,
-0.13234637677669525,
0.5487419366836548,
-0.3967095911502838,
0.189890965819358... | |
what I am missing. in the query.
Can someone point me in the right direction with regards to how I need to structure this query?
Well, you could use the 3-argument version: [`File.createTempFile(String prefix, String suffix, File directory)`](http://java.sun.com/javase/6/docs/api/java/io/File.html#createTempFile(java.... | [
-0.008866146206855774,
0.10020896047353745,
0.2268168032169342,
-0.2623586058616638,
-0.015231143683195114,
0.13256849348545074,
0.1383087933063507,
-0.2751341164112091,
-0.3494301736354828,
-0.3587188124656677,
-0.005126262549310923,
0.24320006370544434,
-0.13532496988773346,
0.0757956802... | |
always just start with the filename "a", and loop through "b", "c", etc until you find one that doesn't already exist. | [
0.5546681880950928,
-0.06673423200845718,
0.1895013153553009,
0.29808810353279114,
0.3043821454048157,
-0.46064049005508423,
0.16092351078987122,
0.28880032896995544,
-0.25895366072654724,
-0.38613811135292053,
-0.23834891617298126,
0.25456905364990234,
0.093279168009758,
0.132832705974578... | |
After writing out some processed content to an output stream, I need to revisit the beginning of the stream and write out some content metadata. The data I'm writing is very large, as much as 4Gb, and may be written either directly to a file or to an in-memory buffer, depending on various environmental factors.
How ca... | [
0.515769362449646,
0.0053211357444524765,
0.2443040907382965,
0.16436216235160828,
0.02671031281352043,
-0.11454487591981888,
-0.18489950895309448,
-0.19524440169334412,
-0.06800472736358643,
-0.5591023564338684,
0.2914336025714874,
0.30690717697143555,
-0.12668214738368988,
0.047384992241... | |
avoid lots of small writes (just be very sure to flush it before discarding the wrapper or using the underlying stream directly).
```
import java.io.*;
/**
* A positionable file output stream.
* <p>
* Threading Design : [x] Single Threaded [ ] Threadsafe [ ] Immutable [ ] Isolated
*/
public class RandomFileOu... | [
-0.06810510903596878,
-0.25370460748672485,
0.3181862235069275,
0.01930665224790573,
-0.1255156546831131,
-0.34008491039276123,
-0.15927369892597198,
-0.20883969962596893,
-0.33712348341941833,
-0.9729793667793274,
-0.03135634958744049,
0.578825831413269,
-0.33105167746543884,
-0.184191524... | |
// the random file to write to
protected boolean sync; // whether to synchronize every write
// *****************************************************************************
// INSTANCE CONSTRUCTION/INITIALIZATON/FINALIZATION, OPEN/CLOSE
// **********************... | [
-0.23764778673648834,
-0.20357175171375275,
0.10533768683671951,
0.12289546430110931,
-0.043748609721660614,
0.17803150415420532,
-0.05168067291378975,
-0.1700805425643921,
0.005556646268814802,
-0.6376574039459229,
-0.010197674855589867,
0.5657212734222412,
-0.12536762654781342,
-0.184704... | |
this(new File(fnm),syn);
}
public RandomFileOutputStream(File fil) throws IOException {
this(fil,false);
}
public RandomFileOutputStream(File fil, boolean syn) throws IOException {
super();
File par; | [
0.11285064369440079,
-0.4477881193161011,
0.2851025462150574,
-0.10881578922271729,
0.21599967777729034,
0.16676822304725647,
0.12013030052185059,
-0.2082129269838333,
-0.10244601219892502,
-0.6325958967208862,
-0.08770692348480225,
0.6066670417785645,
-0.4987471401691437,
0.17328312993049... | |
// parent file
fil=fil.getAbsoluteFile();
if((par=fil.getParentFile())!=null) { IoUtil.createDir(par); }
randomFile=new RandomAccessFile(fil,"rw");
sync=syn;
}
// *****************************************************************************
// INSTANCE METHODS - OUTPUT STREAM IMPLEMENTATION
// ***... | [
-0.13000106811523438,
-0.4175778925418854,
0.45678067207336426,
0.013340737670660019,
0.07706031203269958,
0.3247087299823761,
0.0184618066996336,
-0.33996012806892395,
-0.05988636985421181,
-0.7422996163368225,
-0.13728468120098114,
0.5820274353027344,
-0.3906000852584839,
0.1117735654115... | |
}
public void flush() throws IOException {
if(sync) { randomFile.getFD().sync(); }
}
public void close() throws IOException {
randomFile.close();
}
// *****************************************************************************
// INSTANCE METHODS - RANDOM ACCESS EXTENSIONS
// **********************... | [
0.014214204624295235,
-0.30274641513824463,
0.34699589014053345,
-0.04569578170776367,
-0.05319201201200485,
0.2110747992992401,
-0.2704455256462097,
-0.2966008186340332,
-0.014073323458433151,
-0.6114780902862549,
-0.16435927152633667,
0.6336794495582581,
-0.2729891836643219,
-0.274932354... | |
{
return randomFile.getFD();
}
} // END PUBLIC CLASS
``` | [
0.15682239830493927,
-0.3273627758026123,
0.010411924682557583,
-0.018901892006397247,
0.19059810042381287,
-0.13774345815181732,
0.12400275468826294,
0.019434023648500443,
-0.1735108196735382,
-0.5364083647727966,
-0.15098564326763153,
0.5551117658615112,
-0.3431515395641327,
0.4278852641... | |
I'm new to Data Generation Plans in Visual Studio, but I googled a bit and can't find the answer to this question. I've made modifications to my schema on the database side (changed the size of an NVARCHAR field) based on data that was generated by a Data Generation Plan (a procedure broke because the field was too lar... | [
0.6513359546661377,
0.047228481620550156,
0.43736231327056885,
0.0247179064899683,
0.0255760308355093,
-0.06498001515865326,
0.14370572566986084,
-0.10503673553466797,
-0.4601359963417053,
-0.7740635275840759,
0.11607090383768082,
0.47093337774276733,
-0.06446032226085663,
0.15431186556816... | |
field size inside of the generation plan, but this is a simple case of something that will be more complicated later on.
Doesn't the IDE force you to update your data generation plan if your schema changes anyway?
[From the MSDN](http://msdn.microsoft.com/en-us/library/aa833256(VS.80).aspx):
> When you create a data ... | [
0.09992840141057968,
-0.4511559307575226,
0.25486865639686584,
0.18396113812923431,
0.18053750693798065,
-0.22249765694141388,
-0.269282728433609,
-0.4077931344509125,
-0.41539186239242554,
-0.5738707780838013,
-0.17601513862609863,
0.5430657863616943,
-0.2593524754047394,
0.12522056698799... | |
> * You create a data generation plan in a database project that does not
> have a schema yet. You then import a
> schema into the database project.
> * You create a data generation plan in a database project that has a
> schema, and then the schema changes.
>
>
> In both cases, you are prompted to
> update the d... | [
0.17011132836341858,
-0.27482956647872925,
0.28128916025161743,
0.253140389919281,
0.015400010161101818,
-0.027308844029903412,
0.06884266436100006,
-0.10520733892917633,
-0.1866946965456009,
-0.9559605717658997,
-0.3771641254425049,
0.3079470098018646,
-0.26867422461509705,
0.117857597768... | |
edit the plan. You can close and
> reopen the data generation plan to
> display the prompt again.
More evidence from [a blog](http://blogs.msdn.com/gertd/archive/2008/02/14/data-generation-wizard.aspx) on this subject:
> ... the schema of the objects inside the database has to match the table inside the database pr... | [
0.3809828758239746,
-0.28233039379119873,
0.3664093613624573,
0.015872780233621597,
-0.06138792634010315,
-0.2605905830860138,
0.1796199232339859,
0.035218168050050735,
-0.08981392532587051,
-0.9083464741706848,
-0.062142785638570786,
0.5713222622871399,
-0.32073357701301575,
0.03524931147... | |
I need to figure out how to communicate between ViewModels. I'm new to MVVM so please be kind.
Here's a dumbed down example
class definitions(assume that I have hooked the Child.PropertyChanged event in the ParentViewModel):
```
public class ParentViewModel : ViewModelBase
{
public ChildViewModel Child { get; se... | [
0.4307721257209778,
-0.28433823585510254,
0.615964412689209,
0.0008051173645071685,
0.13222205638885498,
0.17581279575824738,
0.025647632777690887,
0.03903499245643616,
0.11988209187984467,
-0.8779877424240112,
0.07635870575904846,
0.5086765289306641,
-0.16635699570178986,
0.21866311132907... | |
_FirstName = value;
OnPropertyChanged("FirstName");
}
}
}
```
Here's what you see in the resource dictionary
```
<DataTemplate DataType="{x:Type vm:ParentViewModel}">
<vw:ParentView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vm:ChildViewModel}">
<vw:ChildView/>
</DataTemplate>... | [
-0.3280101716518402,
-0.3227985203266144,
0.48965245485305786,
-0.009914797730743885,
0.42200449109077454,
0.28825220465660095,
-0.03054325468838215,
0.03804420307278633,
-0.11932498216629028,
-0.970228910446167,
-0.2032504677772522,
0.31967803835868835,
-0.0013897694880142808,
0.366743296... | |
ChildView gets instantiated (via selection from the DataTemplate) it creates a new ChildViewModel class and the ParentViewModel doesn't have access to it.
So how can I instantiate the DataContext of the View to be the original ViewModel that caused the DataTemplate to be selected?
An obvious fix is to mmerge the prop... | [
0.0016178233781829476,
-0.1518455147743225,
0.477640300989151,
0.33627015352249146,
0.03572062402963638,
0.2541315257549286,
-0.022671109065413475,
-0.1407468020915985,
-0.05535354092717171,
-0.7518560886383057,
-0.16294988989830017,
0.6134595274925232,
-0.13287733495235443,
0.261950075626... | |
WPF. `DataTemplates` always have their data context set to the data for the template (in this case the ViewModel):
```
<DataTemplate DataType="{x:Type vm:ChildViewModel}">
<vw:ChildView/>
</DataTemplate>
```
The end result is that you can build your view model objects separately (both parent and child classes) a... | [
0.22289642691612244,
-0.20273523032665253,
0.5781336426734924,
0.03543517738580704,
-0.0852019414305687,
0.034741196781396866,
-0.028383035212755203,
-0.4802970588207245,
-0.23729723691940308,
-0.6660676598548889,
-0.1400243490934372,
0.5274620652198792,
0.08842214941978455,
0.017540037631... | |
I have an application in PHP/MySQL. I am searching for an automated way upgrading database behind the application.
I don't need to have the compatibility with older versions once it is upgraded.
I have read [jeff's](https://blog.codinghorror.com/get-your-database-under-version-control/) and [K. Scott Allen's](http://o... | [
0.6268406510353088,
0.45478174090385437,
-0.055388450622558594,
0.011829598806798458,
0.024559034034609795,
-0.3009500205516815,
0.30188167095184326,
-0.07788407057523727,
0.04782376065850258,
-0.7027693390846252,
0.21276694536209106,
0.5230023264884949,
-0.3034612238407135,
0.149610117077... | |
NOT NULL
)
```
After your database can track what version # it is on - it can do SQL upgrades automatically.
You should lock your schema table while upgrading schema. This way you wont have two requests at the same moment trying to upgrade your schema.
So - keep track of the version you are upgrading from - build a... | [
0.4299788773059845,
-0.0925767570734024,
0.5228644013404846,
-0.12990128993988037,
0.1516450047492981,
-0.4131021499633789,
0.3029285967350006,
-0.38009002804756165,
-0.20609202980995178,
-0.6944875717163086,
-0.2390645295381546,
0.86734539270401,
-0.19153347611427307,
0.24493512511253357,... | |
$this->db->query('CREATE TABLE sntrack_inbound_shipment (
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`from` VARCHAR(255) NOT NULL,
`date` DATE NOT NULL,
`invoice` VARCHAR(255) NOT NULL,
`notes` TEXT
)'); | [
0.050963688641786575,
0.15867669880390167,
0.45515021681785583,
-0.312436580657959,
0.08402365446090698,
-0.04122801870107651,
0.3714042007923126,
-0.1742575615644455,
0.34633198380470276,
-0.36358997225761414,
-0.4168587923049927,
0.10268300771713257,
-0.47423601150512695,
0.4375407099723... | |
$this->setVersion(1);
case 1:
$this->db->query('ALTER TABLE sntrack_details ADD `shipment_id` INT');
$this->db->query('ALTER TABLE sntrack_product ADD `inventory` INT NOT NULL DEFAULT 0');
$this->db->query('CREATE TABLE sntrack_inventory_shipment (
`shipment_id` INT NOT NULL,
... | [
0.24304381012916565,
-0.17286303639411926,
0.4774512052536011,
-0.2651377022266388,
0.148125559091568,
0.1553562879562378,
-0.052791401743888855,
-0.4569309949874878,
0.0498533733189106,
-0.5432315468788147,
-0.3453860878944397,
0.4363064765930176,
-0.6575781106948853,
0.29965683817863464,... | |
PRIMARY KEY (`shipment_id`, `product_id`)
)');
$this->setVersion(2);
...etc
``` | [
0.3713778853416443,
-0.28466033935546875,
0.48807135224342346,
-0.16843755543231964,
0.3416096270084381,
-0.21809354424476624,
0.0076595391146838665,
-0.2568749189376831,
0.03550609573721886,
-0.3499355614185333,
-0.47063174843788147,
0.7180259823799133,
-0.5752718448638916,
0.253714144229... | |
How can I check if a value is null or empty with [XSL](http://en.wikipedia.org/wiki/XSL)?
For example, if `categoryName` is empty? I'm using a *when choosing* construct.
For example:
```
<xsl:choose>
<xsl:when test="categoryName !=null">
<xsl:value-of select="categoryName " />
</xsl:when>
<xsl:ot... | [
0.03923125937581062,
-0.08831407129764557,
-0.1559326946735382,
-0.19175292551517487,
-0.13174834847450256,
-0.44264307618141174,
0.21278749406337738,
-0.15395180881023407,
-0.07941826432943344,
-0.5730409026145935,
-0.14461828768253326,
0.43969035148620605,
-0.14376680552959442,
-0.162097... | |
of the following Java?":
```
// Equivalent Java, NOT XSLT
!(categoryName == null || categoryName.equals(""))
```
For more details e.g., distinctly identifying null vs. empty, see [johnvey's answer below](https://stackoverflow.com/a/825924/93345) and/or [the XSLT 'fiddle'](http://xsltransform.net/94hvTAf/3) I've adap... | [
-0.19413866102695465,
0.20437566936016083,
0.25469523668289185,
-0.30969199538230896,
-0.2956746220588684,
-0.0277243759483099,
0.41426900029182434,
-0.3958369791507721,
-0.26041048765182495,
-0.10164643079042435,
-0.10946699231863022,
0.45257046818733215,
-0.35643839836120605,
-0.07807419... | |
I want to extract a single item from a sequence in F#, or give an error if there is none or more than one. What is the best way to do this?
I currently have
```
let element = data |> (Seq.filter (function | RawXml.Property (x) -> false | _ -> true))
|> List.of_seq
|> (function he... | [
0.16551990807056427,
-0.1004551500082016,
0.4340791702270508,
-0.12764757871627808,
0.37946200370788574,
-0.07810627669095993,
0.4621112048625946,
-0.4875936210155487,
-0.035892605781555176,
-0.3590571880340576,
-0.11256009340286255,
0.5605783462524414,
-0.21781383454799652,
0.171445637941... | |
many elements.") | [] -> failwith("Empty sequence"))
|> (fun x -> match x with MyElement (data) -> x | _ -> failwith("Bad element."))
```
It seems to work, but is it really the best way?
Edit: As I was pointed in the right direction, I came up with the following:
```
let element = data |> (Seq.fi... | [
-0.05400966852903366,
-0.1585082709789276,
0.18193869292736053,
-0.07309964299201965,
0.051007915288209915,
-0.022524196654558182,
0.2479674518108368,
-0.5470670461654663,
0.08981141448020935,
-0.5389308929443359,
0.05521479249000549,
0.5374876260757446,
-0.44766172766685486,
-0.2203668057... | |
s -> if Seq.length s <> 1 then failwith("The sequence must have exactly one item") else s)
|> Seq.hd
|> (fun x -> match x with MyElement (_) -> x | _ -> failwith("Bad element."))
```
I guess it's a little nicer.
Sequence has a find function.
```
val find : ('a -> bool) -> seq<'a... | [
-0.08011911064386368,
-0.1615993231534958,
0.3895818889141083,
-0.011814286932349205,
-0.2101946622133255,
0.11211012303829193,
0.3632120192050934,
-0.3656617999076843,
-0.1511218249797821,
-0.696365237236023,
-0.46337974071502686,
0.11185108125209808,
-0.21902208030223846,
-0.035820584744... | |
element, then doing a Seq.filter, then take the length after filter and ensure it equals one, and then take the head. All in Seq, no need to convert to a list.
Edit:
On a side note, I *was* going to suggest checking that the *tail* of a result is empty (O(1), instead of using the function `length` (O(n)). Tail isn't a... | [
-0.024480339139699936,
-0.30248042941093445,
0.38446858525276184,
-0.20883826911449432,
-0.023856788873672485,
-0.2805059552192688,
-0.006646944209933281,
-0.4011152684688568,
-0.022646011784672737,
-0.5722571611404419,
-0.1817099004983902,
0.34636420011520386,
-0.4365268051624298,
-0.1995... | |
What is the easiest way to monitor how long it is taking to render my asp.net pages (I'm using webforms still if it matters)?
I know that the page lifecycle is pretty involved, but I'm basically just looking for one number that tells me how long my code took to run and to display that at the bottom (or wherever) of t... | [
0.4725499153137207,
-0.15885737538337708,
0.24866566061973572,
0.133734792470932,
-0.2646651864051819,
0.020979467779397964,
0.5217360258102417,
0.5101010799407959,
-0.2147679179906845,
-1.2459455728530884,
0.2691720426082611,
0.326214998960495,
0.3920954763889313,
-0.08857213705778122,
... | |
```
Response.Write(Context.Trace.FinalRenderTimeFromFirst)
```
But I can't figure out how to inspect the contents of the trace element.
You want to enable tracing.
From [The Basics of .NET Tracing](http://www.asp101.com/articles/robert/tracing/default.asp):
> [M]odify the trace element in
> web.config as follows:
... | [
0.3939993381500244,
0.1644624024629593,
0.3508080244064331,
0.034008752554655075,
0.13027235865592957,
-0.3471573293209076,
0.5143032670021057,
-0.4076094627380371,
-0.023399783298373222,
-0.7229242324829102,
-0.152030810713768,
0.42925193905830383,
-0.21357157826423645,
-0.055251985788345... | |
It isn't really causing a problem but it is annoying me... Does anyone know how to refresh the locations for your user config in Visual Studio? When I click synchronize in the Project Properties --> Settings. I get the error message: No user.config files were found in any of the following locations. Those paths no long... | [
0.5529446005821228,
0.133989617228508,
0.2222171574831009,
0.23642697930335999,
0.11252005398273468,
-0.16905581951141357,
0.4384794235229492,
0.3285215497016907,
-0.480716735124588,
-0.7355874180793762,
0.23282195627689362,
0.4216754734516144,
0.0539405457675457,
0.22296209633350372,
0.... | |
the solution?
Visual Studio 2008
Windows XP
It's not an error, so much as a warning that "There were no files to delete, so nothing was actually done."
From "[Synchronize button on the Settings tab](http://www.developmentnow.com/g/55_2006_3_0_0_729014/Synchronize-button-on-the-Settings-tab.htm)":
> The "Synchronize"... | [
-0.34045591950416565,
-0.08580045402050018,
0.8014308214187622,
0.013889716938138008,
0.16181278228759766,
0.05452246591448784,
0.3657967448234558,
-0.3721279799938202,
-0.15965516865253448,
-0.5143125653266907,
-0.36511775851249695,
0.7152310013771057,
-0.5639878511428833,
-0.043872691690... | |
sessions, so the versions don't get "out of sync" and cause errors reading from the settings file.
The warning would also, of course, happen the second time you click "Synchronize" in a row. | [
0.3459850251674652,
-0.06817973405122757,
0.26482734084129333,
0.2316041737794876,
0.3386615216732025,
-0.44104015827178955,
0.6892449259757996,
0.014277324080467224,
-0.2185342162847519,
-0.2410055249929428,
-0.08620114624500275,
0.5748627185821533,
-0.31402823328971863,
-0.03797464817762... | |
I'm doing a course on Rails that focuses on version 1.1.6 so I'm trying to figure out which of the numerous changes between 1.x and 2.x are the most critical to be aware of for practical use. At the moment I don't need to know all the little nitty gritty changes - just the big ones.
There's nothing that's can't-live-wi... | [
0.41701027750968933,
0.04133230820298195,
0.17898406088352203,
0.07184361666440964,
0.18562699854373932,
-0.1570095270872116,
0.5079427361488342,
0.03475451469421387,
-0.06836356967687607,
-0.8700082302093506,
-0.27687767148017883,
0.6444676518440247,
-0.21603477001190186,
-0.0379395224153... | |
Consider this scenario.
I have my own website, that I use as my identifier, but I use a third-party OpenID provider (in my case yahoo), as described [here](http://wiki2008.openid.net/Delegation), to login on Relying Party (RP) websites such stackoverflow and sourceforge.
It seemed to be a wise move:
* I am not locke... | [
0.24497060477733612,
0.07894834876060486,
0.13742420077323914,
0.11624348908662796,
0.020761793479323387,
-0.16068992018699646,
0.36034470796585083,
0.10409186035394669,
-0.2454236000776291,
-0.7704803943634033,
-0.12421607226133347,
0.24369513988494873,
-0.1471405029296875,
0.025744967162... | |
server
**Question**
How is the RP supposed to work? My understanding is that it should use the identifier **I** provide, and use the provider (yahoo) only for authentication (and not for identification). Is that correct? Did something change recently?
Just to be clear, I mean that my identification should be
<http:/... | [
0.039222780615091324,
0.12042590230703354,
0.7024791836738586,
-0.07254528254270554,
-0.1778014898300171,
-0.06936831027269363,
0.355485200881958,
0.24231532216072083,
-0.4631601870059967,
-0.5907340049743652,
0.11595475673675537,
0.22054091095924377,
0.030135156586766243,
0.27393320202827... | |
website, on which I log in, it asks me if I'd like to "continue on stackoverflow", I say yes, it "redirects" and on the stackoverflow site I see "This is an OpenID we haven't seen before", it shows my yahoo ID and I'm actually locked out!
Is it a bug, or am I missing something?
PS: if you are wondering how I'm writi... | [
0.2501283586025238,
0.20296251773834229,
0.13540954887866974,
0.0414169505238533,
0.09192144870758057,
-0.3871144950389862,
0.4034329950809479,
-0.002043543616309762,
-0.49254491925239563,
-0.4756499230861664,
0.009513732977211475,
0.27828872203826904,
-0.3191448450088501,
0.11294585466384... | |
I'm still interested in some details: what has changed from OpenID 1.1 to 2.0, about delegation? Why in the specs it has been choosen to let the provider "break" the delegation? The more you explain, the better the chances to have your answer accepted.
I believe Andrew's answer is quite accurate. The only thing I can a... | [
0.4438852071762085,
-0.04949409142136574,
-0.03163374587893486,
0.11256667226552963,
-0.25453999638557434,
-0.26195913553237915,
0.11532051861286163,
0.05250733718276024,
-0.2700481712818146,
-0.5322485566139221,
0.025875888764858246,
0.36809420585632324,
-0.24894611537456512,
0.1244165301... | |
click the Yahoo button), and then their chosen ID comes back from the server in the id\_res response. This also allows the server to do things like offer a choice of which ID to send (as Yahoo does) or send a unique identifier to each RP (as Google does).
It also means that all the necessary information is in an `id_r... | [
0.3814299702644348,
-0.2536112666130066,
0.5559452772140503,
0.03851581737399101,
-0.0829775258898735,
0.14589735865592957,
0.2897098660469055,
-0.3858753740787506,
-0.19859901070594788,
-0.48527809977531433,
-0.44137993454933167,
0.5088743567466736,
-0.13099418580532074,
0.247026190161705... | |
`checkid` request at all.
A v1.x provider was completely unaware when delegation was evening happening. This design prevented a provider from even choosing to not support delegation, but also made for some UI problems; it would be asking if you wanted to provide the "joe.coolprovider.com" ID when you were actually usi... | [
0.36702099442481995,
-0.3431685268878937,
0.1325749009847641,
0.30907177925109863,
-0.14966140687465668,
-0.5188600420951843,
0.3929891288280487,
-0.10652460157871246,
-0.13835537433624268,
-0.6854643821716309,
-0.021478425711393356,
0.3122006356716156,
-0.3327767550945282,
-0.184988528490... | |
words, let the market fight it out.) | [
0.20866134762763977,
-0.05574598163366318,
-0.16551139950752258,
0.032967887818813324,
-0.36492255330085754,
0.6946236491203308,
0.43238693475723267,
-0.07683604210615158,
-0.03960753604769707,
-0.4955950677394867,
0.22524747252464294,
0.7640649676322937,
-0.22709283232688904,
0.1761325746... | |
im trying to use a file upload control from the obout control library, i really like it, and think its quite slick without any flash!..
i downloaded the entire installer, played with the settings in the samples, and made the control act exactly as i wanted.
i created a brand new web application ins vs2008, and includ... | [
0.5608326196670532,
0.1416303515434265,
0.5636388659477234,
0.2508566379547119,
-0.06385541707277298,
-0.1389400064945221,
0.22356028854846954,
-0.07358721643686295,
0.00199510483071208,
-0.4548226296901703,
0.013879713602364063,
0.7642611861228943,
-0.15307994186878204,
-0.186260461807250... | |
existing project that i have been working on, so i copied the web.config values, the dlls, and the folders with the style code and the aspx page that i tweaked..
i put them in the same locations i did with the other project, built it and ran the page..
everything loaded however when i clicked on a button i got a webre... | [
0.06643901020288467,
-0.04861915856599808,
-0.046141643077135086,
0.2610399127006531,
-0.11359328776597977,
-0.33573615550994873,
0.3100435733795166,
-0.20337370038032532,
-0.5721632838249207,
-0.5101707577705383,
-0.04154650866985321,
0.684673011302948,
-0.4814925491809845,
0.001084498246... | |
as a hidden way to include javascript files it requires.. and its failing on those includes.. which baffles me.
i have stripped out everything from my project, and it is still failing, i found an article that stated it could be the iis configuration of the site, so i checked, i have the mapping to the .net 2.0 lib fil... | [
0.3287777602672577,
0.09320563077926636,
0.10828520357608795,
-0.038430605083703995,
-0.026087088510394096,
-0.33080369234085083,
0.6560372114181519,
-0.10727021098136902,
0.13586601614952087,
-0.819656491279602,
-0.12282908707857132,
0.4974449574947357,
-0.38971850275993347,
0.31111654639... | |
did not seem to help..
does anyone know where i can go with this?...
EDIT:
i came across this in the event viewer..
```
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 05/05/2009 2:38:16 PM
Event time (UTC): 05/05/2009 6:38:16 PM
Event ID: 8579dbce2f5844169b1740bb95ebffb1
Event ... | [
-0.6564754843711853,
0.2235541045665741,
0.4415331184864044,
0.09177625924348831,
0.14067739248275757,
0.026313725858926773,
0.317251592874527,
-0.05221359059214592,
-0.46812453866004944,
-0.34848684072494507,
-0.1749662458896637,
0.5267657041549683,
-0.07724829763174057,
0.276037663221359... | |
Process name: aspnet_wp.exe
Account name: GREGE6500\ASPNET
Exception information:
Exception type: HttpException
Exception message: Session state is not available in this context.
Request information:
Request URL: http://localhost/SVN_WORKSPACE/WWWROOT/WorkEstimateSystem/WebResource.axd?d=gPWI1Ny... | [
-0.4276062846183777,
0.40877795219421387,
0.45634904503822327,
-0.05934279412031174,
-0.033986084163188934,
0.3452005386352539,
0.33002790808677673,
-0.3687039017677307,
-0.4729403555393219,
-0.34595319628715515,
-0.16637039184570312,
0.008698794059455395,
0.0384356752038002,
0.58874094486... | |
Thread account name: GREGE6500\ASPNET
Is impersonating: False
Stack trace: at System.Web.HttpApplication.get_Session()
at GlobalClass.CURRENT_EMPLOYEE_ID()
at GlobalClass.checkLogin(String pagerequested)
at GlobalClass.Application_OnPostRequestHandlerExecute(Object sender, EventArgs e)
at Syste... | [
-0.2354847639799118,
-0.16139142215251923,
0.25219979882240295,
-0.01796283945441246,
-0.04932699725031853,
-0.03687009587883949,
0.3056250214576721,
0.20206961035728455,
-0.47487595677375793,
-0.6817502975463867,
0.0676327794790268,
-0.028447888791561127,
-0.32111963629722595,
0.357581555... | |
custom functions?
FIXED:
inside the global.asax page..
```
Sub Application_OnPostRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs)
select case requestedPageName
case "webResource.axd"
exit sub
```
this fixed it!
The "Application\_OnPostRequestHandlerExecute" method runs for ever reques... | [
-0.023205187171697617,
-0.292143315076828,
0.5527833700180054,
0.08374282717704773,
-0.0063683525659143925,
0.07755079120397568,
0.2820720672607422,
0.018751738592982292,
-0.5481882691383362,
-0.6254104375839233,
-0.27503225207328796,
0.5958804488182068,
-0.5358440279960632,
0.461663305759... | |
I wrote a dll in VS 2005 that will be loaded by another program that was developed in VS 2003. When that program tries to load my dll, it throws a `System.BadImageFormatException: The format of the file 'Foo.dll' is invalid`.
I searched SO and Google, and it seems that the different version of .NET is the culprit. My ... | [
0.31469619274139404,
0.20558497309684753,
0.20728491246700287,
0.07773305475711823,
-0.36801522970199585,
-0.11212188005447388,
0.42953139543533325,
-0.0035445736721158028,
-0.21013565361499786,
-0.4368884861469269,
0.12769176065921783,
0.6426745057106018,
-0.5634201169013977,
0.3172488808... | |
for projects over here, where for some obscure reason there is no more VSS version available. | [
0.669314444065094,
-0.2923148572444916,
-0.24783848226070404,
0.3260020911693573,
0.08346714824438095,
-0.34722116589546204,
0.3727280795574188,
0.5565213561058044,
-0.3378550410270691,
-0.4904191792011261,
0.09228309243917465,
0.2203596532344818,
-0.04207674041390419,
-0.11676458269357681... | |
How do you take a java library that is for the desktop or an applet and make it so you can use its functions for a web page? I know not all things are meant for the web, but can you call a "regular" java class in an apache/tomcat setup server and it "work"? Do you have to so something to it to get it work with a web pa... | [
0.5854490399360657,
-0.001241633901372552,
-0.060211487114429474,
0.3130953013896942,
-0.09013795107603073,
-0.15074416995048523,
0.1191079318523407,
0.08285381644964218,
-0.22133933007717133,
-0.6955158114433289,
0.2848850190639496,
0.6127398610115051,
-0.3899165391921997,
-0.171737357974... | |
browser, but maybe its libraries and a generated .png rendered by the browser.
Although there is debate on applets being alive or dead, I am not interested in using one at the moment, as it appears it is dead, albeit with new possible life in the latest update 6u10. I don't know that I want to invest in JavaFX either.... | [
0.4962882101535797,
0.0919506624341011,
0.29985010623931885,
0.06750406324863434,
-0.22681857645511627,
-0.11991021037101746,
0.300529420375824,
0.5586543679237366,
-0.40585628151893616,
-1.0418168306350708,
0.13220806419849396,
0.4496554136276245,
-0.2814512550830841,
0.05487580969929695,... | |
VSS version available. | [
0.026996133849024773,
-0.7569177746772766,
0.4298053979873657,
0.174030140042305,
0.05416770279407501,
-0.0008298887987621129,
0.3577217161655426,
0.3194257318973541,
-0.10886368900537491,
-0.7167851328849792,
-0.3879483640193939,
0.35887861251831055,
-0.2828747034072876,
-0.13441616296768... | |
I have a Delphi application that connects to an oracle database.
When I try to log in as SYSDBA, I get the error:
```
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
```
When I try to log in with a user of "SYS AS SYSDBA", I get the error:
```
ORA-01017: invalid username/password; logon denied
```
**... | [
-0.15559335052967072,
0.22301454842090607,
0.14324769377708435,
0.04498133808374405,
-0.07449230551719666,
0.041138771921396255,
0.1524583101272583,
-0.20883004367351532,
-0.35823535919189453,
-0.570733904838562,
-0.27904823422431946,
0.378377765417099,
-0.5476790070533752,
0.2133781760931... | |
parameter name. Please try using an underscore instead of the blank.
[This page](http://www.connectionstrings.com/oracle) shows several connection strings used in certain tools to connect to oracle database. | [
0.14504419267177582,
0.06051800027489662,
-0.2534749209880829,
0.3708972930908203,
0.00868108682334423,
0.11520314961671829,
-0.13813629746437073,
0.03955503925681114,
-0.37263360619544983,
-0.1612761914730072,
0.25681203603744507,
0.38478490710258484,
-0.17411839962005615,
0.2683168351650... | |
My site currently implements custom 404 pages which we have mapped in IIS. So when a user does something like www.mysite.com/foo/bar/doesnotexist, it will execute the 404.aspx URL. This works great, but when inspecting the HTML returned, the form post URL is relative:
`<form method="post" action="404.aspx?404%3bhttps%... | [
0.3573836088180542,
0.18662364780902863,
0.7370551824569702,
0.05794341862201691,
-0.13511303067207336,
-0.1180446520447731,
0.6153329610824585,
-0.14194633066654205,
-0.43570828437805176,
-0.7555000185966492,
0.0470409020781517,
0.3014093339443207,
-0.044709138572216034,
0.409080564975738... | |
answer [here](https://stackoverflow.com/questions/411167/postback-problem-when-using-url-rewrite-and-404-aspx).
Since you are new here hopefully the close Nazi's will cut you some slack. Basically when you write a question there should be a list of similar questions that pop-up right under your question. If you see a ... | [
0.4677741825580597,
0.09077168256044388,
0.2601279020309448,
0.36870500445365906,
-0.32322603464126587,
-0.30119651556015015,
0.4372154772281647,
0.253962904214859,
-0.45144715905189514,
-0.37059569358825684,
0.04383937641978264,
0.3388233482837677,
0.12223167717456818,
-0.0390522405505180... | |
I have a windows services that bind to some TCP port, this port is use for IPC between my application.
Is there a programming (WinAPI/WinSocket and etc) way to know which application connected to my port?
i.e. in my Windows Services I would like to get a PID of the process that connected to my port.
If you're looking... | [
0.0027983577456325293,
-0.019649045541882515,
0.34638941287994385,
0.1753649115562439,
0.0014087456511333585,
0.05695626512169838,
0.17578335106372833,
-0.06747688353061676,
-0.23991593718528748,
-0.9999784231185913,
0.008924641646444798,
0.40289920568466187,
-0.24922871589660645,
0.402435... | |
I'm pretty much a newbie and I need to dig into this matter to write some college article so I need some bootstrap.
Here and there I read that NHibernate offers much more flexibility (compared with L2S) in mapping domain model to database. Can you write down some hints what should I explore?
There is maybe only one pr... | [
0.24766266345977783,
-0.25728505849838257,
0.20379973948001862,
0.11150259524583817,
-0.16959157586097717,
-0.45234233140945435,
0.13760437071323395,
0.08014709502458572,
-0.35511112213134766,
-0.431396484375,
0.20619863271713257,
0.41314125061035156,
-0.19720473885536194,
0.37847465276718... | |
than 5 seconds), its all OK, but if one of the operations can last for long time (5 minutes, for instance) in this case user have to wait until this operation finished.
If DoWork contains long lasting operations you can use something like AbortableBackgroundWorker. Something like this:
```
public class AbortableBack... | [
0.31915879249572754,
-0.2517654597759247,
0.5420404672622681,
-0.11282585561275482,
0.49462732672691345,
-0.16468240320682526,
0.3764590919017792,
-0.227133646607399,
-0.35610929131507874,
-0.4508947730064392,
0.029677556827664375,
0.5907065868377686,
-0.13609544932842255,
0.51430124044418... | |
base.OnDoWork(e);
}
catch (ThreadAbortException)
{
e.Cancel = true; //We must set Cancel property to true!
Thread.ResetAbort(); //Prevents ThreadAbortException propagation
}
}
public void Abort()
{
if (workerThread != | [
0.4302310049533844,
-0.22473746538162231,
0.34377148747444153,
-0.3244015872478485,
0.49527257680892944,
0.161244735121727,
0.5808074474334717,
-0.32992005348205566,
-0.09101009368896484,
-0.2776520848274231,
-0.15068157017230988,
0.687926173210144,
-0.4533311426639557,
0.2748584449291229,... | |
null)
{
workerThread.Abort();
workerThread = null;
}
}
}
```
In this case you can truly abort pending operations, but you also have some restrictions (for more information about aborting managed thread and some restrictions see [Plumbing the Depths of the ThreadAbortExcepti... | [
0.19230332970619202,
0.017395375296473503,
0.5846723914146423,
-0.3060998320579529,
0.09193908423185349,
-0.24911968410015106,
0.6903305053710938,
-0.18605579435825348,
-0.3434964418411255,
-0.1764061003923416,
-0.07744061946868896,
0.42825186252593994,
-0.3479726314544678,
0.5003511905670... | |
I have an NSString containing a path, but it could be either a file, or a directory.
Is there an equivalent to the Python `os.path.isdir()` and `os.path.isfile()` methods in Cocoa?
See the [NSFileManager Class Reference](https://developer.apple.com/documentation/foundation/nsfilemanager/1410277-fileexistsatpath?langua... | [
-0.0416332483291626,
0.13095131516456604,
0.4876291751861572,
-0.19001860916614532,
0.0584850087761879,
0.0029956791549921036,
0.1685275435447693,
-0.24680934846401215,
-0.33879074454307556,
-0.6054612994194031,
-0.193651020526886,
0.3495388329029083,
-0.32940220832824707,
0.10071080178022... | |
I am attempting to edit some resources in another .NET executable, using reflection.
Is this possible/how would I do this? Or am I going down completely the wrong route?
See the [NSFileManager Class Reference](https://developer.apple.com/documentation/foundation/nsfilemanager/1410277-fileexistsatpath?language=objc)
`... | [
0.06675340980291367,
0.07560206949710846,
0.2385188639163971,
-0.2746425271034241,
0.12301991879940033,
0.07035666704177856,
0.7244734764099121,
-0.1614997684955597,
-0.21478982269763947,
-0.8168845772743225,
-0.13217677175998688,
0.3609253466129303,
-0.26070111989974976,
0.138312280178070... | |
I have a comparison I'd like to make more efficient in SQL.
The input field (fldInputField) is a comma separated list of "1,3,4,5"
The database has a field (fldRoleList) which contains "1,2,3,4,5,6,7,8"
So, for the first occurrence of fldInputField within fldRoleList, tell us which value it was.
Is there a way to a... | [
0.19540220499038696,
-0.17504577338695526,
0.5004377365112305,
0.020877987146377563,
-0.038526978343725204,
0.3204253613948822,
-0.15302419662475586,
-0.3219192922115326,
-0.12949231266975403,
-0.635242760181427,
0.4720979332923889,
0.5943395495414734,
-0.3106949031352997,
0.16091063618659... | |
good) way to do things. It's inherited code and we are simply trying to put in a quick fix while we look at building in the logic to deal with this via normalized rows.. Luckily this isn't heavily used code.**
I agree with @Ken White's [answer](https://stackoverflow.com/questions/826149/sql-wizardry-compare-values-from... | [
-0.1232685074210167,
0.01201615296304226,
0.4681170582771301,
-0.044260572642087936,
0.06717455387115479,
0.009321589954197407,
0.09316133707761765,
-0.40081799030303955,
-0.2049591839313507,
-0.6303651332855225,
0.054260432720184326,
0.8249346613883972,
-0.32735514640808105,
-0.1620145887... | |
match the comma-separated input string. If you need to restrict the result to one row per `aTable` entry, with the *first* matching role:
```
SELECT t1.*, MIN(r1.fldRole) AS First_fldRole
FROM aTable t1 JOIN aTableRoles r1 USING (aTable_id)
WHERE FIND_IN_SET(r1.fldRole, fldInputField);
GROUP BY t1.aTable_id;
``` | [
-0.3558856248855591,
-0.2506074011325836,
0.6440622806549072,
-0.2604411542415619,
0.27640801668167114,
0.3318893015384674,
-0.2351585477590561,
-0.42813795804977417,
-0.04468235746026039,
-0.5635660290718079,
-0.3134898245334625,
0.7260865569114685,
-0.27769291400909424,
-0.02258538641035... | |
I'd like to partly automate creation of GNU-style ChangeLog entries when working with source code in version control. The `add-changelog-entry-other-window` works with one file at a time and you have to visit the file to use it.
What I'd like to see instead is to have some command that would take an output of `diff -u... | [
0.2006598711013794,
0.2749631106853485,
0.5360826253890991,
-0.30101725459098816,
0.03923000022768974,
-0.0006733185728080571,
0.050666455179452896,
-0.0034102785866707563,
-0.3633030354976654,
-0.6602331399917603,
0.039138007909059525,
0.4607776403427124,
-0.3283548355102539,
0.3559201955... | |
Removed.
* file2.c: WRITE YOUR CHANGES HERE
* file3.c: New.
```
Better yet, if it could parse the changed files in some languages to an extent so it could offer:
```
* file2.c (new_function): New function.
(deleted_function): Removed.
(changed_function): WRITE YOUR CHANGES HERE
```
I have found [... | [
0.15120066702365875,
0.015957927331328392,
0.7654181122779846,
-0.1396324336528778,
-0.006031182128936052,
0.1579754799604416,
0.06741064786911011,
-0.057127099484205246,
-0.5012549757957458,
-0.700524091720581,
-0.044956024736166,
0.5946718454360962,
-0.45252764225006104,
0.37329614162445... | |
it would be impossible to commit the changes and the ChangeLog in the same commit.
EDIT2: Apparently add-changelog-entry-other-window (C-x 4 a) works not only from visited file but from diff hunk involving that file too. ([Source](http://www.emacswiki.org/emacs/ChangeLog)) This is almost what I am looking for. This to... | [
0.1665349006652832,
-0.031448062509298325,
0.5566469430923462,
-0.11025334149599075,
0.049845799803733826,
0.015054372139275074,
0.09367319941520691,
-0.22805148363113403,
-0.2193852961063385,
-0.7618162631988525,
0.027994675561785698,
0.4502689838409424,
-0.4045364558696747,
0.02309074439... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.