text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
be moved way below in the end before the body tag ends. You're selecting elements that hasn't been rendered yet.
Like so:
```
$(function(){
$("#first-choice").change(function() {
$("#second-choice").load("estados.asp?estado=" + $("#first-choice").val());
$("#second-choice").show("slow");
})... | [
0.515094518661499,
-0.3143695592880249,
0.6921945810317993,
0.049068715423345566,
0.08945674449205399,
0.20448026061058044,
0.280457466840744,
-0.3639369606971741,
0.014775995165109634,
-0.532146155834198,
-0.34370842576026917,
0.23742985725402832,
-0.22454042732715607,
0.05632453784346580... | |
AJAX request.
```
If not trim(Request("estado")) = "" then
```
The 2nd select element depends on the 1st select element's option selection so I'd would move the 2nd query into an AJAX call and populate the 2nd select. | [
-0.44875454902648926,
-0.3341405689716339,
0.312374472618103,
0.014159318059682846,
0.06025486811995506,
-0.2614181637763977,
-0.1743282526731491,
-0.1625785529613495,
0.263864129781723,
-0.5897343158721924,
-0.3412961959838867,
0.5482873916625977,
-0.3164720833301544,
-0.40798628330230713... | |
So I have an xml document that does not contain the full cross product in the final table but I need the xslt to put the blanks in for me. If you run this xslt you can see that GCM should be under ABC. I know that I must need to count result and then add a blank but I am stuck.
```
<root>
<Cell>
<place>BRM</pla... | [
0.20901890099048615,
0.3498033285140991,
0.22564801573753357,
-0.043823160231113434,
-0.19996850192546844,
0.02810588665306568,
0.2518821358680725,
-0.47543415427207947,
-0.5217133164405823,
-0.6123059391975403,
0.11411505937576294,
-0.06195228919386864,
-0.013852668926119804,
0.4114701747... | |
<test>DMC</test>
<Score>76</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>GRM</place>
<test>DMC</test>
<Score>72</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</Gene... | [
-0.00530239986255765,
0.17964574694633484,
0.010131938382983208,
-0.11890951544046402,
-0.09898761659860611,
0.29562297463417053,
-0.1063961312174797,
-0.49740245938301086,
-0.396360844373703,
-0.5917325615882874,
-0.31848421692848206,
0.24206027388572693,
0.37842899560928345,
0.3648880124... | |
<Score>88</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>PTM</place>
<test>DMC</test>
<Score>58</Score>
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgr... | [
-0.08158935606479645,
0.07135074585676193,
0.08776336163282394,
-0.0032988640014082193,
-0.09673073887825012,
0.5488434433937073,
-0.08836870640516281,
-0.6222020983695984,
-0.3640936017036438,
-0.4307195842266083,
-0.16573934257030487,
0.15099398791790009,
0.4013008177280426,
0.2649049460... | |
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>RVS</place>
<test>DMC</test>
<Score>84</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
... | [
0.013433078303933144,
-0.1001259833574295,
-0.058111194521188736,
0.09981881827116013,
-0.6186665892601013,
0.465890109539032,
-0.21795299649238586,
-0.7283427715301514,
-0.5950083136558533,
-0.17371036112308502,
-0.11775407940149307,
0.26447924971580505,
0.19346264004707336,
0.09023724496... | |
<Cell>
<place>SRM</place>
<test>SUR</test>
<Score>41</Score>
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup>Survey</testgroup>
</Cell>
</root>
```
XSLT
```
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.or... | [
0.08850943297147751,
0.06766143441200256,
0.3711744546890259,
-0.16142654418945312,
-0.05529896169900894,
0.2127685844898224,
0.29524728655815125,
-0.8768412470817566,
-0.23802550137043,
-0.6668225526809692,
-0.17496874928474426,
0.11322584748268127,
0.16485542058944702,
0.2355114668607711... | |
<div >
<header>
<h2 >
test group - <xsl:value-of select="/root/Cell/testgroup"/>
</h2>
</header>
<div class="content">
<table > | [
0.2630315124988556,
-0.07930758595466614,
-0.16242411732673645,
0.0941002368927002,
-0.09131664782762527,
-0.15219034254550934,
0.09264647215604782,
-0.4148126542568207,
0.2737031877040863,
-0.5682315230369568,
-0.2670547664165497,
0.08260039240121841,
-0.1923297643661499,
0.12223131954669... | |
<thead>
<tr>
<th >Place</th>
<xsl:for-each select="/root/Cell/test[generate-id() = generate-id(key('test-key',.)[1])]">
<th > | [
0.07322562485933304,
0.14999456703662872,
-0.11086025089025497,
0.037844203412532806,
0.2906439006328583,
-0.11807537078857422,
0.10346601158380508,
-0.517127275466919,
0.49289393424987793,
-0.593482255935669,
-0.20549659430980682,
-0.1641891598701477,
-0.0611865296959877,
0.13725039362907... | |
<xsl:value-of select="."/>
</th>
</xsl:for-each>
</tr>
</thead>
<tbody> | [
-0.036731213331222534,
0.005080326460301876,
0.03484596312046051,
0.03273693472146988,
0.13242940604686737,
0.0015448539052158594,
-0.021695081144571304,
-0.44681209325790405,
0.36491748690605164,
-0.46566668152809143,
-0.2700323760509491,
0.48754578828811646,
-0.5133662223815918,
-0.07960... | |
<xsl:for-each select="/root/Cell/place[generate-id() = generate-id(key('muench',.)[1])]">
<xsl:call-template name="pivot">
<xsl:with-param name="place" select="."/>
</xsl:call-template>
</xsl:for-each>
</tbody> | [
-0.11612178385257721,
0.019488919526338577,
0.26444485783576965,
-0.16982071101665497,
0.05467110499739647,
0.3018164038658142,
-0.11402389407157898,
-0.8459747433662415,
-0.3322930932044983,
-0.18857164680957794,
-0.26737159490585327,
-0.18803782761096954,
-0.42517122626304626,
-0.1054854... | |
</table>
</div>
<footer >
<p></p>
</footer>
</div>
</body>
</html>
</xsl:template>
<xsl:template name="pivot">
<xsl:param name="place"/>
<tr>
<td > | [
0.16749584674835205,
-0.3557371497154236,
0.3690008223056793,
-0.047752607613801956,
-0.44672030210494995,
0.3361607491970062,
-0.10643121600151062,
-0.7836886644363403,
-0.4948226511478424,
-0.0926145389676094,
0.10702605545520782,
-0.3740437924861908,
-0.19936221837997437,
-0.04669061675... | |
<xsl:value-of select="$place"/>
</td>
<xsl:for-each select="/root/Cell/test[generate-id() = generate-id(key('test-key',.)[1])]">
<xsl:for-each select="/root/Cell[place=$place and test=.]">
<xsl:choose>
<xsl:when test="count(.)=1">
<td>
<xsl:attribu... | [
0.01882103644311428,
-0.19576118886470795,
0.003732064738869667,
-0.010017815977334976,
0.17740429937839508,
-0.017870288342237473,
0.011923575773835182,
-0.7911642789840698,
0.14839808642864227,
-0.23707027733325958,
-0.2069939374923706,
0.26663514971733093,
-0.11015556007623672,
-0.18659... | |
background-color:<xsl:value-of select="Colour"/>;
</xsl:attribute>
<xsl:value-of select="Score"/>%
</td>
</xsl:when>
<xsl:otherwise>
<td> | [
-0.21081683039665222,
-0.2931164503097534,
0.019382435828447342,
0.015138210728764534,
0.02171001210808754,
0.24796053767204285,
-0.0778663381934166,
-0.13524886965751648,
-0.1748635172843933,
-0.17118096351623535,
-0.48709994554519653,
0.3882707357406616,
-0.28145530819892883,
-0.40962624... | |
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:for-each>
</tr>
</xsl:template>
</xsl:stylesheet>
```
output I wanted
```
<html>
<table border="1">
<thead>
<th>Place</th>
<th>DMC</th>
<th>SUR</th>
</thead>
<tbody>
<tr>
<td... | [
0.05452615022659302,
-0.3303636610507965,
0.5165170431137085,
-0.1166403517127037,
-0.32405078411102295,
0.1636660248041153,
-0.22251342236995697,
-0.8580315113067627,
-0.12182772904634476,
-0.5942943692207336,
-0.2096119225025177,
0.20395445823669434,
-0.18818078935146332,
-0.037301573902... | |
<td> 70</td>
<td> </td>
</tr>
<tr>
<td>BWM</td>
<td> </td>
<td> 66</td>
</tr>
<tr>
<td>GCM</td>
<td> 76</td>
<td> </td>
</tr>
<tr> | [
0.1884356290102005,
-0.06164851039648056,
0.6109925508499146,
-0.30110639333724976,
-0.20382125675678253,
0.11552439630031586,
-0.04505612701177597,
-0.6537153124809265,
-0.45419543981552124,
-0.3278942108154297,
-0.5540195107460022,
0.5153370499610901,
-0.49707284569740295,
-0.28372699022... | |
<td>GRM</td>
<td> 72</td>
<td> </td>
</tr>
<tr>
<td>NPM</td>
<td> 80</td>
<td> </td>
</tr>
<tr>
<td>PDM</td>
<td> 88</td>
<td> 85</td> | [
-0.2775895893573761,
-0.2137477844953537,
0.2095390409231186,
-0.20335032045841217,
-0.06015966460108757,
0.30976805090904236,
-0.020496677607297897,
-0.6340866684913635,
-0.2638448178768158,
-0.42527592182159424,
-0.4470660984516144,
0.28517428040504456,
-0.22023239731788635,
-0.252963721... | |
</tr>
<tr>
<td>PTM</td>
<td> 58</td>
<td> </td>
</tr>
<tr>
<td>RVS</td>
<td> 84</td>
<td> </td>
</tr>
<tr>
<td>SRM</td>
<td> 62</td> | [
0.0648103579878807,
-0.22525836527347565,
0.5152087807655334,
-0.08698360621929169,
0.009366689249873161,
0.36063364148139954,
-0.02011074870824814,
-0.9557689428329468,
-0.3952764570713043,
-0.1363372653722763,
-0.186249777674675,
0.28343892097473145,
-0.13689202070236206,
-0.133580923080... | |
<td> 41</td>
</tr>
<tr>
<td>SWC</td>
<td> 85</td>
<td> </td>
</tr>
</tbody>
</table>
</html>
```
**This shorter and simpler transformation**:
```
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="... | [
0.16534006595611572,
-0.4626760482788086,
0.2530191242694855,
-0.128260999917984,
-0.29724976420402527,
0.13030096888542175,
0.43674036860466003,
-1.1124091148376465,
0.016096247360110283,
-0.5863267183303833,
-0.16670072078704834,
0.41149064898490906,
-0.04437950253486633,
0.1891115605831... | |
[generate-id()
=
generate-id(key('kTests', .)[1])
]
"/>
<xsl:template match="/*">
<html>
<table border="1">
<thead> | [
0.12681268155574799,
-0.09057031571865082,
0.327457457780838,
0.12104475498199463,
-0.01085675973445177,
-0.37313687801361084,
0.09183517843484879,
-0.8261311650276184,
0.46137991547584534,
-0.5323052406311035,
-0.13539692759513855,
0.13781902194023132,
-0.20843087136745453,
-0.01837467588... | |
<th>Place</th>
<xsl:apply-templates select="$vTests"/>
</thead>
<tbody>
<xsl:apply-templates select=
"Cell[generate-id() = generate-id(key('kCellByPlace', place))]">
<xsl:sort select="place"/> | [
-0.12195909768342972,
0.09347695112228394,
0.15995322167873383,
-0.1477196216583252,
0.270122766494751,
-0.00018625739903654903,
0.007136948872357607,
-0.6990055441856384,
0.0372655875980854,
-0.6626108288764954,
-0.2596166133880615,
-0.07765845954418182,
-0.28938519954681396,
0.1843979656... | |
</xsl:apply-templates>
</tbody>
</table>
</html>
</xsl:template>
<xsl:template match="test">
<th><xsl:value-of select="."/></th>
</xsl:template>
<xsl:template match="Cell">
<tr>
<td><xsl:value-of select="place"/></td>
<xsl:apply-templates sele... | [
0.03909910470247269,
-0.14170928299427032,
0.10764705389738083,
-0.04320116713643074,
0.0018355482025071979,
0.4232339560985565,
-0.006667603738605976,
-1.0656596422195435,
-0.26696351170539856,
-0.6312358379364014,
-0.22733089327812195,
0.09860511124134064,
-0.28221553564071655,
-0.009501... | |
name="pCells" select="key('kCellByPlace', place)"/>
</xsl:apply-templates>
</tr>
</xsl:template>
<xsl:template match="test" mode="row">
<xsl:param name="pCells"/>
<td>
<xsl:value-of select=
"concat(' ',$pCells[test=current()]/Score)"/>
</td>
</xsl:t... | [
0.1898760199546814,
-0.03784019872546196,
0.2547576427459717,
-0.009586943313479424,
-0.07545071095228195,
0.37940219044685364,
-0.08071010559797287,
-0.8558438420295715,
-0.052342742681503296,
-0.6353551149368286,
-0.1960131973028183,
0.18886630237102509,
-0.10018011182546616,
0.285446196... | |
<Score>70</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>GCM</place>
<test>DMC</test>
<Score>76</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04... | [
-0.0740140825510025,
0.09461960196495056,
0.09410011023283005,
0.00282289762981236,
-0.08319664001464844,
0.3521513044834137,
0.008485045284032822,
-0.5244805216789246,
-0.3844830095767975,
-0.6138503551483154,
-0.38150644302368164,
0.14834119379520416,
0.23967865109443665,
0.2959267795085... | |
<place>GRM</place>
<test>DMC</test>
<Score>72</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>NPM</place>
<test>DMC</test>
<Score>80</Score>
<Colo... | [
-0.07113444805145264,
-0.07996978610754013,
-0.17325352132320404,
0.011640634387731552,
-0.06624960154294968,
0.5771809220314026,
-0.003892113920301199,
-0.40208756923675537,
-0.4964291453361511,
-0.5959051251411438,
-0.2188263088464737,
-0.06799504905939102,
0.29551956057548523,
0.3730565... | |
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>PDM</place>
<test>DMC</test>
<Score>88</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>PTM</pl... | [
0.1039329543709755,
-0.13201142847537994,
-0.07579925656318665,
0.03076215833425522,
0.29828065633773804,
0.4936179220676422,
-0.13412964344024658,
-0.3546912372112274,
-0.32575005292892456,
-0.5553839206695557,
-0.2594178020954132,
-0.23148903250694275,
0.4596802294254303,
0.3843213021755... | |
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>SRM</place>
<test>DMC</test>
<Score>62</Score>
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
... | [
-0.017980394884943962,
0.19271811842918396,
-0.17032326757907867,
-0.2412727177143097,
-0.23039211332798004,
0.6889165639877319,
-0.1468762755393982,
-0.33994194865226746,
-0.47054141759872437,
-0.6017112135887146,
-0.3026774823665619,
0.11502575129270554,
0.11698143929243088,
0.1540265828... | |
<place>SWC</place>
<test>DMC</test>
<Score>85</Score>
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>RVS</place>
<test>DMC</test>
<Score>84</Score>
<Colo... | [
0.05304551124572754,
-0.01309099793434143,
0.10393408685922623,
-0.10999784618616104,
-0.13217681646347046,
0.4753500819206238,
0.07487036287784576,
-0.6242788434028625,
-0.46912673115730286,
-0.4176015257835388,
-0.17504684627056122,
0.024216780439019203,
0.4316613972187042,
0.43473294377... | |
<testgroup> Process Plant</testgroup>
</Cell>
<Cell>
<place>BWM</place>
<test>SUR</test>
<Score>66</Score>
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup>Survey</testgroup>
</Cell>
<Cell>
<place>PDM</place>
... | [
0.06897906213998795,
0.008061920292675495,
-0.067966990172863,
-0.07598713785409927,
-0.17278030514717102,
0.6642667055130005,
0.055559512227773666,
-0.5792730450630188,
-0.4162159264087677,
-0.5806213617324829,
-0.07008106261491776,
-0.2699873149394989,
0.500711977481842,
0.38612475991249... | |
<Colour>#008000</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<testgroup>Survey</testgroup>
</Cell>
<Cell>
<place>SRM</place>
<test>SUR</test>
<Score>41</Score>
<Colour>#FFA100</Colour>
<GenerateDate>2012-04-04 12:46:41</GenerateDate>
<... | [
-0.13772238790988922,
0.03666521981358528,
0.14580349624156952,
-0.0731111690402031,
-0.378164142370224,
0.5079211592674255,
0.03306596353650093,
-0.8403398990631104,
-0.2772751748561859,
-0.49448537826538086,
-0.2953822910785675,
-0.11042331904172897,
0.22200599312782288,
0.32193723320961... | |
<th>Place</th>
<th>DMC</th>
<th>SUR</th>
</thead>
<tbody>
<tr>
<td>BRM</td>
<td> 70</td>
<td> </td>
</tr>
<tr> | [
0.13049612939357758,
-0.11292549222707748,
0.4477612376213074,
-0.35441040992736816,
-0.05346319451928139,
0.3131294548511505,
-0.20481647551059723,
-0.614473819732666,
-0.24659037590026855,
-0.5626705884933472,
-0.4146311581134796,
0.07775424420833588,
-0.11788254976272583,
0.046933069825... | |
<td>BWM</td>
<td> </td>
<td> 66</td>
</tr>
<tr>
<td>GCM</td>
<td> 76</td>
<td> </td>
</tr> | [
0.18873749673366547,
-0.08624724298715591,
0.5563357472419739,
-0.2549774646759033,
-0.20243258774280548,
0.18567030131816864,
0.13021345436573029,
-0.7877368927001953,
-0.4843193590641022,
-0.26985183358192444,
-0.5985493659973145,
0.28858673572540283,
-0.6022067070007324,
0.0846143439412... | |
<tr>
<td>GRM</td>
<td> 72</td>
<td> </td>
</tr>
<tr>
<td>NPM</td>
<td> 80</td>
<td> </td> | [
-0.22355879843235016,
-0.34088754653930664,
0.2463463395833969,
-0.18391752243041992,
-0.10310912132263184,
0.3837607204914093,
0.04607323929667473,
-0.7640271782875061,
-0.391439825296402,
-0.5026898980140686,
-0.555450975894928,
0.264097660779953,
-0.45528703927993774,
-0.013875901699066... | |
</tr>
<tr>
<td>PDM</td>
<td> 88</td>
<td> 85</td>
</tr>
<tr>
<td>PTM</td>
<td> 58</td> | [
0.03926451504230499,
-0.3999190032482147,
0.41642603278160095,
-0.14847680926322937,
0.1336643248796463,
0.558295488357544,
-0.051197052001953125,
-0.7384122610092163,
-0.2719784677028656,
-0.12467263638973236,
-0.027119183912873268,
-0.09367968887090683,
-0.2012839913368225,
0.12703792750... | |
<td> </td>
</tr>
<tr>
<td>RVS</td>
<td> 84</td>
<td> </td>
</tr>
<tr>
<td>SRM</td>
<td> 62</td> | [
-0.03475039079785347,
-0.1711612492799759,
0.47429442405700684,
-0.25153303146362305,
-0.08829435706138611,
0.31979668140411377,
0.2042199671268463,
-1.0490005016326904,
-0.40914681553840637,
-0.22921986877918243,
-0.4417177140712738,
0.2912355959415436,
-0.33055561780929565,
0.06425363570... | |
<td> 41</td>
</tr>
<tr>
<td>SWC</td>
<td> 85</td>
<td> </td>
</tr>
</tbody>
</table>
</html>
```
**Explanation**:
1. We create an auxiliary variable `$vTests` that contains all distinct values for a `test` element.
2. Whenever we... | [
0.30927833914756775,
-0.16083736717700958,
-0.028690604493021965,
0.3141685128211975,
-0.05659446120262146,
0.22661252319812775,
0.3426923453807831,
-0.635340690612793,
0.11294083297252655,
-0.39049452543258667,
-0.01286547165364027,
0.28611892461776733,
-0.4981648027896881,
0.204843252897... | |
to generate a `tr` that contains the score for a particular test at particular place, we generate "empty" `td`s for all `test` elements contained in `$vTests`, whose string value isn't equal to the string value of the specific `test` element, and we generate the string value of the `Score` sibling of the particular `te... | [
0.17444422841072083,
-0.2243872880935669,
0.19599130749702454,
0.35965415835380554,
0.06535886228084564,
0.3410942554473877,
-0.05056656897068024,
-0.571857750415802,
0.10782407969236374,
-0.24239259958267212,
-0.08856342732906342,
0.5845768451690674,
-0.1351018100976944,
0.073439545929431... | |
I have a Tree, which is populated with TreeItems that may have an image (a row with a thumbnail). I resize the row height with MeasureItem listener, and everything is good.
But, now I want to make this change dynamic. I check if a row should have an image, and if any row in the currently listed rows has an image that ... | [
0.07471995055675507,
0.12971097230911255,
0.6214404106140137,
-0.028977200388908386,
-0.17893220484256744,
0.11864595860242844,
0.3375495970249176,
-0.16579747200012207,
-0.4564734995365143,
-0.7119393944740295,
0.22830627858638763,
0.5996318459510803,
0.06084089353680611,
0.14028769731521... | |
row height is set to 180px, I can't change it back to 25px.
My code looks like this (simplified):
```
//this check is run on each page of paginated results fetched from DB
rowHeight=25;
for(Result r : results){
if(r.hasImage()){
rowHeight=180;
break;
}
}
// resize the row height using a Me... | [
0.056004587560892105,
0.03311637043952942,
0.7603408694267273,
-0.49525097012519836,
-0.04568787291646004,
0.25273168087005615,
0.27931034564971924,
-0.7494184970855713,
-0.229844868183136,
-0.5234971642494202,
0.06428004056215286,
0.7113112807273865,
0.10784187912940979,
0.204832538962364... | |
= rowHeight;
}
});
//added 'event.height=rowHeight' here just to check if it will draw as I want
tree.addListener(SWT.EraseItem, new Listener() {
public void handleEvent(Event event) {
if(event.index!=ColumnType.SCREENSHOT.toIndexNum()){
event.detail &= ~SWT.FORE... | [
0.18968862295150757,
-0.14202344417572021,
0.48493897914886475,
-0.32445406913757324,
0.26043054461479187,
0.3594670593738556,
0.3498954474925995,
-0.4607555568218231,
-0.21258783340454102,
-0.5004307627677917,
0.06615929305553436,
0.7132309079170227,
-0.04381018877029419,
0.15093314647674... | |
event.height=rowHeight;
}
});
```
The rowHeight variable is set as it should, and also the 'event.height' in the MeasureListener is set to the same value. But still doesn't want to reduce the height. On every page of results I'm clearing the items with `tree.removeAll()`. Maybe I should dispose and recrea... | [
0.05429685488343239,
-0.02988719381392002,
0.5638535618782043,
-0.18877318501472473,
0.04379724711179733,
-0.14822065830230713,
0.24866995215415955,
-0.22231875360012054,
-0.23961065709590912,
-0.7487908005714417,
0.08901561796665192,
0.7804192304611206,
0.057002197951078415,
-0.1862383186... | |
the height.*
The fact that you can't decrease the height of the rows is a [known bug](https://bugs.eclipse.org/bugs/show_bug.cgi?id=154341). | [
0.15883824229240417,
0.013743230141699314,
0.44778621196746826,
0.17887206375598907,
-0.07667069882154465,
0.26390886306762695,
-0.03370431810617447,
-0.1929839849472046,
-0.6814456582069397,
-0.4407885670661926,
-0.009650086052715778,
0.5049495100975037,
-0.22930558025836945,
-0.035593021... | |
I am using a custom font on the [website](http://auto-sal.es) i'm developing and some basic characters are not being displayed. What seems to be the problem?
Also i am fetching the content from MYSQL.

Is the font bad?
```
@font-face {font-family: Cabin_Regular... | [
0.16703428328037262,
0.4204431176185608,
0.7110632658004761,
-0.0769873633980751,
0.1284962296485901,
0.4406265616416931,
0.43762916326522827,
-0.334265798330307,
-0.45114031434059143,
-0.6768825650215149,
-0.11581827700138092,
0.45963138341903687,
-0.24328559637069702,
0.01319731120020151... | |
Query
> ```
> mysql_set_charset('utf8',$database_Connection);
>
> ```
Also make sure you have the charset defined in the `<head>` of your html document
> ```
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> ```
...
I actually ran into this problem myself once when using a client's datab... | [
-0.19258277118206024,
0.0799577608704567,
0.4966038763523102,
-0.15940192341804504,
-0.20826660096645355,
-0.056186240166425705,
0.43362143635749817,
-0.0503777340054512,
-0.17055682837963104,
-0.8487688899040222,
-0.061205554753541946,
0.43095266819000244,
-0.47959810495376587,
0.14080312... | |
I used the following regex:
```
$regex = '/<a href=\"([^\"]*)\">(.*)<\/a>/iU';
```
but it always fail to retrieve the tags that I wanted.
It always miss out on the following tags:
```
<a href="http://site.com/folder/img1.jpg" name="test">
```
and also it will retrieve those that I do not want such as:
```
<a hr... | [
-0.03282754495739937,
0.18891511857509613,
0.5553748607635498,
0.07979004085063934,
-0.15197646617889404,
0.0482570119202137,
0.31878769397735596,
-0.29437127709388733,
-0.016963865607976913,
-0.46343037486076355,
-0.1530737578868866,
0.4095630347728729,
-0.4091756343841553,
0.182373076677... | |
the escape in front of the "; not necessary (although you can leave them in if you want, it doesn't mak a difference)
* Added an explicit `\.jpg` just before the last `"` to only match links ending with `.jpg`. You might consider `\.jpe?g` to allow '.jpeg' as well as '.jpg' (although the former is not that common)
* Ad... | [
-0.3974275290966034,
-0.07849282026290894,
0.5278325080871582,
0.11505496501922607,
0.05815204232931137,
0.11707485467195511,
0.5244404673576355,
-0.5357080101966858,
-0.0379544198513031,
-0.3996671140193939,
-0.3781607449054718,
0.565371572971344,
-0.35753118991851807,
-0.2543134391307831... | |
generating tool**, I don't know of any that *generate* regex.
I think your best bet is to learn regex yourself and then use an interactive tester to quickly develop it.
I highly recommend [regexr.com](http://regexr.com?30hra).
If you follow that link you'll see exactly the regex I entered in and some test data to pla... | [
0.4313276708126068,
-0.17533911764621735,
0.17032413184642792,
0.3135109543800354,
-0.22386717796325684,
-0.004960556514561176,
0.0087285740301013,
-0.2695145010948181,
0.23702526092529297,
-0.6048488616943359,
0.22602435946464539,
0.7397017478942871,
0.06479141116142273,
0.135348841547966... | |
I started playing around with Ruby on Windows. I downloaded Ruby and started it with the command line with Ruby.
I typed in `irb` to the command prompt and it changed to the irb command prompt.
Then I started trying out commands like 1 => 1; and other things, but I got no output. I just go the next prompt. What ta he... | [
0.3984735906124115,
0.1455160528421402,
0.340538889169693,
-0.10359878838062286,
-0.11068511009216309,
-0.032688211649656296,
0.23922093212604523,
0.15835021436214447,
0.06129614636301994,
-0.635428786277771,
0.343622088432312,
0.7317484021186829,
-0.2665308117866516,
-0.03974764794111252,... | |
found that the `.pull-right` class was not available under the older version of the bootstrap so updating that fixed the issue.
[Demo](http://jsfiddle.net/N6vGZ/4/) of class being used with the latest bootstrap sheet. | [
0.23945756256580353,
-0.194044828414917,
0.267048716545105,
-0.06153101101517677,
0.12476617097854614,
-0.13605324923992157,
0.2641795575618744,
-0.3776355981826782,
-0.13569602370262146,
-0.45677968859672546,
-0.18802689015865326,
0.36074593663215637,
-0.19020569324493408,
0.0483654029667... | |
I have a .NET application with both a Service and an application. I ask the service to alert me when the application is not running and vice versa. This is running on over 1000 machines with different logon credentials (normal login user names, ie bob, sam, fred for machine 1-PC, 2-PC, 3-PC).
I want to know when the ... | [
0.6133858561515808,
0.25198253989219666,
0.4022223651409149,
0.041917555034160614,
0.1085369884967804,
0.0969911515712738,
0.43039262294769287,
0.13587848842144012,
-0.3542954623699188,
-0.8862078189849854,
-0.022623438388109207,
0.33694273233413696,
-0.2571078836917877,
0.4074240624904632... | |
to see if a user is logged in? I have seen a few hacks but nothing concrete/no elegant way to achieve this.
That way I will be able to see the service is running, but not expect the application to be running until someone has logged onto the machine.
After testing out the class with the most current `bootstrap.css` s... | [
0.5845304727554321,
-0.16383586823940277,
0.20243528485298157,
-0.015485269017517567,
0.24544012546539307,
-0.4674302637577057,
0.42488202452659607,
-0.0875089094042778,
-0.19505006074905396,
-0.5756625533103943,
-0.01632225699722767,
0.6048122644424438,
-0.030389122664928436,
-0.022500026... | |
In Python, I can run a bit of code optionally if a given package exists like so:
```
try:
import asd
# do something with asd
except ImportError:
print "no module asd"
```
Is there a Haskell equivalent?
Not directly, since module imports are resolved at compile-time with GHC. But if you're using [Cabal](http://... | [
0.5394561886787415,
-0.15006299316883087,
-0.11350751668214798,
-0.3262273073196411,
-0.2123495638370514,
-0.26863613724708557,
0.09154994040727615,
-0.032185930758714676,
-0.27353519201278687,
-0.1696377992630005,
-0.30385422706604004,
0.7804989814758301,
-0.5046859979629517,
-0.388203352... | |
using it unless you really need it... | [
0.4128788709640503,
0.18419653177261353,
-0.13916485011577606,
0.10943042486906052,
0.08671636134386063,
-0.3250964283943176,
0.3063810169696808,
0.2965526580810547,
-0.12359108030796051,
-0.56150221824646,
-0.08729370683431625,
0.4665617048740387,
-0.010941878892481327,
-0.427326858043670... | |
```
<Style x:Key="MyButton" TargetType="{x:Type Border}">
<Style.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="24"/>
<Setter Property="Foreground" Value="{StaticResource FontColor}"/> | [
0.19356456398963928,
0.04017767682671547,
0.5956869125366211,
-0.24613451957702637,
-0.08839775621891022,
0.16826952993869781,
-0.01715693436563015,
-0.36199939250946045,
-0.07077354937791824,
-0.8116067051887512,
-0.22948084771633148,
0.4776877462863922,
-0.17666883766651154,
0.0229493211... | |
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontWeight" Value="DemiBold" />
<Setter Property="Effect">
<Setter.Value> | [
-0.32857775688171387,
-0.14598968625068665,
0.4871302545070648,
-0.10809681564569473,
-0.3229089081287384,
0.525042712688446,
-0.1797749549150467,
-0.7394044399261475,
-0.2597277760505676,
-0.5635015368461609,
-0.31726452708244324,
0.3193056583404541,
-0.1917940229177475,
0.050466548651456... | |
<BlurEffect Radius="2" ></BlurEffect>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True"> | [
-0.08441376686096191,
-0.3564218282699585,
0.5737242102622986,
-0.07753466069698334,
-0.27741020917892456,
-0.08068937808275223,
0.19595186412334442,
-0.4042854607105255,
-0.14680330455303192,
-0.4266877770423889,
-0.026646845042705536,
0.36379915475845337,
-0.4665742814540863,
-0.05658008... | |
<Setter Property="FontWeight" Value="ExtraBold" />
</Trigger> | [
0.23674118518829346,
-0.0920872837305069,
0.17029686272144318,
-0.2056606560945511,
-0.224913090467453,
0.3603697121143341,
0.16621975600719452,
-0.6816089153289795,
-0.13342519104480743,
-0.4692956507205963,
-0.33444228768348694,
0.301013708114624,
-0.16266922652721405,
-0.278225868940353... | |
</Style.Triggers>
</Style>
</Style.Resources>
</Style>
```
I want to create my own button style that consist of a border and a textblock. How can I add a control to my style? I actually want to add an extra textblock so that I can blur the textbox that is in the back making it look like a gl... | [
0.5056965351104736,
-0.18429939448833466,
0.515556812286377,
0.039862312376499176,
-0.023215241730213165,
-0.03153892606496811,
-0.13857091963291168,
-0.03961972892284393,
-0.07923291623592377,
-0.7021100521087646,
0.45495960116386414,
0.15669900178909302,
-0.38181790709495544,
-0.07527454... | |
following xaml should get you well on your way to creating the button template you're after.
Each textblock, as well as the border, have their own styles so you can style them individually and wrap them all up inside the control template of your button style:
```
<Window x:Class="WpfApplication1.MainWindow"
xmln... | [
-0.1600283533334732,
-0.0004578121588565409,
0.8633500337600708,
-0.1328977644443512,
-0.28724372386932373,
-0.005384218879044056,
0.0032584420405328274,
-0.5413315892219543,
-0.40043318271636963,
-0.3163618743419647,
-0.3168408274650574,
0.16315403580665588,
-0.4724714756011963,
-0.129213... | |
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontWeight" Value="DemiBold" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FontWeight" Value="ExtraBold" />
</Trigger>
</Style.Triggers>
</Style>
<Sty... | [
-0.26104456186294556,
-0.26534852385520935,
0.6863445043563843,
-0.19270792603492737,
-0.4475850462913513,
0.3627738356590271,
-0.0938488021492958,
-0.8677951097488403,
-0.09902232140302658,
-0.5753688812255859,
-0.20728519558906555,
0.3258801996707916,
-0.29473668336868286,
-0.02583265490... | |
Value="24"/>
<Setter Property="Foreground" Value="Blue"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontWeight" Value="DemiBold" />
<Setter Property="Effect">
<Setter.Value>
<Blur... | [
-0.18483464419841766,
-0.2643630802631378,
0.5738694071769714,
-0.025461379438638687,
-0.29232779145240784,
0.4038510024547577,
-0.13608713448047638,
-0.649833619594574,
-0.2564774453639984,
-0.6432300209999084,
-0.11542458087205887,
0.29987451434135437,
-0.21844950318336487,
0.16387152671... | |
</Setter>
</Style>
<Style x:Key="BorderStyle" TargetType="Border">
<Setter Property="BorderBrush" Value="Orange" />
<Setter Property="BorderThickness" Value="2" />
</Style>
<Style x:Key="MyButton" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
... | [
-0.028497610241174698,
-0.38935646414756775,
0.586322546005249,
-0.16728191077709198,
0.16856016218662262,
0.09013351798057556,
0.15412941575050354,
-0.3856697976589203,
-0.2873986065387726,
-0.6349504590034485,
-0.016752341762185097,
0.31101906299591064,
-0.29079490900039673,
0.0690981075... | |
<Border Style="{StaticResource BorderStyle}">
<Grid>
<TextBlock Style="{StaticResource MainTextBlock}" Text="{TemplateBinding Content}" />
<TextBlock Style="{StaticResource BlurTextBlock}" /> | [
0.11638477444648743,
-0.35748282074928284,
0.6105268597602844,
-0.09163401275873184,
-0.16199396550655365,
-0.17885583639144897,
0.1329604536294937,
-0.12527251243591309,
-0.26582056283950806,
-0.6348717212677002,
-0.20200009644031525,
0.2730087637901306,
-0.3903469145298004,
-0.0053913253... | |
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Button Style="{StaticResource ResourceKey=MyButton}" Height="30" Width="100" Content="BUTTON" />
</Grid></Window>
``` | [
0.11256130784749985,
-0.37149688601493835,
0.5314105749130249,
-0.07309136539697647,
0.03130847215652466,
0.34268954396247864,
-0.05387790873646736,
-0.1915375292301178,
-0.36821627616882324,
-0.7336360812187195,
-0.15482842922210693,
0.41710954904556274,
0.04909703508019447,
0.11204112321... | |
**enum**
```
public enum ArticlePublishStatus {
DRAFT ("DRAFT"),
SUBMITTED ("SUB"),
PUBLISHED ("PUB");
private final String code;
private ArticlePublishStatus(String code) {
this.code=code;
}
}
```
**Screen Object (aka form backing object)**
```
public class ArticleHeaderE... | [
0.16046611964702606,
0.04441330209374428,
1.0513209104537964,
-0.05297260358929634,
-0.1207071915268898,
-0.08935116231441498,
0.05625314638018608,
-0.3539855182170868,
0.07510512322187424,
-0.7624344825744629,
-0.4078860282897949,
0.46198996901512146,
-0.26863157749176025,
-0.061414390802... | |
<option value="DRAFT" selected="selected">Draft</option>
<option value="SUB">Submitted</option>
<option value="PUB">Published</option>
</select>
```
**Exception**
Draft works fine, as the name and code of corresponding enum are the same. Saving the page with Submitted or Published fails.
`org.springframewo... | [
-0.2210433930158615,
0.16592077910900116,
0.4431084394454956,
-0.31936851143836975,
-0.004566576331853867,
0.4817744195461273,
0.2633126378059387,
-0.530376672744751,
-0.36586377024650574,
-0.6784670948982239,
-0.2066510021686554,
0.21721933782100677,
-0.2625187635421753,
0.157060816884040... | |
this one. Is there a method that enum needs implemented to address it?
I'm not sure exactly how you want your second blur textblock to look, but the following xaml should get you well on your way to creating the button template you're after.
Each textblock, as well as the border, have their own styles so you can styl... | [
-0.36438748240470886,
-0.18361878395080566,
0.9093561768531799,
-0.029268575832247734,
-0.32133162021636963,
-0.12042135745286942,
-0.09921963512897491,
-0.28706249594688416,
-0.34917646646499634,
-0.4001046419143677,
0.0601763091981411,
0.36173346638679504,
-0.2650982737541199,
-0.0834803... | |
<Setter Property="FontSize" Value="24"/>
<Setter Property="Foreground" Value="Blue"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontWeight" Value="DemiBold" />
<Style.Triggers>
<Trigger Property=... | [
-0.17827503383159637,
-0.24229109287261963,
0.5514872670173645,
-0.09597843885421753,
-0.23295852541923523,
0.5422666072845459,
-0.14641393721103668,
-0.8281010985374451,
-0.29447901248931885,
-0.6383505463600159,
-0.22896914184093475,
0.2315787822008133,
-0.20673683285713196,
0.0788341462... | |
</Style.Triggers>
</Style>
<Style x:Key="BlurTextBlock" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="24"/>
<Setter Property="Foreground" Value="Blue"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Cursor" Value="Hand"/>
... | [
-0.20064114034175873,
-0.2542453408241272,
0.5129212141036987,
-0.031069906428456306,
-0.19786100089550018,
0.43465182185173035,
-0.05244925618171692,
-0.7652294039726257,
-0.29335635900497437,
-0.654569149017334,
-0.2455313801765442,
0.24050554633140564,
-0.23853452503681183,
0.1052224561... | |
<BlurEffect Radius="2" ></BlurEffect>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="BorderStyle" TargetType="Border">
<Setter Property="BorderBrush" Value="Orange" />
<Setter Property="BorderThickness" Value="2" />
</Style>
<Style x:Key="MyButton" TargetType="But... | [
-0.17003457248210907,
-0.44220128655433655,
0.6970338821411133,
-0.23852413892745972,
-0.07178974896669388,
0.07745478302240372,
0.26726165413856506,
-0.20584414899349213,
-0.33623260259628296,
-0.5307446718215942,
-0.045635782182216644,
0.26305365562438965,
-0.37194594740867615,
0.0686186... | |
<ControlTemplate TargetType="Button">
<Border Style="{StaticResource BorderStyle}">
<Grid>
<TextBlock Style="{StaticResource MainTextBlock}" Text="{TemplateBinding Content}" /> | [
0.1001068502664566,
-0.5034918785095215,
0.5036612749099731,
0.07009576261043549,
-0.09836387634277344,
-0.20748279988765717,
0.0038517185021191835,
-0.35524171590805054,
-0.0381857268512249,
-0.6715493202209473,
0.014075466431677341,
0.227395698428154,
-0.31138840317726135,
0.083100572228... | |
<TextBlock Style="{StaticResource BlurTextBlock}" />
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter> | [
-0.24344059824943542,
-0.25973206758499146,
0.6626245379447937,
0.19138696789741516,
-0.11290378123521805,
-0.044812098145484924,
-0.031498171389102936,
-0.24943195283412933,
-0.1619783490896225,
-0.6584827899932861,
-0.16614125669002533,
0.12217775732278824,
-0.46278098225593567,
-0.08691... | |
</Style>
</Window.Resources>
<Grid>
<Button Style="{StaticResource ResourceKey=MyButton}" Height="30" Width="100" Content="BUTTON" />
</Grid></Window>
``` | [
0.13892534375190735,
-0.28067994117736816,
0.49524155259132385,
-0.20219846069812775,
0.061110395938158035,
0.39401012659072876,
0.050794120877981186,
-0.0017702070763334632,
-0.3836396634578705,
-0.7328488230705261,
-0.2118309587240219,
0.35208189487457275,
0.11267167329788208,
0.12940937... | |
In Visual Studio 2010, if I create a new project that is a WPF Application, the `MainWindow` subclass of `Window` is provided as a default first window. The steps I've been taking to rename `MainWindow` are:
* Use Solution Explorer to rename `MainWindow.xaml`.
* Rename the class in `MainWindow.xaml.cs`.
* Select the "... | [
-0.04538406804203987,
-0.13590455055236816,
0.5909315347671509,
-0.18412452936172485,
-0.16346825659275055,
-0.18684706091880798,
0.16616418957710266,
0.009551114402711391,
-0.14111723005771637,
-0.789758026599884,
-0.4021615982055664,
0.8562478423118591,
-0.26092132925987244,
0.0851928964... | |
I just need some advice on if this is wise. I'm loading my site data largely through AJAX requests. To save load time and server calls I'm saving all data loaded to global objects and just recycling that data if the user selects the page again.
I wondered if it is wise to cache an entire site onto ONE object, e.g.:
`... | [
-0.02343570999801159,
0.0476863868534565,
0.5153043270111084,
0.056105028837919235,
-0.08871763199567795,
-0.3257213830947876,
0.5512982606887817,
0.007527612149715424,
-0.20452263951301575,
-0.8928465843200684,
-0.2474181354045868,
0.42130929231643677,
-0.3405081629753113,
-0.035599805414... | |
if (page[1] == 'level 2')
if (!mysiteobj['level 1']['level 2'])
$.ajax(/*load data*/).done(function(data){ mysiteobj['level 1']['level 2'] = data; /*display data*/ });
else /*display mysiteobj['level 1']['level 2']*/
...etc
```
...and so forth. To clarify the rather odd notation, 'level 1' is al... | [
-0.09870578348636627,
-0.029040290042757988,
0.6459976434707642,
0.17202332615852356,
0.1494808793067932,
-0.2850653827190399,
0.026723360642790794,
-0.2170943170785904,
-0.028045842424035072,
-0.6158766150474548,
-0.5992984175682068,
0.44065743684768677,
-0.18794339895248413,
-0.033843938... | |
listed in the category in the department in the geo.
Right now, my method is, I have an object with all the geographic areas, a second object is overwritten with a new department list every time a new geo loaded, and a third object holds my categories and fourth my listings/products.
If this makes sense, please advis... | [
0.13666798174381256,
0.10941252112388611,
0.5523968935012817,
0.3413730561733246,
0.016674432903528214,
-0.13175608217716217,
-0.0389271043241024,
-0.11500051617622375,
-0.5631368160247803,
-0.5525804162025452,
-0.167381152510643,
0.3725830614566803,
-0.04826141521334648,
0.466192603111267... | |
load that if not already there, and continue.
So, you can keep what was already loaded, but just inform them that you are retrieving the data, if it takes time, otherwise people may understand that you are loading it.
Personally, I would show the user that there is a load request, so they know what is going on.
Prel... | [
0.645152747631073,
0.012631809338927269,
-0.036498699337244034,
0.2160869836807251,
-0.1165836974978447,
-0.3837026357650757,
-0.20635730028152466,
0.34648358821868896,
-0.3931047320365906,
-0.37760141491889954,
-0.09723493456840515,
0.4451618492603302,
-0.2067534476518631,
0.0828798189759... | |
I am working with NHibernate and I get this code below:
```
public class User
{
public User()
{
public virtual int Id { get; set; }
public virtual IList<UserConfirmation> UserConfirmation { get; set; }
public virtual string Email;
}
public User()
{
UserConfirmation = new List<UserConfirmatio... | [
0.07846833765506744,
0.17873260378837585,
0.48469245433807373,
-0.48789337277412415,
-0.07483834773302078,
0.08146101236343384,
0.1959010660648346,
-0.36389219760894775,
0.1068572998046875,
-0.7535044550895691,
-0.1988305002450943,
0.7942104339599609,
-0.3621218502521515,
0.146952480077743... | |
{
Id(x => x.Id);
Map(x => x.Email);
HasMany(x => x.UserConfirmation)
.Inverse()
.Cascade.All();
Table("user");
}
```
}
```
public class UserConfirmationMap : ClassMap<UserConfirmation>
{
public UserConfirmationMap()
{
Id(x => x.Id);
Referen... | [
-0.07827864587306976,
0.07727842032909393,
0.5461425185203552,
-0.11070557683706284,
0.07953903079032898,
0.13601450622081757,
0.22136488556861877,
-0.4501922130584717,
-0.117945097386837,
-0.7401911616325378,
-0.3821146786212921,
0.26658204197883606,
-0.4424493610858917,
0.256155908107757... | |
Table("user_confirmation");
}
}
```
But when I try to query over like this:
```
QueryOver<UserConfirmation>().Where(x => x.User.Email).Take(1).SingleOrDefault()
```
Than it says I do not have the property User.Email.
How can I solve this problem?
Problem is you are using x => x.User.Email
this should be done ... | [
0.11756168305873871,
0.10405527800321579,
0.5268171429634094,
-0.22464968264102936,
0.005140969529747963,
-0.21871699392795563,
0.1291826218366623,
-0.3427426517009735,
-0.17266663908958435,
-0.5129489898681641,
0.003984910435974598,
0.6137357354164124,
-0.39146992564201355,
0.313317954540... | |
Basically I have a slider and I want to show the alt of an image in a paragraph when it's hovered.
I'm trying to set a variable with the content of the alt of the images using getElementByID and to insert it into that paragraph using JavaScript. I'm new to this...
I got
```
<script>
function linkDescription(){
... | [
0.206599622964859,
-0.236286461353302,
0.8832775950431824,
-0.015194440260529518,
-0.2237050086259842,
0.05437188223004341,
-0.15610124170780182,
-0.06827333569526672,
-0.07786640524864197,
-0.7236542701721191,
0.2966616749763489,
0.7095952033996582,
-0.25400468707084656,
0.043018151074647... | |
var placeToInsert = document.getElementById("description")
placeToInsert.appendChild(newText);
}
nodeAt.onmouseout=function() { | [
-0.37351083755493164,
-0.03053373657166958,
0.2834263741970062,
0.027450311928987503,
0.584909975528717,
0.15496911108493805,
0.3862523138523102,
-0.07476038485765457,
0.09849677234888077,
-0.6586941480636597,
-0.4412873387336731,
0.11230318993330002,
-0.14690953493118286,
0.37255579233169... | |
this.className="";
}
}
window.onload=linkDescription;
</script>
<ul>
<li class="slider"><a href="http://www.thelollypot.co.nz" target="_blank"><img src="images/thelollypot.jpg" alt="The Lolly Pot" id="website"></a></li> | [
0.02680938132107258,
-0.331156849861145,
0.7907549142837524,
-0.15515011548995972,
0.03167128935456276,
-0.005110918078571558,
-0.2876526713371277,
0.14183034002780914,
-0.5891196727752686,
-0.32500869035720825,
-0.5385595560073853,
0.48047247529029846,
-0.24049079418182373,
0.215416073799... | |
<li class="slider"><a href="http://www.tussockpeak.co.nz" target="_blank"><img src="images/tussockpeak.jpg" alt="Tussock Peak Motor Lodge" id="website"></a></li>
<li class="slider"><a href="http://www.mbbh.co.nz" target="_blank"><img src="images/mbbh.jpg" alt="Monteith's Hanmer" id="website"></a></l... | [
-0.5464485883712769,
0.3155759274959564,
0.5689553022384644,
-0.26279398798942566,
-0.4720277488231659,
-0.026170386001467705,
0.49033358693122864,
-0.5405140519142151,
-0.3196229040622711,
0.1458115130662918,
-0.3414037823677063,
0.6078956127166748,
-0.02784542553126812,
0.088291577994823... | |
<li class="slider"><a href="http://www.hanmersprings.info" target="_blank"><img src="images/hanmerspringsinfo.jpg" alt="HanmerSprings.info" id="website"></a></li>
<li class="slider"><a href="http://www.hanmertech.com" target="_blank"><img src="images/hanmertech.jpg" alt="HanmerTech" id="website"></a... | [
-0.35459911823272705,
-0.005085046403110027,
0.5633974671363831,
-0.020591657608747482,
-0.3013647496700287,
0.20995964109897614,
-0.0622575618326664,
-0.410539835691452,
-0.14736422896385193,
-0.47559061646461487,
-0.4192222058773041,
0.5497995018959045,
-0.10980403423309326,
-0.253811299... | |
<li class="slider"><a href="http://www.hanmerweddings.co.nz"><img src="images/hanmerweddings.jpg" alt="Hanmer Weddings" id="website"></a></li>
<li class="slider"><a href="http://www.kiwistamps.co.nz"><img src="images/kiwistamps.jpg" alt="KiwiStamps" id="website"></a></li>
<li cla... | [
0.45965009927749634,
-0.1033896654844284,
0.8483867049217224,
-0.19697555899620056,
-0.18709556758403778,
0.16586723923683167,
0.3637404143810272,
-0.8902807831764221,
-0.22818277776241302,
-0.4151623249053955,
-0.05583216995000839,
0.5521346926689148,
-0.18470963835716248,
0.0045131598599... | |
<li class="slider"><a href="http://www.whatever-brass.co.nz"><img src="images/whatever.jpg" alt="Whatever! Brasserie" id="website"></a></li>
<li class="slider"><a href="http://www.grumstours.com"><img src="images/grumstours.jpg" alt="Grums Tours" id="website"></a></li>
<li class=... | [
-0.3256654739379883,
0.18672068417072296,
0.8354038000106812,
-0.23171856999397278,
-0.3772803246974945,
0.11136586219072342,
-0.02656838856637478,
-0.31956902146339417,
-0.7969464659690857,
-0.2851978540420532,
-0.014582364819943905,
0.3633102774620056,
-0.0032633047085255384,
-0.17385214... | |
src="images/annerleigh.jpg" alt="Annerleigh B & B" id="website"></a></li>
<li class="slider"><a href="http://www.hanmerfashion.co.nz"><img src="images/hanmerfashion.jpg" alt="Hanmer Fashion" id="website"></a></li>
</ul>
<p style="text-align: center;" id="description">... | [
-0.37080875039100647,
-0.014219766482710838,
0.8948984742164612,
-0.3945172429084778,
-0.26858046650886536,
0.20447905361652374,
0.0667208880186081,
-0.737476110458374,
-0.23654571175575256,
-0.506077229976654,
-0.32441866397857666,
0.4421139359474182,
-0.12546005845069885,
-0.215928241610... | |
fscanf(input,"%d",y);
fscanf(input,"%d",max);
```
And make sure memory is allocated for them by the caller. Otherwise, use [`malloc()`](http://linux.die.net/man/3/malloc) | [
0.16462653875350952,
-0.2353631854057312,
0.27067726850509644,
-0.44121578335762024,
0.1638336479663849,
0.14882615208625793,
0.12009917199611664,
-0.08721699565649033,
-0.038043029606342316,
-0.5240158438682556,
-0.5070863962173462,
0.8027815222740173,
-0.4212011694908142,
-0.220655530691... | |
This is my code to start a process in Windows via java (and gobble the output).
```
public static void main(String[] args) throws Exception {
String[] command = new String[3];
command[0] = "cmd";
command[1] = "/C";
command[2] = "test.exe";
final Process child = Runtime.getRuntime().exec(command... | [
0.03812357783317566,
0.07009799033403397,
0.5232122540473938,
-0.34545305371284485,
0.47607195377349854,
0.37359628081321716,
0.22867630422115326,
-0.25887325406074524,
0.010918275453150272,
-0.6698640584945679,
-0.18779881298542023,
0.32951265573501587,
-0.21955840289592743,
0.37883490324... | |
out.flush();
child.waitFor();
}
private static class StreamGobbler extends Thread {
private final InputStream inputStream;
private final String name;
public StreamGobbler(InputStream inputStream, String name) {
this.inputStream = inputStream;
this.name = name;
}
public void ru... | [
0.03839850053191185,
-0.519152045249939,
0.4853809177875519,
-0.4209858179092407,
0.41509929299354553,
0.30639731884002686,
0.22014926373958588,
0.04899986460804939,
-0.07110513001680374,
-0.5028005242347717,
-0.20582762360572815,
0.48331761360168457,
-0.5217326879501343,
0.446947991847991... | |
inputStream));
for (String s = in.readLine(); s != null; s = in.readLine()) {
System.out.println(name + ": " + s);
}
} catch (Exception e) {
e.printStackTrace();
} | [
-0.2745445668697357,
-0.47244784235954285,
0.47392112016677856,
-0.2918672263622284,
0.3993831276893616,
0.06232115998864174,
0.3285020589828491,
-0.3226665258407593,
-0.18164227902889252,
-0.3450832664966583,
-0.5250611901283264,
0.5050846934318542,
-0.4369836747646332,
0.0222282018512487... | |
}
}
```
Somehow the program in question (process) is recieving an EOF right away (as in right after I step pas the "exec" line) and thus throwing an error ( detected, invalid) message immediately after runtime.exec is called. I can run this program manually via command prompt without this issue, but have confirmed th... | [
0.33772531151771545,
0.3326049745082855,
0.3007611632347107,
-0.1930343359708786,
0.0878029316663742,
-0.17294776439666748,
0.4907347559928894,
0.18047663569450378,
-0.13624583184719086,
-0.6667904853820801,
-0.07402899861335754,
0.6674669981002808,
-0.1459277868270874,
0.3359346091747284,... | |
And when I do cmd test.exe without the /c, there is no difference.
Your code looks like it should work (with one caveat, see below).
I took your code verbatim and replaced `test.ext` with `sort`, which can read from piped stdin.
If I run the code as-is, it starts the sort command, which waits for input. It hangs at ... | [
0.30438941717147827,
0.07191697508096695,
0.3825785219669342,
-0.18066056072711945,
0.18783248960971832,
0.2191498577594757,
0.11892936378717422,
0.07332566380500793,
0.008699947036802769,
-0.7306143045425415,
-0.18402479588985443,
0.4661498963832855,
-0.0660974383354187,
-0.00679343286901... | |
**Configuration**
* Ubuntu Server 11.10 64 bit
* Amazon AWS, Ec2, hosted on the cloud
* t1.micro instance
Before I write anything else, I'd like to state that I've checked both [nginx 502 bad gateway](https://stackoverflow.com/questions/4252368/nginx-502-bad-gateway) and [Nginx + PHP-FPM 502 Bad Gateway](https://stac... | [
0.14710700511932373,
0.19200101494789124,
0.04780730605125427,
0.05680806189775467,
-0.20445255935192108,
0.10856256633996964,
0.5335883498191833,
0.2986927032470703,
-0.3070808947086334,
-0.8278636336326599,
0.02416222356259823,
0.4228799343109131,
-0.2522520124912262,
0.25367727875709534... | |
EC2 webserver, with port 9000 enabled, port 80 open, etc.
The question in particular is, how can I get rid of this nasty error? Or, better yet, how can I get `php5-fpm` to *actually work*.
**What I Have Attempted so Far**
Mostly consistent editing of configuration files, notably `php-fpm.conf` and `nginx.conf`.
**i... | [
-0.09741228818893433,
-0.2552362084388733,
0.7988707423210144,
0.005261640064418316,
0.2059100717306137,
-0.22905302047729492,
0.5390819311141968,
-0.3282007575035095,
-0.28835275769233704,
-0.48939135670661926,
-0.22102634608745575,
0.8945872783660889,
-0.31547388434410095,
-0.06367330253... | |
dynamicaly changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
; Relative path can also be used. They will be prefixed by:
; - the global prefix... | [
-0.3314675986766815,
-0.8003788590431213,
0.7428961992263794,
-0.1823432892560959,
0.13676734268665314,
0.45965421199798584,
0.2064589560031891,
-0.13661998510360718,
-0.765333890914917,
-0.4848468005657196,
-0.43034353852272034,
0.49739494919776917,
-0.6798301935195923,
0.102394700050354,... | |
Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = notice
; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
;emergency_restart_threshold = 0
... | [
0.07235625386238098,
-0.2311582714319229,
0.49229174852371216,
0.10131199657917023,
0.4139918386936188,
0.496126264333725,
0.21538963913917542,
-0.33345070481300354,
-0.5358160138130188,
-0.4644624888896942,
-0.3234407603740692,
0.24606791138648987,
-0.09670981764793396,
0.2961347699165344... | |
on signals from master.
; Available units: s(econds), m(inutes), h(ours), or d(ays)
; Default Unit: seconds
; Default Value: 0
;process_control_timeout = 0
; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
; Default Value: yes
daemonize = no
;;;;;;;;;;;;;
; Fpm Start ;
;;;;;;;;;;;;;
;pm.... | [
0.1033964604139328,
-0.38005027174949646,
0.8534719347953796,
0.17316341400146484,
0.5407902002334595,
0.36495742201805115,
0.5306198000907898,
-0.2904472053050995,
-0.5530155301094055,
-0.6867743134498596,
-0.7256281971931458,
0.37661102414131165,
-0.21050925552845,
0.3517903983592987,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.