text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I have a need to open a popup detail window from a gridview (VS 2005 / 2008). What I am trying to do is in the markup for my TemplateColumn have an asp:Button control, sort of like this:
```
<asp:Button ID="btnShowDetails" runat="server" CausesValidation="false"
CommandName="Details" Text="Order Details"
onClie... | [
0.03580889105796814,
0.0024371729232370853,
0.6646775007247925,
-0.14249466359615326,
-0.014551886357367039,
0.22896087169647217,
0.37889257073402405,
-0.34078094363212585,
-0.21208353340625763,
-0.7298871874809265,
0.08546586334705353,
0.5547634363174438,
-0.13430622220039368,
0.028770549... | |
string.Format("window.open('PubsOrderDetails.aspx?OrderId={0}',scrollbars=yes,resizable=yes, width=350, height=550);", Eval("order_id")) %>
>
> ``` | [
-0.33127695322036743,
0.021312290802598,
0.7965725660324097,
-0.26261574029922485,
0.32039394974708557,
0.2548365592956543,
0.10819447785615921,
-0.36824819445610046,
-0.17296752333641052,
-0.4143231213092804,
-0.5712354183197021,
0.5160195231437683,
-0.22821742296218872,
0.191199690103530... | |
I'm building an install using VS 2003. The install has an Excel workbook and two Access databases. I need to force the Access files to load regardless of the create/mod date of the existing databases on the user's computer. I currently use ORCA to force in a Version number on the two files, but would like to find a sim... | [
0.36068883538246155,
0.0024797599762678146,
0.5010823011398315,
-0.030562059953808784,
0.17198309302330017,
-0.14648033678531647,
0.12560512125492096,
-0.21916280686855316,
-0.2425512820482254,
-0.8455573916435242,
0.04995424300432205,
0.8045905828475952,
-0.31163308024406433,
-0.063833087... | |
way for me to do this?
@LanceSc
I don't think MsiFileHash table will help here. See this [excellent post](http://blogs.msdn.com/astebner/archive/2005/08/30/458295.aspx "How Windows Installer handles file replacement logic for versioned and unversioned files") by Aaron Stebner. Most likely last modified date of Access ... | [
0.5252779126167297,
0.22810083627700806,
0.12754982709884644,
0.07586290687322617,
0.08343345671892166,
0.004243393428623676,
0.47678640484809875,
-0.2662569582462311,
-0.2750649154186249,
-0.6556224226951599,
-0.05228458717465401,
0.488688588142395,
-0.3164869248867035,
0.2214906662702560... | |
would modify records in File table (using SQL) but I suggest looking at alternative setup authoring tools instead, such as [WiX](http://wix.sourceforge.net/), InstallShield or Wise. WiX in my opinion is the best. | [
0.5264554619789124,
0.09214537590742111,
0.1107281967997551,
0.12246289849281311,
0.14985191822052002,
-0.5096529126167297,
0.1456986963748932,
0.1804371327161789,
-0.2759271562099457,
-0.8200792670249939,
0.07459552586078644,
0.7289528846740723,
-0.07054973393678665,
0.06447836011648178,
... | |
I have looked at the ability to use tabs in Vim (with `:tabe`, `:tabnew`, etc.) as a replacement for my current practice of having many files open in the same window in hidden buffers.
I would like every distinct file that I have open to always be in its own tab. However, there are some things that get in the way of t... | [
0.28308409452438354,
-0.13276171684265137,
0.23905614018440247,
0.06350313872098923,
-0.05851234495639801,
-0.03285427391529083,
0.14762112498283386,
0.08216167986392975,
-0.4809642434120178,
-0.6517484784126282,
-0.1677533984184265,
0.49337631464004517,
-0.47277024388313293,
0.25316071510... | |
sorts of commands open the file in a new tab, or switch to the existing tab with the file if it is already open?
2. When switching buffers I can use
`:b <part of filename><tab>`
and it will complete the names of files in existing buffers. `<part of filename>` can even be the middle of a filename instead of the beginnin... | [
0.34628328680992126,
-0.3651893734931946,
0.3325583338737488,
-0.034795261919498444,
-0.17384706437587738,
0.0025920041371136904,
0.04365893080830574,
-0.1713605523109436,
-0.42690548300743103,
-0.5288232564926147,
-0.005107646342366934,
0.6744832396507263,
-0.3396539092063904,
0.201076224... | |
of *all* of your existing buffers.
Trying to beat Vim into 1 tab == 1 buffer is an exercise in futility. Vim doesn't know or care and it will not respect it on all commands—in particular, anything that uses the quickfix buffer (`:make`, `:grep`, and `:helpgrep` are the ones that spring to mind) will happily ignore tab... | [
0.18145549297332764,
-0.10897573083639145,
0.6133421659469604,
0.09306902438402176,
0.03345394507050514,
-0.2607416808605194,
0.4858984053134918,
0.04084177315235138,
-0.18052949011325836,
-0.8063168525695801,
-0.14749114215373993,
0.5708780288696289,
-0.6209712028503418,
0.197869569063186... | |
a window somewhere.
* Use `:bn`, `:bp`, `:b #`, `:b name`, and `ctrl-6` to switch between buffers. I like `ctrl-6` myself (alone it switches to the previously used buffer, or `#ctrl-6` switches to buffer number `#`).
* Use `:ls` to list buffers, or a plugin like [MiniBufExpl](https://github.com/fholgado/minibufexpl.vim... | [
0.36211347579956055,
-0.01838984340429306,
0.5380545258522034,
-0.2346816062927246,
0.13018296658992767,
0.4639810621738434,
0.05504592880606651,
0.41437000036239624,
-0.1942480504512787,
-0.9035212993621826,
-0.39897239208221436,
0.2418338656425476,
-0.2653646767139435,
0.0794824361801147... | |
I am trying to sort a dict based on its key and return an iterator to the values from within an overridden iter method in a class. Is there a nicer and more efficient way of doing this than creating a new list, inserting into the list as I sort through the keys?
How about something like this:
```
def itersorted(d):
... | [
-0.0154860969632864,
0.024344753473997116,
0.06821835786104202,
-0.1329152137041092,
-0.17630045115947723,
0.05467427521944046,
0.056514348834753036,
-0.3409731090068817,
0.051569148898124695,
-0.632003664970398,
-0.16655626893043518,
0.432942271232605,
-0.3018741309642792,
0.0952163189649... | |
I have a properties file in java, in which I store all information of my app, like logo image filename, database name, database user and database password.
I can store the password encrypted on the properties file. But, the key or passphrase can be read out of the jar using a decompiler.
Is there a way to store the d... | [
0.36205917596817017,
0.4015170931816101,
0.20748521387577057,
0.09005244821310043,
-0.169520303606987,
-0.04546651616692543,
0.41681015491485596,
-0.39137500524520874,
0.0247531458735466,
-0.9679923057556152,
0.11512964963912964,
0.40430647134780884,
-0.021282611414790154,
0.21815021336078... | |
all the values using a key, and store this key in the keystore. The command line interface to the keystore is by using keytool. However JSE has APIs to programmatically access the keystore as well.
If you do not have an ability to have a user manually provide a password to the keystore on startup (say for a web applic... | [
0.0957445353269577,
0.08155320584774017,
0.2626555263996124,
0.1740817427635193,
0.3107479512691498,
-0.3300522565841675,
0.3049023151397705,
-0.06482642143964767,
-0.09801214188337326,
-0.5203429460525513,
-0.1543455719947815,
0.877665102481842,
-0.044960204511880875,
0.17680852115154266,... | |
layered (could involve scrambling, encoding, introduction of spurious characters etc. etc.) and should itself have at least one key which could be hidden away in other classes in the application using non intuitive names. This is not a fully safe mechanism since someone with a decompiler and a fair amount of time and i... | [
0.09592016786336899,
-0.10416236519813538,
-0.020939266309142113,
0.34037691354751587,
0.1268022507429123,
-0.3146187961101532,
0.4362889230251312,
0.07208371162414551,
-0.21899504959583282,
-0.3185584843158722,
-0.30770397186279297,
0.10694511234760284,
-0.22567394375801086,
0.05389866605... | |
I'm trying to write a piece of code that will do the following:
Take the numbers 0 to 9 and assign one or more letters to this number. For example:
```
0 = N,
1 = L,
2 = T,
3 = D,
4 = R,
5 = V or F,
6 = B or P,
7 = Z,
8 = H or CH or J,
9 = G
```
When I have a code like 0123, it's an easy job to encode it. It will o... | [
0.337727814912796,
0.2953962981700897,
-0.07171599566936493,
-0.002743481658399105,
-0.27467113733291626,
0.35755687952041626,
0.04171667620539665,
-0.09924427419900894,
-0.2081049680709839,
-0.8213968276977539,
0.04373117536306381,
0.08084490150213242,
-0.15076994895935059,
0.354815006256... | |
possibility:
NVL and NFL
It should be obvious that this gets even "worse" with longer numbers that include several digits like 5,6 or 8.
Being pretty bad at mathematics, I have not yet been able to come up with a decent solution that will allow me to feed the program a bunch of numbers and have it spit out all the p... | [
0.4410219192504883,
0.3071567118167877,
-0.2969878911972046,
0.06720312684774399,
0.0016673654317855835,
0.3296141028404236,
0.2175397276878357,
0.22785013914108276,
-0.3852674663066864,
-0.6560232043266296,
0.14052358269691467,
0.29341888427734375,
-0.35699886083602905,
-0.254601716995239... | |
PHP, but any general hints would be highly appreciated.
### Update:
Some more background: (and thanks a lot for the quick responses!)
The idea behind my question is to build a script that will help people to easily convert numbers they want to remember to words that are far more easily remembered. This is sometimes ... | [
0.1250762790441513,
0.21155309677124023,
0.08513828366994858,
0.3710986077785492,
-0.04097655043005943,
0.1933669000864029,
0.21819700300693512,
0.05488113686442375,
0.007058450486510992,
-0.506537675857544,
0.2051471620798111,
0.19572463631629944,
0.05868884548544884,
-0.20936472713947296... | |
the number to be encoded can usually easily be related to a one or more database records. And when that happens, you end up with a list of words that you can use to remember the number you wanted to remember.
The general structure you want to hold your number -> letter assignments is an array or arrays, similar to:
``... | [
-0.054739195853471756,
-0.011178036220371723,
0.10551343858242035,
0.17546489834785461,
0.03658968582749367,
0.41702893376350403,
-0.01804175041615963,
-0.1489986628293991,
-0.1695222705602646,
-0.5479044914245605,
-0.20813359320163727,
0.07793612778186798,
-0.175651416182518,
0.0320239625... | |
Array (
0 => new Array("N"),
1 => new Array("L"),
2 => new Array("T"),
3 => new Array("D"),
4 => new Array("R"),
5 => new Array("V", "F"),
6 => new Array("B", "P"),
7 => new Array("Z"),
8 => new Array("H", "CH", "J"),
9 => new Array("G"),
);
```
Then, a bit of recursive logic g... | [
-0.004492413718253374,
-0.18873494863510132,
0.40999454259872437,
-0.25594037771224976,
-0.04265101999044418,
0.23012496531009674,
0.43919482827186584,
-0.6485269069671631,
-0.21957197785377502,
-0.5028031468391418,
-0.2692182958126068,
0.7216726541519165,
-0.3946950435638428,
0.1345756798... | |
($i = 0; $i < strlen($number); $i++) {
// We're just translating here, nothing special.
// $var + 0 is a cheap way of forcing a variable to be numeric
$ret[] = $numberMap[$number[$i]+0];
}
}
function PrintEncoding($enc, $string = "") {
// If we're at the end of the line, then print!
... | [
0.23942244052886963,
-0.20337612926959991,
0.6754400730133057,
-0.25309187173843384,
0.12286393344402313,
-0.035719238221645355,
0.22946467995643616,
-0.2675085663795471,
-0.06561495363712311,
-0.3455938398838043,
-0.3106452524662018,
0.5421823859214783,
-0.31660041213035583,
0.27286499738... | |
return;
}
// Otherwise, soldier on through the possible values.
// Grab the next 'letter' and cycle through the possibilities for it.
foreach ($enc[0] as $letter) {
// And call this function again with it!
PrintEncoding(array_slice($enc, 1), $string.$letter);
}
}
```
Three cheers ... | [
0.0656682550907135,
-0.17100565135478973,
0.1749691516160965,
-0.5221152305603027,
-0.1693086177110672,
-0.08805385231971741,
0.5016841292381287,
-0.3337591886520386,
-0.2366003543138504,
-0.4214799404144287,
-0.3217029869556427,
0.8479006290435791,
-0.35847723484039307,
-0.259709566831588... | |
When commiting to SVN I can add a top level commit message to detail what is being committed, but I would ideally like a means to comment on the individual files and what has changed within them. I have seen something similar in previous employment, but this was using CVS (and I can't recall whether this was achieved w... | [
0.45811787247657776,
0.06566144526004791,
0.4072037935256958,
-0.3337647616863251,
-0.07024708390235901,
-0.3232053220272064,
0.02628721296787262,
0.010328702628612518,
-0.5334291458129883,
-0.5067814588546753,
0.19027301669120789,
0.7901782989501953,
-0.028466040268540382,
0.1332615613937... | |
looking for something along the lines of:
Foo.vb
> * Added new function bar
Bar.vb
> * Removed function foo
> * Added functionality in xyz to do abc
> +/- Modified function to log error
I would just do this in the individual commit message. [TortoiseSVN](http://tortoisesvn.tigris.org/) has filename autocompletion ... | [
0.3894425928592682,
0.06177326664328575,
0.08006077259778976,
-0.10453110188245773,
0.02855529449880123,
-0.008653496392071247,
0.5976879596710205,
0.10406139492988586,
-0.32653534412384033,
-0.6468437314033508,
0.035161424428224564,
0.9399206638336182,
-0.1499304473400116,
0.0805890038609... | |
you much more than this, and more accurately.
One other thing you may want to consider is using [Git](http://git.or.cz/). Git allows you to commit locally, in smaller steps. You then push to the master server all of your commits individually or squashed into a single commit w/ all the commit messages in a single messa... | [
0.5086191296577454,
0.022928722202777863,
-0.17711849510669708,
0.1856660395860672,
-0.12184786796569824,
-0.1326100379228592,
0.2420145571231842,
0.17614643275737762,
-0.7506342530250549,
-0.9374198913574219,
0.11396293342113495,
0.37038347125053406,
-0.004438627511262894,
0.0427295267581... | |
Before, I have found the "Cost" in the execution plan to be a good indicator of relative execution time. Why is this case different? Am I a fool for thinking the execution plan has relevance? What specifically can I try to improve v\_test performance?
Thank you.
Using Oracle 10g I have a simple query view defined bel... | [
0.13663679361343384,
-0.037939414381980896,
0.3270791172981262,
-0.1941998302936554,
0.06669964641332626,
0.3710605502128601,
-0.00938426423817873,
-0.668701171875,
-0.2542802393436432,
-0.8637763261795044,
-0.08043990284204483,
0.9813188314437866,
-0.09499092400074005,
-0.091188445687294,... | |
(r.region is null or trim(r.region)=trim(d.chrgback_reg)) and
(r.prod_id is null or trim(r.prod_id)=trim(d.prod_id)) and
(r.div_id is null or trim(r.div_id)=trim(d.div_id )) and | [
-0.1847747415304184,
-0.35804200172424316,
0.47794437408447266,
-0.17875005304813385,
0.3235397934913635,
0.03185104578733444,
-0.00760688865557313,
-0.6045638918876648,
-0.05623257905244827,
-0.5166734457015991,
-0.5678184628486633,
0.6112291216850281,
0.024211332201957703,
0.521245658397... | |
(r.clus_id is null or trim(r.clus_id )=trim( d.clus_id)) and
(r.prod_ln_id is null or trim(r.prod_ln_id)=trim(d.prod_ln_id)) and
(r.dept_id is null or trim(r.dept_id)=trim(d.dept_id))
```
defined to replace the following view
``` | [
0.03197338432073593,
-0.15760232508182526,
0.24467813968658447,
-0.3067002296447754,
0.2848760783672333,
0.18006020784378052,
0.02324436977505684,
-0.3430436849594116,
-0.14582015573978424,
-0.39987605810165405,
-0.5079541206359863,
0.8500182628631592,
-0.1511845737695694,
0.13146047294139... | |
create or replace view v_bo_secured_detail
select distinct Q.BO_ID, Q.DEPT_ID
from (select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'REGION' and
trim... | [
0.23418375849723816,
-0.3543335497379303,
0.72491055727005,
-0.08568590134382248,
0.29132625460624695,
0.33548450469970703,
-0.20209507644176483,
-0.3984586298465729,
-0.1005510613322258,
-0.8780125975608826,
-0.44709375500679016,
0.6867974400520325,
0.00126584991812706,
0.0893785730004310... | |
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'RG_PROD' and
trim(R.REGION) = UPPER(trim(D.CHRGBACK_REG)) and
trim(R.PROD_ID) = UPPER(tr... | [
-0.1430312544107437,
-0.11950375139713287,
0.7058650851249695,
-0.23697562515735626,
0.4040442705154419,
0.37825465202331543,
-0.26895871758461,
-0.4233141243457794,
-0.04044916480779648,
-0.7439669966697693,
-0.47521042823791504,
0.4393431842327118,
-0.09274934977293015,
0.110652528703212... | |
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'PROD' and
trim(R.PROD_ID) = UPPER(trim(D.PROD_ID))
union all
select U.BO_ID BO_ID, UPPER... | [
-0.1602649986743927,
0.06888483464717865,
0.700644850730896,
-0.15612167119979858,
0.3719179630279541,
0.4767366349697113,
-0.2643411159515381,
-0.5368102788925171,
-0.028481148183345795,
-0.7607507109642029,
-0.39177316427230835,
0.4890206754207611,
-0.09108375012874603,
0.108634158968925... | |
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'DIV' and
trim(R.DIV_ID) = UPPER(trim(D.DIV_ID))
union all
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_... | [
-0.08718318492174149,
0.001911857514642179,
0.7356536388397217,
-0.25090959668159485,
0.26278984546661377,
0.5641736388206482,
-0.1704455316066742,
-0.7028926610946655,
-0.21675188839435577,
-0.687048077583313,
-0.47854557633399963,
0.6666256189346313,
-0.04142388701438904,
0.0542144663631... | |
= R.ROLE_NAME and
R.ROLE_LEVEL = 'RG_DIV' and
trim(R.REGION) = UPPER(trim(D.CHRGBACK_REG)) and
trim(R.DIV_ID) = UPPER(trim(D.DIV_ID))
union all
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_RO... | [
-0.2367118000984192,
-0.0839870348572731,
0.8259779810905457,
-0.2743802070617676,
0.31279876828193665,
0.4599741995334625,
-0.18800576031208038,
-0.5875632166862488,
-0.24896706640720367,
-0.6521772146224976,
-0.4450547695159912,
0.5644727349281311,
-0.029313240200281143,
0.02067617140710... | |
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'CLUS' and
trim(R.CLUS_ID) = UPPER(trim(D.CLUS_ID))
union all
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROLE_NAME = R.ROLE_... | [
-0.15103988349437714,
-0.040198687463998795,
0.7075384259223938,
-0.27497681975364685,
0.28302714228630066,
0.527809202671051,
-0.17721512913703918,
-0.6560603976249695,
-0.15954984724521637,
-0.5139167308807373,
-0.4875251352787018,
0.6957432627677917,
-0.07131414115428925,
0.008206313475... | |
R.ROLE_LEVEL = 'RG_CLUS' and
trim(R.REGION) = UPPER(trim(D.CHRGBACK_REG)) and
trim(R.CLUS_ID) = UPPER(trim(D.CLUS_ID))
union all
select U.BO_ID BO_ID, UPPER(trim(D.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R, CUST_DEPT_ROLL_UP_TBL D
where U.ROL... | [
-0.29001376032829285,
-0.07433972507715225,
0.8200149536132812,
-0.30595946311950684,
0.24022534489631653,
0.4628698229789734,
-0.20084407925605774,
-0.6103670001029968,
-0.20619796216487885,
-0.5973857641220093,
-0.46075791120529175,
0.6144213676452637,
0.022930599749088287,
0.02646780759... | |
R.ROLE_LEVEL = 'PROD_LN' and
trim(R.PROD_LN_ID) = UPPER(trim(D.PROD_LN_ID))
union all
select U.BO_ID BO_ID, UPPER(trim(R.DEPT_ID)) DEPT_ID
from CUST_BO_USERS U, CUST_BO_ROLES R
where U.ROLE_NAME = R.ROLE_NAME and
R.ROLE_LEVEL = 'DEPT') Q
```
with the goa... | [
-0.2187354862689972,
-0.040965624153614044,
0.6280973553657532,
-0.35693612694740295,
0.26654109358787537,
0.48235592246055603,
-0.1205853745341301,
-0.7215867042541504,
-0.045776497572660446,
-0.5713562369346619,
-0.4180815517902374,
0.849625289440155,
-0.044412028044462204,
-0.0072549069... | |
on the ROLE\_LEVEL column.
The execution plan for v\_test is significantly lower than v\_bo\_secured\_detail for simple
```
select * from <view> where bo_id='value'
```
queries. And is significantly lower when used in a real world query
```
select CT_REPORT.RPT_KEY,
CT_REPORT_ENTRY.RPE_KEY,
CT_... | [
0.0557582713663578,
-0.11773951351642609,
0.6058256030082703,
-0.10552182793617249,
0.13478884100914001,
0.5320687294006348,
0.09327132999897003,
-0.8527674674987793,
-0.01938638463616371,
-0.5943601131439209,
-0.11884234100580215,
0.879467785358429,
0.09164809435606003,
-0.171693295240402... | |
CT_LIST_ITEM_LANG Exp_Sub_Type,
CT_REPORT_PAYMENT_CONF,
CT_STATUS_LANG Payment_Status
where (CT_REPORT_ENTRY.RPT_KEY = CT_REPORT.RPT_KEY) and
(Payment_Status.STAT_KEY = CT_REPORT.PAY_KEY) and
(Exp_Sub_Type.LI_KEY = CT_REPORT_ENTRY.CUSTOM9 and Exp_Sub_Type.LANG_CODE = 'en') and
(CT_... | [
-0.014082909561693668,
0.05908345431089401,
0.9153349995613098,
-0.09103117138147354,
0.2503208518028259,
0.3921138346195221,
-0.44007688760757446,
-0.6068294048309326,
-0.6161013841629028,
-0.6434512138366699,
-0.5298727750778198,
0.508895218372345,
0.0497540608048439,
0.07026726752519608... | |
CT_REPORT.PAID_DATE > to_date('01/01/2008', 'mm/dd/yyyy') and Exp_Sub_Type.value != 'Korea')
group by CT_REPORT.RPT_KEY,
CT_REPORT_ENTRY.RPE_KEY,
CT_REPORT_ENTRY.CUSTOM16,
Exp_Sub_Type.value,
CT_REPORT.PAID_DATE
```
The execution times are WILDLY different. The v\_tes... | [
0.27156421542167664,
0.18580405414104462,
0.6368104815483093,
0.1178390309214592,
-0.07001035660505295,
0.12290559709072113,
0.06321907788515091,
-0.23068732023239136,
-0.37768423557281494,
-0.31868788599967957,
-0.320701539516449,
0.5898237228393555,
0.33153221011161804,
0.072308771312236... | |
expressions meets the reality of hardware based execution. Ouch.
As [the Oracle documentation says](http://download.oracle.com/docs/cd/A87860_01/doc/server.817/a76965/c20a_opt.htm#16287), the cost is the estimated cost relative to a particular execution plan. When you tweak the query, the particular execution plan that... | [
0.053635913878679276,
0.12048351764678955,
0.22777515649795532,
0.2767926752567291,
0.028719566762447357,
0.43955767154693604,
0.5033903121948242,
-0.36361441016197205,
0.18393512070178986,
-0.658981442451477,
-0.0732029527425766,
0.5551024079322815,
-0.32389968633651733,
-0.26729923486709... | |
up so that it is a series of queries, each of which can be done through some other mechanism. (Oracle has a number it may use, including using an index, building a hash on the fly, or sorting the datasets and merging them. These operations are all O(n\*log(n)) or better.) A small series of fast queries is fast.
As pai... | [
0.3555142879486084,
0.13409382104873657,
0.1305445432662964,
0.2136426866054535,
-0.028641600161790848,
0.11507382988929749,
-0.012286488898098469,
-0.2523195743560791,
-0.6335902810096741,
-0.5833649039268494,
-0.19025824964046478,
0.24858134984970093,
-0.24229352176189423,
0.152536675333... | |
I am adding some user controls dynamically to a PlaceHolder server control. My user control consists of some labels and some textbox controls.
When I submit the form and try to view the contents of the textboxes (within each user control) on the server, they are empty.
When the postback completes, the textboxes have... | [
0.33401623368263245,
0.1271786093711853,
0.8151793479919434,
0.1827971339225769,
0.26774778962135315,
-0.07153218984603882,
0.05161358416080475,
-0.3981509804725647,
-0.06339992582798004,
-0.6450653672218323,
-0.13056203722953796,
0.2925049364566803,
-0.21451887488365173,
0.374565213918685... | |
the user entered on the server?
Thanks for any help.
This is based on .NET v1 event sequence, but it should give you the idea:
* Initialize (Init event)
* Begin Tracking View State (checks if postback)
+ Load View State (if postback)
+ Load Postback Data (if postback)
* Load (Load event)
+ Raise Changed Events (if... | [
0.055817145854234695,
-0.3633442223072052,
0.498232901096344,
0.017544467002153397,
-0.18284133076667786,
-0.003809928661212325,
0.3605071008205414,
-0.041310857981443405,
-0.23537981510162354,
-0.7606683373451233,
0.03731696680188179,
0.6464523077011108,
-0.1964006870985031,
0.06417886912... | |
for the ASP.NET page to reload the values in the first place. You would have to re-create those controls at the Init stage, before Load View State occurs. | [
0.0394764170050621,
-0.4546666443347931,
0.36702102422714233,
0.2060082107782364,
-0.04058503359556198,
-0.1170383095741272,
0.4225987195968628,
-0.17946413159370422,
-0.2901920974254608,
-0.445224404335022,
-0.15720690786838531,
0.3539562225341797,
-0.3692128360271454,
-0.1799672096967697... | |
We're developing a service that will accept a `POST` request. Some of the `POST` data will need to be encrypted before the `POST` as it will be stored in hidden fields on a form.
The application is written in C#, but we want third party clients to be able to easily integrate with it. We find that most clients use PHP,... | [
0.4782220423221588,
0.07455825805664062,
0.15220136940479279,
0.18956337869167328,
0.05849698930978775,
-0.19341835379600525,
0.2084428369998932,
0.17191143333911896,
0.16955740749835968,
-0.6481658220291138,
-0.31504812836647034,
0.41277366876602173,
-0.23903797566890717,
-0.0077542383223... | |
of sharing a key (whether RSA encryption of it, retrieval over an SSH or HTTPS link, or callling the other developer on a secured phone line), any of the major modern encryptions (like AES, as mentioned by @Ed Haber) would be suitable. I would second his suggestion of AES. There should be libraries for PHP, VB, Ruby, e... | [
0.3569354712963104,
0.05105118080973625,
0.031665027141571045,
0.2798815965652466,
0.08787326514720917,
-0.3602679967880249,
0.18059368431568146,
-0.004889368545264006,
-0.1032417044043541,
-0.5751609802246094,
-0.19999457895755768,
0.4768112301826477,
-0.18352514505386353,
-0.186576262116... | |
I'm trying to create the IDL for the IConverterSession interface and I'm confused by the definition of the [MIMETOMAPI](http://msdn.microsoft.com/en-us/library/bb905204.aspx) method. It specifies the `LPMESSAGE pmsg` parameter as [out] yet the comments state its the pointer to the MAPI message to be loaded.
Its unclea... | [
-0.4398593604564667,
-0.036724694073200226,
0.5242798924446106,
-0.0479692779481411,
0.1187816858291626,
-0.0917675569653511,
-0.2511156499385834,
-0.17495763301849365,
-0.4991234242916107,
-0.50411456823349,
0.03363187238574028,
0.464962899684906,
-0.47503864765167236,
0.05768111348152160... | |
VB6 code so it will either have to be [in] or [in, out] but I do need to know whether in the the IDL I used:-
```
[in] IMessage pmsg*
```
OR
```
[in, out] IMessage pmsg**
```
I think in this case the documentation is misleading when it marks the parameter as [out]. You have to pass a valid LPMESSAGE to the method... | [
0.14851121604442596,
0.15855267643928528,
0.34480342268943787,
-0.08049721270799637,
0.014812469482421875,
-0.13351057469844818,
-0.11946994066238403,
-0.3441384434700012,
-0.37414878606796265,
0.015166450291872025,
0.018961714580655098,
0.4764382243156433,
-0.30034565925598145,
0.06049207... | |
What's the best way to shut down the computer from a C# program?
I've found a few methods that work - I'll post them below - but none of them are very elegant. I'm looking for something that's simpler and natively .net.
Taken from: [a Geekpedia post](http://www.geekpedia.com/code36_Shut-down-system-using-Csharp.html)
... | [
0.127708300948143,
0.09448708593845367,
0.3166397511959076,
0.08386293053627014,
0.23540814220905304,
-0.266395628452301,
0.5050209760665894,
-0.34454429149627686,
-0.4167003035545349,
-0.30199098587036133,
-0.2996997833251953,
0.6974622011184692,
-0.291253924369812,
0.23257577419281006,
... | |
true;
ManagementBaseObject mboShutdownParams =
mcWin32.GetMethodParameters("Win32Shutdown");
// Flag 1 means we want to shut down the system. Use "2" to reboot.
mboShutdownParams["Flags"] = "1";
mboShutdownParams["Reserved"] = "0";
foreach (ManagementObject manObj in mcWin32.GetInstan... | [
-0.020040087401866913,
0.11396044492721558,
0.46935635805130005,
-0.07945700734853745,
0.500623345375061,
-0.31548118591308594,
1.0173225402832031,
-0.35874202847480774,
0.11875554174184799,
-0.5859906673431396,
-0.2729406952857971,
0.9070627689361572,
-0.3349374234676361,
0.09928391128778... | |
mboShutdownParams, null);
}
}
``` | [
-0.23533585667610168,
0.07336664944887161,
0.309660404920578,
-0.2773027718067169,
0.22811046242713928,
-0.07904934883117676,
0.4182230830192566,
0.2174503654241562,
-0.26782649755477905,
-0.5774107575416565,
-0.2975604236125946,
0.592477560043335,
-0.5341275930404663,
0.41565725207328796,... | |
In my database (SQL 2005) I have a field which holds a comment but in the comment I have an id and I would like to strip out just the id, and IF possible convert it to an int:
`activation successful of id 1010101`
The line above is the exact structure of the data in the db field.
And no I don't want to do this in th... | [
0.08453994244337082,
0.3574269413948059,
0.40400373935699463,
-0.31961145997047424,
-0.38167551159858704,
-0.07819551974534988,
0.13650016486644745,
-0.27530455589294434,
0.12928640842437744,
-0.29890885949134827,
0.12128123641014099,
0.4545511305332184,
-0.34608176350593567,
0.07097463309... | |
only one occurence of an integer in the string and that it is at the end. | [
-0.5966779589653015,
-0.04620453715324402,
0.27483129501342773,
-0.13085399568080902,
-0.05353093147277832,
-0.210692897439003,
-0.0032437157351523638,
0.06870570033788681,
0.05250300094485283,
-0.6153036952018738,
-0.25407135486602783,
0.09075022488832474,
-0.2308621108531952,
0.315887659... | |
I am looking for a way to have some control over the shape of a simple MessageBox in Winforms. I would like to control where the passed in text wraps so that the dialog rect is narrower. Windows seems to want to make the dialog as wide as possible before wrapping the text. Is there an easy way to control the maximum wi... | [
0.35222327709198,
-0.18117442727088928,
0.539283812046051,
-0.2203313559293747,
-0.2002023160457611,
-0.07313193380832672,
0.308562695980072,
-0.049359217286109924,
-0.4719046950340271,
-0.7454333901405334,
0.10523587465286255,
0.34436842799186707,
-0.3077235519886017,
0.23023700714111328,... | |
API question, but I think the principle should still apply. I assume WinForms eventually calls MessageBox(). | [
0.2553904354572296,
-0.0416020043194294,
0.10451517254114151,
-0.284088671207428,
-0.11472693085670471,
-0.2507580816745758,
0.3459925949573517,
0.29795321822166443,
-0.0424027144908905,
-0.3597639203071594,
0.015389143489301205,
0.47251415252685547,
-0.4628673493862152,
0.1937251687049865... | |
We currently have a company email server with Exchange, and a bulk email processing server that is using IIS SMTP. We are upgrading to a 3rd party MTA (zrinity xms) for bulk sending. I need to be able to keep sending the messages already queued for IIS when we switch to the 3rd party sofware. Can I simply move the IIS ... | [
0.19164523482322693,
0.02062358148396015,
0.6859239935874939,
0.09098358452320099,
0.07051468640565872,
0.04860612377524376,
0.13472868502140045,
0.1760653555393219,
-0.38350582122802734,
-0.657023549079895,
-0.06639169156551361,
0.06933649629354477,
-0.24556152522563934,
0.405921757221221... | |
IIS SMTP service to **smart host** to the new MTA, assuming they (the 3rd party) allow SMTP relay from your IP address. | [
-0.1404380351305008,
-0.4404604136943817,
0.25147050619125366,
-0.05453253909945488,
-0.06872395426034927,
-0.3185877203941345,
0.7624357342720032,
0.048607539385557175,
-0.18942661583423615,
-0.7747490406036377,
-0.4973175525665283,
-0.10384795069694519,
-0.3552629351615906,
0.15905171632... | |
I just finished a medium sized web site and one thing I noticed about my css organization was that I have a lot of hard coded colour values throughout. This obviously isn't great for maintainability. Generally, when I design a site I pick 3-5 main colours for a theme. I end up setting some default values for paragraphs... | [
0.4902235269546509,
0.10784349590539932,
0.265174001455307,
-0.19767707586288452,
-0.07605335116386414,
-0.039516571909189224,
0.36173462867736816,
0.35401615500450134,
-0.5664527416229248,
-0.5624955296516418,
-0.14823980629444122,
-0.15799756348133087,
-0.1924729198217392,
0.298489063978... | |
separate rules for each colour and just use those when I need to restyle.
i.e.
```
.color1 {
color: #3d444d;
}
```
That's exactly what you should do.
The more centralized you can make your css, the easier it will be to make changes in the future. And let's be serious, you will want to change colors in the futu... | [
0.481365829706192,
-0.11604053527116776,
0.36407235264778137,
0.05577808991074562,
-0.008031723089516163,
-0.10900069773197174,
0.03884701058268547,
0.22187674045562744,
-0.39102521538734436,
-0.9599100351333618,
0.027411961928009987,
0.4609091579914093,
-0.4562431573867798,
-0.07063429802... | |
everywhere.
Sample (random color) css:
```
.main_text {color:#444444;}
.secondary_text{color:#765123;}
.main_color {background:#343434;}
.secondary_color {background:#765sda;}
```
Then some markup, notice how I am using the colors layer with otehr classes, that way I can just change ONE css class:
```
<body class=... | [
0.37198659777641296,
-0.08351162075996399,
0.004692865069955587,
0.05508710443973541,
0.006300775799900293,
-0.0829179584980011,
0.28488466143608093,
-0.0045919716358184814,
-0.42992281913757324,
-0.885400652885437,
-0.1311686784029007,
0.22515340149402618,
-0.6614221334457397,
-0.01547691... | |
Like many of you, I use ReSharper to speed up the development process. When you use it to override the equality members of a class, the code-gen it produces for `GetHashCode()` looks like:
```cs
public override int GetHashCode()
{
unchecked
{
int result = (Key != null ? Key.GetHashC... | [
0.09337135404348373,
0.07031457871198654,
0.3506333529949188,
-0.003978801425546408,
0.1208687573671341,
-0.04814625903964043,
0.6101555824279785,
-0.5645501017570496,
-0.11376215517520905,
-0.5343685746192932,
-0.2876124680042267,
0.48367446660995483,
-0.2145877331495285,
0.37375736236572... | |
null ? EditableProperty.GetHashCode() : 0);
result = (result * 397) ^ ObjectId;
return result;
}
}
```
Of course I have some of my own members in there, but what I am wanting to know is why 397?
* EDIT: So my question would be better worded as, is there something 'special' about t... | [
0.08373787254095078,
0.1878833919763565,
0.09702900052070618,
-0.058481987565755844,
0.000780044065322727,
-0.04119734838604927,
0.2078452706336975,
-0.024924542754888535,
-0.4689599573612213,
-0.10451292246580124,
-0.4093661606311798,
0.40508970618247986,
-0.419964462518692,
0.16483764350... | |
size to cause the result variable to overflow and mix the bits of the hash somewhat, providing a better distribution of hash codes. There's nothing particularly special about 397 that distinguishes it from other primes of the same magnitude. | [
-0.06709370762109756,
0.01740562915802002,
0.20238097012043,
-0.10347346216440201,
-0.26906344294548035,
0.13904215395450592,
0.10687069594860077,
0.009301366284489632,
-0.322919636964798,
-0.30952945351600647,
-0.1824038028717041,
0.2271752804517746,
-0.16511249542236328,
0.23342773318290... | |
I am looking for a text editor that will be able to load a 4+ Gigabyte file into it. Textpad doesn't work. I own a copy of it and have been to its support site, it just doesn't do it. Maybe I need new hardware, but that's a different question. The editor needs to be free OR, if its going to cost me, then no more than $... | [
-0.2109849750995636,
0.08177142590284348,
0.36970609426498413,
0.20052742958068848,
0.08021537959575653,
0.09993807226419449,
0.388398140668869,
-0.42038872838020325,
-0.30465665459632874,
-0.5057094097137451,
-0.037622567266225815,
0.6679455637931824,
-0.2685200273990631,
-0.1231706961989... | |
>
> The lower one, which I assume is `Quick Find`, is at least an order of magnitude slower than the upper one, which is fast. | [
-0.3792598247528076,
-0.11843247711658478,
0.4930320680141449,
0.16160856187343597,
0.19903410971164703,
-0.22403571009635925,
0.16503581404685974,
-0.07383684813976288,
0.28175121545791626,
-0.901775062084198,
-0.13863058388233185,
0.7131739258766174,
0.21480728685855865,
-0.2217007726430... | |
I am running some queries to track down a problem with our backup logs and would like to display datetime fields in 24-hour military time. Is there a simple way to do this? I've tried googling and could find nothing.
```
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
```
Give the time in 24 hour format.
... | [
0.5188791155815125,
0.09312538057565689,
0.026863906532526016,
0.03756994754076004,
0.24510663747787476,
0.08547921478748322,
0.18170981109142303,
0.06562457978725433,
-0.1929796040058136,
-0.5595524311065674,
-0.21206311881542206,
0.7947336435317993,
0.023898297920823097,
-0.1137792989611... | |
From <http://en.wikipedia.org/wiki/AJAX>, I get a fairly good grasp of what AJAX is. However, it looks like in order to learn it, I'd have to delve into multiple technologies at the same time to get any benefit out of it. So two questions:
* What are resources that can help me understand/use AJAX?
* What sort of websi... | [
0.5041263103485107,
0.07102619856595993,
-0.13332487642765045,
0.2667240500450134,
-0.4716145694255829,
-0.2981052100658417,
0.1747053861618042,
0.32752469182014465,
-0.28542086482048035,
-0.7234993577003479,
0.17048409581184387,
0.43613338470458984,
0.28115347027778625,
-0.196982413530349... | |
about prototype.js, jquery, etc.
As far as websites that would benefit: Every web application ever. :) Anything you interact with by exchanging information, not just by clicking a link and reading an article. | [
0.8369594812393188,
0.13521264493465424,
-0.17760631442070007,
0.3007541000843048,
-0.03520134463906288,
-0.39402925968170166,
0.1846316158771515,
0.7440561056137085,
-0.3085782825946808,
-0.6243882775306702,
0.12843197584152222,
0.3018004596233368,
0.12726764380931854,
0.14268210530281067... | |
When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running
```
$> do_something_intensive | less
```
and then exiting *less* used to return you immediately to a responsive shell, on a SuSE8 or for... | [
0.3987448811531067,
-0.14118953049182892,
0.2567620277404785,
-0.15603408217430115,
-0.05374786630272865,
-0.11591626703739166,
0.28566959500312805,
0.003754419507458806,
-0.17136216163635254,
-0.7720915675163269,
-0.24722468852996826,
0.678188681602478,
-0.4393599331378937,
0.452497154474... | |
has been changed (or why it always existed multiple semantics) ?
*edit* : further tests (using strace) reveal that "SIGPIPE" *is* generated, but that the program is not interrupted. A simple
```
#include <stdio.h>
int main()
{
while(1) printf("dumb test\n");
exit(0);
}
```
will go on with an endless
```
---... | [
0.2230297178030014,
-0.05369335412979126,
0.6776333451271057,
-0.15990230441093445,
0.08775811642408371,
0.15917573869228363,
0.44182154536247253,
-0.10864157974720001,
-0.4514462649822235,
-0.5842810869216919,
0.036041900515556335,
0.37724873423576355,
-0.4124053716659546,
0.4791192114353... | |
SIGPIPE
*edit again*: it seems to be a tcsh-specific issue (bash handles it properly) and terminal-dependent (Eterm 0.9.4)
Thanks for your advices, the solution is getting closer...
According to the manpage of tcsh, "non-login shells inherit the terminate behavior from their parents. Other signals have the values whi... | [
-0.039659835398197174,
-0.006566137075424194,
0.39990320801734924,
-0.112547367811203,
-0.08674938231706619,
-0.253307044506073,
0.4468421936035156,
0.000670042063575238,
-0.40213140845298767,
-0.5283389687538147,
0.011317669413983822,
0.628807544708252,
-0.3974577784538269,
0.212491378188... | |
that close the case. | [
-0.05752445012331009,
0.24031463265419006,
0.26841455698013306,
-0.11254722625017166,
-0.11740870773792267,
-0.14057444036006927,
0.028467537835240364,
0.021962694823741913,
0.007610838860273361,
0.0024113126564770937,
0.019626609981060028,
0.0593283548951149,
0.17952609062194824,
-0.04716... | |
I'm working on a project that's been accepted as a proof of concept and is now on the schedule as an actual production project. I'm curious how others approach this transition.
I've heard from various sources that when a project starts as a proof of concept it's often a good idea to trash all of the code written durin... | [
0.8728178143501282,
0.5267938375473022,
-0.38864022493362427,
0.1585083305835724,
0.15865084528923035,
-0.2872380018234253,
0.05373959243297577,
0.345782607793808,
-0.21383143961429596,
-0.5503070950508118,
0.20597396790981293,
0.48035305738449097,
0.2770669162273407,
0.515533983707428,
... | |
version of "throw away the first copy of that angry email you're about to send and start all over" theory.
I've done it this was in the past and I've also refactored the conceptual code to use in production, but since I'm in the transition phase for a new project I wanted to get an idea how others do this. Obviously a... | [
0.4799828827381134,
-0.09908480197191238,
0.06430036574602127,
-0.14517588913440704,
-0.2139917016029358,
-0.04976887255907059,
-0.09041015058755875,
0.07989414781332016,
-0.12004036456346512,
-0.7125275731086731,
0.10513798892498016,
0.2788713872432709,
-0.08322795480489731,
0.10696880519... | |
might be forced to build on what you've already written).
That said, if all things were equal what would you all choose as an approach?
As you already kind of hinted at, the answer is, "It Depends"
Starting over is good because you can help trim out the stuff that was added while you were initially working out the k... | [
0.8677861094474792,
0.11198066174983978,
0.15009696781635284,
0.17916861176490784,
0.2486581653356552,
0.34596067667007446,
0.16669167578220367,
-0.39095672965049744,
-0.08128497749567032,
-0.8211269974708557,
0.42317888140678406,
0.777948796749115,
0.26513954997062683,
0.1607389748096466,... | |
software to the outside world, building upon the prototype is pretty commonplace. Just don't get into the habit of thinking "I'll fix it later" if you run into some code that smells or seems like it could be done in a better way... | [
0.771783173084259,
0.2312740534543991,
-0.059664804488420486,
0.3624431788921356,
0.31636008620262146,
-0.30582261085510254,
0.24874837696552277,
0.24782855808734894,
0.13732779026031494,
-0.6165285706520081,
-0.19351665675640106,
0.6862008571624756,
-0.1136772483587265,
0.1348392367362976... | |
Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)?
Here is an article, [Advanced JavaScript Debugging Techniques](http://www.sitepen.com/blog/2008/04/03/advanced-javascript-debugging-techniques/), that describes the use ... | [
0.10814282298088074,
-0.0457913875579834,
-0.12083549052476883,
-0.010841672308743,
-0.26582396030426025,
-0.10125140845775604,
0.28203216195106506,
-0.1691857874393463,
-0.21445655822753906,
-0.48972469568252563,
-0.022216901183128357,
0.7237628102302551,
-0.14993442595005035,
-0.41779649... | |
I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work.
Aggregate functions work with "Scope', referring to the paragraph scop... | [
-0.0028797518461942673,
0.07450748234987259,
0.3574981391429901,
-0.09927855432033539,
-0.02380703017115593,
-0.1563418209552765,
0.05005812644958496,
-0.06957197189331055,
-0.3030875325202942,
-0.6515952944755554,
0.13088130950927734,
0.3886053264141083,
-0.47222471237182617,
0.2115833610... | |
I'm still trying to decide whether my (home) project should use [UTF-8](http://en.wikipedia.org/wiki/UTF-8) strings (implemented in terms of std::string with additional UTF-8-specific functions when necessary) or some 16-bit string (implemented as std::wstring). The project is a programming language and environment (li... | [
0.555611252784729,
0.12786757946014404,
0.26593104004859924,
-0.0445433109998703,
-0.024118393659591675,
-0.11965612322092056,
0.07780489325523376,
0.1305345892906189,
-0.05764950066804886,
-0.9416754841804504,
-0.19638679921627045,
0.27766093611717224,
-0.07399062067270279,
0.211130246520... | |
in a corner of the codebase (I will have non-GUI executables).
* I would like to avoid working with two different kinds of strings when working with user-visible text and with the application's data.
Currently, I'm working with std::string, with the intent of using UTF-8 manipulation functions only when necessary. It ... | [
0.11042466014623642,
0.15112735331058502,
0.4220731854438782,
-0.08705376833677292,
-0.23174677789211273,
0.1610593944787979,
0.0826602652668953,
-0.09126567095518112,
-0.27760013937950134,
-0.7889346480369568,
-0.3509635925292969,
0.4275248646736145,
-0.4210253059864044,
-0.01797223463654... | |
others.
UTF-8 might be better for data interchange and storage.
See <http://unicode.org/notes/tn12/>.
But whatever you choose, I would definitely recommend against std::string with UTF-8 "only when necessary".
Go all the way with UTF-16 or UTF-8, but do not mix and match, that is asking for trouble. | [
0.34327030181884766,
-0.11980099976062775,
0.00568486750125885,
0.040759991854429245,
-0.3822503089904785,
-0.16442880034446716,
0.2040482759475708,
0.14344248175621033,
-0.26035645604133606,
-0.64671391248703,
-0.20992228388786316,
0.6085361838340759,
-0.46203580498695374,
-0.049500782042... | |
I have a sprite loaded as a texture and I need to animate it, allowing it to "face" left or right -- essentially sometimes I need to "flip" it. I know that OpenGL has a gltranslate which repositions an object, and glrotate which rotates it. Is there a method that simply flips it across one axis? If not, how would you a... | [
0.017175568267703056,
0.004718146752566099,
0.6170247197151184,
0.03729073330760002,
-0.5329616069793701,
0.14511170983314514,
-0.13901613652706146,
-0.056127410382032394,
-0.17237475514411926,
-0.6469451785087585,
0.07747887820005417,
0.5310189723968506,
-0.03986172750592232,
0.0757893770... | |
which would flip the texture coordinate by the X axis.
As I said, I haven't played with point sprites, but I didn't mess with texture matrices either. They do seem quite useful, though.
**Update:** I have played with texture matrices in the meantime. In the same way that you switch between modelview and projection ma... | [
0.04147234559059143,
-0.21934840083122253,
0.4123663604259491,
0.02900785207748413,
-0.2694697082042694,
0.13900776207447052,
-0.048394858837127686,
-0.05843416228890419,
-0.4423123598098755,
-0.8894273042678833,
0.2260419875383377,
0.694019615650177,
-0.12884405255317688,
-0.0516572706401... | |
I am trying to create a service with C# that launches a process that can be displayed on the Windows XP Logon screen.
I found some code that is doing this in C++. The C++ code is for a service that creates another process with STARTUPINFO.lpDesktop set to "WinSta0\WinLogon". The created process is then displayed to th... | [
0.40297770500183105,
0.19645899534225464,
0.41387081146240234,
-0.14279049634933472,
0.08509321510791779,
0.054538048803806305,
0.028424449265003204,
0.20874083042144775,
-0.1216176226735115,
-0.9419072270393372,
0.036586977541446686,
0.6106964945793152,
-0.16175125539302826,
0.33882308006... | |
the C# code. This site was very helpful in getting the correct function signature for C#:
<http://www.pinvoke.net/default.aspx/kernel32/CreateProcess.html> | [
0.2914099097251892,
-0.0819988027215004,
0.3013857305049896,
0.10901790112257004,
0.07621248066425323,
0.14743565022945404,
-0.06098126992583275,
0.08012138307094574,
-0.3185940384864807,
-0.31998738646507263,
-0.0545012429356575,
0.45038843154907227,
-0.2511988878250122,
0.074531331658363... | |
Is there an easy way of finding out the host name of a machine that generated a user mode dump file via WinDbg?
Or at least any piece of identifying information to try and confirm that two dump files came from the same system.
You can do so by analyzing the user dump file with WinDbg. Run the `!peb` command and look ... | [
0.2418259084224701,
0.041603803634643555,
-0.11497601121664047,
0.21013014018535614,
-0.16694650053977966,
-0.21742305159568787,
0.24812372028827667,
-0.05548376962542534,
0.13809451460838318,
-0.7118068933486938,
0.016383096575737,
0.5687484741210938,
-0.07354100793600082,
-0.083664111793... | |
I need to get the name of the machine my .NET app is running on. What is the best way to do this?
Whilst others have already said that the [System.Environment.MachineName](http://msdn.microsoft.com/en-us/library/system.environment.machinename.aspx) returns you the name of the machine, beware...
That property is only r... | [
0.08798187971115112,
0.26086434721946716,
0.42209377884864807,
0.1754911243915558,
0.22293078899383545,
-0.0812404453754425,
0.4723086953163147,
0.014333239756524563,
-0.1112816259264946,
-0.8351653218269348,
-0.1713709980249405,
0.6921889781951904,
-0.25209537148475647,
0.510977566242218,... | |
of getting the name matching each of these different name types:
* ComputerNameDnsDomain
* ComputerNameDnsFullyQualified
* ComputerNameDnsHostname
* ComputerNameNetBIOS
* ComputerNamePhysicalDnsDomain
* ComputerNamePhysicalDnsFullyQualified
* ComputerNamePhysicalDnsHostname
* ComputerNamePhysicalNetBIOS
If you requir... | [
0.08817863464355469,
0.16750776767730713,
0.6112703084945679,
0.006143854930996895,
0.29808804392814636,
-0.265675812959671,
0.18128922581672668,
-0.12632536888122559,
0.14628347754478455,
-0.5664610862731934,
-0.14250285923480988,
0.904474675655365,
0.25723201036453247,
-0.093469895422458... | |
ComputerNamePhysicalDnsDomain,
ComputerNamePhysicalDnsFullyQualified
}
[DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Auto)]
static extern bool GetComputerNameEx(COMPUTER_NAME_FORMAT NameType,
[Out] StringBuilder lpBuffer, ref uint lpnSize);
[STAThread]
... | [
-0.22121655941009521,
-0.06938183307647705,
0.6880407929420471,
-0.2336360216140747,
0.20175455510616302,
0.15263450145721436,
0.21435919404029846,
-0.36139267683029175,
-0.2125580608844757,
-0.21277132630348206,
-0.4328227639198303,
0.8658344745635986,
-0.2274779975414276,
0.3109894990921... | |
= 260;
success = GetComputerNameEx(COMPUTER_NAME_FORMAT.ComputerNameDnsDomain,
name, ref size);
Console.WriteLine(name.ToString());
}
}
``` | [
-0.03777751326560974,
0.4348435401916504,
0.6255814433097839,
-0.3497067391872406,
0.1404070109128952,
0.2112375944852829,
0.45209836959838867,
-0.34136009216308594,
-0.13994552195072174,
-0.24346432089805603,
-0.5603905320167542,
0.8259433507919312,
-0.0707918182015419,
0.3048914074897766... | |
I'm running some JUnit tests on my applications. Every test has a for loop calling respective method 10000 times.
The tested methods produce a lot of log.
These logs are also automatically collected by JUnit as test output.
This situation takes to OutOfMemoryError because the string buffer where JUnit keeps the output... | [
0.6337158679962158,
0.16199247539043427,
-0.04157359525561333,
0.1133868545293808,
-0.17167147994041443,
-0.09681157022714615,
0.5473135113716125,
-0.1436106115579605,
-0.016531221568584442,
-0.5640302896499634,
0.3716377019882202,
0.6482189893722534,
-0.28735238313674927,
-0.0415618829429... | |
My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters.
The problem seems to be the font used (Tahoma), because when I copy&paste the text, or view it in the d... | [
0.0922325924038887,
0.4315802752971649,
-0.05132507532835007,
-0.007701070047914982,
-0.12311160564422607,
0.11948952078819275,
0.2942560613155365,
-0.15210983157157898,
0.2625017464160919,
-0.4283655285835266,
0.04060713201761246,
0.660048246383667,
0.0028239148668944836,
-0.0985978171229... | |
or is there a better way I have missed?
[UniScribe](http://en.wikipedia.org/wiki/Uniscribe), which was introduced in Windows 2000, is supposed to handle this transparently, meaning that it will automatically use a different font (such as Mincho) for characters that aren't present in the font you've selected. This is wh... | [
0.013790569268167019,
0.08025987446308136,
0.1866341084241867,
0.13203966617584229,
-0.3105466067790985,
-0.2650395631790161,
0.17138828337192535,
-0.0395997054874897,
-0.08205625414848328,
-0.4031120240688324,
-0.12999708950519562,
0.680829644203186,
-0.21065250039100647,
0.04660005867481... | |
I've looked for some other articles on this problem and even tried some of the ideas in [this thread](https://stackoverflow.com/questions/8440/visual-studio-optimizations#8539); however, nothing has solved the issue yet. So, on to the issue.
Something happens when working in Visual Studio (usually C#) that causes the ... | [
0.34846627712249756,
0.016712339594960213,
-0.01721997931599617,
0.06464250385761261,
-0.09031116962432861,
-0.21259909868240356,
0.05139399319887161,
0.22795288264751434,
-0.311054527759552,
-0.6798293590545654,
0.017491422593593597,
0.8498335480690002,
0.004570481367409229,
0.11743970215... | |
see the word **Searching** show up. It looks like it is scanning through all of the loaded namespaces for something, although I have no idea for what or why it is doing so. It causes a real hiccup in workflow since typically I will hit `Ctrl`+`S` often and keep typing.
I have been unable to track down what exactly cau... | [
0.34634047746658325,
-0.06195581331849098,
-0.18703493475914001,
0.18034376204013824,
-0.20077340304851532,
-0.38754400610923767,
0.3649359941482544,
0.5117038488388062,
-0.39712175726890564,
-0.8716773986816406,
0.12375254929065704,
0.43022575974464417,
-0.39014390110969543,
0.43673154711... | |
I am trying to validate the WPF form against an object. The validation fires when I type something in the textbox lose focus come back to the textbox and then erase whatever I have written. But if I just load the WPF application and tab off the textbox without writing and erasing anything from the textbox, then it is n... | [
0.17216166853904724,
0.04145921394228935,
0.24834077060222626,
-0.12582270801067352,
-0.19937127828598022,
0.0957120731472969,
0.24444444477558136,
-0.31747376918792725,
0.2635391354560852,
-0.39024582505226135,
-0.04726153612136841,
0.7168135643005371,
-0.33702367544174194,
0.239230647683... | |
get; set; }
public string Error
{
get { throw new NotImplementedException(); }
}
public string this[string columnName]
{
get
{ | [
-0.2054130882024765,
-0.25610673427581787,
0.0779259204864502,
-0.3323073387145996,
-0.04229777678847313,
0.05646110698580742,
0.4162284731864929,
-0.17498400807380676,
0.09544320404529572,
-0.3705916106700897,
-0.23105545341968536,
0.6228916049003601,
-0.2731543481349945,
-0.0649930387735... | |
string result = null;
if (columnName.Equals("FirstName"))
{
if (String.IsNullOrEmpty(FirstName))
{ | [
-0.6064015030860901,
-0.5138326287269592,
0.5399277210235596,
-0.3257201910018921,
0.22678528726100922,
0.03448037430644035,
0.0650964006781578,
-0.23128336668014526,
0.07031724601984024,
-0.37906092405319214,
-0.1477392315864563,
0.27926573157310486,
-0.2485588788986206,
0.107064634561538... | |
result = "FirstName cannot be null or empty";
}
}
else if (columnName.Equals("LastName"))
{ | [
-0.585549533367157,
-0.40833234786987305,
0.40235263109207153,
-0.2428128868341446,
0.18670320510864258,
-0.11094299703836441,
0.010785937309265137,
-0.2741802930831909,
0.08544905483722687,
-0.503035843372345,
-0.36892348527908325,
0.28541329503059387,
-0.08100415766239166,
0.093203499913... | |
if (String.IsNullOrEmpty(LastName))
{
result = "LastName cannot be null or empty";
}
} | [
-0.38748547434806824,
-0.5629252791404724,
0.34819984436035156,
-0.3830956220626831,
0.5597379207611084,
-0.04777948185801506,
0.14962825179100037,
-0.12144634127616882,
-0.020532475784420967,
-0.14036740362644196,
-0.43198707699775696,
0.3056817650794983,
-0.21789933741092682,
0.167264893... | |
return result;
}
}
}
```
And here is the WPF code:
```
<TextBlock Grid.Row="1" Margin="10" Grid.Column="0">LastName</TextBlock>
<TextBox Style="{StaticResource textBoxStyle}" Name="txtLastName" Margin="10"
VerticalAlignment="Top" Grid.Row="1" Grid.Column="1">
<Binding Source="{S... | [
-0.17523404955863953,
-0.1329612135887146,
0.8614626526832581,
-0.18274572491645813,
0.1945117861032486,
0.019514642655849457,
-0.01626957766711712,
-0.39666908979415894,
-0.22397461533546448,
-0.5576764941215515,
-0.21972301602363586,
0.5861934423446655,
0.023376589640975,
0.1563086956739... | |
</TextBox>
```
If you're not adverse to putting a bit of logic in your code behind, you can handle the actual *LostFocus* event with something like this:
**.xaml**
```
<TextBox LostFocus="TextBox_LostFocus" ....
```
---
**.xaml.cs**
```
private void TextBox_LostFocus(object sender, RoutedEventArgs e)
{
((Co... | [
0.2502445876598358,
0.21903139352798462,
0.18260495364665985,
-0.061373237520456314,
0.3467681109905243,
0.022908760234713554,
0.4605044424533844,
0.07512649893760681,
-0.268620103597641,
-0.4215143322944641,
-0.17418727278709412,
0.6835548281669617,
-0.4499424397945404,
0.1838287264108657... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.