text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Following this question:
[Good crash reporting library in c#](https://stackoverflow.com/questions/49224/good-crash-reporting-library-in-c)
Is there any library like CrashRpt.dll that does the same on Linux? That is, generate a failure report including a core dump and any necessary environment and notify the develop... | [
0.013555263169109821,
0.26793596148490906,
0.06253545731306076,
-0.05000319704413414,
-0.03877658024430275,
-0.4580283761024475,
-0.04600633308291435,
-0.07358027994632721,
-0.36119627952575684,
-0.2924615442752838,
-0.13231679797172546,
0.5078262686729431,
-0.43223509192466736,
-0.2046370... | |
Embedded custom-tag in dynamic content (nested tag) not rendering.
I have a page that pulls dynamic content from a javabean and passes the list of objects to a custom tag for processing into html. Within each object is a bunch of html to be output that contains a second custom tag that I would like to also be rendered... | [
0.13077695667743683,
-0.0075598894618451595,
0.37389132380485535,
-0.11334316432476044,
-0.19653445482254028,
0.05261192098259926,
-0.15270434319972992,
-0.3119106888771057,
-0.1159566193819046,
-0.7957384586334229,
-0.1075349822640419,
0.892924427986145,
-0.479468435049057,
0.104182004928... | |
<%-- Declare the bean --%>
<c:forEach var="noticeBean" items="${ImportantNoticeBean.importantNotices}"> <%-- Get the info --%>
<mysite:notice importantNotice="${noticeBean}"/> <%-- give it to the tag for processing --%>
</c:forEach>
```
this tag should output a box div like so
```
*SNIP* class for custom tag def... | [
-0.15625590085983276,
-0.13393011689186096,
0.6084608435630798,
-0.22007937729358673,
-0.09531300514936447,
-0.17298682034015656,
0.3898952305316925,
-0.2553351819515228,
-0.42692047357559204,
-0.5650970935821533,
-0.34603866934776306,
0.44626402854919434,
-0.3371167480945587,
-0.088867567... | |
2008-09-08</div>
<div class="noticeAuthor">- The author</div>
</div>
```
2 If, in the above example, for instance, I were to have a custom tag in the importantNotice.getMessage() String:
```
*SNIP* "This is a very important message. Everyone should pay attenton to it. <mysite:quote author="Some Guy">Quote this</... | [
0.09839355200529099,
0.18237482011318207,
0.6085261702537537,
-0.05137988552451134,
-0.4391157925128937,
-0.3666042387485504,
0.358187198638916,
0.12285196036100388,
-0.24571193754673004,
-0.44655030965805054,
-0.2771676182746887,
0.42097529768943787,
-0.07178308069705963,
0.01254590414464... | |
The author</div>
</div>
```
Rather than
```
<div class="importantNotice">
<p>This is a very important message. Everyone should pay attenton to it. <div class="quote">Quote this <span class="authorofquote">Some Guy</span></div></p> // or wahtever I choose as the output
<div class="importantnoticedates">Po... | [
-0.03833966329693794,
0.14275270700454712,
0.8663949966430664,
-0.0313238650560379,
-0.21496149897575378,
-0.08711744844913483,
0.3031044900417328,
-0.19197800755500793,
0.036032535135746,
-0.5780848860740662,
-0.1549873650074005,
0.24883118271827698,
-0.16736581921577454,
0.05928205698728... | |
inner tags rendered (example is for SimpleTag doTag method).
However, in the question's code I see that inner tag is comming from a string which is not rendered as a part of JSP, but just some random string. I do not think you can force JSP translator to parse it.
You can use regexp in your case or try to redesign y... | [
0.15497532486915588,
-0.06665211915969849,
0.5070316195487976,
-0.1091524213552475,
-0.3159187138080597,
0.011764257214963436,
0.20758269727230072,
-0.3045622706413269,
-0.1559162586927414,
-0.48491260409355164,
-0.0008576987311244011,
0.7175537943840027,
-0.520145058631897,
-0.26793473958... | |
author="Some Guy" />
</mysite:notice>
</c:forEach>
```
I whould go with regexp. | [
0.16956111788749695,
0.32940784096717834,
0.21027134358882904,
0.010268286801874638,
0.0367593839764595,
-0.3003629744052887,
0.19171184301376343,
0.3321889042854309,
0.14174696803092957,
-0.2200102061033249,
-0.2941035032272339,
0.3607352674007416,
-0.3686490058898926,
0.06869279593229294... | |
Is it correct to link a static library (.lib) compiled with VS 2005 with a program which is compiled with VS 2008? Both library and my program are written in C++. This program is run on Windows Mobile 6 Professional emulator.
This seems to work, there are no linking errors. However the program crashes during startup b... | [
-0.045129332691431046,
0.04952315613627434,
0.3566684424877167,
0.09160129725933075,
-0.07188351452350616,
-0.15914809703826904,
0.22796006500720978,
-0.007155572529882193,
0.02366398461163044,
-0.6292122006416321,
0.10031250864267349,
0.5445934534072876,
-0.5037946105003357,
0.09394649416... | |
configuration for the build. When compiling using debug configuration the problem doesn't occur.
VS2005 and VS2008 use different STL implementations. When the VS2005 code returns a vector, the object has memory layout different from what VS2008 expects. That should be the reason for the broken values you see in the ret... | [
0.05346023291349411,
-0.08650395274162292,
0.16807666420936584,
0.11455192416906357,
-0.1343204230070114,
-0.20942610502243042,
0.4114346504211426,
-0.16516193747520447,
-0.3992406725883484,
-0.8285810947418213,
0.0736798495054245,
0.7062165141105652,
-0.5853646397590637,
0.138988181948661... | |
more member variables to various C++ library classes. | [
0.18604223430156708,
-0.23319710791110992,
-0.05024895817041397,
0.3720479905605316,
-0.12723569571971893,
-0.11260266602039337,
-0.14031042158603668,
0.08104017376899719,
-0.32567518949508667,
-0.37241029739379883,
-0.4169811010360718,
0.36156657338142395,
-0.3176496922969818,
0.022393552... | |
Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that it appears as a label, without actually having to replace the control with a label? Maybe using CSS or setting an attribute?
I know that marking it as disabled works but then it gets displayed differently (greyed out).
To clarify my poi... | [
0.3298582136631012,
-0.02037178911268711,
0.023831183090806007,
0.039527591317892075,
-0.07280982285737991,
-0.199461430311203,
0.3058108389377594,
0.4087119698524475,
-0.3943604826927185,
-0.6252671480178833,
0.052210353314876556,
0.1315736025571823,
-0.4593982398509979,
0.336705237627029... | |
but currently still links to the email page. I want these disabled users to not link.
I know that really I should be replacing them with a label but this does not seem quite as elegant as just removing the linking ability usings CSS say (if thats possible). They are already displayed in a different colour so its obvio... | [
0.3119935989379883,
0.20833753049373627,
0.2585828900337219,
0.28173184394836426,
-0.1305093616247177,
-0.2628847360610962,
0.46038392186164856,
0.4280155599117279,
-0.32275038957595825,
-0.4929024279117584,
-0.024713704362511635,
0.4110165536403656,
-0.24205094575881958,
0.457339525222778... | |
JQuery snippet to the bottom of your page:
```
$(document).ready(function() {
$('a.NoLink').removeAttr('href')
});
```
All of the HyperLink controls with the class name "NoLink" will automatically have all of their URLs removed and the link will appear to be nothing more than text.
A single line of JQuery can s... | [
-0.032298725098371506,
-0.09645093977451324,
0.6373658180236816,
0.06905388087034225,
0.009777722880244255,
-0.23839834332466125,
0.3718375861644745,
0.37654590606689453,
-0.18912529945373535,
-0.5927405953407288,
-0.48097532987594604,
0.3315466344356537,
-0.4486227035522461,
0.24587824940... | |
[CSS Attribute selectors](http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors) allow the selection of elements based on attribute values. Unfortunately, I've not used them in years (mainly because they're not supported by all modern browsers). However, I remember distinctly that I was able to use them to ad... | [
0.1513528972864151,
0.24438169598579407,
0.41567984223365784,
-0.10058275610208511,
-0.31542739272117615,
-0.22757290303707123,
0.1522093564271927,
-0.18624664843082428,
-0.3955654799938202,
-0.4140720069408417,
-0.1018054336309433,
0.2932897210121155,
-0.1781470626592636,
0.06610728800296... | |
this is possible. But I do remember doing this.
(*Note*: The obvious solution would be to use `class` attributes for distinction. I want to avoid this because I have little influence of the way the HTML code is built. All I can edit is the CSS code.)
As for CSS 2.1, see <http://www.w3.org/TR/CSS21/selector.html#attrib... | [
0.17041514813899994,
-0.11116234958171844,
0.23857802152633667,
0.024471959099173546,
-0.30121397972106934,
0.012569774873554707,
0.10160548239946365,
-0.3418980538845062,
-0.10587786883115768,
-0.644839346408844,
-0.24418818950653076,
0.936547577381134,
-0.28495773673057556,
-0.1423154026... | |
[att~=val]
Match when the element's "att" attribute value is a space-separated list of
"words", one of which is exactly "val". If this selector is used, the words in the
value must not contain spaces (since they are separated by spaces).
[att|=val]
Match when the element's "att" attribute value is ... | [
-0.2835999131202698,
-0.19717921316623688,
0.3757055401802063,
-0.14395715296268463,
-0.35255464911460876,
0.13310988247394562,
0.3850383460521698,
-0.2460603415966034,
0.3778422772884369,
-0.5309385657310486,
-0.6506214141845703,
0.8086472749710083,
-0.1492939293384552,
-0.263406336307525... | |
subcode matches
(e.g., the "lang" attribute in HTML) as described in RFC 3066 ([RFC3066]).
```
[CSS3 also defines a list of selectors](http://www.w3.org/TR/css3-selectors/#selectors), but [the compatibility varies hugely](http://rakaz.nl/item/how_well_do_browsers_support_css_selectors).
There's also [a nifty te... | [
0.3096166253089905,
0.05152221769094467,
0.05249655991792679,
0.04747629538178444,
-0.13455335795879364,
-0.2426694929599762,
0.23151031136512756,
-0.38763508200645447,
-0.12593334913253784,
-0.7345186471939087,
-0.10758547484874725,
0.16517247259616852,
-0.27475929260253906,
0.12845903635... | |
How do I lock compiled Java classes to prevent decompilation?
I know this must be very well discussed topic on the Internet, but I could not come to any conclusion after referring them.
Many people do suggest obfuscator, but they just do renaming of classes, methods, and fields with tough-to-remember character sequen... | [
0.2247539460659027,
0.06804443150758743,
-0.3126052916049957,
0.004374382551759481,
-0.15770183503627777,
-0.3082078993320465,
0.40518784523010254,
-0.3950708210468292,
-0.07524746656417847,
-0.456746906042099,
-0.15343700349330902,
0.43011319637298584,
-0.40281856060028076,
0.294473439455... | |
[salt](http://en.wikipedia.org/wiki/Salt_%28cryptography%29) and in turn can decrypt the data by writing small independent program!
Or should such sensitive components be built in native code (for example, VC++) and call them via [JNI](http://en.wikipedia.org/wiki/Java_Native_Interface)?
Some of the more advanced Java... | [
0.13845014572143555,
0.3010066747665405,
0.04342782869935036,
0.0010325690964236856,
-0.2356339544057846,
-0.26548752188682556,
0.6174023747444153,
-0.021130144596099854,
-0.0030885108280926943,
-0.6038174629211426,
0.10409332811832428,
0.29809853434562683,
-0.17879289388656616,
0.33881470... | |
files](http://www.componio.com/products/jinstaller/jinstaller_secure_edition/jarcryp.html) and a custom classloader that does the decryption (preferably using native runtime library).
Third (and possibly offering the strongest protection) is to use native ahead of time compilers like [GCC](http://en.wikipedia.org/wiki... | [
0.38894549012184143,
0.36871567368507385,
-0.007649819832295179,
0.3226830065250397,
0.3016372323036194,
-0.28066515922546387,
0.25990548729896545,
-0.4935373365879059,
-0.5378016233444214,
-0.28193721175193787,
-0.491803377866745,
0.581622302532196,
-0.2478674352169037,
0.2056199908256530... | |
make the process as uncomfortable as you can and still keep the thing working... | [
0.6315574049949646,
0.24289846420288086,
-0.16144169867038727,
0.16470327973365784,
0.044423460960388184,
-0.22525551915168762,
0.45983511209487915,
0.044641975313425064,
0.20709727704524994,
-0.5206246972084045,
0.16173233091831207,
0.24704526364803314,
0.07390563189983368,
-0.22495421767... | |
Are the naming conventions similar in different languages? If not, what are the differences?
As others have said, things vary a lot, but here's a rough overview of the most commonly used naming conventions in various languages:
`lowercase, lowercase_with_underscores`:
Commonly used for local variables and function na... | [
0.004156715236604214,
-0.029763083904981613,
0.1399526745080948,
0.002297203056514263,
-0.11787215620279312,
-0.025971658527851105,
-0.05613309144973755,
0.1293894499540329,
-0.28834518790245056,
-0.3863421678543091,
-0.25697246193885803,
0.5228491425514221,
-0.42121466994285583,
0.2611697... | |
used, it's typically used both for functions and variables.
This syntax is also quite common for external APIs, since this is how the Win32 and Java APIs do it. (Even if a library uses a different convention internally they typically export with the (java)CamelCase syntax for function names.)
`prefix_CamelCase, prefi... | [
-0.006065558176487684,
-0.04524049907922745,
0.24893541634082794,
0.04393167793750763,
-0.27673929929733276,
-0.09793723374605179,
-0.41091495752334595,
-0.05182093754410744,
-0.33879968523979187,
-0.3170526623725891,
-0.40073278546333313,
0.46284353733062744,
-0.4181242883205414,
0.035425... | |
prefix for exported ones.
There are of course many other ways to name things, but most conventions are based on one of the ones mentioned above or a variety on those.
BTW: I forgot to mention Hungarian notation on purpose. | [
0.5022448897361755,
0.18735036253929138,
0.0003467287460807711,
0.06684765964746475,
-0.28669023513793945,
0.1069151759147644,
0.09440059214830399,
0.21541544795036316,
-0.46467846632003784,
-0.25676974654197693,
-0.2119116634130478,
-0.18360668420791626,
-0.07239978760480881,
0.0475317500... | |
I have a table containing prices for a lot of different "things" in a MS SQL 2005 table. There are hundreds of records per thing per day and the different things gets price updates at different times.
```
ID uniqueidentifier not null,
ThingID int NOT NULL,
PriceDateTime datetime NOT NULL,
Price decimal(18,4) NOT NULL
... | [
0.33934485912323,
0.22852268815040588,
0.30056729912757874,
0.13019798696041107,
-0.22978167235851288,
0.0409604012966156,
-0.17563599348068237,
-0.19806155562400818,
-0.33003854751586914,
-0.42898425459861755,
0.34945517778396606,
0.646751344203949,
0.0668887048959732,
0.307227224111557,
... | |
one per ThingID? Or will I have to use subqueries?
```
SELECT *
FROM Thing
WHERE ThingID IN (1,2,3,4,5,6)
AND PriceDate > cast( convert(varchar(20), getdate(), 106) as DateTime)
```
**UPDATE:** In an attempt to hide complexity I put the ID column in a an int. In real life it is GUID (and not the sequential kind)... | [
-0.08012706786394119,
-0.29523804783821106,
0.527102530002594,
0.022248337045311928,
-0.09478206187486649,
0.10491946339607239,
0.017829561606049538,
-0.37628790736198425,
0.008249404840171337,
-0.7544618844985962,
0.06908169388771057,
0.3325172960758209,
-0.18405254185199738,
0.0940547510... | |
WHERE ThingID IN (1,2,3,4)
GROUP BY ThingID)
```
(Given the highest ID also means the newest price)
However I suggest you add a "IsCurrent" column that is 0 if it's not the latest price or 1 if it is the latest. This will add the possible risk of inconsistent data, but it will speed up the whole p... | [
0.09462418407201767,
-0.16317123174667358,
0.8953285813331604,
0.2293524146080017,
0.18633170425891876,
-0.006949708331376314,
-0.4133642017841339,
-0.35022807121276855,
-0.08824003487825394,
-0.6888550519943237,
-0.01809277944266796,
0.45499008893966675,
0.05083508789539337,
0.13872918486... | |
to do is to...
```
SELECT *
FROM Thing
WHERE ThingID IN (1,2,3,4)
AND IsCurrent = 1
```
**UPDATE**
Okay, Markus updated the question to show that ID is a uniqueid, not an int. That makes writing the query even more complex.
```
SELECT T.*
FROM Thing T
JOIN (SELECT ThingID, max(PriceDateTime)
... | [
0.031129496172070503,
-0.2736588716506958,
0.5156204104423523,
0.14254245162010193,
-0.1382390409708023,
0.009141746908426285,
0.07796201854944229,
-0.6679456830024719,
0.041636887937784195,
-0.5197657942771912,
-0.041939616203308105,
0.37282097339630127,
-0.08209119737148285,
-0.035546693... | |
AND X.PriceDateTime = T.PriceDateTime
WHERE ThingID IN (1,2,3,4)
```
I'd really suggest using either a "IsCurrent" column or go with the other suggestion found in the answers and use "current price" table and a separate "price history" table (which would ultimately be the fastest, because it keeps the price table ... | [
0.1066778153181076,
-0.2855256497859955,
0.5698025822639465,
0.2069063037633896,
0.13342134654521942,
0.12020733952522278,
-0.2751212418079376,
-0.11895069479942322,
0.029403330758213997,
-0.7009637355804443,
0.004330568481236696,
0.8680535554885864,
0.034549079835414886,
0.158173829317092... | |
will be faster after the optimizer did its work.) | [
0.1210361197590828,
-0.035116273909807205,
0.6627320647239685,
0.30111199617385864,
0.546049177646637,
0.14246749877929688,
0.17187942564487457,
-0.2895219326019287,
0.21799030900001526,
-0.7137098908424377,
-0.15345728397369385,
0.6870522499084473,
0.16962707042694092,
-0.401388555765152,... | |
I'm just about wrapped up on a project where I was using a commercial SVN provider to store the source code. The web host the customer ultimately picked includes a repository as part of the hosting package, so, now that the project is over, I'd like to relocate the repository to their web host and discontinue the comme... | [
0.4825807511806488,
0.25524550676345825,
0.2922590374946594,
0.07184171676635742,
0.33507850766181946,
-0.3156006634235382,
-0.06676021963357925,
0.16845956444740295,
-0.27224740386009216,
-0.3636944591999054,
-0.051779452711343765,
0.43595436215400696,
-0.0045607127249240875,
0.3525107204... | |
copy of the entire repository folder.
If you have a Berkley DB backend, if you're not sure of what your backend is, or if you're changing SVN version numbers, you're going to want to use svnadmin to dump your old repository and load it into your new repository. Using `svnadmin dump` will give you a single file backup ... | [
0.32464954257011414,
0.010824155062437057,
0.25611159205436707,
0.011654692701995373,
-0.14570145308971405,
-0.16960349678993225,
0.4541853964328766,
-0.15230432152748108,
-0.44450145959854126,
-0.4595188498497009,
-0.4226219654083252,
0.37488406896591187,
-0.42899253964424133,
0.514889240... | |
you do `svnadmin load`, make sure you use the `--force-uuid` option, or otherwise people are going to have problems switching to the new repository. Subversion uses a UUID to identify the repository internally, and it won't let you switch a working copy to a different repository.
If you don't have filesystem access, t... | [
0.22077783942222595,
-0.34593823552131653,
0.42791447043418884,
0.07672803848981857,
-0.07552682608366013,
-0.2531863749027252,
0.22557078301906586,
-0.03494565933942795,
-0.3820136487483978,
-0.6130281686782837,
-0.17944788932800293,
0.38338565826416016,
-0.3127671182155609,
0.29328897595... | |
in place to do this, which sort of assumes filesystem access, so YMMV. Or, if you don't want to keep the history, you can use your working copy to import into the new repository. But hopefully this isn't the case. | [
0.701636552810669,
0.21260233223438263,
0.2543443441390991,
0.3989484906196594,
0.5324670076370239,
-0.5071192383766174,
0.023136358708143234,
0.48649871349334717,
-0.5736833810806274,
-0.32530176639556885,
-0.0038717465940862894,
0.4931245446205139,
0.18977391719818115,
0.3393840789794922... | |
We have an application that has to be flexible in how it displays it's main form to the user - depending on the user, the form should be slightly different, maybe an extra button here or there, or some other nuance. In order to stop writing code to explicitly remove or add controls etc, I turned to visual inheritance t... | [
0.3556919991970062,
-0.030881324782967567,
0.389694482088089,
0.24131444096565247,
-0.3270697295665741,
-0.04373679682612419,
-0.1267029047012329,
-0.144899383187294,
-0.11980458348989487,
-0.746327817440033,
0.057246994227170944,
0.38565880060195923,
-0.1881447285413742,
-0.01420068368315... | |
I get the feeling that developers and to some extent Microsoft have shunned the practice of Visual Inheritance - can you confirm this, am I missing something here?
Regards.
I thought they had more or less sorted the desktop designer issues in 2005.
Have you tried the usual culprits?
* No abstract control types
* No c... | [
0.3560936450958252,
0.07606037706136703,
-0.03069574385881424,
0.03909817710518837,
-0.23928627371788025,
-0.25030815601348877,
0.4244043529033661,
0.0486123189330101,
-0.4474511742591858,
-0.35211795568466187,
0.08396464586257935,
0.7733691334724426,
-0.12430210411548615,
-0.0250392202287... | |
above it worked..... mostly. | [
0.2956867218017578,
0.19867676496505737,
0.19891001284122467,
0.1305880844593048,
-0.21501050889492035,
-0.027977077290415764,
0.10511402040719986,
-0.0843304842710495,
-0.10094010829925537,
-0.4720713496208191,
0.3225472569465637,
0.7193595170974731,
-0.04059307649731636,
-0.0501421280205... | |
Is there a C# equivalent for the VB.NET `FormatNumber` function?
I.e.:
```
JSArrayString += "^" + (String)FormatNumber(inv.RRP * oCountry.ExchangeRate, 2);
```
In both C# and VB.NET you can use either the [.ToString()](http://www.java2s.com/Code/CSharp/Development-Class/UseToStringtoformatvalues.htm) function or th... | [
0.0760638564825058,
-0.002571510151028633,
0.41758015751838684,
-0.26462361216545105,
-0.13544528186321259,
0.16280187666416168,
-0.27727556228637695,
-0.3182026147842407,
-0.2600966989994049,
-0.3206871747970581,
-0.06528668850660324,
0.5382130146026611,
-0.24250410497188568,
-0.186082750... | |
to help with formatting such as D2 for 2 decimal places or C to display as currency. In this case you would not want to use the C formatter as this would have inserted the currency symbol and further separators which were not required.
See "[String.Format("{0}", "formatting string"};](http://idunno.org/archive/2004/14... | [
0.10342542082071304,
0.2623685896396637,
0.12591278553009033,
0.2592911124229431,
-0.31671637296676636,
-0.0583091601729393,
-0.2635459005832672,
-0.11137315630912781,
-0.5710130333900452,
-0.3837025463581085,
-0.0775204673409462,
0.09216170012950897,
0.12065578997135162,
0.028862137347459... | |
How do you set your Cocoa application as the default web browser?
I want to create an application that is launched by default when the user clicks on an HTTP or HTTPS link in other applications (Mail, iChat etc.).
There are four steps to making an app that can act as the default web browser. The first three steps allo... | [
0.43104228377342224,
0.1097581535577774,
0.6176512837409973,
0.0659542977809906,
-0.05608052760362625,
0.04029492288827896,
0.05801204591989517,
-0.01077585481107235,
-0.383590966463089,
-0.6672059893608093,
-0.30258819460868835,
0.4956693649291992,
-0.3552172780036926,
-0.1852019131183624... | |
add support for `http://` and `https://` you'd need to add the following to your application's info.plist file. This tells the OS that your application is capable of handling HTTP and HTTP URLs.
```xml
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>http URL</string>
... | [
0.009394838474690914,
-0.031153099611401558,
0.7106910347938538,
0.0588148832321167,
0.17101503908634186,
0.05905304476618767,
0.17196737229824066,
0.006198575720191002,
-0.15187273919582367,
-0.728113055229187,
-0.3512459397315979,
0.5161932706832886,
-0.4857874810695648,
-0.1899285763502... | |
<key>CFBundleURLName</key>
<string>Secure http URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>https</string>
</array>
</dict>
</array>
```
**2) Write an URL handler method**
This method will be called by the OS when it wants to use your application to open ... | [
0.10472451150417328,
-0.046248335391283035,
0.8377279043197632,
0.10990961641073227,
-0.005091420840471983,
-0.4951288402080536,
0.1440313309431076,
-0.016571352258324623,
-0.20420628786087036,
-0.5837919116020203,
-0.39816468954086304,
0.4415929317474365,
-0.23586250841617584,
0.053944636... | |
The URL handler method should look something like this:
```
- (void)getUrl:(NSAppleEventDescriptor *)event
withReplyEvent:(NSAppleEventDescriptor *)replyEvent
{
// Get the URL
NSString *urlStr = [[event paramDescriptorForKeyword:keyDirectObject]
stringValue];
//TODO: Your custom URL handling code here... | [
-0.055797915905714035,
-0.08560691028833389,
0.5464664101600647,
-0.07203839719295502,
-0.0009193908190354705,
-0.213510662317276,
0.3049696981906891,
-0.1728902906179428,
-0.14458487927913666,
-0.48820966482162476,
-0.3763697147369385,
0.807013213634491,
-0.39035966992378235,
0.0312928520... | |
initialisation code.
```
NSAppleEventManager *em = [NSAppleEventManager sharedAppleEventManager];
[em
setEventHandler:self
andSelector:@selector(getUrl:withReplyEvent:)
forEventClass:kInternetEventClass
andEventID:kAEGetURL];
```
Some applications, including early versions of Adobe AIR, use the alternati... | [
0.027548687532544136,
0.28522786498069763,
0.5031129121780396,
-0.15007324516773224,
0.033876750618219376,
0.05321650952100754,
0.2848760783672333,
0.04117734730243683,
0.012970909476280212,
-0.8795850276947021,
-0.6963105201721191,
0.3740890324115753,
-0.46618887782096863,
-0.298913657665... | |
this. In this case we're setting our app to be the default role handler for HTTP and HTTPS links:
```
CFStringRef bundleID = (CFStringRef)[[NSBundle mainBundle] bundleIdentifier];
OSStatus httpResult = LSSetDefaultHandlerForURLScheme(CFSTR("http"), bundleID);
OSStatus httpsResult = LSSetDefaultHandlerForURLScheme(CFST... | [
0.4367727041244507,
-0.3649374842643738,
0.7938610911369324,
0.06395047903060913,
-0.14509838819503784,
0.02192949317395687,
0.20093895494937897,
-0.2682608962059021,
-0.12328362464904785,
-0.7058777213096619,
-0.21255502104759216,
0.5403901934623718,
-0.4902177155017853,
-0.33303529024124... | |
`com.example.MyApp` you should consider using `x-com-example-myapp://` URLs. | [
0.550912618637085,
0.5054882168769836,
0.2355664074420929,
-0.0971219465136528,
-0.03634147346019745,
-0.1729542762041092,
0.11035853624343872,
0.6903668642044067,
-0.40529611706733704,
-0.7223672866821289,
-0.1429862529039383,
0.34260478615760803,
-0.1905003786087036,
0.33272549510002136,... | |
I have played with the idea of using a wiki (MediaWiki) to centralize all project information for a development project. This was done using extensions that pull information from SVN (using [SVNKit](http://svnkit.com/)) and by linking to Bugzilla to extract work assigned to a developer or work remaining for a release.
... | [
0.3343876898288727,
-0.01236290205270052,
0.22952227294445038,
-0.17215004563331604,
0.11055748909711838,
-0.02046561986207962,
0.0012013394152745605,
-0.019887547940015793,
-0.37480273842811584,
-0.5444028973579407,
-0.19262300431728363,
0.6652858853340149,
-0.26242437958717346,
0.1709739... | |
go. And a wiki is a good tool to keep the history and the "spirit" of a project available to new team members. I did that in many projects, and though the projects were already finished, all the informations are available.
One more idea: also try to integrate meeting schedules, minutes etc. If your team communicates v... | [
0.5514422059059143,
-0.2584209144115448,
-0.039323590695858,
0.37706613540649414,
0.05173366516828537,
-0.7719147801399231,
0.1416853368282318,
0.07573677599430084,
-0.18353953957557678,
-0.8894810080528259,
0.09955564886331558,
0.40112748742103577,
0.07472430169582367,
-0.0454293973743915... | |
Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner.
For security reasons we do not want certain pages in our application to be cached, **ever,** by the web browser. This must work for at least the following browsers:
* Internet Explorer 6+
* Firefox 1.5+
* Saf... | [
0.47812265157699585,
0.17716966569423676,
0.6452712416648865,
0.04712871089577675,
0.18738093972206116,
-0.4183754324913025,
0.44506779313087463,
-0.22378142178058624,
-0.07466298341751099,
-0.6364386081695557,
-0.3558632433414459,
0.5474101305007935,
-0.3049508035182953,
-0.18887926638126... | |
HTTP 1.1 spec for clients and proxies (and implicitly required by some clients next to `Expires`). The [`Pragma`](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32) is per the HTTP 1.0 spec for prehistoric clients. The [`Expires`](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21) is per the... | [
0.2403513491153717,
-0.05513276159763336,
0.7793250679969788,
-0.09067866206169128,
-0.21051764488220215,
-0.43311023712158203,
0.4577152132987976,
-0.09250549226999283,
-0.16686908900737762,
-0.5857502818107605,
-0.5281904339790344,
0.238607719540596,
-0.4532240331172943,
0.24265187978744... | |
1997), then you could omit `Pragma`.
```
Cache-Control: no-store, must-revalidate
Expires: 0
```
If you don't care about HTTP 1.0 proxies either, then you could omit `Expires`.
```
Cache-Control: no-store, must-revalidate
```
On the other hand, if the server auto-includes a valid `Date` header, then you could the... | [
0.17538981139659882,
0.452285498380661,
0.8868270516395569,
-0.22920159995555878,
0.3269110321998596,
-0.24791449308395386,
0.49963802099227905,
-0.04436514154076576,
-0.28435418009757996,
-0.24155133962631226,
-0.4791344106197357,
0.17738088965415955,
-0.16745947301387787,
0.6384670138359... | |
interesting if you **actually want** to cache the request, so you don't need to specify it at all.
How to set it?
==============
Using PHP:
```php
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
header("Pragma: no-cache"); // HTTP 1.0.
header("Expires: 0"); // Proxies.
```
Using Java Ser... | [
-0.3460043668746948,
0.11684130877256393,
0.5953252911567688,
0.13927751779556274,
0.3334830403327942,
0.06877501308917999,
0.09394245594739914,
0.06076502427458763,
-0.06428301334381104,
-0.6085749864578247,
-0.11713355034589767,
0.14226822555065155,
-0.48113659024238586,
0.12053236365318... | |
since it allows only `DateTimeOffset?` values.
response.Content?.Headers.TryAddWithoutValidation("Expires", 0.ToString());
```
Using ASP.NET:
```cs
Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.0.
Response.AppendHea... | [
-0.09600775688886642,
-0.0035344886127859354,
0.4441482424736023,
-0.18061627447605133,
0.03745989501476288,
0.16407200694084167,
0.49572521448135376,
-0.26995837688446045,
-0.18630298972129822,
-0.5521092414855957,
-0.37365198135375977,
0.21056680381298065,
-0.36403924226760864,
0.1301335... | |
# HTTP 1.0.
response["Expires"] = "0" # Proxies.
```
Using Python/Pyramid:
```python
request.response.headerlist.extend(
(
('Cache-Control', 'no-cache, no-store, must-revalidate'),
('Pragma', 'no-cache'),
('Expires', '0')
)
)
```
Using Go:
```default
responseWriter.Header().Set("Ca... | [
-0.2297450304031372,
-0.03776650130748749,
0.6140684485435486,
0.015092341229319572,
-0.10536883026361465,
-0.11106234043836594,
0.466833233833313,
-0.7334469556808472,
-0.032240577042102814,
-0.46616727113723755,
-0.6200841069221497,
0.5561563968658447,
-0.3206677734851837,
-0.10284485667... | |
"no-cache"
Header set Expires 0
</IfModule>
```
Using HTML:
```html
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
```
HTML meta tags vs HTTP response headers
=================================... | [
-0.1850077360868454,
-0.06236347183585167,
0.7017090916633606,
-0.05689790099859238,
-0.21601709723472595,
-0.21297715604305267,
0.2748505473136902,
-0.11557746678590775,
-0.19504734873771667,
-0.6939316987991333,
-0.5462750196456909,
0.3530261814594269,
-0.3367800712585449,
0.278331518173... | |
5.2.2](http://www.w3.org/TR/html4/charset.html#h-5.2.2). Take care with this when you don't specify them programmatically because the webserver can namely include some default values.
Generally, you'd better just **not** specify the HTML meta tags to avoid confusion by starters and rely on hard HTTP response headers. ... | [
0.13970978558063507,
-0.05253613367676735,
0.9090677499771118,
-0.019026480615139008,
-0.34816232323646545,
-0.12046583741903305,
0.3380211889743805,
-0.6987363696098328,
-0.04196839779615402,
-0.5794660449028015,
-0.3162986636161804,
0.6469091773033142,
-0.3022230863571167,
-0.12447900325... | |
"Network" or "Net" tab panel, and then clicking the HTTP request of interest to uncover all detail about the HTTP request and response. The [below screenshot](https://i.stack.imgur.com/fSnXH.png) is from Chrome:
.ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
```
As you might guess this, once the document has loaded, binds a custom function to the onClick event of all ***a*** tags.
The question is, how ca... | [
-0.029304256662726402,
-0.10365836322307587,
0.4339892566204071,
-0.1162506565451622,
0.013439076952636242,
0.01210298016667366,
0.08192747831344604,
-0.2990274429321289,
-0.31775450706481934,
-0.4783816337585449,
-0.05823926627635956,
0.528764009475708,
-0.3463406264781952,
0.136875808238... | |
the array returned by [$$](http://prototypejs.org/api/utility/dollar-dollar)(). | [
0.28177133202552795,
0.1922196000814438,
0.17559248208999634,
-0.1670934110879898,
-0.10177022963762283,
0.4584711790084839,
0.06269058585166931,
-0.31716156005859375,
-0.19460096955299377,
-0.09030953794717789,
-0.024196447804570198,
0.1267593801021576,
-0.2632134258747101,
0.217396780848... | |
I'm trying to find a source control for my own personal use that's as simple as possible. The main feature I need is being able to read/pull a past version of my code. I am the only developer. I've looked at a lot of different version control systems, but they all seem way more complicated than I need. I need one that'... | [
0.31563737988471985,
0.12718957662582397,
0.21793507039546967,
0.35079851746559143,
0.06260062754154205,
-0.18830281496047974,
0.12850332260131836,
0.2704344391822815,
-0.008607342839241028,
-0.680692195892334,
0.10837344080209732,
0.7861430644989014,
-0.08394952863454819,
0.34317788481712... | |
system geared for one guy and one guy only. Graphical UI is a plus.
Does anyone know of software would satisfy what I'm looking for?
Thanks!
-Mike
[Subversion](http://subversion.tigris.org/) is great -- you can run the server yourself or use something like assembla.com to host your code (although that exposes it to ... | [
0.3035130500793457,
-0.2743017375469208,
0.42391854524612427,
0.3134995996952057,
-0.07197234779596329,
0.12447480857372284,
0.17483776807785034,
0.26241928339004517,
-0.4485745429992676,
-0.5550974011421204,
-0.09733328223228455,
0.6971679329872131,
-0.09233447909355164,
-0.00107893045060... | |
Is it possible to extract all of the VBA code from a Word 2007 "docm" document using the API?
I have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I can store (and insert into other documents in the future).
Any tips or resources... | [
0.027318840846419334,
0.29490843415260315,
0.2451847940683365,
-0.029054997488856316,
-0.050522007048130035,
0.10945288091897964,
0.2475517988204956,
-0.1820128709077835,
-0.30553120374679565,
-0.22156521677970886,
-0.09053374081850052,
0.5793912410736084,
-0.3741677403450012,
-0.044288244... | |
List<string> GetMacrosFromDoc()
{
Document doc = GetWordDoc(@"C:\Temp\test.docm");
List<string> macros = new List<string>();
VBProject prj;
CodeModule code;
string composedFile;
prj = doc.VBProject;
foreach (VBComponent comp in prj.VBComponents)
{
code = comp.CodeModule;
... | [
0.17699041962623596,
-0.0653047114610672,
0.5699367523193359,
-0.40259379148483276,
0.2984057366847992,
0.13869549334049225,
0.45243704319000244,
-0.6208033561706543,
-0.41132447123527527,
-0.33477842807769775,
-0.583314061164856,
0.4361490309238434,
-0.4270201325416565,
-0.066895201802253... | |
the (1-indexed) lines
for (int i = 0; i < code.CountOfLines; i++)
{
composedFile += code.get_Lines(i + 1, 1) + Environment.NewLine;
}
// Add the macro to the list
macros.Add(composedFile);
}
CloseDoc(doc);
return macros;
}
```
You'll have to add a refe... | [
0.1129046380519867,
-0.03164585307240486,
0.6465815305709839,
-0.13870574533939362,
0.3346783220767975,
0.3736879229545593,
0.07431476563215256,
-0.356865793466568,
-0.10499535501003265,
-0.7145518660545349,
-0.08335531502962112,
0.24355913698673248,
-0.631119430065155,
-0.0065500531345605... | |
Extensibility 5.3 (or whatever version you have). I have the VBA SDK and such on my box - so this may not be exactly what office ships with.
Also you have to enable access to the VBA Object Model specifically - see the "Trust Center" in Word options. This is in addition to all the other Macro security settings Office ... | [
0.05974617972970009,
-0.24116282165050507,
0.5097275972366333,
0.1023404523730278,
0.06684784591197968,
-0.1830819547176361,
0.39715301990509033,
-0.1682485193014145,
-0.2564918100833893,
-0.39287009835243225,
-0.2245125025510788,
0.7475798726081848,
-0.33956700563430786,
-0.06949184834957... | |
never done it, I assume an external application could get to open files using this VBProjects collection as well. Security is funny with this stuff so it may be tricky.
I also wonder what the docm file format is now - XML like the docx? Would that be a better approach?
```
Sub GetCode()
Dim prj As VBProject
... | [
0.5287656784057617,
-0.058423466980457306,
0.6222500205039978,
-0.1292705237865448,
0.003342157229781151,
-0.1059604212641716,
0.2551552653312683,
-0.3084731996059418,
-0.39213311672210693,
-0.29468807578086853,
-0.304332435131073,
0.4579128921031952,
-0.3340196907520294,
0.401089489459991... | |
For Each comp In prj.VBComponents
Set code = comp.CodeModule
composedFile = comp.Name & vbNewLine
For i = 1 To code.CountOfLines
composedFile = composedFile & code.Lines(i, 1) & vbNewLine
Next | [
-0.036578819155693054,
-0.20629805326461792,
0.7694966197013855,
-0.05891987681388855,
-0.03874259814620018,
0.45174017548561096,
0.2897523045539856,
-0.5827162861824036,
-0.2653708755970001,
-0.7927428483963013,
-0.33983492851257324,
-0.1770266443490982,
-0.22028790414333344,
0.0953819379... | |
MsgBox composedFile
Next
End Sub
``` | [
-0.3713904321193695,
0.5061800479888916,
0.2598065137863159,
-0.0223238542675972,
-0.21784573793411255,
-0.08690991252660751,
0.12104624509811401,
0.43894603848457336,
-0.2541877329349518,
-0.6215560436248779,
-0.2534949481487274,
0.0544167198240757,
-0.23991721868515015,
0.179084405303001... | |
Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been touting the idea of the Web as the next desktop OS, customers are coming to expect the software running... | [
0.6421783566474915,
0.2912595272064209,
0.32618921995162964,
0.0876513123512268,
0.2805368900299072,
-0.09645204246044159,
0.20261363685131073,
0.1537768393754959,
-0.11511405557394028,
-0.9186680912971497,
0.07314354181289673,
0.6309022307395935,
0.40546807646751404,
0.061170544475317,
... | |
feature?
At [my company](http://smartbear.com) we have enterprise installations ranging into the thousands of seats. If we implemented an auto-upgrade, our customers would mutiny!
Large installations have peculiar issues that don't apply to small ones. For example, with 2000 users (not all of whom are, let us say, the... | [
0.7068192362785339,
-0.048761483281850815,
0.2602584660053253,
0.056474681943655014,
0.29887694120407104,
0.15534500777721405,
0.19182944297790527,
-0.19458739459514618,
-0.45131024718284607,
-0.462764173746109,
-0.20799611508846283,
0.6989511251449585,
0.15157246589660645,
-0.212703555822... | |
when applications fail, it's the internal IT team who are responsible. Therefore, they want time to install a new version in a test area, beat it up, and deploy on a Saturday only when they're good and ready.
I can see the value in making minor patches more easy to install, particularly when the patch is just for a bu... | [
0.2629680037498474,
0.3969123959541321,
0.3618481457233429,
0.14862900972366333,
0.27154970169067383,
-0.17932943999767303,
0.5570058226585388,
-0.032653022557497025,
-0.2955843210220337,
-0.370586633682251,
-0.43817633390426636,
0.6171910166740417,
-0.10130086541175842,
-0.170064061880111... | |
trained to not expect it, it doesn't seem worth it. | [
0.7296302318572998,
-0.14806610345840454,
-0.06912397593259811,
0.16935597360134125,
0.12226507812738419,
0.15725606679916382,
0.5065141916275024,
-0.09241796284914017,
0.10287157446146011,
-0.2412891834974289,
0.09431981295347214,
0.7068536281585693,
0.11139210313558578,
-0.32876008749008... | |
In my application I have a window which I popup with small messages on it (think similar to tooltip). This window uses the layered attributes to draw alpha backgrounds etc.
If I have several of these windows open at once, and I click one with my mouse, when they disappear they cause my application to lose focus (it sw... | [
0.35600975155830383,
0.13209384679794312,
0.09720378369092941,
-0.07233073562383652,
-0.14023523032665253,
0.12919439375400543,
0.4152911603450775,
0.35507404804229736,
-0.3232375681400299,
-0.745392382144928,
0.02561456337571144,
0.32400161027908325,
-0.45892444252967834,
0.05447261780500... | |
that BackgroundWorker has functionality which is easy to implement but even easier to wrongly implement in a subtle way, like cancellation.
I use it if I have and need a progress update, so I can display a meaningful progress bar.
If not, I use a Thread (or borrow from the ThreadPool), because I don't need all the fu... | [
0.3707383871078491,
-0.16327135264873505,
0.20661388337612152,
0.12851347029209137,
0.06903655081987381,
-0.17431828379631042,
-0.10928409546613693,
0.3087555468082428,
-0.3959733247756958,
-0.531979501247406,
0.17978434264659882,
0.5704405307769775,
-0.1811472773551941,
-0.091163136065006... | |
Say I have this given XML file:
```
<root>
<node>x</node>
<node>y</node>
<node>a</node>
</root>
```
And I want the following to be displayed:
```
ayx
```
Using something similar to:
```
<xsl:template match="/">
<xsl:apply-templates select="root/node"/>
</xsl:template>
<xsl:template match="node">
... | [
0.08911629766225815,
0.34165507555007935,
0.5926462411880493,
-0.22773772478103638,
0.030211525037884712,
-0.07017648220062256,
-0.26199090480804443,
-0.3712872564792633,
-0.044624339789152145,
-0.6744768023490906,
-0.28030624985694885,
0.44787874817848206,
-0.2710670828819275,
0.095479033... | |
I know I've seen this in the past, but I can't seem to find it now.
Basically I want to create a page that I can host on a [dasBlog](http://www.codeplex.com/dasblog) instance that contains the layout from my theme, but the content of the page I control.
Ideally the content is a user control or ASPX that I write. Anyb... | [
0.34093207120895386,
0.012977364473044872,
0.5116696357727051,
0.03720651939511299,
-0.2797742486000061,
-0.257791668176651,
0.3699483871459961,
-0.20534691214561462,
-0.2155991494655609,
-0.6185030937194824,
-0.19790738821029663,
0.4995405673980713,
-0.44484537839889526,
0.122629888355731... | |
you can create html files and the file name will map to the url like this:
<http://BASEURL/Static.aspx?=FILENAME>
will map to a file called:
/content/static/FILENAME.format.html
You can place anything in that file that you would normally place in itemTemplate.blogtemplate, except it obviously won't have any post da... | [
0.5074768662452698,
-0.3896302878856659,
0.6879753470420837,
0.1403176635503769,
-0.24497394263744354,
-0.2093466967344284,
-0.09167931973934174,
0.16504241526126862,
-0.5094338655471802,
-0.5743825435638428,
0.13856372237205505,
0.019113313406705856,
-0.22648566961288452,
0.27500692009925... | |
What is the difference between `UNION` and `UNION ALL`?
`UNION` removes duplicate records (where all columns in the results are the same), `UNION ALL` does not.
There is a performance hit when using `UNION` instead of `UNION ALL`, since the database server must do additional work to remove the duplicate rows, but usua... | [
0.08017110079526901,
0.09523119777441025,
-0.16366323828697205,
0.5899226069450378,
0.2170957624912262,
-0.12094738334417343,
-0.08226124942302704,
-0.03617339953780174,
-0.49393966794013977,
-0.6122550964355469,
-0.23255985975265503,
0.3362732529640198,
-0.3615925908088684,
0.516607701778... | |
may refuse to compare binary fields (ORACLE)
### UNION Example:
```
SELECT 'foo' AS bar UNION SELECT 'foo' AS bar
```
**Result:**
```
+-----+
| bar |
+-----+
| foo |
+-----+
1 row in set (0.00 sec)
```
### UNION ALL example:
```
SELECT 'foo' AS bar UNION ALL SELECT 'foo' AS bar
```
**Result:**
```
+-----+
| ... | [
0.09043986350297928,
0.2642158269882202,
0.4701904058456421,
-0.00978382583707571,
0.0923892930150032,
-0.09287455677986145,
0.28774094581604004,
-0.4630981683731079,
0.21243448555469513,
-0.36649277806282043,
-0.5297612547874451,
0.5208323001861572,
-0.3573196232318878,
0.4936384856700897... | |
I know that the .NET framework looks for referenced DLLs in several locations
* Global assembly cache (GAC)
* Any private paths added to the AppDomain
* The current directory of the executing assembly
What order are those locations searched? Is the search for a DLL ceased if a match is found or does it continue throu... | [
0.2566952407360077,
0.31037503480911255,
0.3807893395423889,
0.08660762757062912,
0.019226355478167534,
-0.06805897504091263,
0.23471197485923767,
0.1070493534207344,
-0.4581857919692993,
-0.7281450033187866,
-0.18460340797901154,
0.36639395356178284,
-0.49518296122550964,
0.18321059644222... | |
partial or full assembly names, etc.
The simple version is that the GAC is first, then the private paths. %PATH% is never used.
It is best to use [Assembly Binding Log Viewer (Fuslogvw.exe)](https://learn.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer) to debug any assembly loadin... | [
0.024527743458747864,
0.1244819164276123,
0.2094813734292984,
-0.30051350593566895,
-0.18284371495246887,
-0.1363270878791809,
0.39299532771110535,
-0.1018635705113411,
-0.14873982965946198,
-0.6106911897659302,
-0.41744792461395264,
0.39453473687171936,
-0.3905406594276428,
0.111174985766... | |
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus... | [
0.6427819728851318,
0.0329306498169899,
0.15653976798057556,
0.22828170657157898,
0.027275778353214264,
-0.3849773108959198,
0.40839216113090515,
0.3495555818080902,
-0.47991782426834106,
-0.48532119393348694,
-0.010039504617452621,
0.690259575843811,
-0.27116870880126953,
0.43995958566665... | |
third-party app would be fine, although I'd prefer to be able to do this on machines I sit down at for the first time.
"End Process" on the Processes-Tab calls `TerminateProcess` which is the most ultimate way Windows knows to kill a process.
If it doesn't go away, it's currently locked waiting on some kernel resource... | [
0.0029172622598707676,
0.03508639335632324,
0.069084532558918,
0.06176692247390747,
0.20130319893360138,
-0.08808331936597824,
0.27415555715560913,
0.35537204146385193,
-0.5043479800224304,
-0.4965935945510864,
-0.18960040807724,
0.5121713280677795,
-0.28525400161743164,
0.3007093369960785... | |
they are in what's known as "Uninterruptible sleep" (shown by top and ps as state `D`) at which point the processes sleep so well that they can't process incoming signals (which is what `kill` does - sending signals).
Normally, Uninterruptible sleep should not last long, but as under Windows, broken drivers or broken ... | [
0.4660753309726715,
-0.11129937320947647,
0.521144688129425,
0.0235601793974638,
0.3342819809913635,
-0.4498375952243805,
0.39348241686820984,
0.12251411378383636,
-0.07711613178253174,
-0.8137993216514587,
-0.5104098916053772,
0.29923567175865173,
0.10335206985473633,
0.5285601019859314,
... | |
The .Net generated code for a form with the "DefaultButton" attribute set contains poor javascript that allows the functionality to work in IE but not in other browsers (Firefox specifcially).
Hitting enter key does submit the form with all browsers but Firefox cannot disregard the key press when it happens inside of... | [
-0.13472749292850494,
-0.17999087274074554,
0.7579854130744934,
-0.13113263249397278,
-0.10306255519390106,
-0.22396919131278992,
0.5274249911308289,
-0.19627012312412262,
-0.02233404852449894,
-0.6734186410903931,
-0.2931676208972931,
0.5951288342475891,
-0.41089606285095215,
-0.155850380... | |
still has to be created for 2.0.
Any ideas for the lightest workaround (a hack that doesn't look like a hack =D)? The solution in the above link scares me a little as it could easily have unintended side-effects.
I use this function adapted from codesta. [Edit: the very same one, I see, that scares you! Oops. Can't h... | [
0.3819836676120758,
-0.16904504597187042,
0.677013635635376,
-0.02185429073870182,
0.3873297870159149,
-0.22160421311855316,
0.18737052381038666,
0.06011354923248291,
-0.3350497782230377,
-0.41523244976997375,
0.03589458763599396,
0.5678994059562683,
-0.14778433740139008,
-0.09966997057199... | |
here)
</div>
```
Here's the function.
```
function FireDefaultButton(event, target)
{
// srcElement is for IE
var element = event.target || event.srcElement;
if (13 == event.keyCode && !(element && "textarea" == element.tagName.toLowerCase()))
{
var defaultButton;
defaultButton = ... | [
-0.07822905480861664,
-0.2675394117832184,
0.6810581088066101,
-0.49854162335395813,
0.2696533501148224,
0.10367447137832642,
0.45064374804496765,
-0.47451251745224,
-0.15917059779167175,
-0.3862268626689911,
-0.6016501784324646,
0.734392523765564,
-0.3176400363445282,
-0.19664834439754486... | |
event.cancelBubble = true;
if (event.stopPropagation)
event.stopPropagation();
return false;
}
}
return true;
}
``` | [
-0.030529554933309555,
-0.4821414351463318,
0.19595003128051758,
-0.28220173716545105,
0.45547232031822205,
-0.07925201207399368,
0.3128417432308197,
0.16488511860370636,
-0.15383973717689514,
-0.06447286903858185,
-0.3089694380760193,
0.8095070123672485,
-0.538550615310669,
0.191336587071... | |
This is pretty simple, I come from a swing/awt background.
I'm just wondering what the proper way to set the background color for a SWT widget is?
I've been trying:
```
widget.setBackground( );
```
Except I have no idea how to create the color Object in SWT?
To create a color, try this:
```
Device device = Displa... | [
0.40485623478889465,
-0.028753476217389107,
0.6390947699546814,
-0.13788360357284546,
0.16432218253612518,
-0.11416502296924591,
0.13663282990455627,
-0.08303412050008774,
-0.1759791076183319,
-0.8480873703956604,
0.04330385848879814,
0.7028157114982605,
-0.430765837430954,
0.1968816071748... | |
exact code will be helpful. I assume the DirectoryServices namespace does it but I can't find the method that does it.
---
I need actual C# code. All the samples I found so far are VB or VBScript. The C# examples I found are for reading/setting ADSI properties. A command like backup seems to have a certain .NET synta... | [
0.00022198814258445054,
-0.12420576810836792,
0.37149620056152344,
0.11330191791057587,
0.1051693707704544,
-0.11134004592895508,
0.12995755672454834,
-0.22700411081314087,
-0.04961675405502319,
-0.7187139987945557,
0.011784452944993973,
0.87128084897995,
-0.1345210075378418,
-0.0825554057... | |
I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it?
Is there an alternative to using SvcUtil's command line step back in time to generate the proxy? Wi... | [
0.4437809884548187,
0.14028070867061615,
0.028758464381098747,
0.10207846760749817,
-0.21117736399173737,
-0.37687423825263977,
0.350880891084671,
0.17288713157176971,
-0.26731404662132263,
-0.33020520210266113,
0.1579209566116333,
0.5082640051841736,
-0.22342053055763245,
0.14565250277519... | |
the state of books available for WCF is abysmal at best. Juval Lowy, a superb author, has written a good O'Reilly reference book "Programming WCF Services" but it doesn't do that much (for me anyway) for learning now to use WCF. That book's precursor (and a little better organized, but not much, as a tutorial) is Miche... | [
0.37011972069740295,
0.11409355700016022,
0.006465432234108448,
0.22152070701122284,
-0.20435132086277008,
-0.1829940676689148,
-0.13330115377902985,
0.1859278827905655,
-0.25569775700569153,
-0.6423261761665344,
0.2547154128551483,
0.8273381590843201,
-0.31739407777786255,
-0.159024551510... | |
Bustamante's book has been updated for VS2008. The website for the book is not gone. It's up right now, and it has tons of great WCF info. On that website she provides updated code compatible with VS2008 for all the examples in her book. If you order from Amazon, you will get the reprint which is updated.
WCF is not *... | [
0.24442459642887115,
-0.19191667437553406,
0.5202860832214355,
0.27609023451805115,
-0.19728952646255493,
-0.4122365713119507,
0.05431133881211281,
0.050167668610811234,
-0.562935471534729,
-0.3738250434398651,
0.520392119884491,
0.5965872406959534,
-0.13163407146930695,
-0.264384925365448... | |
framework is *highly* configurable, and the ability to serve multiple endpoints over multiple protocols is amazing, IMO.
While you can still generate proxy classes from the "Add Service Reference" option, it's not necessary. All you really have to do is copy your ServiceContract interface and tell your code where to f... | [
0.16231177747249603,
0.14285089075565338,
0.03626608848571777,
0.1331285536289215,
0.07610373944044113,
0.07203066349029541,
0.20024442672729492,
-0.4557379484176636,
-0.23585942387580872,
-0.7472984194755554,
0.1774616241455078,
0.15932492911815643,
-0.026605108752846718,
-0.0444914363324... | |
of webcasts on the subject.
Michele has tons of great material out there, and I recommend you check out her website(s). Here's some links that were incredibly helpful for me as I was learning WCF. I hope that you'll come to realize how strong WCF really is, and how easy it is to implement. The learning curve is a litt... | [
0.6283586025238037,
-0.25246262550354004,
0.08874481916427612,
-0.061217475682497025,
-0.6449589133262634,
-0.13472546637058258,
0.5307721495628357,
0.14026837050914764,
-0.5302209854125977,
-0.41413789987564087,
0.19398202002048492,
0.5886365175247192,
0.5288615822792053,
-0.0445025749504... | |
she's obviously incredibly knowledgeable when it comes to WCF. She does a great job of demystifying the inner workings of WCF from the ground up. | [
0.4780799150466919,
0.10345420986413956,
-0.43000373244285583,
-0.053322043269872665,
0.11420298367738724,
-0.254932701587677,
0.15251147747039795,
0.09341626614332199,
-0.1559201180934906,
0.022289665415883064,
0.306761771440506,
0.364265114068985,
0.6597431898117065,
0.08510534465312958,... | |
What options exist for accessing different databases from C++?
Put differently, what alternatives are there to ADO?
What are the pros and cons?
1. [Microsoft ODBC](http://msdn.microsoft.com/en-us/library/ms710252.aspx).
2. The MFC ODBC classes such as [CDatabase](http://msdn.microsoft.com/en-us/library/2dhc1abk.aspx).
... | [
0.07376229017972946,
-0.10797836631536484,
0.15927478671073914,
0.12878508865833282,
-0.1809874325990677,
-0.24899664521217346,
0.11246704310178757,
-0.20120972394943237,
-0.05795305594801903,
-0.6020533442497253,
-0.21500030159950256,
0.5625113844871521,
-0.47289618849754333,
0.1412343382... | |
I have a 200+ case statement in Classic ASP which is getting out of control. It sets 5 variables, based on which case is selected. Address, Phone, Name etc. Just sets the variables and nothing else in each case.
Databases or files are not an option for this application.
Coming from the Perl world I would use a hash t... | [
0.19767704606056213,
0.06621696054935455,
0.24563510715961456,
0.05044914409518242,
-0.236698180437088,
-0.06318509578704834,
0.26129478216171265,
-0.10721399635076523,
-0.0795729011297226,
-0.6502524614334106,
-0.0907370001077652,
0.3524138629436493,
-0.2169632911682129,
-0.02804510854184... | |
My company is going to be storing sensitive data for our customers, and will be encrypting data using one of the managed .NET encryption algorithm classes. Most of the work is done, but we haven't figured out how/where to store the key. I've done some light searching and reading, and it seems like a hardware solution m... | [
0.6082836389541626,
0.16554474830627441,
0.27079078555107117,
0.3729758858680725,
0.34672701358795166,
-0.34250056743621826,
0.09943017363548279,
-0.07295780628919601,
-0.09317027777433395,
-0.3816629946231842,
-0.03167390078306198,
0.5766264796257019,
0.0772053599357605,
0.156008720397949... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.