text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Mining options
>
>
> IMP-00002: failed to open ABCD1\_EXCLUDE\_CLOB\_TABS\_BAK.dmp for read
> Import file: EXPDAT.DMP >
Looked like a file permission issue to me so I tried changing it.
> E:\oracle\_10\_2\BIN>cacls E:\ABCD1\_EXCLUDE\_CLOB\_TABS\_BAK.dmp /p atlantis:F
>
>
> Are you sure (Y/N)?y
>
>
> processed ... | [
-0.2512240409851074,
0.29972121119499207,
0.282926470041275,
0.07235497236251831,
0.3833067715167999,
-0.12858502566814423,
0.2990230917930603,
-0.24614191055297852,
-0.19143681228160858,
-0.28590312600135803,
0.013114466331899166,
0.5782937407493591,
-0.3666924834251404,
0.090967856347560... | |
file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log
``` | [
0.07367011904716492,
0.28511783480644226,
0.34690433740615845,
-0.06177521124482155,
0.1573973000049591,
-0.05354367196559906,
0.05640890821814537,
0.055768806487321854,
-0.19166548550128937,
-0.23195648193359375,
-0.30827808380126953,
0.2653868496417999,
-0.4145987629890442,
0.26908200979... | |
I have a regex where
```
%word% can occur multiple times, separated by a "<"
```
%word% is defined as `".*?"|[a-zA-Z]+`
so i wrote
```
(".*"|[a-zA-Z]+)([<](".*"|[a-zA-Z]+))*
```
Is there any way i can shrink it using capturing groups?
```
(".*"|[a-zA-Z]+)([<]\1)*,
```
But i don't think `\1` can be used as it'... | [
-0.11688752472400665,
0.0430171862244606,
0.4208433926105499,
-0.17983858287334442,
-0.05078570544719696,
0.2537602186203003,
0.1638006865978241,
-0.39966803789138794,
-0.18710888922214508,
-0.6050786375999451,
0.02370234578847885,
0.5213054418563843,
-0.28278255462646484,
0.09926780313253... | |
need to replaced by regex using %% and then wrote the program to replace it by the regular expression defined for the text. | [
-0.1916216015815735,
0.1450752466917038,
0.24265602231025696,
-0.18818478286266327,
0.1547553986310959,
0.227290540933609,
0.3482271134853363,
-0.04789930582046509,
0.34828704595565796,
-0.3243938088417053,
-0.021412482485175133,
0.30057886242866516,
-0.3862648010253906,
0.1446064412593841... | |
This may have been asked before, but it's really hard to search for terms that limit the search results...
Take the following SQL snippet:
```
declare @source table (id int)
declare @target table(id int primary key, sourceId int)
set nocount on
insert into @target values (0,0)
insert into @source(id) values(1)
--i... | [
0.06121234968304634,
0.13273635506629944,
0.4378475546836853,
-0.08272956311702728,
0.1474922150373459,
-0.05225327983498573,
0.14015884697437286,
-0.40065354108810425,
0.007600132841616869,
-0.44820475578308105,
0.01604916714131832,
0.6163820028305054,
-0.12516959011554718,
0.094570599496... | |
insert statement more than likely is effected against a snapshot of the @target table so `(select max(id)+1 from @target)` will always return a value of 1 - causing the violation error above...
Is there any way around this apart from resorting to a cursor?
Change your insert statement to the following:
> insert into ... | [
0.3326169550418854,
-0.10353167355060577,
0.25102710723876953,
-0.14540335536003113,
0.06378315389156342,
-0.06857503950595856,
0.12059476226568222,
-0.2975272536277771,
0.15282349288463593,
-0.4572722315788269,
0.08061147481203079,
0.8821327686309814,
-0.30185842514038086,
-0.231610894203... | |
I'm looking for a simple tool, preferably one that I can redistribute with my application, that **non-technical end-users** can use to add users (and logins if necessary) to a particular SQL Server (Express) database.
Obviously SSME will do the job, but I don't want to require users to install something so heavy-weigh... | [
0.3583276867866516,
-0.01791216991841793,
0.4282623529434204,
0.25821876525878906,
0.18672814965248108,
0.03427264094352722,
0.13582268357276917,
-0.2512197494506836,
-0.2781451940536499,
-0.7820987701416016,
-0.011526164598762989,
0.37165382504463196,
-0.17242847383022308,
-0.031089503318... | |
rewriting a large piece software, make good early progress fixing some of the well-known flaws in the old architecture, and then get bogged down in the functionality that you've just been taking for granted for years. At this point your management begin to get twitchy and everything can get very uncomfortable.
...and... | [
0.24502630531787872,
0.2396552860736847,
0.323043555021286,
-0.13249707221984863,
0.1463257074356079,
-0.18271653354167938,
0.4854746460914612,
-0.18435992300510406,
-0.350827693939209,
-0.6432503461837769,
-0.10625290870666504,
0.5897790193557739,
-0.20783914625644684,
0.2544357180595398,... | |
to .NET. Unfortunately many of those projects ran into difficulty and several were never completed. The problem they were trying to solve was too large
This excellent Microsoft [page](http://msdn.microsoft.com/en-gb/dd408373.aspx) recommends two third party migration tools as better than the (no longer [available](htt... | [
0.15299208462238312,
0.08502449095249176,
0.49289822578430176,
0.12794291973114014,
0.08122872561216354,
-0.16004648804664612,
0.1475081741809845,
-0.3196108043193817,
-0.20578621327877045,
-0.665907084941864,
-0.2823193669319153,
0.9621574878692627,
-0.16864679753780365,
0.020433491095900... | |
hope of a .NET equivalent.
The Microsoft page also says:
> Performing a complete rewrite to .NET is far more costly and difficult to do well [than converting] ... we would only recommend this approach for a small number of situations.
There are many more C# developers than VB.NET developers on Stack Overflow, so you... | [
0.2125074714422226,
-0.019857939332723618,
0.017790216952562332,
0.09646257758140564,
-0.06010356917977333,
-0.13706514239311218,
0.3047805726528168,
-0.01709817536175251,
-0.05078359320759773,
-0.6844947934150696,
-0.059686630964279175,
0.4781358540058136,
-0.04417627304792404,
-0.1572972... | |
on the Microsoft .NET Framework, and they are equally powerful.
So it's a personal decision whether you want to choose C# or VB.NET. The Artinsoft tool claims it can convert VB6 to C#.
---
EDIT: I just found another offering - [NewCode](http://www.newcode.com/) - through an ad on a programming website!
My snap jud... | [
0.6396600604057312,
0.4490983486175537,
0.008115204982459545,
-0.295938104391098,
-0.14298340678215027,
-0.0685458704829216,
0.38918042182922363,
0.12187361717224121,
-0.32600292563438416,
-0.5508325099945068,
-0.09235862642526627,
0.1694730669260025,
0.054520606994628906,
0.26092478632926... | |
WPF, Java... | [
-0.015860460698604584,
0.026250800117850304,
-0.1229800134897232,
-0.22458529472351074,
-0.4099607467651367,
-0.14394859969615936,
0.1034952774643898,
-0.2558702528476715,
-0.4681147336959839,
-0.38667330145835876,
-0.09391143918037415,
0.015951162204146385,
-0.34571757912635803,
0.0527731... | |
My application install file is being generated using WiX. In the WiX configuration I am associating a file type that works with the application. How can I associate an icon with this file type in the WiX configuration?
This is how I did it. I declared:
```
<Icon Id="Icon.exe" SourceFile="..\Installer\Graph.ico" />
`... | [
0.19270078837871552,
0.27036988735198975,
0.7546584010124207,
-0.2842947840690613,
0.17873786389827728,
0.25160670280456543,
0.32355231046676636,
-0.19052866101264954,
0.0770038291811943,
-0.8996723890304565,
-0.21796399354934692,
0.44108089804649353,
-0.4991518259048462,
0.188287138938903... | |
</Extension>
</ProgId>
``` | [
-0.1608470380306244,
0.05315588787198067,
0.1660485416650772,
-0.2303856611251831,
-0.15257883071899414,
0.13054786622524261,
0.1697331964969635,
0.23712459206581116,
-0.06783093512058258,
-0.8088610172271729,
-0.7496920228004456,
0.34755635261535645,
-0.18493863940238953,
0.05793477222323... | |
I want add a key up event to every text box element in a table excluding the last text box in each row. The table is dynamic on both axis.
The key up event will total the values in all but the last text box. The total is then placed in the last text box for the row.
The script for the totaling and setting the total ... | [
-0.1259455382823944,
-0.09219739586114883,
0.41379380226135254,
-0.021592767909169197,
-0.09310887008905411,
0.21042251586914062,
0.1148512214422226,
-0.42246803641319275,
-0.12123250216245651,
-0.5461864471435547,
-0.13174091279506683,
0.6788012981414795,
-0.32203543186187744,
0.069525778... | |
the very last checkbox.
Ideally the solution will not involve any further markup to the table example below or involve any looping. However if that is what it takes, so be it.
```
<table id="Grid">
<tr id="r1">
<td>Row 1</td>
<td><input type="text" id="txt_a1_b1"></td>
<td><input type="te... | [
-0.2134503871202469,
0.17918065190315247,
0.4155575633049011,
-0.14008843898773193,
0.08458349853754044,
0.06839776039123535,
0.17725571990013123,
-0.6037053465843201,
-0.01702769659459591,
-0.6894838809967041,
-0.2833380103111267,
0.6376938223838806,
-0.2802515923976898,
-0.28387030959129... | |
</tr>
<tr id="r2">
<td>Row 2</td>
<td><input type="text" id="txt_a2_b1"></td>
<td><input type="text" id="txt_a2_b2"></td>
<td><input type="text" id="txt_a2_b3"></td>
<td><input type="text" id="txt_a2_b4"></td>
<td><input type="text" id="total_a2"></td>
</tr>
<... | [
-0.4405381679534912,
0.2954104244709015,
0.10791967064142227,
-0.32176142930984497,
-0.11535099893808365,
0.6795374751091003,
0.05953558161854744,
-0.8103340864181519,
-0.2634895443916321,
-0.4807916283607483,
-0.27746790647506714,
0.636221170425415,
-0.19650191068649292,
-0.20481602847576... | |
<td><input type="text" id="txt_a3_b2"></td>
<td><input type="text" id="txt_a3_b3"></td>
<td><input type="text" id="txt_a3_b4"></td>
<td><input type="text" id="total_a3"></td>
</tr>
</table>
```
One final point, the total text box does need to be a text box as there is also a requirement to... | [
0.05196235701441765,
0.01178817916661501,
0.34167516231536865,
-0.16538769006729126,
-0.26296213269233704,
0.2956443428993225,
0.029183635488152504,
-0.4635411500930786,
-0.3173065185546875,
-0.47326481342315674,
-0.2242317497730255,
0.5665861964225769,
-0.08757530152797699,
0.181472852826... | |
I am using MVC RC2.
I have Two tables
1)Product (PID, PName, CIDfk);
2)Category(CID, CName);
So i query like these
```
var Product = from p in dc.Product
from C in dc.Category
where p.CIDfk == c.CID
select new { ProductName | [
0.0032420651987195015,
-0.13294565677642822,
0.545206606388092,
-0.24141116440296173,
-0.03066686913371086,
0.2143629640340805,
-0.08262372761964798,
-0.29406434297561646,
-0.27792418003082275,
-0.48709017038345337,
-0.2080327272415161,
0.5313550233840942,
-0.07919856160879135,
0.656137526... | |
= p.PName, ProductCategory = c.CName };
return view();
```
where dc is database context of LINQ-to-SQL class (.dbml);
How do i display in view? where i pass Product? (in viewdata or in 'return view()')
Please help me out...
I'm surprised noones quite got this yet:
```
$("#Grid tr :not(:last-child) :text").keyup(fu... | [
0.31666404008865356,
-0.23428763449192047,
0.7093808650970459,
-0.06804481148719788,
0.06298182159662247,
0.12774135172367096,
-0.02167598344385624,
-0.29156816005706787,
0.02422361820936203,
-0.5298144817352295,
-0.2160869836807251,
0.523654580116272,
0.10996539890766144,
0.29494360089302... | |
With all the hype around functional programming, which are the best resources to getting started in functional programming [for a C# programmer]? I am not looking for C# 3.0 language improvements.
I think for a C# developer with .NET background, the best way to enter functional programming is to learn F#. | [
0.27787870168685913,
0.2808987498283386,
-0.07624199986457825,
0.06676492840051651,
-0.028077201917767525,
-0.26364532113075256,
0.38524675369262695,
0.4191203713417053,
-0.11987300962209702,
-0.4790413975715637,
-0.07656840980052948,
0.9123623371124268,
-0.03555925935506821,
-0.2537368834... | |
As the question says, I want to load a DLL from a location in memory instead of a file, similarly to LoadLibrary(Ex). I'm no expert in WinAPI, so googled a little and found [this article](http://www.joachim-bauch.de/tutorials/loading-a-dll-from-memory/) together with MemoryModule library that pretty much meets my needs... | [
0.2898409962654114,
0.07814602553844452,
-0.05572393164038658,
0.1652783751487732,
-0.15243837237358093,
-0.12305453419685364,
0.05586136132478714,
0.08716464042663574,
-0.3204094171524048,
-0.583134651184082,
-0.03937704861164093,
0.3719160854816437,
0.1271401196718216,
0.1919812709093094... | |
facing when using it?
Just for the curious ones, I'm exploring the concept of encrypting some plug-ins for applications without storing the decrypted version on disk.
Well, you can create a RAM Drive according to [these instructions](http://www.picobay.com/projects/2006/06/how-to-make-windows-xp-ram-disk-drive.html), ... | [
0.3234327733516693,
0.25413307547569275,
0.22965766489505768,
0.0935082659125328,
-0.04110369831323624,
0.02104763686656952,
0.03387601301074028,
-0.05771614983677864,
-0.27246925234794617,
-0.3648497462272644,
0.13407395780086517,
1.113373041152954,
0.052928388118743896,
0.099534742534160... | |
the DLL since its just sitting there in the RAM Drive for everybody to watch.
Another thing I'm interested about is Why you actually want to do this? Perhaps your end result can be achieved by some other means other than Loading the DLL from memory. For instance when using a binary packer such as [UPX](http://en.wikip... | [
0.38848546147346497,
-0.3315896689891815,
0.3313845098018646,
0.25913169980049133,
-0.1618054360151291,
-0.4103458821773529,
-0.16137902438640594,
0.01579524204134941,
-0.6023707389831543,
-0.5888965129852295,
-0.21897642314434052,
0.747232973575592,
-0.27710971236228943,
0.284646838903427... | |
header makes sure that there is enough space allocated) | [
0.16796298325061798,
0.1320255845785141,
0.12749052047729492,
0.03588747978210449,
0.29578760266304016,
-0.2823203206062317,
-0.1290907859802246,
-0.26293984055519104,
-0.1876554638147354,
-0.6401447057723999,
-0.2791672348976135,
-0.009945215657353401,
-0.2260720282793045,
-0.022518292069... | |
```
$content = preg_match('/[flv[^/]]+:(.*?)[^/]]*/]','', $content);
```
Could someone give me the regular expression for extracting [flv:example.flv 465 301] from a string. Also, I would like to put the example.flv into second element of the array, and the dimensions in to the third element. I have tried the above r... | [
0.03845278173685074,
0.00815387163311243,
0.5986328125,
-0.08579833805561066,
-0.021329490467905998,
-0.05498237907886505,
0.15275758504867554,
-0.18678008019924164,
-0.22393488883972168,
-0.5912238955497742,
-0.1290532648563385,
0.8510600328445435,
-0.25993359088897705,
-0.215152129530906... | |
I want to convert a money datatype to a decimal, because I want to record the results to 8 decimal places.
For example, in a currency rate table I see the rate stored as 2871047428.20 as a money datatype; using Microsoft SQL Management Studio, I want to divide that by 10000000 in order to achieve the result 287.104742... | [
0.10400673747062683,
0.4655386805534363,
0.22072531282901764,
0.28355133533477783,
0.0657069981098175,
0.3565441370010376,
-0.11031723022460938,
-0.18401874601840973,
-0.38549095392227173,
-0.3304280638694763,
0.22117026150226593,
0.2739250957965851,
0.06298567354679108,
0.3868771493434906... | |
left column the decimal value, right column the calculated money value:
```
DECLARE @money AS money
SET @money = 2871047428.20
SELECT CAST(@money AS decimal(34,4)) / 10000000, @money / 10000000
```
See also here on Stack Overflow:
* [How do I convert from a money datatype in SQL server?](https://stackoverflow.com/q... | [
-0.5137720704078674,
0.3914121985435486,
0.5429335236549377,
-0.20321452617645264,
-0.4602334201335907,
0.3200260400772095,
-0.2096082866191864,
-0.2797050178050995,
-0.33241939544677734,
0.11237813532352448,
-0.011965664103627205,
0.258156418800354,
0.14765988290309906,
0.1094093099236488... | |
I'm learning regex and need to get all possible matches for a pattern out of a string.
If my input is:
```
case a
when cond1
then stmt1;
when cond2
then stmt2;
end case;
```
I need to get the matches which have groups as follows
Group1:
1. `"cond1"`
2. `"stmt1;"`
and Group2:
1. `"cond2"`
2. `"stmt2;"`
Is it ... | [
0.16375185549259186,
-0.051592759788036346,
0.19478513300418854,
-0.0891096219420433,
-0.15381395816802979,
-0.14099900424480438,
0.409839004278183,
-0.2648247182369232,
0.13552561402320862,
-0.8199814558029175,
0.1095489040017128,
0.43170711398124695,
-0.38382843136787415,
-0.213703393936... | |
can do it with something like (not tested, but you get the idea):
```
Regex t = new Regex(@"when\s+(.*?)\s+then\s+(.*?;)", RegexOptions.Singleline)
allMatches = t.Matches(input_string)
```
But as I said this will work only for not nested statements.
**Edit 2**: Changed a little the regex to include the semicolon in... | [
-0.013985302299261093,
-0.28837159276008606,
0.307231605052948,
-0.047193221747875214,
-0.27136462926864624,
-0.15536637604236603,
0.24445141851902008,
-0.30616089701652527,
-0.015317263081669807,
-0.6036654114723206,
-0.12951630353927612,
0.4246779680252075,
-0.44678404927253723,
-0.21537... | |
hope).
**Edit 3**: New regex - should handle multiple statements
```
Regex t = new Regex(@"when\s+(.*?)\s+then\s+(.*?)(?=(when|end))", RegexOptions.Singleline)
```
It contains a positive lookahead so that the second group matches from *then* to the next 'when' or 'end'. In my test it worked with this:
```
case a
w... | [
-0.048910558223724365,
-0.10621750354766846,
0.43934717774391174,
-0.3051204979419708,
0.2633655071258545,
0.2180841714143753,
0.39479294419288635,
-0.5426558256149292,
0.1810031682252884,
-0.673886775970459,
-0.003067972604185343,
0.562874436378479,
-0.19283875823020935,
-0.17837513983249... | |
I want to set the JAVA\_HOME variable from a batch script
This snippet will search the current PATH for java.exe, and print out where it was found:
```
for /f %%j in ("java.exe") do @echo.%%~dp$PATH:j
```
On my system this gives me
> C:\WINDOWS\system32\
Using this you can set JAVA\_HOME as follows:
```
@echo off... | [
0.27635979652404785,
0.4738714098930359,
0.28647422790527344,
-0.7788622975349426,
0.1914454996585846,
0.31221187114715576,
0.3638463020324707,
-0.4628700315952301,
0.04371121898293495,
-0.6162197589874268,
0.20145872235298157,
0.4230482578277588,
-0.3841966390609741,
0.012826040387153625,... | |
I have a REST webservice that listens to POST requests and grabs hold of an XML payload from the client and stores it initially as an InputStream i.e. *on the Representation object you can call getStream()*.
I want to utilise the XML held in the InputStream and I am begining to think it would be wise to persist it, so... | [
0.09467128664255142,
-0.09681032598018646,
0.4065684974193573,
-0.11126334965229034,
-0.14354214072227478,
-0.13743017613887787,
0.21315133571624756,
-0.06257041543722153,
-0.15003246068954468,
-0.7150174975395203,
-0.19720888137817383,
0.5272362232208252,
-0.2884581685066223,
0.2393102645... | |
allow you to pass:
* InputStreams
* Files
* URLs
* SAX InputSources
not strings.
What should I really be doing here with InputStreams in relation to parsing XML out of it?
Bearing in mind I will want to re-interrogate that XML in future processes by the code.
If you have an InputStream, and want to use it as an XML ... | [
0.3417789936065674,
0.15285703539848328,
0.022282829508185387,
0.3505323827266693,
-0.1776629090309143,
-0.14536221325397491,
0.004372288938611746,
0.10675165802240372,
-0.43260815739631653,
-0.7756819725036621,
-0.14639227092266083,
0.49006423354148865,
-0.291420042514801,
-0.106995552778... | |
XML. Rather than write a long posting here that may miss your specific situation, here's an [article](http://www.kdgregory.com/index.php?page=xml.parsing) that I wrote.
Edit: actually, since my article doesn't specifically talk about web services, I should dive into it a little here. There are two places where the con... | [
0.388813316822052,
0.08337932825088501,
0.2623096704483032,
0.22856660187244415,
-0.19287492334842682,
-0.36718761920928955,
-0.0637516900897026,
0.25275108218193054,
-0.18896374106407166,
-0.7425512075424194,
-0.4164193272590637,
0.22118918597698212,
-0.24177531898021698,
-0.2041977643966... | |
typically use a text/xml without a character set specification (which is incorrect but probably not going to cause harm). If they do things correctly, they'll specify application/xml, with utf-8 encoding. However, you should verify what you're getting, so that you don't end up with some strange encoding that the parser... | [
0.4143608510494232,
0.18485812842845917,
0.23386023938655853,
0.21557611227035522,
0.150945782661438,
-0.5232478976249695,
0.1881561577320099,
0.2620301842689514,
-0.028404293581843376,
-0.8814737200737,
-0.694340169429779,
0.5285349488258362,
-0.020373793318867683,
-0.14296679198741913,
... | |
How can I kill all my instances from the command line? Is there a command for this or must I script it?
As far as I know there isn't an 'all' switch for the ec2-terminate-instances command. So you probably need to script it. It won't be that hard. You only need to generate a comma separated list of your instances.
Thi... | [
0.4965091645717621,
0.004583926405757666,
0.24121862649917603,
-0.07709243893623352,
0.2335370033979416,
-0.052651647478342056,
0.441539466381073,
-0.06846360862255096,
-0.3427063226699829,
-0.6716257333755493,
0.06607918441295624,
0.8702609539031982,
-0.7113468050956726,
0.191641286015510... | |
for inst in reserv.instances:
if inst.state == u'running':
print "Terminating instance %s" % inst
inst.stop()
if __name__ == "__main__":
main()
```
It uses [boto](http://code.google.com/p/boto/) library. This is not necessary for the specific task (a simple shell scrip... | [
-0.26721450686454773,
-0.47757405042648315,
0.520172119140625,
-0.004919659346342087,
0.21848814189434052,
-0.2235531359910965,
0.554253876209259,
0.09207290410995483,
-0.4436405599117279,
-0.6766738295555115,
-0.49475210905075073,
0.7850353121757507,
-0.6519874334335327,
-0.02392862364649... | |
Firefox? This is by far the easiest way to access EC2. | [
0.3222343921661377,
0.03976926580071449,
0.40279898047447205,
0.20380471646785736,
0.20179441571235657,
-0.5699299573898315,
0.3119848668575287,
-0.043218452483415604,
-0.2224399745464325,
0.005164086818695068,
-0.12524792551994324,
0.476728618144989,
-0.3939453959465027,
-0.23946242034435... | |
What is the fastest way to delete one specific entry from the middle of Array()
Array is large one having Strings.
I dont want just to set Array[5] = null, but instead array size should be reduced by one and array[5] should have content of array[6] etc.
Don't have any benchmarks to support this, but one would assume ... | [
-0.24843405187129974,
-0.0022176639176905155,
0.4017146825790405,
0.1407867670059204,
-0.035072218626737595,
-0.11981363594532013,
0.22188176214694977,
-0.3311140239238739,
-0.3452589511871338,
-0.7458007335662842,
0.037640735507011414,
0.2545945942401886,
-0.4224957525730133,
0.2017465531... | |
I've got a strange thing happening with my app.config file. My ConnectionStrings section contains this:
```
<connectionStrings>
<add name="Connection" connectionString="Data Source=TheServer;
Initial Catalog=TheDatabase;IntegratedSecurity=SSPI"
providerName="System.Data.SqlClient"/>
</connectionStrings>
```
... | [
0.12706667184829712,
0.17886823415756226,
0.7218914031982422,
-0.05445489659905434,
0.3123529255390167,
-0.14414429664611816,
0.3196776509284973,
0.039753496646881104,
-0.5777158737182617,
-0.8144938349723816,
0.0215610321611166,
0.10993215441703796,
-0.3136751055717468,
0.6834883093833923... | |
I have a GridView with BoundColumns. The first 2 columns are hidden and I would like to access them using gridView1.Rows[0].Cells[0].Text and gridView1.Rows[0].Cells[1].Text respectively and I get a empty string. When the columns are changed to visible, then I can access the values.
I have tried changing the column wid... | [
0.3671155571937561,
-0.10558271408081055,
0.3633284866809845,
-0.17021985352039337,
-0.1519835889339447,
0.19854722917079926,
0.32075443863868713,
-0.05402828007936478,
-0.08792392909526825,
-0.955112874507904,
0.31157758831977844,
0.5450801253318787,
-0.2195717990398407,
0.267901986837387... | |
site](http://www.highoncoding.com/Articles/87_Accessing%20Invisible%20Columns%20of%20GridView%20Control.aspx).
If however, they are not part of the `DataKeyNames` collection, then you can use the following hack to make sure that the value is persisted in ViewState (as opposed to normal behaviour for hidden fields in A... | [
0.23982341587543488,
0.12326915562152863,
0.7728215456008911,
-0.09880869090557098,
-0.08090036362409592,
-0.13287648558616638,
0.50132817029953,
-0.34901678562164307,
-0.19804996252059937,
-0.5683921575546265,
-0.08135700970888138,
0.7127055525779724,
-0.02314160019159317,
0.2116281539201... | |
I do not have *stackless* currently running, so I can not try this myself.
```
import stackless
ch1 = stackless.channel()
ch2 = stackless.channel()
ch1.send(ch2)
ch3 = ch1.receive()
```
Are *ch2* and *ch3* then the same channel? Say:
```
text = "Hallo"
ch2.send(text)
assert text == ch3.receive()
```
This feature... | [
-0.0026995798107236624,
0.0035940867383033037,
0.5892361998558044,
-0.024979114532470703,
-0.09315307438373566,
-0.07676228135824203,
0.2463056892156601,
-0.2868184447288513,
-0.45587292313575745,
-0.6315198540687561,
-0.04572293907403946,
0.4533929228782654,
-0.37546175718307495,
0.070762... | |
I'm used to ASPNET and Django's methods of doing forms: nice object-orientated handlers, where you can specify regexes for validation and do everything in a very simple way.
After months living happily without it, I've had to come back to PHP for a project and noticed that everything I used to do with PHP forms (manua... | [
0.8771330714225769,
0.05776415765285492,
-0.032495126128196716,
0.022189056500792503,
-0.302565336227417,
-0.28142082691192627,
0.49920135736465454,
0.011737057007849216,
-0.0998636856675148,
-0.49112385511398315,
0.33202672004699707,
0.45220762491226196,
-0.30537909269332886,
0.0787107422... | |
process of learning another framework) turned out to be just writing the forms and their processing code in Django and pulling their output into the PHP using CURL.
FILTHY but it was quick, has all the power of Django and it works. | [
0.5038562417030334,
-0.09916356205940247,
0.26952967047691345,
0.2945762276649475,
-0.2113707959651947,
-0.39073216915130615,
0.3643832206726074,
-0.08491843938827515,
0.10428041219711304,
-0.6278473734855652,
0.43352100253105164,
0.2664540112018585,
0.00946042686700821,
-0.167989403009414... | |
I have some trouble figuring out the best way to store my programming todo lists.
I consider the following:
* one todo list in source control for each project
* a master todo list (with general tasks) in a personal folder in source control
How do you find that?
What would you suggest?
Edit:
Thanks for the sugges... | [
0.727665901184082,
-0.06635404378175735,
-0.09681200981140137,
0.23996499180793762,
0.014437585137784481,
-0.1385735124349594,
0.30552437901496887,
0.21806390583515167,
-0.19671370089054108,
-0.6369442343711853,
0.26030462980270386,
0.32401180267333984,
-0.2548225224018097,
-0.279448658227... | |
the bug tracker (especially if it is not possible to put them as //TODO in code)?
why don't you use a bug tracking system?
examples :
[Bugzilla](http://www.bugzilla.org/)
[Mantis](http://www.mantisbt.org/)
[Trac](http://trac.edgewall.org/)
and many others ... | [
0.628787636756897,
-0.10364600270986557,
-0.34661903977394104,
0.30662664771080017,
0.08517748862504959,
-0.21749459207057953,
0.38276875019073486,
0.1658429354429245,
-0.5554304718971252,
-0.5059324502944946,
0.173161119222641,
0.7082903981208801,
-0.7847582101821899,
-0.15933364629745483... | |
What's the recommended way to structure html that includes navigation so it's still SEO'able and accessible.
For example, should the structure be more like that of a document:
1. Skip to content (link, hidden by CSS)
2. Navigation
3. Content
4. Other content (right hand panes etc)
or:
1. Skip to navigation (link, h... | [
0.28550198674201965,
-0.07415184378623962,
0.370821475982666,
0.13509760797023773,
-0.2076738029718399,
-0.26259303092956543,
0.13541273772716522,
-0.08605067431926727,
-0.5211387872695923,
-0.5466917157173157,
-0.2358892560005188,
0.3115098178386688,
-0.46326470375061035,
-0.4862020909786... | |
random tips:
* Keep your markup standards-compliant, valid and simple.
* Don't stuff keywords or anything.
* Treat headings like they should be treated. Make sure there's only 1 h1 tag. Use headings sparingly across the page ([Google](http://googlewebmastercentral.blogspot.com/2008/11/googles-seo-starter-guide.html) -... | [
0.4148288071155548,
-0.183071568608284,
0.48133665323257446,
0.42773598432540894,
-0.2942237854003906,
-0.3156115710735321,
0.13261233270168304,
-0.2073918730020523,
-0.1520162671804428,
-0.35509753227233887,
0.0634974017739296,
0.6989799737930298,
0.03825255483388901,
-0.3535718023777008,... | |
I am currently working on a simple revision system that enables me to store multiple versions of a single file, which works fine so far.
Table structure is as follows (obsolete columns removed for the sake of brevity):
```
file_id file_revision file_parent file_name
-------------------------------------... | [
0.00984857976436615,
0.4378056228160858,
0.7005135416984558,
-0.35486894845962524,
0.10084893554449081,
-0.23322045803070068,
-0.07824031263589859,
-0.12269285321235657,
-0.2335246503353119,
-0.6010332107543945,
-0.025991011410951614,
0.35438406467437744,
-0.14288921654224396,
0.3668049871... | |
2 1 foorevised.jpg
3 3 1 | [
0.14385074377059937,
0.489871084690094,
0.30388158559799194,
-0.42849284410476685,
-0.5023918151855469,
-0.053168438374996185,
0.2860475778579712,
-0.3231296241283417,
0.39227959513664246,
-0.01340764295309782,
-0.3195154368877411,
0.2224828451871872,
-0.6534311175346375,
-0.17285169661045... | |
anotherrevision.jpg
```
Where:
* `file_id` is the primary key, which auto increments
* `file_revision` stores the revision number, defaulting to `1` when it's the first
* `file_parent` is the top level parent of revision, defaulting to `0` when first.
* `file_name` being the file name.
**The problem:**
* Preferab... | [
-0.27510207891464233,
-0.0999639704823494,
0.5770149827003479,
0.11750767379999161,
-0.012783234007656574,
-0.07667628675699234,
-0.15349306166172028,
-0.12540802359580994,
-0.2268509715795517,
-0.782341718673706,
-0.18168462812900543,
0.4325992166996002,
-0.042052630335092545,
0.407653599... | |
to populate in advance, then `select * from table where file_id=1 and is_latest=true` when you want to grab the latest version of file 1. Obviously this will make updating this table more complicated, however.
Another way to do it would be to store the latest versions of the files in one table, and historical versions... | [
0.3745819330215454,
-0.1367303878068924,
0.8557080626487732,
0.4651181995868683,
0.20215553045272827,
-0.1301785707473755,
-0.24766072630882263,
0.012775100767612457,
-0.1674918681383133,
-0.7157321572303772,
-0.12431425601243973,
0.3394639194011688,
-0.2366485744714737,
0.2294279485940933... | |
database can read them all out in sequential IO and not have to either 1) do a lot of seeks through the table to find just the records it needs or 2) scan the whole table discarding large amounts of data along the way for the old records.
Assuming you don't want to change the existing table design, what you want to do... | [
-0.035426732152700424,
-0.2793383300304413,
0.1971832811832428,
0.27933648228645325,
-0.11263012886047363,
-0.1767474114894867,
0.27310627698898315,
-0.22826670110225677,
-0.6330351829528809,
-0.3658629357814789,
0.14895205199718475,
0.37375643849372864,
-0.15022484958171844,
-0.0484685078... | |
I have a login link that fires a javascript function that calls a logout page. This is what the logout page consists of:
```
If Response.Cookies.Count > 0 Then
Response.Cookies("aLog").Value = Nothing
Response.Cookies.Clear()
End If
```
Originally I just had cookies.clear in there, but that wasn't working.
... | [
0.4747922420501709,
0.19133254885673523,
0.8308209180831909,
-0.2017226219177246,
0.11328192800283432,
-0.26392340660095215,
-0.005912573542445898,
-0.2074434459209442,
-0.016492566093802452,
-0.739871621131897,
-0.22386226058006287,
0.41113972663879395,
-0.43385159969329834,
0.14754335582... | |
$.cookie('aLog', null);
location.href = $(this).attr('href');
}
return false;
});
});
//]]>
</script>
```
The jQuery function `$.cookie` does not work either. The cookie is set by ASP.NET, so I figured I could unset it with ASP.NET too but apparently not. Any id... | [
0.2098340392112732,
-0.03080751746892929,
0.33268994092941284,
-0.027490753680467606,
0.24809817969799042,
-0.27786365151405334,
0.28837233781814575,
0.015156586654484272,
-0.14308062195777893,
-0.7028483152389526,
-0.21868060529232025,
0.7079460620880127,
-0.4024777412414551,
0.1871508061... | |
cookies in ASP.NET can be a little un-intuitive. To kill a cookie that already lives on the client-side, you have to set its expiration date to sometime in the past, and re-send the client the new cookie. The client browser will update the existing cookie with the new expiration date, and then immediately kill it since... | [
0.054654430598020554,
-0.3123522996902466,
0.6763866543769836,
-0.09645579010248184,
0.10448773950338364,
-0.0874696895480156,
0.553860604763031,
0.11972160637378693,
-0.2938418388366699,
-0.7074604034423828,
-0.3114815056324005,
0.12542171776294708,
-0.22134090960025787,
0.172881796956062... | |
I asked myself, what the community considers "best practices" when it comes to building a frontend for a database.
e.g.:
should every form has its own connection?
should all the database related stuff go into a separate layer? That is: creating a class, that handles all things database, which I then instantiate from... | [
0.5264775156974792,
0.17377449572086334,
0.21766507625579834,
0.18856669962406158,
0.014974950812757015,
-0.3369719386100769,
-0.10599362850189209,
-0.2234041839838028,
-0.19052886962890625,
-0.5789753198623657,
-0.1188681423664093,
0.030648600310087204,
-0.19473084807395935,
0.24907323718... | |
Web Application you normally have 3 layers of logic.
1. Presentation layer
2. Business Logic Layer
3. Data Access Layer
The last layer does everything regarding managing the database.
The Business Logic layer should never talk with the database directly, without using the Data Access Layer.
That's my best advise | [
0.23327675461769104,
0.24935618042945862,
0.7277565002441406,
0.22349798679351807,
-0.15185341238975525,
-0.46495670080184937,
0.31723564863204956,
0.01728416606783867,
-0.25561150908470154,
-0.6081218123435974,
-0.2627655267715454,
0.5130560398101807,
-0.21306799352169037,
-0.056505136191... | |
Is there anyway to have all emails go to a different address when `System.Web.HttpContext.Current.IsDebuggingEnabled` is true? Or do I need a new class which I use to send email everywhere?
We use a similar solution to the MailProxy method detailed by tvanfosson. However we have a few differences that I feel are worth ... | [
0.4477171003818512,
-0.12078496813774109,
0.39609992504119873,
0.1127040833234787,
-0.11765889078378677,
-0.2952854037284851,
0.5160447955131531,
-0.06546980887651443,
-0.11766546964645386,
-0.34382352232933044,
-0.046496398746967316,
0.22510041296482086,
-0.3333131670951843,
0.10272850841... | |
who is currently logged into the application and redirect all emails generated to them, with a failover to a standard list of recipients if the logged in user is not available for whatever reason. This helps if you have several people who are testing or developing as they will only get the emails they generated. We als... | [
0.6259688138961792,
-0.17311236262321472,
0.1704225093126297,
0.2691614627838135,
0.06842852383852005,
-0.12693187594413757,
0.326913982629776,
0.044545628130435944,
-0.011807088740170002,
-0.5701514482498169,
-0.24884705245494843,
0.35777613520622253,
-0.010572792962193489,
-0.17778635025... | |
tag to the subject of the message so I can set up a rule in my mail client to handle all testing messages. | [
0.655715823173523,
0.03911646455526352,
0.42152100801467896,
0.1597261130809784,
-0.13490687310695648,
-0.29471495747566223,
0.2056930661201477,
0.11593730747699738,
0.03336246311664581,
-0.3219688832759857,
0.14648576080799103,
0.2981070280075073,
-0.16997285187244415,
-0.0145668787881731... | |
how can I know the number of tokens in a bash variable (whitespace-separated tokens) - or at least, wether it is one or there are more.
The $# expansion will tell you the number of elements in a variable / array. If you're working with a bash version greater than 2.05 or so you can:
```
VAR='some string with words'
VA... | [
0.3081391155719757,
0.10956376791000366,
0.11903753131628036,
-0.056619517505168915,
-0.08513926714658737,
0.004256852436810732,
0.3256414234638214,
-0.6588767766952515,
-0.42281249165534973,
-0.4567826986312866,
0.1646505892276764,
0.3010603189468384,
-0.1127198338508606,
0.12853115797042... | |
or recast the variable back into a string:
```
VAR="${VAR[*]}"
``` | [
0.031765636056661606,
-0.0125167490914464,
0.02540726587176323,
-0.3119698166847229,
0.02285883203148842,
0.047959115356206894,
0.3015035390853882,
-0.031604066491127014,
0.04722363501787186,
0.00862392783164978,
-0.47903144359588623,
0.7187338471412659,
-0.299405574798584,
0.2767575383186... | |
On this page: <http://catonthecouchproductions.com/fish/boat-captain.html> I have a list on the bottom right box in yellow, but it is not displaying as a list-style-type:circle, but i have it set in my CSS.
I am not sure why it is acting this way. Any ideas?
I have FireBug installed and it doesn't seem like anything ... | [
0.23465420305728912,
0.2130035161972046,
0.42576834559440613,
0.045716844499111176,
-0.013625010848045349,
-0.05719549208879471,
0.12422878295183182,
0.05742820352315903,
-0.41373419761657715,
-0.8061798214912415,
0.21477308869361877,
0.3407580256462097,
-0.014650866389274597,
0.0185561385... | |
I have a project which requires an image in the window. This is a static image and i added through 'Add>Existing Item'. It exists in the root of the project.
I reference the image in a test page like so -
```
<Page x:Class="Critter.Pages.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
... | [
0.29560917615890503,
0.37225770950317383,
0.1320813000202179,
-0.060287702828645706,
-0.09027958661317825,
0.04944701865315437,
0.20604687929153442,
-0.3254375159740448,
0.08951272070407867,
-0.5945425033569336,
-0.12457624077796936,
0.12930472195148468,
-0.20377475023269653,
0.25085476040... | |
just throw it on a window then it works fine.
Any help would be great.
Try doing a full rebuild, or delete the build files and then build the file.
Visual Studio doesn't always pick up changes to resources, and it can be a pain to get it recompile.
Also try using a full URI as that helped me when I had the same prob... | [
0.5216454863548279,
0.007619574200361967,
0.06155722215771675,
0.1801985204219818,
-0.05011804401874542,
-0.18691392242908478,
0.42392808198928833,
0.036291200667619705,
-0.20024046301841736,
-0.8252338767051697,
-0.035908959805965424,
0.7161478996276855,
-0.16836553812026978,
0.0560735464... | |
I hear this word a lot in sentences like "javascript is a very expressive language". Does it just mean there aren't a lot of rules, or does "expressive" have a more specific meaning?
'Expressive' means that it's easy to write code that's easy to understand, both for the compiler and for a human reader.
Two factors tha... | [
0.3120920658111572,
0.2026502937078476,
0.3488410413265228,
-0.07498697191476822,
-0.4700939953327179,
-0.11544834822416306,
0.33604228496551514,
-0.02844199538230896,
-0.48109686374664307,
-0.5626030564308167,
0.10746916383504868,
0.6461429595947266,
0.029055695980787277,
-0.1624405235052... | |
works because it assumes stuff that Java makes you to specify explicitly. | [
0.4414609968662262,
0.05947345122694969,
-0.31382399797439575,
0.013408930040895939,
0.17762884497642517,
-0.5192059874534607,
0.3480296730995178,
0.05900675430893898,
0.2074303776025772,
-0.5655763745307922,
-0.3362928032875061,
0.6205350756645203,
-0.36011621356010437,
-0.363885253667831... | |
I have worked a few places which haven’t used source control. They seemed to get into the habit of putting comments around code they changed explaining the change so that things could be reverted.
I have found that this makes the code very difficult to read, and have been fairly adamant that such comments are not nee... | [
0.5486969947814941,
0.14627058804035187,
0.31304052472114563,
0.24077677726745605,
0.19430266320705414,
-0.08338413387537003,
0.012006218545138836,
0.15704397857189178,
-0.37319520115852356,
-0.5719011425971985,
0.2632850408554077,
0.5254484415054321,
0.08595875650644302,
0.437174946069717... | |
the commit messages. This should make the code more readable. Do people have a best practices way of documenting changes to code, so that it is not too cluttered but is still explanatory to someone trying to read it?
Just to be clear, I am not talking about a list of changes in the head of the file (which is a whole o... | [
0.420764684677124,
0.1383613795042038,
0.2662343978881836,
0.13438837230205536,
0.11459837108850479,
-0.19076748192310333,
0.18357563018798828,
0.09251075983047485,
-0.4294057786464691,
-0.6713261604309082,
-0.018587548285722733,
0.8171625733375549,
-0.09503111243247986,
-0.009287724271416... | |
and why it changed. Let the code and it's documentation do it's job (Doing things, and describing how/why those things are done), and let the version control system do it's job (controlling/documenting versions and changes).
Whenever you start indicating history in the present(current code), you are asking for trouble... | [
0.5164806246757507,
0.16609248518943787,
0.17655165493488312,
0.20820781588554382,
0.23666056990623474,
-0.13352249562740326,
0.06955841928720474,
-0.021782994270324707,
-0.5435568690299988,
-0.3486690819263458,
-0.26278311014175415,
0.6616793274879456,
0.006458532530814409,
0.092394679784... | |
Flex 3 debugging not working with FIREFOX 3 (under vista)
no trace() shown in console. breakpoints not working.
~~Do you have Flex Builder installed? If not, if you are using the free SDK, did you install the debug version of the Flash player?~~
Try reinstalling the debug version of the Flash player. [Here](http://ww... | [
0.09540939331054688,
-0.08988742530345917,
0.340423047542572,
0.005940285511314869,
-0.11870738118886948,
-0.4814292788505554,
0.47907644510269165,
-0.2242550551891327,
-0.13930940628051758,
-0.6883019208908081,
-0.1305459588766098,
1.0468682050704956,
-0.40957745909690857,
-0.375067949295... | |
How do i do this in wpf
VB.NET
```
Private Sub FrmSettings_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
e.Cancel = (e.CloseReason = Forms.CloseReason.UserClosing)
Me.Hide()
End Sub
```
c#
```
private void FrmSetti... | [
0.27793022990226746,
0.007494459860026836,
0.5855779647827148,
-0.19922858476638794,
-0.014670063741505146,
-0.449817419052124,
0.31089240312576294,
-0.49693208932876587,
0.06261228770017624,
-0.64169842004776,
-0.1761777400970459,
0.393242210149765,
-0.31269770860671997,
0.375475108623504... | |
to do this: <http://social.msdn.microsoft.com/forums/en-US/wpf/thread/549a4bbb-e77b-4c5a-b724-07996774c60a/> | [
0.21563348174095154,
-0.018231933936476707,
0.2702648341655731,
0.1763339787721634,
0.15312349796295166,
-0.23514506220817566,
0.24326524138450623,
0.2118975669145584,
-0.4878152310848236,
-0.5761688947677612,
-0.10412396490573883,
0.20232759416103363,
0.07388082146644592,
0.17459073662757... | |
I am playing around with using the WMD Editor (<http://wmd-editor.com/>) in my site. I have a really simple question. When I am ready to submit the text to the server; how do I get the output of the editor?
Something like this only returns the 'actual text that user typed in the textarea'
```
var jtext = documen... | [
0.5731765031814575,
0.13217470049858093,
0.4889155924320221,
-0.11193221807479858,
-0.37340205907821655,
-0.32813942432403564,
0.18371084332466125,
-0.00744900805875659,
0.1456739902496338,
-0.8933191299438477,
0.049021948128938675,
0.3762800097465515,
-0.13168320059776306,
0.1467526406049... | |
Based on the demo on the wmd site, the div in question has the class wmd-preview. Not sure why it's not id'd.
In jQuery, you'd use something like:
```
$('#formname').submit(function() {
$('#hidden_form_element').val($('.wmd-preview').html());
return true;
});
``` | [
0.40110161900520325,
-0.3303433060646057,
0.016696691513061523,
0.08258184045553207,
-0.43584999442100525,
-0.40533167123794556,
0.20685021579265594,
-0.04831758141517639,
0.010066239163279533,
-0.5501685738563538,
-0.017460105940699577,
0.26680225133895874,
-0.28222912549972534,
0.4033967... | |
I have a float value set to NaN (seen in the Watch Window), but I can't figure out how to detect that in code:
```
if (fValue == float.NaN) // returns false even though fValue is NaN
{
}
```
You want `float.IsNaN(...)`. Comparisons to `NaN` always return false, no matter what the value of the float is. It's one of th... | [
0.015013153664767742,
0.09014393389225006,
-0.2515847682952881,
-0.2787167429924011,
-0.3435213565826416,
0.09204645454883575,
0.054534293711185455,
-0.0208929181098938,
-0.18669715523719788,
-0.3964100778102875,
0.4037577211856842,
0.7715874910354614,
0.035569868981838226,
0.0986931994557... | |
I have put an UltraGrid on a WinForms user control. I have tweaked some settings so I can use the grid as a read-only multi-row select table. But there's one problem: by default the first row appears to be selected.
But the `Selected.Rows` property is empty, and also the `ActiveRow` property is `null`.
So the row app... | [
-0.17772702872753143,
-0.4395141005516052,
0.3923930823802948,
0.0723930075764656,
-0.014783216640353203,
-0.0157194621860981,
0.18200483918190002,
0.012239274568855762,
-0.07067471742630005,
-0.9144541621208191,
0.10071244090795517,
0.5116307139396667,
-0.48181870579719543,
0.374267846345... | |
found a solution, which I'll share with all of you:
```
myUltraGrid.DisplayLayout.Override.ActiveCellAppearance.Reset();
myUltraGrid.DisplayLayout.Override.ActiveRowAppearance.Reset();
``` | [
-0.08748465776443481,
-0.03727644681930542,
0.6988357305526733,
0.10503794252872467,
0.4059016704559326,
0.0510123036801815,
0.5291314125061035,
-0.13820171356201172,
0.001019858056679368,
-0.8109359741210938,
-0.4975288510322571,
0.4477909505367279,
-0.22084587812423706,
-0.14624841511249... | |
I have a Mac OS X application in the standard .app format and was wondering what is the easiest way to have a small script execute before the main program does. Is that possible?
**Edit:**
I only want to run the script once, so if I can set a flag or something after it runs that would be great!
**Second Edit:**
I d... | [
0.5580406785011292,
0.25519466400146484,
0.13860821723937988,
0.04728645458817482,
-0.06825404614210129,
-0.060881566256284714,
0.42732009291648865,
0.051571331918239594,
-0.17669795453548431,
-0.8745449781417847,
0.09459780156612396,
0.5240921378135681,
-0.3348962068557739,
-0.15971127152... | |
and then launch their executable, which you'd want to include in your bundle as a resource.
Of course, you'd also need to copy over all the original resources from the application.
Might I ask which program you are trying to run in this way? | [
0.591393232345581,
0.09004198759794235,
-0.13572417199611664,
0.3777245581150055,
0.3366888165473938,
-0.25566163659095764,
-0.0980464518070221,
0.32731759548187256,
-0.10817268490791321,
-0.2160215973854065,
-0.2734229862689972,
0.5429954528808594,
-0.032188452780246735,
-0.03989762067794... | |
My problem is that, i want to count the controls on a page and then get their types, if there are textboxes, checkboxes or comboboxes, then make them enable or disable? Is there any example on the net?
Thanks
You could use a method like:
```
public int CountControls(Control top)
{
int cnt = 1;
foreach (Contr... | [
0.18230915069580078,
0.17469941079616547,
0.42774495482444763,
0.12192658334970474,
0.1281483769416809,
-0.16007836163043976,
0.05834928900003433,
-0.10821844637393951,
-0.2942315340042114,
-0.4837104082107544,
-0.05063742399215698,
0.4301777482032776,
-0.5715382099151611,
0.11035926640033... | |
How do you zero fill a number to 10 positions inside an excel spreadsheet?
i.e. If cell A1 has 1234 how can cell A2 display 0000001234 (10 postions).
=TEXT(A1,"0000000000") | [
0.0011679831659421325,
-0.018253417685627937,
-0.0622272826731205,
0.2608620822429657,
0.039054714143276215,
0.3397506773471832,
0.17324818670749664,
-0.29187464714050293,
-0.5133122205734253,
-0.18763411045074463,
0.1205824613571167,
-0.0881727859377861,
-0.2770306169986725,
-0.0357718020... | |
I've created a derived column that translates a 1 to an 'M' and a 2 to 'F'. i.e. a gender indicator. The derived column feeds into a Fuzzy Lookup transformation and then to a conditional split. The problem is the derived field does not show up in any of the downstream components. In the Fuzzy Lookup transform the "Pass... | [
0.13383662700653076,
-0.07716231793165207,
0.21013252437114716,
0.03545946627855301,
0.0612553171813488,
0.15509840846061707,
0.11125614494085312,
-0.31888845562934875,
0.2023606151342392,
-0.5745542645454407,
0.13231150805950165,
0.4436529576778412,
-0.08323520421981812,
0.100759290158748... | |
else has seen this type of behavior.
Thanks - Mr. Do
Thanks for the response. Turns out that issue had to do with some corruption with the meta data. I ended up going back into the Derived Column Transform, renamed the column in error, then added a new derived column with the old name. I saved the transform, and then ... | [
0.3014901280403137,
0.039196278899908066,
0.27136802673339844,
0.5948299169540405,
-0.2939078211784363,
0.16573315858840942,
0.4338822066783905,
-0.011646322906017303,
-0.009081440977752209,
-0.2894763648509979,
0.2502867877483368,
0.5665878057479858,
-0.1588810235261917,
-0.23031310737133... | |
I have seen different ways of writing an `if` statement.
Which one do you prefer and why?
### Example 1:
```
if (val % 2 == 1){output = “Number is odd”;}else{output = “Number is even”;}
```
### Example 2:
```
if (val % 2 == 1)
{
output = “Number is odd”;
}
else
{
output = “Number is even”;
}
```
### Exa... | [
0.1396433413028717,
0.14673347771167755,
0.039644889533519745,
-0.1607189178466797,
-0.3452681005001068,
0.24131424725055695,
0.4618590176105499,
-0.18292249739170074,
-0.09110700339078903,
-0.39645370841026306,
-0.040827807039022446,
0.6497305035591125,
-0.4057360589504242,
-0.12530876696... | |
like this, there's also the conditional operator:
```
output = (val % 2 == 1) ? "Number is odd" : "Number is even";
```
If you're definitely going to use an "if" I'd use version 2 or version 4, depending on the rest of your bracing style. (At work I use 4; for personal projects I use 2.) The main thing is that there... | [
0.19066885113716125,
-0.058769941329956055,
0.06428338587284088,
-0.24166758358478546,
-0.16362595558166504,
0.14985670149326324,
0.4997504949569702,
-0.09271176904439926,
-0.1381608098745346,
-0.39441168308258057,
0.035801637917757034,
0.5709403157234192,
-0.2960367500782013,
-0.403131872... | |
This follows [this](https://stackoverflow.com/questions/628000/rails-whats-wrong-with-this-multiple-join-with-conditions-on-the-associations "this") prior question, which was answered. I actually discovered I could remove a join from that query, so now the working query is
```
start_cards = DeckCard.find :all, :joins ... | [
-0.1572696566581726,
0.15805882215499878,
0.5131832361221313,
-0.06480078399181366,
0.06283387541770935,
-0.27752044796943665,
0.12397362291812897,
-0.5279362797737122,
-0.6447829604148865,
-0.465040385723114,
0.02224057726562023,
0.2106301337480545,
-0.36037155985832214,
0.289859920740127... | |
the players cards on the table)
```
class Player < ActiveRecord::Base
belongs_to :game
belongs_to :user
has_one :hand
has_one :tableau
end
class Tableau < ActiveRecord::Base
belongs_to :player
has_many :deck_cards
end
class DeckCard < ActiveRecord::Base
belongs_to :card
belongs_to :deck
end
```
... | [
-0.30579501390457153,
0.11146041005849838,
0.594998836517334,
-0.35020390152931213,
-0.030273495241999626,
-0.03977591171860695,
-0.4515417814254761,
-0.4111955463886261,
-0.5743441581726074,
-0.90423184633255,
0.22195139527320862,
0.41258761286735535,
-0.04438289627432823,
-0.018026584759... | |
in the rails api, and it doesn't say much beyond the description.
**Rails 2.3.3 and lower**
From the [ActiveRecord `CHANGELOG`](https://raw.github.com/rails/rails/3-0-stable/activerecord/CHANGELOG)(v1.12.0, October 16th, 2005):
> Introduce read-only records. If you call object.readonly! then it will
> mark the objec... | [
-0.24679149687290192,
-0.15452557802200317,
0.30648210644721985,
-0.16183754801750183,
-0.23376445472240448,
-0.2500929534435272,
0.30015283823013306,
-0.08802642673254013,
-0.3903830051422119,
-0.43915125727653503,
0.013960130512714386,
0.27952826023101807,
-0.6695470213890076,
0.07236982... | |
`find_by_sql` is not really an alternative as it returns raw row/column data, not `ActiveRecords`. You have two options:
1. Force the instance variable `@readonly` to false in the record (hack)
2. Use `:include => :card` instead of `:join => :card`
**Rails 2.3.4 and above**
Most of the above no longer holds true, af... | [
0.14356015622615814,
-0.1606372743844986,
0.4515608251094818,
-0.04806012660264969,
0.21030408143997192,
-0.280175119638443,
0.1716909557580948,
-0.3672904372215271,
-0.1727590262889862,
-0.25007501244544983,
-0.04516710340976715,
0.5466862320899963,
-0.408050000667572,
0.3126968443393707,... | |
in `active_record/relation/query_methods.rb` for Rails 3.0.0)
* however, `:readonly => true` is always automatically inferred in `has_and_belongs_to_many` if the join table has more than the two foreign keys columns and `:joins` was specified without an explicit `:select` (i.e. user-supplied `:readonly` values are igno... | [
-0.15452374517917633,
0.08050685375928879,
0.3208857476711273,
-0.3935507833957672,
0.08856286853551865,
-0.33120062947273254,
0.4243796765804291,
-0.6126701831817627,
-0.08622413128614426,
-0.4736061990261078,
-0.18760442733764648,
0.45840027928352356,
-0.4404802620410919,
-0.026423638686... | |
How can I deploy a C# Visual Studio 2005 project so that I can run the application in another system? My project has a few dependencies and files that have to be integrated while deploying the project.
What is the best way to handle this?
Have you looked into [ClickOnce](http://msdn.microsoft.com/en-us/library/t71a73... | [
0.04825383424758911,
-0.048013098537921906,
0.03221717104315758,
0.1534852236509323,
0.19805987179279327,
-0.2498902678489685,
0.2515648603439331,
-0.2070842683315277,
-0.28842756152153015,
-0.5166766047477722,
-0.03200815990567207,
0.6590691208839417,
-0.18147073686122894,
-0.190554350614... | |
What are the benefits/advantages of using delegates? Can anyone provide any simple examples?
They're a great way of encapsulating a piece of code. For instance, when you attach an event handler to the button, that handler is a delegate. The button doesn't need to know what it does, just how to call it at the right time... | [
0.33016443252563477,
-0.21914754807949066,
-0.020366869866847992,
0.426862508058548,
-0.07703914493322372,
-0.4086240231990814,
-0.3562401533126831,
-0.32050371170043945,
-0.45320215821266174,
-0.44999709725379944,
0.09617043286561966,
0.32771942019462585,
-0.4156092703342438,
-0.107159286... | |
it really simple:
```
var namesOfAdults = people.Where(person => person.Age >= 18)
.Select(person => person.Name);
```
(That can also be represented as a query expression, but let's not stray too far from delegates.)
Another way of thinking of a delegate is as a single-method interface typ... | [
0.13773997128009796,
-0.30248358845710754,
-0.059907298535108566,
0.28437551856040955,
-0.07848037779331207,
-0.30297863483428955,
0.09340031445026398,
-0.282958447933197,
-0.25146472454071045,
-0.5176810622215271,
-0.06813934445381165,
0.18914727866649628,
-0.3170373737812042,
0.280474990... | |
used as event handlers etc.
For more on delegates and events, see [my article on the topic](http://pobox.com/~skeet/csharp/events.html). Its focus is events, but it covers delegates too. | [
0.13747887313365936,
-0.2068290114402771,
0.17298516631126404,
0.2958342730998993,
-0.33104243874549866,
-0.4219735860824585,
-0.44601693749427795,
-0.06369289010763168,
-0.5505396127700806,
-0.1574380099773407,
-0.20263367891311646,
-0.04151780903339386,
-0.050460319966077805,
-0.17167991... | |
Is there an easy way to manipulate the controls on a JTable to give different functionality when there is a keyboard button pressed (ie. CTRL button) and a row is selected? I've been asked to create a table where the CTRL + Click (mouse click) on a row will only deselect a selected row, never select a row. If the user ... | [
-0.023992767557501793,
-0.24938525259494781,
-0.11022330075502396,
0.041976992040872574,
-0.04194194823503494,
0.03621330484747887,
-0.09039609879255295,
-0.06368425488471985,
-0.2342628687620163,
-0.47931811213493347,
0.11629053950309753,
0.5852493047714233,
-0.5147184133529663,
0.0297491... | |
MouseEvent is generated, but I can't seem to figure out how the CTRL + Click can be adjusted. Here's some code:
```
package nicky;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.*;
public class TableTester extends JPanel {
public TableTester() {
super(n... | [
0.02384313754737377,
-0.2806985378265381,
0.6102255582809448,
-0.2130417823791504,
0.14327190816402435,
0.5027802586555481,
0.19684582948684692,
-0.23125246167182922,
0.02646087110042572,
-0.7615436315536499,
-0.039293304085731506,
0.675479531288147,
-0.25739485025405884,
-0.20466576516628... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.