text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
say definitely that the performance difference in the client are significant. For large data sets, we've seen a 10x performance increase in the client by using AMF instead of XML. The Flash Player can deserialize the AMF much faster than XML and this is important since you don't know how much horsepower the client mach... | [
0.37598860263824463,
0.13910965621471405,
-0.15128479897975922,
0.37701258063316345,
-0.15802951157093048,
-0.25054851174354553,
0.06011568382382393,
-0.22128646075725555,
-0.036658335477113724,
-0.49892306327819824,
0.11555541306734085,
0.4388265609741211,
-0.1311047226190567,
0.190208464... | |
Fluorine FX should be easy. | [
0.45846468210220337,
-0.0899176076054573,
0.06279389560222626,
0.1899162381887436,
-0.10091354697942734,
-0.22818011045455933,
-0.5075590014457703,
0.13481232523918152,
0.39932799339294434,
-0.3251293897628784,
0.0010022259084507823,
0.5607010722160339,
-0.3277721107006073,
-0.260937333106... | |
How do I convert a path with a drive letter like `W:\Path\Share` to the equivalent unc path like `\\server\Share\File` in .Net?
At the command prompt you can run `net use` and that will list the mappings. How do I get at that info in .Net?
You can use P/Invoke and call on a native function such as [WNetGetUniversalNam... | [
0.1464947611093521,
-0.2432677298784256,
0.3449913561344147,
0.027500294148921967,
0.06857238709926605,
-0.011174832470715046,
0.1730249971151352,
-0.21322375535964966,
0.04979788511991501,
-1.0041447877883911,
0.05481230467557907,
0.7752164602279663,
-0.12184742093086243,
0.25637152791023... | |
YUI 3 allows you to write
`Y.all(".foo").removeClass("bar");`
However it does not allow writing
`Y.all(".foo").removeClass("bar").set("innerHTML", "baz");`
It seems all the "operational" methods always terminate the call chain.
This means YUI 3 only provides half the power of chaining that jQuery provides.
... | [
0.08187626302242279,
-0.0022530967835336924,
0.316876620054245,
-0.16417698562145233,
-0.4321221709251404,
-0.3604719042778015,
0.4972405433654785,
-0.04017062857747078,
-0.006510508246719837,
-0.12705197930335999,
-0.20941969752311707,
0.5608837008476257,
-0.6838105916976929,
-0.124219894... | |
We are writing a feature to send a reminder email to customers in x number of days and just wondered if it was possible to delay the sending of the emails similar to how you can in Outlook (New Mail > Options button > Do not deliver before) in C#.
Does anyone know of a way of doing this?
One possibility is to create a... | [
0.7551229596138,
-0.13572832942008972,
0.1652148813009262,
0.1441325843334198,
0.0771665945649147,
-0.10360251367092133,
0.3489763140678406,
0.23384366929531097,
-0.34231287240982056,
-0.6665301322937012,
0.17725612223148346,
0.355339914560318,
-0.1360669732093811,
0.09379026293754578,
-... | |
I want to develop a small OpenPGP client and I'm searching for a Java library for OpenPGP.
Are there any (open source) recommendations for this approach?
[Cryptix.org](http://www.cryptix.org/) does not seem alive anymore...
I found the [BouncyCastle](http://www.bouncycastle.org) library, for Java and C#. I haven't an... | [
0.3097652792930603,
0.14068885147571564,
-0.08625518530607224,
-0.008630936965346336,
-0.2625139653682709,
-0.07230687886476517,
0.18258406221866608,
-0.28331834077835083,
-0.20821943879127502,
-0.44437840580940247,
0.02019147388637066,
0.29189229011535645,
-0.3535791337490082,
-0.09502711... | |
Version 3 X.509 certificates, Version 2 CRLs, and PKCS12 files.
7. Generators for Version 2 X.509 attribute certificates.
8. Generators/Processors for S/MIME and CMS (PKCS7/RFC 3852).
9. Generators/Processors for OCSP (RFC 2560).
10. Generators/Processors for TSP (RFC 3161).
11. Generators/Processors for OpenPGP (RFC 4... | [
-0.08946238458156586,
0.3137360215187073,
0.4217592179775238,
-0.28282803297042847,
-0.39772292971611023,
0.06406202167272568,
0.45132848620414734,
-0.3438725471496582,
-0.1284058690071106,
-0.6890663504600525,
-0.23466090857982635,
0.34215250611305237,
-0.39883115887641907,
-0.02628959156... | |
I'm currently trying to understand how the stack works, so I've decided teach myself some [assembly language](http://en.wikipedia.org/wiki/Assembly_language), I'm using this book:
<http://savannah.nongnu.org/projects/pgubook/>
I'm using [Gas](http://en.wikipedia.org/wiki/GNU_Assembler) and doing my development on [L... | [
0.37604057788848877,
0.2074114978313446,
-0.18589168787002563,
-0.11173766106367111,
-0.004045065492391586,
-0.10471179336309433,
0.10445321351289749,
-0.11588626354932785,
-0.36975565552711487,
-0.5502408146858215,
-0.030279941856861115,
0.2671564817428589,
-0.4016956090927124,
-0.0902994... | |
Or is it actually implemented at the hardware level? Or is it something else? Also would most assembly languages for other chip sets have the stack already implemented?
I know this is a bit of a foolish question but I'm actually quite confused by this.
I think primarily you're getting confused between a `program's sta... | [
0.6012749671936035,
0.25816628336906433,
-0.2209809422492981,
0.2069597691297531,
0.12633013725280762,
0.03364623710513115,
-0.23703445494174957,
-0.1450476497411728,
-0.32869064807891846,
-0.33313730359077454,
-0.22266314923763275,
0.16723082959651947,
-0.00317566585727036,
0.282545030117... | |
is taken off and you always put on to the top.
**A Programs Stack**
Is a stack, it's a section of memory that is used during execution, it generally has a static size per program and frequently used to store function parameters. You push the parameters onto the stack when you call a function and the function either a... | [
0.2793174088001251,
0.022457541897892952,
0.24332496523857117,
0.3602154850959778,
0.04625368490815163,
-0.015997793525457382,
-0.16086295247077942,
-0.2310684323310852,
-0.4858691096305847,
-0.18740186095237732,
-0.5633702874183655,
0.19044411182403564,
-0.07659509778022766,
0.16802532970... | |
a CPU register. This makes it a bit more flexible than a LIFO stack as you can change the point at which the stack is addressing.
You should read and make sure you understand the [wikipedia](http://en.wikipedia.org/wiki/Stack_(data_structure)) article as it gives a good description of the Hardware Stack which is what ... | [
0.06430564820766449,
-0.004359551705420017,
0.3410617709159851,
-0.07489949464797974,
-0.0027022541034966707,
0.3691764175891876,
-0.025579459965229034,
-0.5530810952186584,
-0.5786364674568176,
-0.5309751629829407,
-0.47372061014175415,
0.37014031410217285,
-0.19673416018486023,
-0.209286... | |
(push, pop, stack pointer, etc) but the x86 does because of it's frequency of use. In these situations if you wanted a stack you would have to implement it yourself (some MIPS and some ARM processors are created without stacks).
For example, in MIPs a push instruction would be implemented like:
```
addi $sp, $sp, -4 ... | [
0.1559741348028183,
-0.29647791385650635,
0.6237338781356812,
-0.4031958281993866,
-0.19702452421188354,
0.18878336250782013,
0.05244565010070801,
-0.23176336288452148,
-0.22624985873699188,
-0.3126980662345886,
-0.2563522458076477,
0.12990500032901764,
-0.4309263527393341,
0.0264886803925... | |
# Increment stack pointer by 4
``` | [
0.09092745929956436,
0.3269542157649994,
0.3707382082939148,
-0.19779683649539948,
-0.011796999722719193,
-0.03723762556910515,
0.3869219422340393,
-0.27087223529815674,
-0.31510165333747864,
-0.2820548713207245,
-0.27114740014076233,
0.4814733564853668,
-0.3636222183704376,
-0.06473667174... | |
From [msdn](http://msdn.microsoft.com/en-us/library/441722ys(VS.80).aspx) I get this:
```
#pragma warning disable warning-list
#pragma warning restore warning-list
```
In the examples, both `disable` and `restore` are used. Is it necessary to `restore` if I want it disabled for a whole file?
Like, if I do not resto... | [
0.07592469453811646,
0.07530499994754791,
0.13335558772087097,
-0.20536856353282928,
0.020516177639365196,
-0.25319603085517883,
0.5695309638977051,
-0.23973838984966278,
-0.4482809007167816,
-0.19038039445877075,
-0.44744616746902466,
0.6189358830451965,
-0.3770008385181427,
0.09551347792... | |
"until end of file behaviour"
> The symbol remains defined until a
> #undef directive for that same symbol is processed, or until the end of the
> source file is reached.
Given the 'pre-processor' is actually part of the lexical analysis phase of compilation it is likely that this behaviour is an effective contract... | [
0.3560278117656708,
-0.3325706720352173,
0.6613075733184814,
-0.35597464442253113,
0.12124929577112198,
-0.10803785175085068,
0.46821731328964233,
-0.08773204684257507,
-0.049594417214393616,
-0.3465512692928314,
-0.6219280362129211,
0.34978505969047546,
-0.07938912510871887,
-0.0372579731... | |
There are quite a number of modules on CPAN relating to the creation and manipulation of .pdf files, and I'm hoping this community can save me some time going down blind alleys.
I am looking to create .pdf files from scratch, with only simple formatting such as bold/italic and left/right/center justify. Being able to ... | [
0.4165581464767456,
0.18298597633838654,
0.4400753378868103,
0.08174470067024231,
-0.12109948694705963,
-0.26766064763069153,
0.050148118287324905,
0.1449154019355774,
-0.23986023664474487,
-0.43875783681869507,
-0.10877353698015213,
0.5178995132446289,
-0.13613826036453247,
0.124474972486... | |
pure-perl solution. Thanks for answers thus far!
**Update**: PDF creation is one difficult problem to decide how to approach. In addition to the good suggestions here, there seems to be about 1,000 different ways to solve this, and knowing which solution(s) to invest your time in is a real challenge. It is easy to acq... | [
0.4163149297237396,
-0.05567088723182678,
0.2777523994445801,
0.30357134342193604,
-0.24251104891300201,
-0.25552675127983093,
0.12031354010105133,
0.0634181872010231,
0.11990390717983246,
-0.4527898132801056,
-0.07517288625240326,
0.6425126791000366,
-0.3403651714324951,
-0.11748537421226... | |
string of text and there is no built-in concept of text wrapping... this is all work you have to do. Impossible amount of overhead for my task.
I am now using PDF::API2, which is much more powerful than PDF::Create, but still demands the PDF be assembled at a troublingly low level. Luckily, there is some help online. ... | [
0.37350931763648987,
0.24930362403392792,
0.24592147767543793,
-0.1361880749464035,
-0.24789081513881683,
-0.20191435515880585,
0.42049354314804077,
-0.02189309522509575,
-0.3103596866130829,
-0.43945303559303284,
-0.04668163135647774,
0.7333340644836426,
-0.31674012541770935,
0.0208536013... | |
is definitely not the best tool for this job -- it's designed for high-performance editing, not creating.
Among free PDF creation libraries, I like PDF::API2 the best. It has a very rich feature set and good encryption support (inspired by CAM::PDF I might add!) The author, Alfredo, manages a popular email list. Peopl... | [
0.20528671145439148,
0.07708489149808884,
0.16023796796798706,
0.2584826648235321,
-0.09305256605148315,
-0.4233449697494507,
-0.3965117037296295,
0.3600262403488159,
0.1886405199766159,
-0.3786264657974243,
0.19716882705688477,
0.49620357155799866,
0.03780364617705345,
-0.2868036925792694... | |
I have a weird problem with the CalandarExtender on my web project.
When someone click on the little calandar icon IE6 crash!
I think i properly implemented it
```
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
<asp:TextBox ID="txtDateDebut" runat="server"
... | [
0.08912282437086105,
0.23338715732097626,
0.18157343566417694,
0.02607610821723938,
-0.2423391044139862,
0.10896522551774979,
0.1641102284193039,
0.21524877846240997,
-0.19405940175056458,
-0.7236221432685852,
0.41163119673728943,
0.8390088081359863,
-0.23392575979232788,
0.050455957651138... | |
Animated="false" CssClass="Calendar"
FirstDayOfWeek="Monday"
Format="dd/MM/yyyy"
PopupButtonID="txtDateDebutButton" | [
0.30958497524261475,
-0.39157477021217346,
0.544471025466919,
0.010403684340417385,
0.1482573002576828,
0.37717097997665405,
0.02358824387192726,
0.5727514624595642,
-0.5604405999183655,
-0.28458911180496216,
-0.389391154050827,
0.5508896708488464,
-0.2436639368534088,
-0.03699494525790214... | |
TargetControlID="txtDateDebut">
</cc1:CalendarExtender>
```
On have IE7 it works but it stretch up, on IE6 it freeze the app until its stop without any error message.
Two things to try:
1) If you're running this inside of an `UpdatePanel`, make sure your UpdatePanel has an ID set on it.
2) If you have set `Enabl... | [
0.4373287856578827,
-0.12438473850488663,
0.5689404606819153,
-0.14844459295272827,
0.04521159082651138,
-0.2858412265777588,
0.5014152526855469,
0.06015044450759888,
-0.09502498060464859,
-0.7179018259048462,
0.11588984727859497,
0.6591074466705322,
-0.2867112457752228,
-0.301522612571716... | |
Having an HTML page with a simple table and js code to do show / hide on it:
```
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
<script type="text/javascript">
function showErrorSteps()
{
var el = document.getElementById("t1");
if(el.style.display=="n... | [
0.32580745220184326,
-0.11404870450496674,
0.5460496544837952,
-0.08207964152097702,
-0.13038714230060577,
-0.030701640993356705,
0.3248673677444458,
-0.38500434160232544,
-0.0436725951731205,
-0.5252295732498169,
-0.1026296615600586,
0.10865406692028046,
-0.13775767385959625,
-0.077488079... | |
else
{
el.style.display="none";
}
}
</script>
</head>
<body>
<br />
<span onclick="showErrorSteps()">[click]</span>
<br />
<br />
<table id="t1" border="1" width="100%" style="table-layout: fixed">
<tr>
<td>s</td>
<td>d</td> | [
0.24989081919193268,
-0.28621405363082886,
0.6275233626365662,
0.02692316845059395,
-0.054436519742012024,
0.1024395003914833,
0.062498126178979874,
-0.6732038259506226,
-0.28579336404800415,
-0.6424945592880249,
-0.07864600419998169,
0.31906962394714355,
0.07925271987915039,
-0.2117046862... | |
<td>a</td>
</tr>
</table>
</body>
</html>
```
What happens is that on Mozilla the table gets resized after you click twice(even with the table-layout: fixed css). IE works fine.
Tables shouldn't be set to `display: block`. Table rows and cells shouldn't either. They have different display values. My advice? D... | [
0.3686516284942627,
-0.03157828375697136,
0.2567186653614044,
-0.030532309785485268,
-0.25295311212539673,
-0.4000532031059265,
0.5127543210983276,
-0.08375234156847,
-0.3703015446662903,
-0.6395509839057922,
-0.11439815163612366,
0.7106755971908569,
-0.6480491757392883,
0.0019858565647155... | |
Try this:
```
<table>
<tr>
<td>Cell 1</td>
<td style="display: block;">Cell 2</td>
</tr>
</table
```
It will (or should) screw up your table layout. Why because a `<td>` element, by default, has `display: table-cell` not `block`. Tables are the same. They have `display: table`.
Unsetting CSS attributes is... pr... | [
0.0026469193398952484,
-0.1619824320077896,
0.003141706343740225,
0.03933870047330856,
-0.16299228370189667,
-0.36221736669540405,
0.4545145034790039,
-0.24097560346126556,
-0.3981771469116211,
-0.7622170448303223,
-0.08353813737630844,
0.43523502349853516,
-0.5688477754592896,
0.093238212... | |
use `addClass()` and `removeClass()` if that's more appropriate. For example:
```
<input type="button" id="hide" value="Hide Table">
...
<table id="mytable">
...
```
and
```
$(function() {
$("#hide").click(function() {
if ($("#mytable").is(".hidden")) {
$("#hide").val("Hide Table");
$("#mytable").... | [
0.036170829087495804,
-0.013356802985072136,
0.3352632224559784,
-0.20779776573181152,
0.19697867333889008,
-0.4207838475704193,
0.39807334542274475,
-0.31846046447753906,
-0.04716774448752403,
-0.6914280652999878,
-0.2720269560813904,
0.8229160904884338,
-0.37439918518066406,
-0.251999288... | |
Is there any difference between typing:
```
<?php echo $_SERVER[REQUEST_URI] ?>
```
or
```
<?php echo $_SERVER['REQUEST_URI'] ?>
```
or
```
<?php echo $_SERVER["REQUEST_URI"] ?>
```
?
They all work... I use the first one.
Maybe one is faster than the other?
**Without quotes PHP interprets the `REQUEST_URI` as... | [
-0.04692913964390755,
0.00031860516173765063,
0.4939824640750885,
-0.0605713315308094,
-0.35132184624671936,
0.12176693975925446,
0.0651676282286644,
-0.3117731511592865,
-0.17849084734916687,
-0.2622983455657959,
-0.1093985065817833,
0.4560296833515167,
-0.34548473358154297,
-0.1938472092... | |
always use quotes when you mean a string.** Otherwise it can have unwanted side effects.
And for the difference of single and double quoted strings, see the [PHP manual about strings](http://docs.php.net/manual/en/language.types.string.php). | [
0.6853947639465332,
0.15857380628585815,
0.04100002348423004,
-0.007620635442435741,
-0.38033509254455566,
-0.08620050549507141,
0.41671279072761536,
0.05145120993256569,
-0.27683016657829285,
-0.10903466492891312,
0.007046811282634735,
0.6861985921859741,
-0.34306594729423523,
-0.25138396... | |
On windows, I'm trying to acquire the file name using the %~f1 parameter.
I'm doing this from a new voice (command) which I've added to the contextual menu.
In the windows registry, the voice simply calls a batch script which prints the file name,
by this way:
```
`C:\script.bat %~f1`
```
but I get this output:... | [
-0.11841205507516861,
0.2883889973163605,
0.48079389333724976,
-0.2277294397354126,
0.09252086281776428,
0.009971044026315212,
0.20799174904823303,
0.029023369774222374,
-0.10047376900911331,
-0.8180224895477295,
-0.2155063897371292,
0.6872771978378296,
-0.12199374288320541,
0.176416426897... | |
receives the whole filename (you would probably put only 'C:\script.bat %1' or 'C:\script.bat' in the registry) and update your script to use %~f1:
```
@echo first argument: %1
@echo filename only: %~f1
@notepad %~f1
```
Good luck with that! | [
-0.11451777815818787,
0.06405948102474213,
0.26831045746803284,
-0.40621232986450195,
0.06710267812013626,
-0.09388116002082825,
0.34253525733947754,
-0.2372204214334488,
0.1423531323671341,
-0.5078396201133728,
-0.25462689995765686,
0.5718525648117065,
-0.2731398940086365,
-0.162180602550... | |
Hey, I'm trying to figure out how to display the ▼ character properly in a .NET winform application.
I am creating a custom control, and for the button, I want this character to appear. I am able to set the text to this character, but it appears as a blank square.
Any ideas on what I need to do to make this characte... | [
0.3247528672218323,
0.001880281139165163,
0.28793519735336304,
-0.15706153213977814,
-0.20266549289226532,
0.1155323013663292,
0.36923250555992126,
-0.15034006536006927,
-0.001283052028156817,
-0.765384316444397,
0.16729092597961426,
0.5081271529197693,
-0.20078144967556,
-0.19290237128734... | |
can be found here:
<http://www.fileformat.info/info/unicode/char/25bc/index.htm>
**EDIT2**: I tried adding some other Unicode characters, and got the following message:
> "Some Unicode Characters in this file
> cannot be saved in the current
> codepage. Do you want to resave this
> file as Unicode in order to Main... | [
0.11153043061494827,
0.1269245445728302,
0.13234864175319672,
0.0653332769870758,
-0.11877023428678513,
0.1458725482225418,
0.3551124334335327,
-0.13959278166294098,
-0.07397463172674179,
-0.671500027179718,
-0.10371534526348114,
0.3383758068084717,
-0.0009895183611661196,
0.35923621058464... | |
tools) if you embed more complex unicode characters in source files.
It is often better to do it via an explicit escape sequence and keep the source file in a simpler encoding.
```
btnCalendarToggle.Text = "\u25BC";
```
If this works it is likely that the problem is instead the encoding settings for the source file... | [
0.13001130521297455,
0.10704504698514938,
0.07457447052001953,
0.30410489439964294,
0.12350673973560333,
-0.16203781962394714,
0.593687891960144,
-0.29172971844673157,
-0.11875667423009872,
-0.9157298803329468,
-0.33689185976982117,
0.8945508599281311,
-0.027404101565480232,
-0.31418830156... | |
this should have worked. | [
0.18135477602481842,
0.07444692403078079,
0.07711384445428848,
0.08029329776763916,
-0.09749838709831238,
-0.1427406668663025,
0.29165884852409363,
-0.19544672966003418,
0.0952049270272255,
-0.08398235589265823,
0.11153300106525421,
0.18679755926132202,
-0.11779506504535675,
-0.00833269022... | |
If I have a makefile that calls another makefile, how to I get the master makefile to correctly check if the dependencies of the subordinate makefile have changed?
For example, if I have the rule
```
server:
@cd $(SERVERDIR) && $(MAKE)
```
That invokes make in the subdirectory in which I build an executable "s... | [
0.5551385879516602,
0.054807912558317184,
0.39034557342529297,
-0.22573603689670563,
0.22155839204788208,
-0.3039533495903015,
0.11269117146730423,
-0.3443778455257416,
-0.1280997395515442,
-0.6254526376724243,
-0.0567714087665081,
0.4655236005783081,
-0.2976893484592438,
0.331480085849761... | |
of the dependent files (something like $(SERVERDIR)/server.c, for example?
It looks like you want to use a phony target
```
.PHONY: server
server:
@cd $(SERVERDIR) && $(MAKE)
```
There's a detailed description of the Phony target [here](http://www.gnu.org/software/make/manual/make.html#index-g_t_002ePHONY-216),... | [
0.6811769008636475,
-0.08899670839309692,
0.5933616161346436,
0.050503842532634735,
0.08967137336730957,
-0.30564165115356445,
-0.0329824835062027,
0.09967685490846634,
-0.2996646463871002,
-0.3800056278705597,
-0.14573930203914642,
0.4678364098072052,
-0.5848521590232849,
0.35791307687759... | |
Sometimes you need to introduce backward incompatibile changes, when the improvements far outweighs the downsides. It is possible to easily switch to old behavior, but the user must be aware of such changes.
Therefore the question is: **how to announce future backward incompatible changes to FLOSS (open source) projec... | [
0.5250000357627869,
0.23529815673828125,
0.17635808885097504,
0.20120343565940857,
0.22045105695724487,
-0.2795919179916382,
0.1786673367023468,
0.054059941321611404,
-0.17297175526618958,
-0.671019434928894,
-0.2981250286102295,
0.5409704446792603,
-0.19857604801654816,
0.2562365829944610... | |
currently considered (and used):
* project mailing list
* project homepage
* release notes (first warning, then announcement)
* maintainer's blog
**Edit 1:** This (backward incompatible) change would happen in some *major* release.
All changes are about either adding safeguards (refusing commands which can thorough... | [
0.4962112605571747,
-0.022795530036091805,
0.3035568594932556,
0.02015475369989872,
0.16181008517742157,
-0.48866990208625793,
0.5066589117050171,
-0.12041547149419785,
-0.03346545994281769,
-0.5242089629173279,
-0.4026445150375366,
0.2763058543205261,
-0.14628568291664124,
0.1440840959548... | |
in question is [Git](http://git-scm.com), distributed version control system;
see [Giving early warning to users](http://gitster.livejournal.com/28129.html) at [gitster's journal](http://gitster.livejournal.com) (Junio C Hamano blog)*
* Change the major of the version number
* Announce it through all avenues at your... | [
0.26114505529403687,
0.06924045085906982,
0.29332658648490906,
0.05237652361392975,
-0.38935086131095886,
-0.3573848307132721,
-0.002635121578350663,
-0.2524307370185852,
-0.06361521780490875,
-0.32037660479545593,
-0.616839587688446,
0.36336976289749146,
0.0752117708325386,
0.168367981910... | |
simple search
But the major version number is the primary target - people expect 1.x to 2.x transitions to cause issues, and are more careful when upgrading.
-Adam | [
0.09325626492500305,
-0.07363461703062057,
-0.04307331144809723,
0.18722079694271088,
0.022916529327630997,
-0.11331786960363388,
0.5042708516120911,
0.14865060150623322,
-0.011287495493888855,
-0.6729437112808228,
-0.8007690906524658,
0.2627130150794983,
-0.2657025158405304,
-0.0178907681... | |
This is a challenge for the css gurus out there. I want to show 2 links on my page, on the same "line", one on the left, one on the right.
The code below works perfectly well in terms of visual presentation, but I'm aware that tables to format a page are not the done thing. Can anyone tell me what the "approved" marku... | [
0.38885799050331116,
0.33143723011016846,
0.3142227530479431,
0.12903200089931488,
-0.11233668029308319,
-0.14055632054805756,
0.0749029889702797,
0.24151870608329773,
-0.34935709834098816,
-0.7520534992218018,
0.2604779601097107,
0.20314839482307434,
-0.1280968189239502,
-0.14662510156631... | |
and does the job, I'm just keen to understand how I should do it.
(I have a element holding the page header / nav above it, and another holding a form directly below it.)
```
<table width=95%>
<tr>
<td>
<a href="<? echo $url1 ?>">Back to List of Pages </a>
</td>
<td align="right">
<a h... | [
0.05750235915184021,
0.37373679876327515,
0.048553019762039185,
-0.01600728929042816,
-0.28001323342323303,
0.07511540502309799,
0.29867255687713623,
-0.3507553040981293,
0.057947609573602676,
-0.7943331599235535,
-0.20904748141765594,
0.37873220443725586,
0.12037619948387146,
-0.161657527... | |
and Magnar's answers, and Magnars seems to work best in my situation. I found with Akrikos' method I id need to put a clear:both element underneath to prevent it merging with the div below. also, it was easy to wrap Magnar's in a element so the links match the rest of my page, which provided the necessary space betwee... | [
-0.09222202748060226,
0.14430387318134308,
0.3383670747280121,
0.3956427276134491,
-0.3685993254184723,
0.15371327102184296,
-0.2879274785518646,
-0.1089596375823021,
-0.12697412073612213,
-0.6651251912117004,
-0.09792277216911316,
0.2008572816848755,
-0.14360381662845612,
0.05795324593782... | |
the heavy markup by leveraging the fact that both links are oneliners. With this markup:
```
<div id="navigation"></div>
<a id="view" href="...">View this page</a>
<a id="back" href="...">Back to List of Pages</a>
<form></form>
```
And this simple css:
```
#view {
float: right;
}
```
No clearing necessa... | [
0.020298730581998825,
-0.008109956979751587,
0.694793164730072,
-0.11732256412506104,
-0.4410119950771332,
-0.1287400871515274,
-0.08981738239526749,
-0.3965337574481964,
-0.33434391021728516,
-0.5104725360870361,
-0.08655113726854324,
0.44056713581085205,
-0.37385058403015137,
-0.06367144... | |
I'm new in programming.
In VB2005, I have some object files, like a.vb, b.vb, c.vb.. each of them has different properties.
Then I have the collection files, for example: as.vb is the collection of a, bs.vb is the collection of b... each has mostly the same content, like add, item, count...
So now I would like to ... | [
0.41145530343055725,
0.15047378838062286,
0.24647235870361328,
-0.01769126020371914,
-0.4613691568374634,
-0.12434778362512589,
0.2947138547897339,
-0.25115856528282166,
-0.5920183658599854,
-0.5752183198928833,
0.00813363865017891,
0.30210259556770325,
-0.08860044926404953,
0.509021759033... | |
various generic collections available in .NET 2.0 | [
0.55646151304245,
-0.29316961765289307,
-0.10848311334848404,
0.16002918779850006,
-0.14171691238880157,
-0.2563879191875458,
0.10933327674865723,
-0.00852124858647585,
-0.3475516438484192,
-0.6291595101356506,
-0.3620360195636749,
0.08735242486000061,
-0.2563243508338928,
0.30351164937019... | |
I am using a Canvas itemRenderer for a container I use to display images. See pseudo code below.
```
image = new Image();
image.source = data.@thumb;
this.addChild(image);
this.addEventListener(MouseEvent.MOUSE_OVER, enlarge(image));
this.addEventListener(MouseEvent.MOUSE_OUT, shrink(image));
```
When I mouse over ... | [
0.10850415378808975,
-0.04782743379473686,
0.5672916173934937,
-0.32273465394973755,
0.029503921046853065,
0.04631011188030243,
0.22838491201400757,
-0.3909429609775543,
-0.31958672404289246,
-0.8174186944961548,
-0.3257736563682556,
0.6491401791572571,
-0.14607644081115723,
0.139679223299... | |
an object that is not one of its children, the display object dispatches the rollOver event. This is different behavior than that of the mouseOver event, which is dispatched each time the mouse enters the area of any child object of the display object container, even if the mouse was already over another child object o... | [
-0.3507106602191925,
-0.307127445936203,
0.2140374779701233,
-0.125982865691185,
0.09652836620807648,
0.03993901610374451,
-0.11399462819099426,
0.04450448602437973,
-0.27633795142173767,
-0.4909214973449707,
-0.6038031578063965,
0.3160128891468048,
-0.0723692923784256,
0.11485084891319275... | |
I am stuck with a problem which seems stupid but I cannot find out the solution... With XLST, I need to sum a list of values calculated by a template. So I stored these values in a tree structure (a list of "Number" elements contained in a root element "Numbers"). But whatever I try to do with this self-made list, it w... | [
0.16201502084732056,
0.2725365459918976,
0.01844378560781479,
0.036631982773542404,
-0.09141430258750916,
-0.1951226145029068,
0.5310982465744019,
-0.18487964570522308,
-0.11102713644504547,
-0.37626639008522034,
-0.04711158201098442,
0.5268542170524597,
-0.2963188588619232,
0.322184264659... | |
<xsl:variable name="_Size">
<xsl:call-template name="GetSize">
<xsl:with-param name="_value" select="@value"/>
</xsl:call-template>
</xsl:variable>
<Number> | [
-0.16592279076576233,
-0.21712543070316315,
0.4094768762588501,
-0.04119862988591194,
-0.22503535449504852,
0.08061254769563675,
0.12007083743810654,
-0.8838163018226624,
-0.36941590905189514,
-0.212102472782135,
-0.423257440328598,
0.3139762282371521,
-0.3945133686065674,
-0.0712261274456... | |
<xsl:value-of select="$_Size"/>
</Number>
</xsl:for-each>
</Numbers>
</xsl:variable>
<!-- this returns an error: expression must result into a node-set -->
<xsl:message terminate="no">
<xsl:value-of select="sum($_subTotals/Numbers/Number)"/>
</xsl:message>
<!-- transform the tree fragment ... | [
-0.38864049315452576,
-0.41220197081565857,
0.2953239381313324,
-0.18579775094985962,
-0.1137884184718132,
-0.08098874986171722,
0.2609699070453644,
-0.4369046986103058,
-0.5801814794540405,
-0.36132076382637024,
-0.6895095705986023,
0.2761904001235962,
-0.27811482548713684,
-0.12550249695... | |
display object or the area of any of its children from an object that is not one of its children, the display object dispatches the rollOver event. This is different behavior than that of the mouseOver event, which is dispatched each time the mouse enters the area of any child object of the display object container, ev... | [
-0.37835782766342163,
-0.20187132060527802,
0.4159511923789978,
-0.14459767937660217,
0.06970898061990738,
0.06515916436910629,
-0.27191102504730225,
0.009389877319335938,
-0.3594505488872528,
-0.5758143067359924,
-0.6325525045394897,
0.1687035858631134,
-0.020753897726535797,
0.1367054879... | |
I'm developing some lower end code in my system that uses multiple child classes of the php exception class. Essentially I have the exceptions broken up to a few categories. What I'm wanting to do is two things.
1. I need all exceptions that are fired in the application to be handled in a single place.
2. I need to b... | [
0.5354457497596741,
0.24359233677387238,
0.07758016139268875,
0.046352289617061615,
-0.09961476922035217,
-0.10307914763689041,
0.4887087941169739,
-0.09828189015388489,
-0.2682691216468811,
-0.44929102063179016,
0.12680424749851227,
0.4374694228172302,
-0.341457337141037,
0.05787736177444... | |
like a very crappy implementation. I also don't like the idea of set\_exception\_handler unless i can sett the function to be a method of an object. The reason for this is that if I designate a function to handle the exceptions this will be the first function in the application. Everything else is a method of an object... | [
0.19469593465328217,
0.02742079086601734,
0.23164254426956177,
-0.020619038492441177,
0.06075612083077431,
-0.351065993309021,
0.5718920230865479,
0.005863140802830458,
-0.30174097418785095,
-0.7695786356925964,
-0.09425283968448639,
0.48597413301467896,
-0.5922828316688538,
0.193758502602... | |
script](https://stackoverflow.com/questions/20277102/proper-separation-difference-between-index-php-and-front-controller/20299496#20299496)
2. call [`set_exception_handler`](http://www.php.net/set_error_handler) early in execution (don't forget to account for `error_reporting()`). `set_exception_handler` takes as its p... | [
-0.08627855032682419,
-0.05189047008752823,
0.292679101228714,
-0.11000268161296844,
-0.1673232764005661,
-0.3442753255367279,
0.5066003799438477,
-0.33958911895751953,
-0.2021683305501938,
-0.38555529713630676,
-0.2936846613883972,
0.6158157587051392,
-0.31404581665992737,
-0.135571584105... | |
function:
> E\_ERROR, E\_PARSE, E\_CORE\_ERROR,
> E\_CORE\_WARNING, E\_COMPILE\_ERROR,
> E\_COMPILE\_WARNING, and most of
> E\_STRICT raised in the file where
> set\_error\_handler() is called.
4. Log errors as necessary.
5. Create an error page template (the "View") that operates on an Exception object (the "Mode... | [
0.08315751701593399,
-0.11054833978414536,
0.20552735030651093,
-0.10893160104751587,
0.2926223576068878,
0.08709432184696198,
0.2917431592941284,
-0.42354896664619446,
-0.01439984142780304,
-0.8797279000282288,
-0.24202163517475128,
0.5728284120559692,
-0.45653170347213745,
-0.06328704208... | |
at this point
include "errortemplates/dev.php";
} else {
include "errortemplates/prod.php";
}
}
``` | [
0.08474256843328476,
0.2830527424812317,
0.12624871730804443,
-0.21862420439720154,
0.03799436241388321,
-0.08113129436969757,
0.39950114488601685,
-0.15183532238006592,
0.02997739054262638,
-0.5582167506217957,
-0.15754681825637817,
0.6166427731513977,
-0.2720819413661957,
-0.025537854060... | |
Ok, so here's the situation.
I'm working on a site that allows people to upload things to a database that are then pulled to the frontpage so people can see them. It is a pretty straightforward site and I had it working real well but i was developing everything at ../html/backend for the sake of simplicity and to make ... | [
0.305861234664917,
-0.19636297225952148,
-0.05791020020842552,
-0.16038578748703003,
-0.149319127202034,
-0.2408832460641861,
0.20482048392295837,
0.35345304012298584,
-0.06805343180894852,
-0.5657916069030762,
0.28796839714050293,
0.6350871324539185,
-0.17711178958415985,
0.05642090365290... | |
where i hit the problem, the form is obviously in html and it collects the info, then i have a jquery java script fire on button press that does an ajax PUT to a php file that does the actual INSERT. (don't worry i also do validation in the php file)
but ever since the move the script does not fire.
yes i changed the ... | [
0.3926032781600952,
0.1898646205663681,
0.27876779437065125,
0.2598365247249603,
-0.3050614297389984,
-0.19003786146640778,
0.49014243483543396,
-0.07702072709798813,
-0.19693110883235931,
-0.48354372382164,
0.2558354139328003,
0.7236925363540649,
0.019984958693385124,
-0.2670077383518219,... | |
lot
use Firebug or other debugger to find the problem. | [
0.2407565712928772,
0.34669339656829834,
0.1000528484582901,
0.3439466059207916,
0.0819041058421135,
-0.2205202877521515,
0.4408647418022156,
0.019711116328835487,
-0.19575053453445435,
-0.7840421199798584,
-0.2347089648246765,
0.5970805287361145,
-0.22072067856788635,
-0.03996440395712852... | |
Recently I had to fix a bug that was reported from the field. While the test team was trying to reproduce the issue, the customer was breathing down our neck and we had to have production ready code in just a week's time. When at last when we were able to reproduce the issue there was just 3 days left. I and my colleag... | [
0.5566794872283936,
0.39405888319015503,
-0.019674768671393394,
0.11488944292068481,
0.3256368041038513,
0.23884615302085876,
0.3259398341178894,
0.13209715485572815,
-0.3183917701244354,
-0.3659031391143799,
0.2278260588645935,
0.4670870006084442,
-0.029924584552645683,
0.2993442416191101... | |
that the test team didn't have enough of time to run through their usual test cases. And we had to overlook other trivial mistakes in the code to limit the code changes.
I would like to know from the community the best practices to follow in such time-critical conditions. Is it okay to neglect other issues (which are... | [
0.38532155752182007,
0.12861241400241852,
-0.3100930452346802,
0.10339348763227463,
0.35556113719940186,
-0.0003979986358899623,
0.21960878372192383,
0.1255580484867096,
-0.346381276845932,
-0.25225457549095154,
0.01681109145283699,
0.6083997488021851,
-0.03168589249253273,
0.2105180472135... | |
also add its problems. Please share your thoughts and experience.
AnthonyWJones's highly-rated answer above is right on, basically
> Another is put you commercial head on
> and use some common sense, what is the
> risk you have introduced another as
> serious or more serious bug? How will
> the customer react to t... | [
0.3028836250305176,
0.21123580634593964,
-0.09109456092119217,
0.1325937956571579,
-0.027490179985761642,
0.012752491980791092,
-0.015379717573523521,
-0.16893282532691956,
-0.1938859075307846,
-0.2447756677865982,
0.26893946528434753,
0.664294958114624,
-0.08673489093780518,
-0.0911640375... | |
a break, make a list and think it out. Should you tell the customer that it's impossible? What is the risk that a small bug will be a show-stopper that you've introduced in your week-long frantic rush?
Obviously, there are no set answers, but in general, I work as fast as possible but not faster. Some customers just b... | [
0.7370104789733887,
0.020203659310936928,
0.1392737329006195,
0.2960238456726074,
0.3461042642593384,
-0.033131193369627,
0.3964225947856903,
0.11054414510726929,
-0.5729506611824036,
-0.2470480352640152,
-0.09640222042798996,
0.5259078741073608,
-0.15082314610481262,
-0.3449459373950958,
... | |
busy to talk to you, you should explain (in email, or in blood stains, whatever) that you will short circuit QA and perhaps introduce other bugs in the process. You will need to talk, briefly, about the likelihood of those being **more important than the bug in question.** You have experience and know what you're doing... | [
0.7456615567207336,
-0.036581143736839294,
0.26604941487312317,
-0.01247371081262827,
0.09501316398382187,
-0.0013295141980051994,
0.27616000175476074,
0.4203137159347534,
-0.4087643623352051,
-0.24207770824432373,
-0.02159659005701542,
0.6628276705741882,
-0.39429524540901184,
-0.16613015... | |
many days without breaks you actually found the bug faster**: you were probably trying to go too fast. Your job is also to inform your customer as to what's possible, what is not, and what risks are incurred with each decision. But going faster than your fastest -- as in not taking breaks -- makes no sense and helps no... | [
0.6101897954940796,
-0.22080691158771515,
0.1650206297636032,
0.543846607208252,
-0.01834164559841156,
-0.530984103679657,
0.4924103915691376,
0.41336387395858765,
-0.40683868527412415,
-0.20839133858680725,
-0.055469855666160583,
0.588574230670929,
-0.2508169710636139,
-0.2837176918983459... | |
In a normal loop you can break out of a loop using break. Can the same be done using an anonymous delegate?
Example
inputString and result are both declared outside the delegate.
```
blackList.ForEach(new Action<string>(
delegate(string item)
{
if(inputString.Contains(item)==true)
{
... | [
0.2797664999961853,
-0.15625087916851044,
-0.16315186023712158,
0.16555069386959076,
0.15688303112983704,
-0.21297839283943176,
0.6378860473632812,
-0.3753538727760315,
-0.48441800475120544,
-0.2093643695116043,
-0.3543108105659485,
0.2442503571510315,
-0.4702991545200348,
0.20990946888923... | |
the replies, I'm actually reading your book at the minute John :) Just for the record i hit this issue and switched back to a normal foreach loop but I posted this question to see if i missed something.
As others have posted, you can't exit the loop in ForEach.
Are you able to use LINQ? If so, you could easily combine... | [
0.25599682331085205,
-0.018241317942738533,
0.22504785656929016,
0.45851218700408936,
-0.033843088895082474,
-0.4041678309440613,
0.2966301441192627,
0.25583353638648987,
-0.34468916058540344,
-0.3234975039958954,
-0.19631971418857574,
0.16402356326580048,
-0.17920584976673126,
-0.03325375... | |
you *really* want to do. | [
0.7917307019233704,
0.15903010964393616,
-0.24615374207496643,
0.12992964684963226,
0.24023231863975525,
-0.0007078773342072964,
0.6913536190986633,
0.2020447999238968,
-0.6481636762619019,
-0.34562569856643677,
0.01779969409108162,
0.39392703771591187,
-0.09719029068946838,
0.327957302331... | |
Is there a command I can put into a Windows XP .bat file to bring the command shell to the front?
From a batch file, no. If you want to activate a window you have to use [SetActiveWindow()](http://msdn.microsoft.com/en-us/library/ms646311(VS.85).aspx). If you don't want to get dirty with windows programming but still w... | [
0.5968208312988281,
-0.021466631442308426,
0.2684584856033325,
-0.14671367406845093,
-0.044735174626111984,
0.002209310419857502,
0.29331815242767334,
-0.02443035878241062,
-0.17026644945144653,
-0.5054543018341064,
-0.020573623478412628,
0.8254302144050598,
-0.36196237802505493,
-0.212874... | |
The following string of mine tried to find difference between two strings.
But it's horribly slow as it iterate the length of string:
```
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int hd(string s1, string s2) {
// hd stands for "Hamming Distance"
int dif = 0;
for (unsig... | [
0.4296939969062805,
0.0708169937133789,
0.26202940940856934,
-0.36390581727027893,
-0.17333951592445374,
-0.0695204883813858,
0.37296831607818604,
-0.5544947385787964,
0.11114640533924103,
-0.41350170969963074,
0.07727561891078949,
0.49207034707069397,
-0.17739622294902802,
0.1336806714534... | |
dif++;
}
}
return dif;
}
int main() {
string string1 = "AAAAA";
string string2 = "ATATT";
string string3 = "AAAAA";
int theHD12 = hd(string1,string2);
cout << theHD12 << endl;
int theHD13 = hd(string1,string3);
cout << theHD13 << endl;
}
```
Is there a fast alternati... | [
0.21923017501831055,
-0.3754071295261383,
0.5121726989746094,
-0.1871820092201233,
-0.3288477659225464,
0.033943429589271545,
0.36197429895401,
-0.576718270778656,
0.2626511752605438,
-0.40598568320274353,
-0.32941022515296936,
0.7848871946334839,
-0.4086555540561676,
0.12378127127885818,
... | |
($_[0] ^ $_[1]) =~ tr/\001-\255//;
}
```
which is much2 faster than iterating the position.
I wonder what's the equivalent of it in C++?
Fun with the STL:
```
#include <numeric> //inner_product
#include <functional> //plus, equal_to, not2
#include <string>
#include <stdexcept>
unsigned int
hd(const std::str... | [
0.12672391533851624,
-0.0877850130200386,
0.3726827800273895,
-0.2418304979801178,
0.0031019297894090414,
0.018824631348252296,
0.2256244570016861,
-0.6941207647323608,
0.08780623227357864,
-0.6226970553398132,
-0.23794201016426086,
0.773287832736969,
-0.1782616674900055,
-0.14699973165988... | |
return std::inner_product(
s1.begin(), s1.end(), s2.begin(),
0, std::plus<unsigned int>(),
std::not2(std::equal_to<std::string::value_type>())
);
}
``` | [
-0.15313929319381714,
0.20848605036735535,
0.43660229444503784,
-0.4917510151863098,
0.22192397713661194,
0.16187961399555206,
0.2682672142982483,
-0.4756496548652649,
0.028219733387231827,
-0.42275869846343994,
-0.41040313243865967,
0.6975306868553162,
-0.30175966024398804,
-0.02402662485... | |
---
I am trying to create my first site in Django and as I'm looking for example apps out there to draw inspiration from, I constantly stumble upon a term called *"reusable apps"*.
I understand the *concept* of an app that is reusable easy enough, but the means of reusing an app in Django are quite lost for me. Few q... | [
0.7344464063644409,
0.41072070598602295,
0.1781744360923767,
0.2865399122238159,
0.0042690192349255085,
-0.08347867429256439,
-0.0799904391169548,
0.23972035944461823,
-0.4234645962715149,
-0.5079053044319153,
0.08863689005374908,
0.6263411641120911,
-0.2222180962562561,
-0.014994875527918... | |
"PYTHONPATH", but that breaks as soon as I need to deploy my app to a remote location that I have limited access to (e.g. on a hosting service).
So, if I develop my site on my local computer and intend to deploy it on an ISP where I only have ftp access, how do I re-use 3rd party Django apps so that if I deploy my sit... | [
0.384015828371048,
0.15397755801677704,
0.17554624378681183,
-0.17610357701778412,
-0.22800226509571075,
-0.2849027216434479,
0.44496506452560425,
-0.051478061825037,
-0.41664907336235046,
-0.3683236837387085,
0.044326141476631165,
0.5937710404396057,
-0.5142406225204468,
-0.43633639812469... | |
easily deploy it along with all of the reusable apps I want to use?
In general, the only thing required to use a reusable app is to make sure it's on `sys.path`, so that you can import it from Python code. In most cases (if the author follows best practice), the reusable app tarball or bundle will contain a top-level d... | [
0.420991450548172,
-0.12121258676052094,
0.42168474197387695,
0.2281733602285385,
0.15023356676101685,
-0.06658133864402771,
-0.05630739405751228,
-0.40179121494293213,
-0.2729749083518982,
-0.43991193175315857,
-0.35230186581611633,
0.732506275177002,
-0.45081502199172974,
-0.611497640609... | |
methods for doing that include:
* running `pip install appname`, if the app has been uploaded to [PyPI](https://pypi.python.org/pypi) (these days most are)
* installing the app with `setup.py install` (this has the same result as `pip install appname`, but requires that you first download and unpack the code yourself;... | [
0.3273935616016388,
-0.13093751668930054,
0.1631687879562378,
0.04356297105550766,
0.18484047055244446,
-0.10609171539545059,
0.14525093138217926,
-0.21660469472408295,
-0.5174470543861389,
-0.7576000094413757,
-0.5315085649490356,
0.62052983045578,
-0.2270989567041397,
-0.2783713936805725... | |
virtualenv's site-packages (highly recommended over all the "global installation" options, if you value your future sanity)
* placing the application in some directory where you intend to place various apps, and then adding that directory to the PYTHONPATH environment variable
You'll know you've got it in the right pl... | [
0.15345321595668793,
-0.07954467087984085,
0.5321586728096008,
-0.0016368809156119823,
0.13056562840938568,
-0.05351203680038452,
0.16791678965091705,
0.1739593744277954,
-0.42202824354171753,
-0.6896826028823853,
-0.2104244828224182,
0.7498664855957031,
-0.214194193482399,
0.0230310168117... | |
where you can upload packages and they will be available for importing in Python. Without knowing details of your webhost, it's impossible to say how they structure that for you. | [
0.5027283430099487,
0.11581704765558243,
-0.12980642914772034,
0.047974370419979095,
-0.059573523700237274,
-0.2848066985607147,
0.08148696273565292,
0.13392582535743713,
-0.41961950063705444,
-0.5849791765213013,
-0.09591617435216904,
0.46815240383148193,
-0.11218947172164917,
-0.11339436... | |
How can I make python's unittest module show output for every assertion, rather than failing at the first one per test case? It would be much easier to debug if I could see the complete pattern of failures rather than just the first one.
In my case the assertions are based on a couple loops over an array containing an... | [
0.4243454039096832,
0.21111461520195007,
-0.14479072391986847,
-0.1057790145277977,
-0.06645563244819641,
-0.08158738166093826,
0.4828827381134033,
-0.32921960949897766,
0.0653005838394165,
-0.37869730591773987,
-0.1703169196844101,
0.8114718794822693,
-0.2748139202594757,
-0.0881441235542... | |
root = get_nodes.mmnode_plus.factory('mytree.xml')
tests = [
(root, {'skip_traversal': False, 'skip_as_child': True, 'skip_as_parent': False, 'is_leaf': False}),
(root[0], {'skip_traversal': False, 'skip_as_child': False, 'skip_as_parent': False, 'is_leaf': False}),
(root[1]... | [
-0.2960687577724457,
-0.0961233377456665,
0.21592631936073303,
0.06644385308027267,
0.17708571255207062,
0.384114533662796,
0.6064024567604065,
-0.13604187965393066,
-0.3772598206996918,
-0.517257809638977,
-0.24596086144447327,
-0.031204920262098312,
-0.10182539373636246,
0.04783857613801... | |
(root[0][0], {'is_leaf': False, 'skip_traversal': False, 'skip_as_child': False, 'skip_as_parent': False}),
(root[0][0][0], {'is_leaf': True, 'skip_traversal': False, 'skip_as_child': False, 'skip_as_parent': True}),
(root[0][4], {'skip_traversal': True, 'skip_as_child': True, 'skip_as_parent': ... | [
-0.2466789186000824,
-0.025238120928406715,
-0.07960300892591476,
0.12763682007789612,
0.24248197674751282,
0.2863045334815979,
0.4605851471424103,
-0.22088222205638885,
-0.41851040720939636,
-0.37735965847969055,
-0.39401718974113464,
-0.1444234400987625,
-0.10964606702327728,
0.042371265... | |
for test_state, exp_result in states.iteritems():
self.assertEqual(node.__getattribute__(test_state)(), exp_result, "unexpected %s for state %s of node %s %s" % (not exp_result, test_state, repr(node), repr(node.__dict__)))
unittest.main()
```
`obj.__getattribute__('hello')` returns `obj.hello` so `n... | [
-0.06787372380495071,
-0.021095653995871544,
-0.018594471737742424,
-0.05415589362382889,
0.11073921620845795,
0.35381078720092773,
0.5137790441513062,
-0.3591368496417999,
0.03361014276742935,
-0.5160354375839233,
-0.16379642486572266,
0.23196609318256378,
-0.19709065556526184,
0.30872848... | |
'skip_as_child': False, 'skip_as_parent': False, 'is_leaf': False}),
(root[1], {'skip_traversal': True, 'skip_as_child': True, 'skip_as_parent': True}),
(root[1][0], {'skip_traversal': True}),
(root[0][0], {'is_leaf': False, 'skip_traversal': False, 'skip_as_child': False, 'skip_as_parent': False}),
(ro... | [
-0.01487082988023758,
-0.15333020687103271,
-0.0000705956990714185,
0.16263781487941742,
0.3246367871761322,
0.3455316722393036,
0.43570610880851746,
-0.38895198702812195,
-0.49321675300598145,
-0.461093932390213,
-0.23931196331977844,
-0.09549524635076523,
-0.14305979013442993,
0.02053605... | |
%s, not %s for state %s of node %s" % (input, exp_result, test_state, repr(node))
locals()['foo' + str(i)] = type('foo' + str(i), (unittest.TestCase,),
{'input': input, 'exp_result': exp_result, 'errstr': errstr, 'testme': lambda self: self.assertEqual(self.input, self.exp_result, self.errstr)})
... | [
-0.14680273830890656,
0.03413471207022667,
0.3345364034175873,
-0.3141288161277771,
0.15429197251796722,
0.4916869103908539,
0.5686133503913879,
-0.3417719006538391,
0.104670949280262,
-0.5033858418464661,
-0.17829875648021698,
0.40139809250831604,
-0.13053524494171143,
0.2806144058704376,... | |
We are currently implementing a portal to our web based services. The portal and services are written with Seam and we are using OpenLDAP to store the security data such as users, groups and permissions. So far we have looked at writing our own code to access LDAP but are there any existing APIs that we could use?
If y... | [
0.3707444369792938,
-0.10139250755310059,
0.18734948337078094,
0.1561528742313385,
-0.015285316854715347,
-0.140104740858078,
-0.039641499519348145,
-0.08404327929019928,
-0.288195937871933,
-0.5237281322479248,
-0.11075224727392197,
0.31692811846733093,
0.03214280307292938,
-0.28297647833... | |
Perl's system() starts a process, but breaks the parent/child relationship?
test.pl:
```
use POSIX;
system("./test.sh &");
my $pid = `ps -C test.sh -o pid=`;
print "pid: -$pid-\n";
waitpid($pid, 0);
```
test.sh:
```
while true
do
sleep 1
done
```
When I run test.pl, it finds and prints a correct pid of t... | [
-0.0652804896235466,
-0.30679288506507874,
0.5897905230522156,
0.031436093151569366,
0.08676866441965103,
0.31522300839424133,
0.2204689234495163,
-0.176088348031044,
-0.25631916522979736,
-0.4415241479873657,
-0.19174809753894806,
0.14887315034866333,
-0.1505383998155594,
0.09883017092943... | |
using fork/exec. The initial problem is this:
1. from a Perl script, run a command-line utility that starts a service. The utility exits but the service stays.
2. after some time, find that service's pid and wait on it.
fork/exec doesn't solve this, although it clears up the question.
The test.sh process is not your ... | [
0.17262545228004456,
-0.19355206191539764,
-0.002323982771486044,
-0.07900389283895493,
-0.029629724100232124,
0.033665914088487625,
0.05526981130242348,
0.0708867684006691,
0.06124398857355118,
-0.4129384458065033,
0.10758394002914429,
0.2706770598888397,
-0.3013642728328705,
0.6339948773... | |
I have the following code:
```
while ($row = mysql_fetch_array($result, MYSQL_NUM))
{
for ($i=0; $i<count($row); $i++)
{
(DO THING HERE)
$row[$i] = str_replace("\n", " ", $row[$i]);
$row[$i] = str_replace("\r", " ", $row[$i]);
}
}
```
I basically ... | [
0.09209562093019485,
0.1729460507631302,
0.4829856753349304,
-0.474062979221344,
0.12860766053199768,
0.03839155659079552,
0.34144121408462524,
-0.505167543888092,
0.09869907796382904,
-0.4044680595397949,
-0.06462670862674713,
0.6344578266143799,
-0.4164697229862213,
0.08432183414697647,
... | |
array key is equal to "email" (so $row['email']) then append "@gmail.com" to it.
See the `MYSQL_NUM` you have there? [That is going to return your data using the column indexes as keys (ie 0, 1, 2, etc)](http://www.php.net/manual/en/function.mysql-fetch-array.php).
You must either
a) find out which column index the `... | [
-0.20827113091945648,
0.10181397199630737,
1.0090537071228027,
-0.2585630416870117,
-0.10989692062139511,
0.10460195690393448,
0.13055060803890228,
-0.4800606369972229,
-0.2710535526275635,
-0.43637150526046753,
-0.005656534340232611,
0.8103922009468079,
-0.2988738417625427,
0.017089812085... | |
$row[$i] = str_replace("\r", " ", $row[$i]);
}
}
```
b) OR you can change `MYSQL_NUM` to `MYSQL_ASSOC`, and do:
```
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$row['email'] .='@gmail.com';
foreach($row as &$value)
{
$value = str_replace("\n", " ", $value);
$value = str... | [
-0.1372728794813156,
0.4570103585720062,
0.8860112428665161,
-0.3222053050994873,
0.1820676028728485,
0.09791877120733261,
0.2760079503059387,
-0.19698740541934967,
-0.056804608553647995,
-0.44639289379119873,
-0.09370977431535721,
0.841255784034729,
-0.6533495783805847,
0.2484182715415954... | |
I have interface in service layer with several methods starting with Get and FxCop's **Use properties where appropriate** rule complains that I should consider using properties instead.
I tried to use SuppressMessageAttribute but when it's defined on interface it has no effect on member methods. Do I need to put Suppr... | [
0.1519235223531723,
-0.005978799425065517,
0.38686349987983704,
-0.06358630955219269,
-0.35689377784729004,
-0.22271448373794556,
0.4258703589439392,
-0.4753132462501526,
0.1295851767063141,
-0.8414254784584045,
-0.0774620845913887,
0.5480735301971436,
-0.44045883417129517,
0.0071535785682... | |
void SaveProjectSettings(ProjectSettings settings);
}
```
You will have to add the attribute for each method. | [
0.26686543226242065,
0.04846443980932236,
-0.00895882211625576,
-0.23554494976997375,
0.3372008502483368,
-0.08964813500642776,
0.26454445719718933,
-0.09646878391504288,
0.10579286515712738,
-0.5415647625923157,
-0.09839900583028793,
0.5803525447845459,
-0.4700143039226532,
-0.01177096180... | |
Is there any way, using the scripting available to Excel 2007 to display a Google Earth map inside a sheet?
I've used Excel to house the data that I've then gone and generated a KML file to load into Google Earth, but now they want to see a pretty little cell with a client address mapped out in Excel directly to prett... | [
-0.010822877287864685,
0.2007981836795807,
0.12764598429203033,
0.22619500756263733,
-0.20018349587917328,
0.07614646852016449,
-0.02968726120889187,
0.09800401329994202,
-0.10830684006214142,
-0.3287357687950134,
0.21343718469142914,
-0.07744600623846054,
-0.4128263294696808,
-0.249836608... | |
as it is without the need to calculate the value later you can use WebBrowser Control, do this to add the WebBrowser control on a Sheet:
1. In Excel open the form in Design view.
2. Right-click the menu bar and then click Control Toolbox.
3. In the toolbox, click the More Controls tool. A menu appears that lists all t... | [
0.23352088034152985,
-0.5075337290763855,
0.9047656655311584,
0.25003761053085327,
-0.017816465348005295,
-0.0978313460946083,
-0.07171960920095444,
-0.23250308632850647,
-0.03197416290640831,
-0.8033604025840759,
0.11670614778995514,
0.5210528373718262,
-0.3233690857887268,
0.075016252696... | |
of code anywhere you want it, it can be on a button or on your workbook event. In the following example I use button click:
```
Sub Button3_Click()
ThisWorkbook.ActiveSheet.WebBrowser1.Navigate2 "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=area+51&sll=37.0625,-95.677068&sspn=31.839416,60.732422&ie=... | [
0.1983000785112381,
0.09842362254858017,
0.2205260545015335,
0.2117466926574707,
0.4034416377544403,
-0.10605723410844803,
0.48745298385620117,
0.005140984430909157,
-0.17238040268421173,
-0.9572286605834961,
-0.7564979195594788,
-0.1747744083404541,
-0.3301631808280945,
0.2627134919166565... | |
I was looking around the internet and couldn't find a perfect algorithm for this particular problem:
Our customer have a set of points and weight data along with each point as can be demonstrated by this image:
[weighted points http://chakrit.net/files/stackoverflow/so\_heightmap\_points.png](http://chakrit.net/files... | [
0.08426247537136078,
0.07439116388559341,
0.5795364379882812,
0.09649430960416794,
-0.1644752025604248,
0.15401935577392578,
-0.24117764830589294,
-0.2072429060935974,
-0.30417704582214355,
-0.24644158780574799,
0.06520135700702667,
0.3139834702014923,
0.19180001318454742,
-0.0650706365704... | |
pixel from its distance to the closest data point with `Sqrt((x1 - x2) ^ 2 + (y1 - y2) ^ 2)` and applying weight and distance factor to the data point's color to produce the resulting gradient color for that particular pixel:
[heightmap result http://chakrit.net/files/stackoverflow/so\_heightmap\_result.png](http://ch... | [
-0.40362074971199036,
-0.21377356350421906,
0.4674200415611267,
0.06514032185077667,
-0.3982161283493042,
0.22923125326633453,
0.18957802653312683,
-0.3712367117404938,
-0.08797314018011093,
-0.5052198767662048,
-0.1747022271156311,
0.17532572150230408,
-0.15279275178909302,
-0.03389965742... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.