text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
is just: <http://mysite/news/pages/default.aspx> then don't do anything if the url is sth like <http://mysite/news/Pages/default.aspx?k=city>, then hide the second row... ``` <div class="NewsResultsList"> <table border="1" id="table"> <tr><td>News Results based on user queries</td></tr> ...
[ 0.4064447581768036, -0.26612433791160583, 0.5740684270858765, 0.09949320554733276, -0.05265418812632561, -0.2713349759578705, 0.1214166060090065, -0.20534703135490417, -0.21134595572948456, -0.6882125735282898, -0.3982340693473816, 0.1456933617591858, -0.4577023684978485, -0.06810241192579...
row to other name because with that id you could create confusion in your code
[ 0.030133673921227455, 0.07632626593112946, 0.13942965865135193, 0.3262709081172943, -0.03802994638681412, 0.04156842827796936, -0.2900465130805969, -0.3578900396823883, -0.10908256471157074, -0.5605489611625671, 0.1809120923280716, 0.12029648572206497, -0.29498544335365295, 0.4290012419223...
Does Boost Ranges have a built-in way to cout the elements easily, for example separated by comma or space? I am of course aware that I could loop over them and print them separately, but it seems to me that this should be built in somehow (like printing a vector in scripting languages). In an example program I saw, ...
[ 0.23966552317142487, 0.11699306964874268, 0.4104371666908264, -0.276562362909317, -0.17619174718856812, 0.11832636594772339, 0.07645269483327866, -0.33098122477531433, 0.00002836804196704179, -0.40897470712661743, 0.046163976192474365, 0.6904270648956299, -0.3653421700000763, -0.4228481948...
for is something like this (Python inspired): ``` cout << range.join(", "); ``` or perhaps with a range adaptor. ``` cout << (range | stringify(", ")); ``` I don't believe it's ever been really finished/polished, but that's the intent of [Boost.Explore](http://svn.boost.org/svn/boost/sandbox/explore/boost/). Per...
[ 0.179886594414711, 0.019064610823988914, 0.5863736271858215, -0.20362332463264465, 0.250067800283432, -0.0246869008988142, 0.11231441050767899, -0.3199399709701538, -0.3051842749118805, -0.6270701885223389, -0.14898549020290375, 0.7858000993728638, -0.12444251775741577, -0.1526903063058853...
main() { std::vector<int> x; for (int i=0; i<20; i+=2) x.push_back(i); std::cout << x << "\n"; return 0; } ``` As it stands, this has `operator<<` taking a vector, but it would be relatively trivial to have it take a range instead.
[ -0.28255054354667664, -0.6404789090156555, 0.5197826623916626, -0.5630559921264648, -0.06444127857685089, 0.2046789675951004, -0.04498831182718277, -0.1551000326871872, -0.162016361951828, -0.4107529819011688, -0.45710524916648865, 0.26568078994750977, -0.5220019817352295, 0.16372697055339...
I am trying to create a loop function based on the time. After the iteration, it will print every 60 second "60 second passed". But this code result me in couple of "60 second passed" while actually me watch does not even showing 1 minute already.. I tried below, but I am expecting it to show me this information, but i...
[ 0.2059129774570465, -0.08132024109363556, 0.15591537952423096, -0.07200025767087936, 0.32995542883872986, 0.4452586770057678, 0.6991741061210632, -0.02118832617998123, -0.06855566054582596, -0.6678736805915833, 0.283690869808197, 0.273543119430542, -0.1390954554080963, 0.43698933720588684,...
{ for (i = 0; i <= 50; i++) { printf("looping while waiting 60 second..\n"); } stop = time(NULL); int diff = difftime(start, stop);
[ 0.36637890338897705, -0.5822961926460266, 0.35775047540664673, -0.3206312954425812, 0.41064751148223877, 0.2477319836616516, 0.479822039604187, -0.4805019497871399, 0.09362270683050156, -0.2792765200138092, -0.21129968762397766, 0.29398655891418457, -0.2078215479850769, 0.2709307074546814,...
if (diff % 60 == 0) { printf("60 second passed..");} } return 1; } ``` `difftime` and the following code are likely being executed multiple times before even one second has passed. As a result, `difftime` will return a value < 1, which is truncated to 0 by your implicit cast. And ...
[ 0.4199977517127991, -0.42580556869506836, 0.4803237020969391, -0.3251468241214752, 0.4019351601600647, -0.017677608877420425, 0.49666866660118103, -0.45318207144737244, -0.000624519947450608, -0.39759159088134766, -0.07229774445295334, 0.5453943014144897, -0.2750982642173767, 0.27988418936...
takes forever to meet */;) { // do stuff that apparently takes forever. stop = time(NULL); double diff = difftime(stop, start); if (diff >= 60) { printf("60 seconds passed..."); start = time(NULL); } } ``` Also note that in your example code, `start` and `stop` should be flipped in...
[ 0.48934829235076904, -0.3979775607585907, 0.613082230091095, -0.1252121478319168, 0.5789772272109985, -0.25814753770828247, 0.3297669589519501, -0.40311846137046814, 0.0853336974978447, -0.44794198870658875, -0.19607749581336975, 0.38593703508377075, -0.022446047514677048, 0.18575474619865...
Say I wanted to list buttons so that the last one was anchored to the bottom of the screen, how would I go about this. From my understanding, LinearLayout will give me the 'list' of buttons but it will be anchored to the top. RelativeLayout, on the other hand, will allow me to anchor to the bottom but each and every el...
[ 0.13280096650123596, -0.09498627483844757, 0.6758986711502075, -0.016119103878736496, 0.11479157209396362, 0.0017804596573114395, -0.18907597661018372, -0.008068165741860867, -0.3326999843120575, -0.40545669198036194, 0.22122880816459656, 0.34038522839546204, -0.17842185497283936, 0.160920...
for - ![screenshot](https://i.stack.imgur.com/pYwWi.png) i have a hard time understanding your question exactly. But i assume that what you want is a horizontal list of buttons which is anchored to the bottom of the screen? ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="fill_paren...
[ -0.020855864509940147, -0.26688963174819946, 0.8420865535736084, 0.002983424114063382, 0.22708958387374878, 0.45197242498397827, -0.45891451835632324, -0.2273367941379547, -0.2747603952884674, -0.5165684819221497, 0.2164737582206726, 0.5218546986579895, -0.18723566830158234, -0.19084021449...
<Button android:id="@+id/button_cancel" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:padding="5dp" android:text="cancel" /> <Button android:id="@+id/button_ok"
[ -0.38084834814071655, -0.16791342198848724, 0.6215788722038269, -0.37688466906547546, 0.10942383110523224, 0.40755555033683777, -0.08090920001268387, -0.4430879056453705, -0.39561474323272705, -0.6328387260437012, -0.2624148428440094, 0.35609549283981323, -0.10310974717140198, -0.326750695...
android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:padding="5dp" android:text="ok" /> </LinearLayout> </LinearLayout> ```
[ -0.4861602783203125, -0.10154444724321365, 0.8516690731048584, -0.4178716242313385, 0.008502799086272717, 0.3258443772792816, -0.16801799833774567, -0.42456719279289246, -0.3398071527481079, -0.5716221332550049, -0.29040220379829407, 0.3140711188316345, 0.06095888465642929, -0.144689440727...
On Jsfiddle: <http://jsfiddle.net/jhzux/> I've wasted a lot of time in this simple script.. What I want to do is to enable to clone forms in jQuery and then make them work correctly. In first place when I run this code on JsFiddle it does not work but in my browser it does.. strange... -.- Secondly `$(this).next("....
[ 0.12179184705018997, 0.022704942151904106, 0.4893622398376465, -0.13297909498214722, -0.0019181647803634405, -0.2928491532802582, 0.6998001933097839, -0.34935951232910156, 0.2989463210105896, -0.8869754672050476, -0.05457078665494919, 0.5510125756263733, -0.6074499487876892, 0.246204495429...
same group so it only can be aplied two times: in the first part and than in one of the clones.. (I hope you can see this in Js fiddle because my expnatation is kinda confusing..) So is there any better method to clone a table with JQ with working radio buttons and fix the .persianaops part? HTML: ``` <ul id="listi...
[ -0.03904847800731659, -0.09457667917013168, 0.29700320959091187, 0.07389895617961884, -0.014606595039367676, -0.05961766093969345, 0.2726578414440155, -0.05647578462958336, -0.11300055682659149, -0.4704785645008087, -0.13641543686389923, 0.6250953674316406, -0.19907207787036896, -0.1112483...
name="product[]"> <option value="0"> Perfil: </option> <option value=
[ 0.005147456657141447, -0.42877522110939026, 0.06006677448749542, -0.5635251402854919, 0.47501739859580994, 0.42991089820861816, -0.42340055108070374, 0.027105558663606644, 0.140720397233963, -0.14113029837608337, -0.504921555519104, 0.6895606517791748, -0.13709962368011475, 0.1517915576696...
"68mm 5 Cámaras AD rendszer egyenes szárny, ütköző tömítéssel"> 68mm 5 Cámaras 7001AD, con dos juntas </option> <option value=
[ -0.013611073605716228, 0.33040621876716614, 0.4691927433013916, 0.16074784100055695, 0.3693375885486603, 0.566503643989563, 0.05605488270521164, -0.39311081171035767, -0.26877450942993164, 0.33319416642189026, -0.33763131499290466, 0.7479633092880249, -0.2721115052700043, -0.08792462199926...
"68mm 7 K AD rendszer íves szárny, ütköző tömítéssel"> 68mm 7 Cámaras 7001AD con dos juntas </option> <option value=
[ -0.1709562987089157, 0.1985560953617096, 0.3899434804916382, 0.03676287829875946, 0.3005554676055908, 0.5659918785095215, 0.3056650757789612, -0.47232991456985474, -0.2900272607803345, 0.6148924231529236, -0.45228248834609985, 0.6304858922958374, -0.4250979423522949, 0.08361833542585373, ...
"80 mm 6 K Tok + 7 K íves szárny AD rendszer, ütköző tömítéssel"> 80 mm Marco 6 Cámaras + Hoja de 7 Cámaras 7001AD con dos juntas </option>
[ -0.09536905586719513, 0.2444157749414444, 0.45851418375968933, 0.15175379812717438, 0.37974223494529724, 0.49681541323661804, 0.00034889738890342414, -0.6058151721954346, -0.504824697971344, 0.11170961707830429, -0.1613243669271469, 0.2322162240743637, -0.2836608588695526, -0.2161255627870...
<option value= "68mm 7 K MD rendszer ütköző és középtömítéses, íves szárny"> 68mm 7 Cámaras 7001MD con tres juntas </option>
[ -0.22528508305549622, 0.1660991609096527, 0.45288944244384766, 0.19731342792510986, 0.2679213583469391, 0.5625174045562744, 0.6191114187240601, -0.5235151052474976, -0.2728925943374634, 0.5225916504859924, -0.5455306172370911, 0.6930177211761475, -0.23561374843120575, -0.1100139170885086, ...
<option value= "80 mm 8 K MD rendszer ütköző és középtömítéses, íves szárny"> 80 mm 8 Cámaras 7001MD con tres juntas </option> </select></td>
[ -0.19686655700206757, -0.05260095000267029, 0.5654805302619934, 0.14099819958209991, 0.06793379783630371, 0.4180133640766144, 0.3110455274581909, -0.2809004783630371, -0.3265615403652191, 0.36874234676361084, -0.3028589189052582, 0.615931510925293, -0.47903281450271606, -0.1515902280807495...
</tr> <tr> <td><input class="comment" name="h[]" value="Horizontal"> x <input class="comment" name="v[]" value="Vertical"> uds: <input name="uds[]" style="width:60px;"></td> </tr>
[ -0.05864453688263893, -0.34356287121772766, 0.5125070214271545, -0.1308906376361847, -0.21392494440078735, 0.5227012634277344, -0.22130762040615082, -0.36630693078041077, -0.4035913944244385, -0.47405821084976196, -0.31447935104370117, 0.48643219470977783, 0.0048101372085511684, -0.0074725...
<tr> <td> <select> <option> Color
[ 0.1732526421546936, -0.2970624268054962, -0.10055860877037048, -0.2040404975414276, 0.17131482064723969, 0.24453994631767273, -0.12352954596281052, 0.16094760596752167, -0.44373297691345215, -0.5114643573760986, -0.43929383158683777, 0.4053303301334381, -0.11150171607732773, 0.151923939585...
</option> </select> Persiana <input class="persiana" name= "persiana[]" type="checkbox"> <div class="persianaver" style=
[ -0.22128064930438995, -0.3237614035606384, 0.02706102468073368, -0.15303368866443634, 0.19098666310310364, 0.2050332874059677, 0.20207032561302185, -0.044852208346128464, 0.1391233205795288, -0.5635210275650024, -0.7644082307815552, 0.3503713011741638, -0.38125067949295044, 0.2719818353652...
"float:right; display:none"> Con motor<input name="f[]" type="radio" value= "auto"> Manual<input name="f[]" type="radio" value= "manual">
[ 0.12443274259567261, 0.016105730086565018, 0.4632158577442169, 0.2400338053703308, 0.14326374232769012, 0.19066262245178223, 0.022032825276255608, -0.514523983001709, 0.16930942237377167, -0.09848508983850479, -0.338977575302124, 1.0747261047363281, -0.18878814578056335, 0.0549572482705116...
</div> </td> </tr> <tr> <td></td> </tr> <tr> <td style="width:435px;">
[ 0.25640958547592163, -0.7362769246101379, 0.3560958206653595, -0.0532471127808094, -0.18455719947814941, 0.18384678661823273, -0.0095746461302042, -0.4885742962360382, -0.23829151690006256, -0.547878086566925, -0.262389600276947, 0.49147993326187134, 0.04753866046667099, 0.0316621810197830...
<div class="persianaops" style= "float:right; display:none"> IMPORTANTE: En caso de haber seleccionado la opción persiana usted tiene que
[ -0.06687206029891968, 0.09070350974798203, 0.19645199179649353, 0.22780047357082367, -0.026323659345507622, 0.040453024208545685, -0.02731497213244438, 0.06633895635604858, 0.13191597163677216, -0.0113968625664711, -0.36747485399246216, 0.2539485692977905, -0.055540334433317184, -0.0881479...
especificar el tamaño de la tapa del cajón (Lugar donde se sitúa la caja de persiana) Puede especificarlo en el campo comentario <a href="images/demo.jpg" id="pregunta"
[ -0.09542853385210037, -0.06237288564443588, 0.24382898211479187, 0.5542974472045898, 0.1944911926984787, 0.10199882835149765, 0.11409246176481247, 0.05119531974196434, -0.19714263081550598, -0.1670321226119995, -0.5348241925239563, 0.6190952062606812, 0.12059314548969269, -0.57786571979522...
name="pregunta"><img alt="pregunta" height="15" src="images/ask.jpg" width="15"></a> </div> </td> </tr>
[ -0.09729369729757309, -0.5199828147888184, 0.3950715661048889, -0.08857715874910355, -0.41580405831336975, 0.6606178283691406, 0.10730955004692078, -0.21162036061286926, -0.49425560235977173, -0.11635278165340424, -0.2085801064968109, 0.39673492312431335, 0.08399146795272827, 0.10863444209...
<tr> <td> <textarea class="comment" cols="59" name="comment[]" rows= "5">Comentario</textarea></td> </tr> </table> </li> </ul><button id="clonar" name="colnar">Cloneme</button><br> <br> <h3>Datos personales:</h3><br> <table> <tr> <td>No...
[ -0.47691404819488525, -0.11982808262109756, 0.45638537406921387, 0.03160542994737625, -0.2734767198562622, 0.35361573100090027, -0.1782217025756836, 0.0324728861451149, -0.029033469036221504, -0.5581477284431458, -0.45715442299842834, 0.6250438094139099, -0.03035329468548298, -0.2314659655...
<td><input name="name" type="text"></td> </tr> <tr> <td>Email:</td> <td><input name="mail" type="text"></td> </tr> <tr> <td>Teléfono:</td> <td><input name="telefono" type="text"></td> </tr> </table> ``` JQ ``` $(document).ready(function() { var $orig = $(".pedi...
[ 0.5152027010917664, -0.03570176288485527, 0.5104430913925171, -0.20695820450782776, 0.07672552019357681, 0.2788902819156647, 0.06784744560718536, -0.8253982663154602, -0.0903569906949997, -0.5378884077072144, -0.4528793394565582, 0.7150628566741943, -0.4956142008304596, 0.09899511188268661...
$(".persiana").click(function() { $(this).next(".persianaver").slideToggle(300); $(this).next(".persianaops").slideToggle(300); }); $(".comment").focus(function() { if (this.value === this.defaultValue) { this.value = ''; } }).blur(...
[ -0.1962679624557495, -0.4077164828777313, 0.9749460220336914, -0.2342703491449356, 0.18333932757377625, 0.07963041216135025, 0.3309982717037201, 0.02706831693649292, -0.018913766369223595, -0.4621962010860443, -0.40236255526542664, 0.7981173396110535, -0.5249654054641724, 0.281530886888504...
if (this.value === '') { this.value = this.defaultValue; } }); }); });​ ``` i have a hard time understanding your question exactly. But i assume that what you want is a horizontal list of buttons which is anchored to the bottom of the screen? ``` <?xml version="1.0" encoding="...
[ 0.09538870304822922, -0.30852606892585754, 0.8115343451499939, -0.15171635150909424, 0.39558085799217224, 0.39980190992355347, -0.27093130350112915, -0.28294801712036133, -0.24438738822937012, -0.6088411211967468, -0.1986805945634842, 0.46392691135406494, -0.24864473938941956, -0.288532316...
android:orientation="vertical" > <!-- put your other views in here --> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:orientation="horizontal" > <Button android:id="@+id/button_c...
[ -0.22433866560459137, -0.31060343980789185, 0.6716524958610535, -0.21682299673557281, 0.11771301925182343, 0.4938918948173523, -0.2370760589838028, -0.16224807500839233, -0.28787967562675476, -0.5680270195007324, 0.014290654100477695, 0.46765509247779846, 0.007906339131295681, -0.256034404...
android:layout_weight="1" android:padding="5dp" android:text="cancel" /> <Button android:id="@+id/button_ok" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:padding="5dp"
[ -0.40437036752700806, -0.17884144186973572, 0.6684288382530212, -0.4717541038990021, -0.09439126402139664, 0.28310465812683105, -0.23241087794303894, -0.5904517769813538, -0.4652039110660553, -0.6631810069084167, -0.35912808775901794, 0.45056888461112976, -0.0566006638109684, -0.4934955835...
android:text="ok" /> </LinearLayout> </LinearLayout> ```
[ -0.25417405366897583, -0.058091361075639725, 0.5814923644065857, -0.07595381885766983, 0.10256178677082062, 0.39461779594421387, 0.08765751123428345, -0.12419269233942032, -0.16187456250190735, -0.6990029811859131, -0.21764080226421356, 0.44532638788223267, -0.4332594573497772, 0.040830053...
I've built a jQuery selector for a function which looks like this: ``` $('html').not('.table-main tr[selected]').mousedown( function( e ) { ``` But somehow it is not filtering at all and i do not quite understand why. Even if i just leave **('.table-main')** for the selector i still trigger the function when cli...
[ 0.09340295940637589, -0.16931991279125214, 0.24853648245334625, -0.014584404416382313, -0.025153666734695435, -0.23838454484939575, 0.4551312029361725, -0.40851056575775146, -0.27098387479782104, -0.6833485960960388, -0.09279923886060715, 0.5991471409797668, -0.45000168681144714, -0.081847...
this on tables? Update2: As requested, here is the rendered html code of the table: ``` <table border="0" cellspacing="2px" cellpadding="5px" class="table-main"> <tr id="tablefields"> <th style="padding: 0;"> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr...
[ -0.5721359848976135, 0.001627033343538642, 0.9101598858833313, -0.14734680950641632, -0.033197708427906036, -0.030617916956543922, -0.15698932111263275, -0.17289607226848602, -0.4719115197658539, -0.7640817761421204, -0.29046791791915894, 0.24267496168613434, -0.15362553298473358, -0.23155...
</th> <th style="padding: 0;"></th> </tr> <tr id='table_form_new_device' class='table_form_class'> <form accept-charset="UTF-8" action="/devices" class="new_device" data-remote="true" id="new_device" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" ...
[ -0.2786337733268738, 0.0846286490559578, 0.8565489053726196, -0.02578945830464363, -0.006684280466288328, 0.2031964361667633, 0.05694633722305298, -0.8185262680053711, -0.30832818150520325, -0.6606496572494507, -0.35229626297950745, 0.6043058633804321, 0.269461065530777, 0.2032056599855423...
<script> $('#submitbox_new_device').click(function (event) { $('#new_device').submit(); }); </script> </th> </form></tr> </table> <div class="dropdown-button" style="margin: 0 2px;">Filter</div> ``` You really, really want to use delegated event handl...
[ -0.03521820902824402, -0.5326809287071228, 0.4474170207977295, 0.0516178235411644, 0.26318901777267456, -0.17353595793247223, -0.04483430087566376, -0.3189042806625366, -0.34264108538627625, -0.6703426241874695, -0.2832709550857544, 0.6157392859458923, -0.26165536046028137, 0.0973718315362...
handler to every single element in the document. You want to intercept bubbled events at the document level and just check if the mousedown came from an element that was not a selected row in your table. In addition the `tr[selected]` seems unlikely to work. I think you need to add a class `"selected"` to the selecte...
[ -0.025813695043325424, -0.6312621235847473, 0.051643725484609604, 0.008481558412313461, 0.19568148255348206, -0.19941915571689606, 0.06958762556314468, -0.3383561968803406, -0.17511172592639923, -0.4045149087905884, -0.07422760874032974, 0.6665059924125671, -0.6438255310058594, -0.11421266...
selected row of your table) } }) ``` You may also be able to let jQuery delegation do more of the work: ``` $(document).on('mousedown', ':not(.table-main tr.selected)', function() { // mouse down and it wasn't in a selected row of your table) }); ``` --- After seeing your actual HTML, if I understand the ...
[ -0.384168803691864, -0.22472670674324036, 0.4213353395462036, 0.04851088300347328, -0.15964317321777344, -0.12155264616012573, 0.23145893216133118, -0.1133575513958931, -0.36488214135169983, -0.822172999382019, -0.3411693871021271, 0.4885880947113037, -0.33237090706825256, -0.0111691271886...
e.stopPropagation(); if (!$(e.target).closest(".table-main tr.selected").length) { console.log("mousedown not in selected row of table-main") } });​ ``` Here's a demo: <http://jsfiddle.net/jfriend00/5QD6N/>
[ -0.3104736804962158, -0.3566201627254486, 0.33946895599365234, -0.038721997290849686, 0.4246048331260681, -0.07280564308166504, 0.22264035046100616, -0.08684512972831726, -0.25775280594825745, -0.6951279640197754, -0.5273029208183289, 0.5328336954116821, -0.2002101093530655, -0.04936363548...
So, I was trying to write a function like this: ``` void append_to_stream(std::ostream &stream) { } template <typename T, typename... Args> void append_to_stream(std::ostream &stream, T first, Args&&... rest) { stream << first; append_to_stream(stream, rest...); } ``` and call it like: ``` append_to_stream(str...
[ -0.00521060498431325, 0.1132199764251709, 0.4687281847000122, -0.2853716313838959, -0.04071687161922455, 0.13053452968597412, 0.29275208711624146, -0.36737388372421265, -0.06428411602973938, -0.5176831483840942, -0.2754673361778259, 0.8150279521942139, -0.5801709890365601, 0.31157612800598...
it's a function. I managed to 'solve' this by declaring a struct called `endl` and define the `<<operator` for it so that it simply calls `std::endl`. This works but doesn't feel particularly good. Is it not possible to accept std::endl as a template argument? The function works for other types. Edit: here's the error...
[ 0.22068741917610168, -0.027331750839948654, 0.28394171595573425, -0.08619461953639984, 0.04647932946681976, -0.055566370487213135, 0.21165499091148376, -0.07713489979505539, -0.05221018195152283, -0.4648545980453491, 0.04572482779622078, 0.44900694489479065, -0.3331642746925354, 0.05648656...
basic_ostream<e,t>&(*)(basic_ostream<e,t>&os) get_endl(basic_string<e,t,a>& s) { return std::endl<e,t>; } ``` However, this doesn't compile. Error: ``` src/log/sinks/file_sink.cpp:42:28: error: expected unqualified-id before ‘)’ token src/log/sinks/file_sink.cpp:42:53: error: expected initializer before ‘get_e...
[ -0.46034330129623413, 0.017249561846256256, 0.4272797107696533, -0.28335270285606384, 0.3091627359390259, 0.2176664024591446, 0.5548872351646423, -0.37743738293647766, 0.023980198428034782, -0.4220377206802368, -0.452077716588974, 0.695105254650116, -0.3348524570465088, 0.00204291101545095...
) { return std::endl<e,t>; } template<class e, class t> //stream version std::basic_ostream<e, t>& (*get_endl(const std::basic_ostream<e, t>&)) (std::basic_ostream<e, t>& ) { return std::endl<e,t>; } int main () { std::ostream& stream = std::cout; append_to_stream(stream, get_endl(stream), ...
[ -0.3158726692199707, -0.11918468028306961, 0.7343797087669373, -0.32335299253463745, 0.32602161169052124, 0.28258171677589417, 0.34062162041664124, -0.2286389321088791, -0.08688464015722275, -0.7031483054161072, -0.6263172030448914, 0.7228789925575256, -0.43987715244293213, 0.1535238176584...
-> decltype(&std::endl<e,t>) { return std::endl<e,t>; } int main () { std::ostream& stream = std::cout; append_to_stream(stream, get_endl(stream), get_endl(stream)); } ```
[ -0.148422971367836, -0.14896677434444427, 0.7178906798362732, -0.1182962954044342, 0.36503124237060547, 0.2301275134086609, 0.19798974692821503, 0.26806843280792236, -0.10316423326730728, -0.6398807168006897, -0.5536215901374817, 0.5176099538803101, -0.38884732127189636, 0.4611461460590362...
Currently in my controller, when adding new data, I validate the inputs, and if there are any problems it lets a user known, otherwise it passes the data to the model to insert to the database How do I now go about checking the insert statement worked correctly in the model, and let a user known if it did not. Does a...
[ 0.017637105658650398, -0.1689690500497818, 0.5054295063018799, 0.05734727531671524, 0.2459793984889984, -0.08027812093496323, -0.004578211810439825, -0.3957754969596863, -0.1156834289431572, -0.6683917045593262, 0.0014252030523493886, 0.5835924744606018, -0.23839467763900757, 0.38590326905...
// to the controller } ``` Or you can use ``` $this->db->insert('Faviroute_Addresses', $address_data); if($this->db->affected_rows() > 0) { // Code here after successful insert return true; // to the controller } ```
[ -0.04381503537297249, -0.15722070634365082, 0.4355604648590088, -0.09715623408555984, 0.29139983654022217, 0.047291867434978485, 0.02575194463133812, -0.412812739610672, 0.019783521071076393, -0.650298535823822, -0.3652344048023224, 0.5858771800994873, -0.262919157743454, -0.04255754500627...
From what I can see ui:dialog isnt a standard psuedo css element, so I was wondering what the following line achieved: ``` $j("#inline:ui-dialog").dialog("destroy"); ``` I could find a div with id "inline" but where does the ui-dialog come from ? `$.widget()` provides a pseudo-selector for your widget automatically....
[ 0.1994359940290451, 0.20138700306415558, 0.6462380290031433, 0.11576490849256516, -0.20232684910297394, -0.05072890222072601, 0.06650601327419281, -0.21031704545021057, 0.016806604340672493, -0.5018582344055176, -0.12963628768920898, 0.5575547218322754, -0.32847970724105835, 0.031860072165...
I am using the following query in an ssrs report. ``` Declare @Year int = 2012 Declare @ProdType_ID int = 1 SELECT MONTH(Ord.OrdDate) AS 'MONTH', COUNT(CASE WHEN @Year = YEAR(Ord.OrdDate) THEN 1 END) as Order1, COUNT(CASE WHEN @Year-1 = YEAR(Ord.OrdDate) THEN 1 END) as 'Order2' FROM ( select 1 as number union select ...
[ 0.1768813133239746, 0.13397230207920074, 0.5802873969078064, -0.26793238520622253, 0.10291162133216858, 0.4038078486919403, -0.0140385702252388, -0.3305481970310211, -0.5034337639808655, -0.6192682385444641, -0.1784975528717041, -0.24456030130386353, -0.23146937787532806, 0.616192340850830...
would like every month to display even if it hasn't come to pass yet and I would like their order values to be zero. Is there some way I could put an array or something similar in the FROM clause? Thanks. It worked after removing the WHERE clause and doing all the filtering in the count aggregate. ``` SELECT MONTH(Or...
[ 0.41071903705596924, -0.265247106552124, 0.462289959192276, -0.1573852151632309, -0.021598387509584427, 0.39491358399391174, -0.2538405656814575, -0.08035016804933548, -0.4284067749977112, -0.33877819776535034, 0.19900952279567719, -0.08372953534126282, -0.0671875923871994, 0.4814373254776...
JOIN Ord ON Number = MONTH(Ord.OrdDate) LEFT OUTER JOIN Prod ON Ord.Prod_ID = Prod.ID LEFT OUTER JOIN ProdType ON Prod.ProdType_ID = ProdType.ID GROUP BY Months.Number, MONTH(Ord.OrdDate) ```
[ 0.0008797200862318277, 0.2120906561613083, 0.4787427484989166, -0.04681418463587761, -0.1531687080860138, 0.4598056972026825, -0.00916063878685236, -0.2238699197769165, -0.3402259051799774, -0.2255016416311264, -0.25862225890159607, -0.06996097415685654, -0.23093654215335846, 0.25976294279...
Based on the answer provided [here](https://stackoverflow.com/questions/251694/how-can-i-check-if-i-have-a-perl-module-before-using-it), I am attempting to validate whether or not a perl module is installed. For this, I have: ``` # &getYN and &prompt are only included here for completeness sub getYN { unless ( $au...
[ 0.2181205451488495, -0.016489442437887192, 0.6270955801010132, -0.16536743938922882, 0.22267450392246246, -0.2872347831726074, 0.47555258870124817, -0.19798323512077332, 0.11520843207836151, -0.3738365173339844, -0.49683645367622375, 0.502768874168396, -0.1812978833913803, -0.1138812378048...
return $input ? $input : $default; } else { return "Y"; } } sub prompt { my ( $prompt, $default ) = @_; my $defaultValue = $default ? "[$default]" : ""; print "$prompt $defaultValue: "; chomp( my $input = <STDIN> ); return $input ? $input : $default; } &chklib("RRDTool::OO"); sub c...
[ -0.304450660943985, -0.1870569884777069, 0.5233008861541748, -0.5047734975814819, 0.49949657917022705, 0.598872184753418, 0.47019776701927185, -0.13921433687210083, 0.10056254267692566, -0.4079449772834778, -0.639028787612915, 0.7949565649032593, -0.4564603567123413, -0.06710072606801987, ...
print "You are missing a required Perl Module: $lib\n"; my $ok = &getYN( "Shall I attempt to install it for you?", "y" ); if ( $ok =~ /[Yy]/ ) { require CPAN; CPAN::install($lib); } else { print "Installation requires $lib\n";
[ 0.028511760756373405, 0.12280729413032532, 0.3084132671356201, -0.5072389841079712, 0.42308732867240906, -0.22667410969734192, 0.5838168263435364, -0.13001401722431183, 0.11372523009777069, -0.06372901052236557, -0.7893981337547302, 0.7466610670089722, -0.5318381786346436, -0.1794771403074...
exit; } } } ``` This runs as expected, but for some reason, the eval returns that I don't have RRDTool::OO installed, when, in fact, I do. If I create an empty file and run: ``` # File foo.pl use strict; $| = 1; use RRDTool::OO; ``` Then I get no errors. But when I run the first file with print $@...
[ -0.0726429894566536, 0.020640047267079353, 0.7466769814491272, -0.3606870472431183, 0.19180765748023987, 0.07452274113893509, 0.4036375880241394, 0.0122681874781847, -0.31842854619026184, -0.30192115902900696, -0.12905555963516235, 0.5209257006645203, -0.13310490548610687, 0.12924198806285...
@Year = YEAR(Ord.OrdDate) and @ProdType_ID = ProdType.ID THEN 1 END) AS Order1, COUNT(CASE WHEN @Year-1 = YEAR(Ord.OrdDate) and @ProdType_ID = ProdType.ID THEN 1 END) AS Order2 FROM ( SELECT 1 AS Number UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELE...
[ 0.20956015586853027, 0.02361154928803444, 0.44697296619415283, -0.28342175483703613, 0.07317831367254257, 0.6931428909301758, 0.013498268090188503, -0.20494163036346436, -0.39424294233322144, -0.38697388768196106, -0.1407046765089035, -0.21049392223358154, -0.17910850048065186, 0.787889420...
mySQL total user count ---------------------- ### Grouping by month I want to list the total count of registered users grouped by month Well, the difficulty about this is that I don't want the count **per** month, *but the the **total** count of users up to (and including) the month*. ### User table structure ``` ...
[ -0.44233670830726624, 0.1507023572921753, 0.8853155970573425, -0.05665159970521927, -0.2121957391500473, 0.08738609403371811, 0.2231248915195465, 0.08606134355068207, -0.31316742300987244, -0.5588206052780151, -0.12533076107501984, 0.25392282009124756, -0.07003705203533173, -0.000415007642...
| int(11) | NO | NULL | auto_increment | | email | varchar(225) | NO | NULL | | ................................-CUT-....................................... | registered | timestamp | NO | CURRENT_TIMESTAMP |
[ -0.16208790242671967, 0.17294751107692719, 0.5804340839385986, -0.08196936547756195, 0.13463647663593292, 0.15004585683345795, 0.1741025298833847, -0.020759042352437973, -0.29780930280685425, -0.419267475605011, 0.046239059418439865, 0.15785875916481018, -0.4549005627632141, 0.162687167525...
| +---------------+--------------+------+-------------------+----------------+ ``` ### Example data ``` 1 example1@mail 2012-04-04 xx:xx:xx 2 example2@mail 2012-05-04 xx:xx:xx 3 example3@mail 2012-05-04 xx:xx:xx ``` ### Preferred output ``` +------+-------+-------+ | Year | Month | Count | +------+-------+-------...
[ -0.5209212899208069, 0.5365397334098816, 0.30812761187553406, 0.2093334048986435, 0.038494981825351715, 0.30033165216445923, 0.2650600075721741, -0.5932258367538452, -0.3369644284248352, -0.49906042218208313, -0.19252018630504608, 0.31240689754486084, -0.15573467314243317, -0.0483191087841...
could I achieve that result in pure mySQL? I have not tried this but something along these lines should work - ``` SELECT tots.*, @var := @var + tots.`count` FROM ( SELECT YEAR(registered) AS `year`, MONTH(registered) AS `month`, COUNT(*) AS `count` FROM user GROUP BY `year`, `month...
[ 0.05831122770905495, 0.17867372930049896, 0.512759268283844, -0.011300881393253803, 0.032335780560970306, 0.06264165043830872, 0.24807564914226532, 0.03049141727387905, -0.2538740336894989, -0.368131160736084, 0.018637780100107193, 0.14304427802562714, 0.26943135261535645, 0.18719618022441...
I have a JPanel and I want do draw to this JPanel some very simple images (items). I want to use methods like DrawRect or DrawOval.. This panel will have a scrollbar. It should look like [this](http://seznamovak.kx.cz/download/nakres.png). I need to remove and add item (images) on a specific index. Can you help me ple...
[ 0.03824823722243309, -0.05793024227023125, 0.400145947933197, -0.11421303451061249, -0.6145308613777161, 0.20291393995285034, -0.12353742122650146, -0.4493892788887024, -0.14218980073928833, -0.6854574680328369, 0.15699149668216705, 0.36965176463127136, -0.19617518782615662, -0.08874585479...
I am having some trouble parsing the following xml data: ``` <?xml version="1.0" encoding="UTF-8" standalone="no"?> <encryption xmlns="urn:oasis:names:tc:opendocument:xmlns:container"> <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"> <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/> ...
[ -0.4224502444267273, 0.8785682320594788, 0.3008531332015991, -0.20596714317798615, -0.08964872360229492, -0.059673141688108444, 0.49559512734413147, -0.5254368782043457, -0.4070204794406891, -0.5315022468566895, -0.0486443005502224, 0.4645545482635498, -0.20439454913139343, 0.0140645978972...
dictionaryWithObject:@"http://www.w3.org/2001/04/xmlenc#" forKey:@""] error:nil]; for (CXMLElement* encEl in encryptionItems) { NSArray *uuidArray = [encEl nodesForXPath:@"KeyInfo/resource" namespaceMappings:nil error:nil]; NSString *uuid = [[uuidArray objectAtIndex:0] stringValue]; NSArray...
[ -0.05672045797109604, -0.10101888328790665, 0.6032606363296509, -0.3591521978378296, -0.1937125325202942, 0.3062553405761719, 0.16141802072525024, -0.3582294285297394, 0.053622595965862274, -0.8472750782966614, 0.16514644026756287, 0.6152861714363098, -0.3018706738948822, -0.05747690796852...
AWT Components use method `paint()`, for Swing JComponents is there `paintComponet()` Also, from code linked in a comment: ![](https://i.stack.imgur.com/yvnRi.png)
[ 0.6874610185623169, -0.2628553807735443, 0.26500391960144043, -0.19023723900318146, -0.37562307715415955, -0.07498814910650253, 0.14752832055091858, -0.3137807548046112, -0.19287966191768646, -0.31391459703445435, -0.10171850770711899, 0.6477199792861938, -0.12793441116809845, -0.258379250...
It's very straightforward, but I can't find the answer online. I want to do something like this in a plugin file: ``` " MyChecker.vim " " Uncomment the following line to set the autochecker option "set autochecker=1 if ISSET(autochecker) autocmd InsertChange * :call MyAutoCheckerFunction() endif ``` How do I do ...
[ -0.044966015964746475, 0.02333786152303219, 0.36373692750930786, -0.0506168007850647, 0.013147687539458275, 0.18044394254684448, 0.38886919617652893, -0.002953559858724475, -0.19965007901191711, -0.6013714075088501, -0.20715312659740448, 0.7470253109931946, -0.6109462380409241, -0.04719635...
You need to create a global variable instead like: ``` let g:AutoChecker = 1 .... if g:AutoChecker == 1 " ... endif ```
[ -0.35017871856689453, 0.01809641160070896, 0.19583028554916382, 0.002629248658195138, -0.05198344960808754, -0.11153426021337509, 0.03443526476621628, 0.06786802411079407, -0.09079769253730774, -0.31823861598968506, -0.21880577504634857, 0.569999635219574, -0.8047098517417908, 0.1010262891...
I have a gridview that contains user info and one of the columns is a date when the user was added to the system. Is it possible to use the **GridView.onRowCreated** method to check if the user was added within a given time frame? If the user was added within that timeframe, then the row is added, if not, then that r...
[ 0.3734598457813263, 0.14406436681747437, 0.5496194362640381, -0.12039078027009964, 0.18095672130584717, -0.08401364833116531, -0.04505769535899162, -0.052756261080503464, -0.2346000224351883, -0.9892368316650391, 0.17701025307178497, 0.5573751330375671, -0.05458911135792732, 0.414167433977...
perfectly.
[ 0.2386694997549057, -0.054109860211610794, 0.12498296797275543, 0.13929781317710876, 0.18102355301380157, 0.03602636978030205, 0.33415403962135315, 0.16069550812244415, -0.1234327182173729, -0.265523225069046, -0.0483192540705204, 0.2437734454870224, -0.09784946590662003, 0.192846313118934...
I am reading data from a table in an SQLite3 database into a ListView using the code below At the moment I am limiting the records to display only 200 as displaying all of them takes way too long. (Some 30,000 records) I would like to give an option to display all the records and if that option is chosen to be able t...
[ 0.7193885445594788, 0.24854476749897003, 0.44965848326683044, 0.04440775886178017, 0.07034417241811752, -0.07616312801837921, 0.17519429326057434, -0.283529132604599, -0.39058345556259155, -0.9706483483314514, 0.36358147859573364, 0.4596138298511505, -0.012889203615486622, 0.21655233204364...
how they work. Would it be the case of adding a few extra lines of code to my code to allow the use of a progress bar or would I have to thread it and use a background worker? ``` private void cmdReadDatabase_Click(object sender, EventArgs e) { listView4.Columns.Add("Row1", 50); listView4.Columns.Add("Row2", 5...
[ 0.3298224210739136, -0.0219211895018816, 0.6848457455635071, -0.2234247475862503, 0.26416927576065063, 0.2604837119579315, 0.6792058348655701, -0.39008116722106934, -0.30485236644744873, -0.75062495470047, -0.06253165751695633, 0.3286794424057007, -0.46496665477752686, 0.13657072186470032,...
SQLiteConnectionStringBuilder csb = new SQLiteConnectionStringBuilder(); csb.DataSource = Path.Combine(connectionPath, "database.db"); SQLiteConnection connection = new SQLiteConnection(csb.ConnectionString); connection.Open(); // Query to read the data SQLiteCommand command = ...
[ -0.12682579457759857, -0.04381420463323593, 0.6378594040870667, -0.2165863960981369, -0.02629031240940094, 0.03220971301198006, 0.15320660173892975, -0.4252292811870575, -0.2996504604816437, -0.5807230472564697, -0.22188647091388702, 0.17738668620586395, -0.36584019660949707, 0.31005421280...
command.ExecuteNonQuery(); SQLiteDataAdapter dataAdaptor = new SQLiteDataAdapter(command); DataSet dataset = new DataSet(); dataAdaptor.Fill(dataset, "dataset_name"); // Get the table from the data set DataTable datatable = dataset.Tables["dataset_name"]; listView4.Item...
[ -0.09901930391788483, -0.39261123538017273, 0.6582711935043335, -0.29833388328552246, -0.10638044774532318, 0.18959277868270874, 0.26575106382369995, -0.3001239001750946, -0.24526908993721008, -0.7612048983573914, -0.24336126446723938, 0.47776925563812256, -0.3940523564815521, 0.2962683737...
{ DataRow datarow = datatable.Rows[i]; if (datarow.RowState != DataRowState.Deleted) { // Define the list items ListViewItem lvi = new ListViewItem(datarow["Row1"].ToString());
[ -0.21596215665340424, -0.46026962995529175, 0.6950391530990601, -0.4513603746891022, 0.18511660397052765, 0.27591925859451294, 0.058729708194732666, -0.3256230354309082, -0.15752089023590088, -0.48338252305984497, -0.37459003925323486, 0.4417235255241394, -0.3451618552207947, 0.24785205721...
lvi.SubItems.Add(datarow["Row2"].ToString()); lvi.SubItems.Add(datarow["Row3"].ToString()); lvi.SubItems.Add(datarow["Row4"].ToString()); lvi.SubItems.Add(datarow["Row5"].ToString()); lvi.SubItems.Add(datarow["Row6"].ToString()); lvi.SubIte...
[ -0.32843515276908875, -0.29627761244773865, 0.6620112657546997, -0.20005212724208832, 0.13010285794734955, 0.4347471296787262, 0.24109108746051788, -0.25108036398887634, -0.4751315116882324, -0.7458545565605164, -0.5048612952232361, 0.29511067271232605, -0.4401281476020813, -0.022669712081...
Add the list items to the ListView listView4.Items.Add(lvi); } } connection.Close(); } catch(SQLiteException ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK); } } ``` Yes, that will lead to the same result. To be a bit more specifi...
[ 0.11535631120204926, -0.1487044095993042, 0.5129727125167847, -0.35658028721809387, -0.09240847826004028, -0.03770212084054947, 0.2807300090789795, -0.378403902053833, -0.39224591851234436, -0.5270868539810181, -0.19026140868663788, 0.3278997242450714, -0.4888173043727875, 0.26293909549713...
just passes through the ternary check to the same expression as before 2. If `str1` *is* null, it then becomes a check to see if `str2` is *also* null. And since you have the whole ternary expression wrapped up with the `!` out front, that behaves the same as before. If you wanted to be a *bit* more clear, you could ...
[ -0.020497331395745277, -0.13287915289402008, 0.1673366278409958, -0.04387732595205307, -0.30625802278518677, 0.017848871648311615, 0.35509538650512695, -0.18742789328098297, -0.13477984070777893, -0.6301071643829346, -0.1595083773136139, 0.48178932070732117, -0.12678737938404083, 0.0201542...
in the code (to me, anyways) As others have mentioned, however, the Apache Commons library already includes this null-safe equality capability, but it does require a rather substantial library inclusion. On the other hand, many feel that the Apache Commons functionality should be effectively considered a part of Java ...
[ 0.13207709789276123, 0.07440419495105743, -0.14932002127170563, 0.08598392456769943, -0.28746822476387024, -0.29044783115386963, 0.5679672956466675, -0.133426696062088, -0.24374380707740784, -0.5046371221542358, 0.10147930681705475, 0.4531838297843933, -0.35863128304481506, -0.073146380484...
is something to be aware of.
[ 0.32282009720802307, 0.1642654836177826, 0.3144698739051819, 0.019648022949695587, 0.27758166193962097, -0.25033074617385864, 0.2546316981315613, 0.2500685155391693, -0.3536057472229004, -0.37674418091773987, -0.10698933899402618, 0.2372106909751892, 0.19395138323307037, -0.15700663626194,...
I have an Umbraco 5 MVC3 project where i discovered that there where white spaces here and there. When investigating i discovered that my HTML looked really bad when "viewing generated source" in firefox web developer tool. For example it removes my doctype declaration and moves my meta-tags and stuff out of the head. ...
[ 0.4218117892742157, 0.16783881187438965, 0.5173528790473938, -0.22627340257167816, -0.08914054930210114, -0.2407650649547577, 0.1018492579460144, -0.4059525728225708, -0.14544440805912018, -0.7724972367286682, -0.05266069620847702, 0.4845612347126007, -0.17810258269309998, 0.02752037905156...
<a class="ir logo" href="/"><h1>Christian </h1></a> <ul class="share"> <li id="facebook"><a class="ir" href="http://www.facebook.com/sharer.php?u=@Request.Url.AbsoluteUri">Facebook</a></li> <li id="twitter"><a class="ir" href="http://twitter.com/share?text=Christian">Twitter<...
[ 0.20810210704803467, 0.007101677358150482, 0.6509564518928528, -0.34335142374038696, -0.3133273720741272, 0.10683348774909973, 0.5118815302848816, -0.3447211980819702, 0.04233938828110695, -0.604476273059845, -0.1944712996482849, 0.7996510863304138, -0.21342290937900543, 0.0089167589321732...
<section id="content" class="body"> @RenderBody() </section> </div> <script src="@Url.Content("~/Scripts/plugins.js")"></script> <script src="@Url.Content("~/Scripts/script.js")"></script> </body> </html> ``` And the output begins like this ``` <html class="no-js" lang="en"><head></he...
[ -0.03664078563451767, -0.10720669478178024, 0.6185085773468018, -0.003001323901116848, -0.39040911197662354, 0.14739269018173218, 0.11257372796535492, -0.10364825278520584, 0.07163091003894806, -0.7058467864990234, 0.01837630569934845, 0.3618393838405609, -0.11870548874139786, 0.1038125976...
doctype first. Expected `<!DOCTYPE html>`. > > > Element head is missing a required instance of child element title. And my personal favourite > Cannot recover after last error. Any further errors will be ignored. Looked like there was something up with the doctype. Opened up notepad and pasted in there to "wash" ...
[ 0.13789455592632294, 0.1518651396036148, 0.4699464738368988, -0.04477143660187721, -0.34565407037734985, -0.053686048835515976, 0.09072640538215637, -0.1239229217171669, 0.012269007042050362, -0.5794325470924377, 0.4244702458381653, 0.3174770772457123, -0.23032048344612122, 0.2848296463489...
in front of the declaration. I removed them and copied it back in to Visual Studio, saved and now everything works. I think the reason i got this problem was that i copied snippets directly from the HTML5 Boilerplate on github. // Sherlock
[ 0.647197961807251, 0.4398750960826874, 0.33002781867980957, 0.002250068821012974, -0.09609373658895493, -0.10394032299518585, 0.4917880594730377, -0.04770713299512863, -0.11018512398004532, -0.591909646987915, -0.07834111154079437, 0.6582388281822205, -0.026563774794340134, 0.1230605915188...
So I was working on a file and committed it to my tracking branch and pushed up to the remote branch. Someone else must have made a change to the same file and had a conflict with my change and they resolved the issue, but removed my edits as the resolve. There was an error when they went to the application the next ti...
[ 0.49482351541519165, 0.09409520030021667, 0.10958566516637802, 0.12219426780939102, 0.3433564603328705, 0.10910984128713608, 0.25927186012268066, -0.258261501789093, -0.48330849409103394, -0.3347932696342468, 0.36229342222213745, 0.3897208273410797, -0.4692486822605133, 0.23810510337352753...
project are not doing any advanced git techniques, its pretty much fetch merge, commit push. I just don't get why the commit is gone from my history. Shouldn't it be there or when there is a merge conflict and someone resolves and ends up doing a merge commit does that remove history? We host our repo on bitbucket a...
[ 0.5223493576049805, -0.31952422857284546, 0.2925011217594147, 0.1252305805683136, -0.20444932579994202, -0.10055088251829147, 0.13838903605937958, 0.002209786791354418, -0.32738226652145386, -0.7009615898132324, 0.09247762709856033, 0.31840139627456665, 0.08469761162996292, 0.2026213109493...
are pretty nubish at all this. Git's internal structure is that of a [DAG](http://en.wikipedia.org/wiki/Directed_acyclic_graph), and the branches are just mutable pointers to commits (tags are immutable pointers). Git's log only shows you commits that are reachable by backtracking off of these branches / commit pointer...
[ 0.09878887236118317, -0.03612937778234482, 0.5212931632995605, 0.1822482794523239, -0.010677401907742023, -0.10016075521707535, 0.2667335271835327, 0.21228675544261932, -0.4586604833602905, -0.6805312633514404, 0.0053917099721729755, 0.10925213247537613, -0.2543720602989197, 0.241092845797...
can see what happened by looking at the DAG.
[ 0.1792462319135666, 0.09048596024513245, 0.27093830704689026, 0.16603057086467743, -0.03859412297606468, -0.2695465683937073, 0.030328795313835144, 0.3575485050678253, -0.2517898976802826, -0.3697267472743988, 0.2757548987865448, 0.3439064621925354, 0.128127783536911, -0.15945929288864136,...
``` $.PeriodicalUpdater.stop(); ``` ...gives me... ``` TypeError: Result of expression '$.PeriodicalUpdater.stop' [undefined] is not a function. ``` I've checked an double checked the [owner's manual](https://github.com/RobertFischer/JQuery-PeriodicalUpdater), I cannot figure out why this isn't working correctly. ...
[ -0.012945541180670261, 0.24631837010383606, 0.8814727067947388, -0.028730787336826324, -0.14580079913139343, -0.15176056325435638, 0.38906192779541016, -0.06429839879274368, -0.4991578757762909, -0.3321976661682129, -0.23428401350975037, 0.842776358127594, -0.3878335654735565, 0.3065914809...
the handle. This handle is also passed into the callback function as > the fourth argument. so it should be ``` var handle =$.PeriodicalUpdater(url, options); handle.stop(); ``` EDIT - after your comments, try ``` $.PeriodicalUpdater( url, { options, function(remoteData, success, xhr, handle){ if(condition){ ...
[ -0.1174113005399704, -0.13390322029590607, 1.0391242504119873, 0.017391396686434746, -0.056286800652742386, 0.09528911858797073, 0.0166343841701746, -0.13951338827610016, -0.25037145614624023, -0.27033743262290955, -0.19259190559387207, 0.729212760925293, -0.3099852204322815, 0.47081866860...
I will like to take a screen capture without a window. I currently hide my main window take a screen shot of the desktop and then make my main window visible again. Will it be possible to achive the same functionality without having to hide my window? If you are curios on why I am trying to achieve that functionality ...
[ 0.45114532113075256, 0.16084104776382446, 0.7057652473449707, -0.1395512819290161, 0.10627923905849457, 0.09070050716400146, 0.451054185628891, -0.1891661137342453, -0.2414049357175827, -0.9076594710350037, 0.03218722343444824, 0.514519453048706, -0.14232215285301208, 0.12406527251005173, ...
'Content-type: text/html; charset=iso-8859-1' . "\r\n"; ```
[ -0.029137756675481796, 0.32822367548942566, 0.4333324730396271, -0.03265374153852463, -0.09542572498321533, -0.07425524294376373, 0.24199125170707703, 0.08765998482704163, -0.22113321721553802, -0.4195646643638611, -0.9031976461410522, 0.29301267862319946, -0.4542401134967804, 0.2174833416...
I've created a custom validator to validate dateTimefield. My problem is that I can't add it to the datetimefield variable > The method add(`IValidator<? super Date>`) in the type `FormComponent<Date>` is not applicable for the arguments (DateTimeFieldValidator) This is the error I'm getting. Is there any standar...
[ 0.0739855244755745, 0.03774973750114441, 0.5781234502792358, -0.15154467523097992, 0.1025993674993515, 0.06417819857597351, 0.2807241380214691, -0.6046563982963562, -0.1370527446269989, -0.24667610228061676, -0.08110391348600388, 0.6304211616516113, -0.3521023392677307, 0.25336208939552307...
validate(IValidatable<DateTimeField> validatable) { DateTimeField dateTime = (DateTimeField) validatable.getValue(); if ( dateTime== null){ error(validatable, "invalid.datetime"); } else{ if( dateTime.getHours()!=null){ if( dateTime.getHours()>12 || dateTime.getHours()<0)...
[ 0.1201954334974289, -0.3086685538291931, 0.7968646287918091, -0.2576194405555725, 0.228501558303833, -0.011933229863643646, 0.3214404284954071, -0.509836733341217, -0.10332334041595459, -0.35645487904548645, -0.35578280687332153, 0.7763042449951172, -0.22484071552753448, 0.0520353540778160...
else{ error(validatable, "invalid.hour"); } if(dateTime.getMinutes()!=null){ if( dateTime.getMinutes() > 60 ){ error(validatable, "invalid.hour"); } }else { error(validatable,
[ 0.2554081678390503, -0.2142610400915146, 0.30946236848831177, -0.15344668924808502, 0.4957074522972107, 0.18716101348400116, 0.3788298964500427, -0.11566083878278732, -0.026907140389084816, -0.5574122071266174, -0.30531710386276245, 0.6223266124725342, -0.22744755446910858, 0.0072030713781...
"invalid.minutes"); } if( dateTime.getDate() == null ){ error(validatable, "invalid.date"); } } } boolean isLegalDate(String s) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); sdf.setLenient(false); return sdf.parse(s, new ParsePosition(0)) != null; }...
[ 0.1794358491897583, -0.2670797109603882, 0.8858004808425903, -0.44012150168418884, 0.07515033334493637, 0.07999612390995026, 0.28575456142425537, -0.7964881658554077, -0.14858867228031158, -0.4666021168231964, -0.4153273403644562, 0.5971457958221436, -0.2263602316379547, 0.2732897102832794...
**I'm asking about using a Twitter Bootstrap modal window with a Rails form helper and displaying form validation error messages. I'm using Twitter Bootstrap 2.0 with Rails 3.2.** I've got a form inside a Twitter Bootstrap modal window. There's a button on the page to open the modal window and display the form. All go...
[ 0.4359961450099945, 0.1459474265575409, 0.5374513864517212, -0.12747327983379364, -0.15933774411678314, -0.26015007495880127, 0.6357439756393433, 0.05216941982507706, 0.21689681708812714, -0.877155601978302, 0.2302674651145935, 0.44904834032058716, -0.19382792711257935, -0.1991066485643386...
none;" style (or toggle the modal window to display) when the page is rendered. I've tried adding the following code to my assets/javascripts/application.js file but it doesn't work: ``` $('document').ready(function() { if ($('#error_explanation').length > 0) { $("#request_invite").css("display", "block"); } ...
[ 0.0636916533112526, 0.09290125966072083, 0.8521634936332703, -0.27655133605003357, -0.024207603186368942, -0.08757844567298889, 0.5252040028572083, -0.21815045177936554, -0.05710972473025322, -0.9152229428291321, -0.2236386090517044, 0.6521041393280029, -0.3586291968822479, -0.208882585167...