text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
1: /* output rs */ begin LEDs = rs_value[7:0];
[ 0.32485583424568176, -0.13579630851745605, 0.3579012155532837, -0.5843091607093811, -0.10199854522943497, -0.1793632060289383, 0.04580935463309288, -0.44907301664352417, -0.43545350432395935, -0.0522717721760273, -0.14411568641662598, 0.450717568397522, -0.8819262385368347, -0.073049947619...
end endcase if(funct == 1) rs_value = registers[rs]; end endcase
[ -0.5125895142555237, 0.04487764090299606, 0.5079202055931091, -0.10014637559652328, 0.0536840595304966, 0.018002204596996307, -0.06436619162559509, -0.11359193921089172, 0.08271681517362595, -0.13629554212093353, -0.2818715274333954, 0.17168669402599335, -0.2356509268283844, -0.08892823755...
// 6. Store the results case(instruction_type) 2'b00: /* R-type */ begin registers[rd] = rd_value;
[ 0.3687517046928406, 0.1909783035516739, 0.08322953432798386, -0.4807799458503723, 0.3296019732952118, 0.31003275513648987, 0.5411270260810852, -0.4360777735710144, 0.1778072714805603, -0.2975580096244812, -0.4536580741405487, 0.4827934801578522, -0.2230152040719986, -0.14892488718032837, ...
end 2'b01: /* I-type */ begin case(op)
[ -0.3584322929382324, 0.44781559705734253, 0.16419664025306702, -0.29015448689460754, 0.29492273926734924, 0.07155323773622513, 0.17180469632148743, -0.17393311858177185, -0.05290289595723152, -0.48902153968811035, -0.3338349461555481, 0.2984902560710907, -0.2411995381116867, -0.18545491993...
8: /* addi rt, rs, immediate */ begin registers[rt] = rt_value;
[ -0.002458776580169797, -0.006916896905750036, 0.37354370951652527, -0.6538900136947632, 0.2067185640335083, 0.28060629963874817, 0.2389068752527237, -0.4653874337673187, -0.21210214495658875, -0.2142544686794281, -0.29888105392456055, 0.6361269950866699, -0.41027992963790894, -0.2644576430...
end 1'hc: /* andi rt, rs, immediate */ begin
[ 0.27923083305358887, 0.1171301007270813, 0.509891927242279, -0.18421071767807007, -0.12144672125577927, -0.2771068811416626, 0.2675061523914337, -0.17224697768688202, 0.009310109540820122, -0.3888060748577118, -0.5747517943382263, 0.3197905421257019, -0.30919647216796875, -0.07415901869535...
registers[rt] = rt_value; end 1'hd: /* ori rt, rs, immediate */
[ 0.33468106389045715, 0.04361051321029663, 0.6422502398490906, -0.21085631847381592, 0.18259131908416748, 0.4057503342628479, 0.278244286775589, -0.4561655521392822, 0.13960091769695282, -0.5397377014160156, -0.1990668624639511, 0.6349166035652161, -0.228213369846344, -0.020808689296245575,...
begin registers[rt] = rt_value; end
[ -0.22939489781856537, 0.21342235803604126, 0.2729075849056244, -0.32327601313591003, 0.38582533597946167, 0.2997087836265564, 0.49258896708488464, -0.49865055084228516, 0.09040829539299011, -0.3033474385738373, -0.3619645833969116, 0.761549711227417, -0.14386574923992157, -0.19080738723278...
2'h23: /* lw rt, rs[offset] */ begin registers[rt] = rt_value;
[ 0.34295982122421265, 0.11355745047330856, 0.40758657455444336, -0.5132036209106445, 0.10742725431919098, 0.294716477394104, 0.25910061597824097, -0.8193302750587463, -0.11667752265930176, -0.36539238691329956, -0.3046611547470093, 0.5353939533233643, -0.4018838405609131, -0.231966152787208...
end endcase end 2'b11: /* EXTRA */
[ -0.11128002405166626, 0.2814357280731201, 0.1096605584025383, -0.28729546070098877, -0.3478914797306061, 0.27130672335624695, 0.29182133078575134, 0.009101150557398796, 0.03497613966464996, -0.19681045413017273, -0.27003711462020874, -0.04059993103146553, -0.16934072971343994, -0.035304944...
begin if(funct == 0) registers[rs] = rs_value; end endcase #100; /* Delay */ end endmodule ``` I have attched `output reg[7:0] LEDs` to 8 LEDs on the FPGA device,
[ 0.2116696983575821, -0.2912243604660034, 1.030190110206604, -0.30974796414375305, 0.15519008040428162, 0.11518184840679169, -0.04741482809185982, -0.4631441533565521, -0.3145449459552765, -0.22221913933753967, -0.08063841611146927, 0.36326801776885986, -0.3918043076992035, 0.14498379826545...
and `input[7:0] Switches` on 8 switches of the FPGA. The code is compiled without any error. But unfortunately, it doesn't work. The LEDs should show the states of the switches, but they are always turned off. However, when I tried hardcode the LEDs states like `LEDs[7:0] = 8'b11111111;` inside the `initial` block, th...
[ 0.26053348183631897, -0.06958439201116562, 0.5795730948448181, -0.12430389970541, 0.0799267515540123, -0.14958922564983368, 0.10267449170351028, -0.3063390851020813, -0.24617306888103485, -0.3715691864490509, 0.0906069353222847, 0.5747206807136536, -0.5109179615974426, 0.07443694770336151,...
a wrong way? You may be able to simulate this code with a Verilog simulator but you will not be able to synthesize this code and load it onto an FPGA. As the comments say, synthesizable Verilog code for FPGAs would have a clock. It should have constructs that look like this ``` always @* begin : combinational_logic ...
[ 0.46469539403915405, -0.06412342190742493, 0.29915568232536316, 0.18987610936164856, 0.2716180384159088, -0.00009075678826775402, 0.3083131015300751, -0.08075206726789474, -0.39080390334129333, -0.2770123779773712, 0.3490960896015167, 0.5351219773292542, -0.4089593291282654, 0.121628560125...
I'm finding a way to make unobtrusive javascript (via `data-*` attributes) in dynamic html scenarios. Let's pretend that we have an `input` element which represents a jquery-ui datepicker: ``` <input type="date" data-min-date="today" /> ``` And the js which does a work: ``` (function(){ $(function () { ...
[ 0.3033895790576935, -0.16352738440036774, 0.4684690833091736, 0.010970390401780605, -0.07457766681909561, 0.02055031806230545, 0.24704571068286896, -0.09826918691396713, -0.06513732671737671, -0.7506906986236572, -0.30425769090652466, 0.254584401845932, -0.221865713596344, -0.1532297134399...
inputs into a datepickers. The inputs will be added dynamically. In general I have no control on the code which adds the datepickers. In common the code will be injected as server-side prerendered html via [jquery.ajax.unobtrusive](http://nuget.org/packages/jQuery.Ajax.Unobtrusive) or [jquery-pjax](http://pjax.heroku.c...
[ -0.058764174580574036, -0.45375585556030273, 0.30382096767425537, 0.08364661037921906, 0.024317480623722076, 0.19006721675395966, -0.029225299134850502, -0.1634545922279358, -0.266783744096756, -0.49323105812072754, -0.027149999514222145, 0.4033327102661133, -0.2566762864589691, -0.2865642...
small amounts of data. However, if it's not for you, you could always load/save to a text file. You can do this using ByteArrays and FileReferences. Since you brought up saving to a word file, I would suggest saving to a text file would be the best way of achieving your goal (although other than your word doc. sugges...
[ 0.05591913312673569, -0.10188671201467514, 0.2591339349746704, -0.13573381304740906, 0.05942154675722122, 0.10845135152339935, -0.03385796770453453, -0.16815592348575592, -0.4883683919906616, -0.8553469181060791, -0.056510571390390396, 0.6252002120018005, -0.3605934679508209, 0.10014625638...
is pretty simply.. By using writeMultiByte, we can write as much data as needed before saving our text file! This is especially useful if you have arrays of data you need to save. Anyway, the "iso-8859-1" is simply a reference to the character set / file-format being used.. I'm not sure if you can simply write utf-16 ...
[ 0.23378747701644897, 0.06618686765432358, 0.3642386198043823, -0.0842171460390091, -0.11455322802066803, 0.02227347530424595, 0.1891438215970993, -0.3034305274486542, -0.4223896265029907, -0.41747260093688965, -0.2940537631511688, 0.4482259452342987, -0.3295191824436188, 0.0267905145883560...
your scores may work). Again, let me know if you need help doing that. I'm not sure if this is the most efficient method of achieving what you're after since your goal isn't entirely clear to me, but it has been a very useful way for myself in storing large amounts of data, which I'm guessing you are wanting to do if ...
[ 0.3267520070075989, -0.10022401809692383, 0.1110135093331337, 0.33363524079322815, -0.0396917350590229, -0.09335033595561981, -0.00962704885751009, -0.13125397264957428, -0.3797560930252075, -0.4719063937664032, 0.37508946657180786, 0.6083893179893494, -0.14093109965324402, -0.192520216107...
file exists), then adds the new score to the end of the array, then saves back to the text file. Here is an example: ``` var dataloader:URLLoader = new URLLoader(); var dataarray:Array = new Array(); // do this where you intialise other vars function preparesave() { dataloader.load(new URLRequest("savedata.txt")...
[ 0.09411999583244324, -0.6022871136665344, 0.5080530047416687, -0.35079365968704224, 0.020509717985987663, 0.1904691904783249, 0.019636372104287148, -0.6394904255867004, -0.41783401370048523, -0.4822283387184143, -0.2330147922039032, 0.444725900888443, -0.26881274580955505, 0.28745719790458...
"\n", "iso-8859-1"); } fileRef.save(bytes,"savedata.txt") } ``` What this does is take any existing save data, pushes it to an array (where one line on your save file is one array data entry), adds your appropriate data, and pushes it back out to the save file. (2) To load this in whilst in the main menu, si...
[ 0.06407870352268219, -0.38437867164611816, 0.503744900226593, -0.2616249918937683, 0.08010129630565643, -0.008497047238051891, -0.05510536953806877, -0.3178046643733978, -0.1943349540233612, -0.7447423338890076, -0.45200875401496887, 0.7061266303062439, -0.2636927664279938, -0.104040615260...
I have this code for splitting input list into its halves. It seems to be OK. ``` halve(List,A,B) :- halve(List,List,A,B), !. halve(B,[],[],B). halve(B,[_],[],B). halve([H|T],[_,_|T2],[H|A],B) :-halve(T,T2,A,B). ``` Ok, so I tried to decode it. The beginning is clear: "Halve took list and 2 logic variables" is thi...
[ -0.056568752974271774, 0.02768706902861595, 0.31857940554618835, -0.3600230813026428, -0.5779823660850525, 0.3048454523086548, 0.17950214445590973, -0.41206565499305725, -0.4633316993713379, -0.3110195994377136, -0.276542067527771, 0.5542808175086975, -0.3741679787635803, -0.06600122898817...
I hope after your explanation of (1) and (2), I'll get the final part by myself... ``` halve([H|T],[_,_|T2],[H|A],B) :- halve(T,T2,A,B). ``` Thank you very, very much for helping me. --- Ok, our first problem already has its solution. Long story short, it works like this: ``` halve([1,2,3,4,5],[1,2],[3,4,5]). -...
[ -0.06419776380062103, 0.02387150377035141, 0.2586367130279541, -0.08920785784721375, -0.27630019187927246, 0.16750995814800262, 0.04796186089515686, -0.4443386495113373, -0.4980052709579468, -0.5064646601676941, -0.1641644686460495, 0.48978111147880554, -0.31630873680114746, -0.02653600834...
head and tail: `[H|T]` and then I will merge the `H` with new empty list - my 1st Half (`A`). After that I have A=[1], B=[] and Input=[2,3]. For merging I have: ``` merge([],List,List). merge([H|T],List,[H|New]) :- merge(T,List,New). ``` And one more thing - I need to check whether the 1st half is already >= 2nd ha...
[ 0.15009945631027222, 0.19331113994121552, 0.5670138001441956, 0.001404592301696539, -0.33697378635406494, -0.07864263653755188, 0.28363925218582153, -0.1488991677761078, -0.1291685551404953, -0.5052653551101685, -0.13453783094882965, 0.48515141010284424, -0.3229272663593292, -0.12589338421...
read that as "`Head` if `Body`", or "`Body` implies `Head`". Note that sometimes you just have ``` Head ``` That's because Head is always `true`. Instead of calling `Head` a clause, we rather call it a fact in this case. So here, we have: ``` halve(List,A,B) :- halve(List,List,A,B). ``` That means that `halve(L...
[ 0.24319496750831604, 0.259258896112442, 0.4534333050251007, -0.12417515367269516, -0.3029541075229645, -0.04281925782561302, 0.3282758593559265, -0.2847394645214081, -0.07989005744457245, -0.20878535509109497, -0.2148880809545517, 0.469402551651001, -0.10457003116607666, 0.1625731438398361...
`halve/3` because the 3 argument spots of `halve/3` were already taken by the input list, `List`, the first half of the result, `A` and the second half of the result, `B`. About the `List, List` thing, it's just a way to say that we call `halve/4` with the same first and second argument, like you would in any programm...
[ -0.18897078931331635, 0.42121121287345886, 0.5839186310768127, -0.5337926149368286, -0.4511016011238098, 0.04617607221007347, 0.19839294254779816, -0.5633364915847778, -0.033825382590293884, -0.4496445655822754, -0.22864969074726105, 0.6496685147285461, -0.2648366689682007, -0.150387570261...
Prolog will now try to prove that `halve/3` is true by proving that `halve/4` is true with the following arguments: `halve([1, 2], [1, 2], A, B).`. To do that, Prolog has 3 choices. The first choice is the following clause: ``` halve(B,[],[],B). ``` Obviously, that won't work. Because when Prolog will try to fit th...
[ -0.33990994095802307, 0.17604537308216095, 0.7022204995155334, -0.3161165416240692, -0.11644003540277481, 0.10333240032196045, 0.3536318838596344, -0.3196227252483368, -0.15005233883857727, -0.07078234106302261, -0.47845399379730225, 0.7112869620323181, -0.5719687938690186, -0.355041623115...
anonymous variable `_` if you've troubles with it). So the only chance Prolog has to find a solution to the problem you presented it is the last clause, that is: ``` halve([H|T],[_,_|T2],[H|A],B) :- halve(T,T2,A,B). ``` Here, Prolog will find a way to unify thing, let's see which way: * we have to unify `[1, 2]` w...
[ -0.5171381235122681, -0.21577148139476776, 0.6348949074745178, 0.0034186565317213535, 0.05929801985621452, -0.06138435751199722, 0.19121716916561127, -0.03779640048742294, -0.09425349533557892, -0.07006599009037018, -0.02482546493411064, 0.7583805322647095, -0.7559090852737427, -0.00863863...
and they are not the same). Here we tell that when we'll have our result calculated from the body of the clause, we'll add `H` to it. Here `H` is `1` so we already know that the first element of `A` will be `1`. Ok ok, unification succeeded, great! We can proceed to the body of the clause. It just calls `halve/4` in a...
[ 0.09443793445825577, 0.3375839293003082, 0.6659346222877502, -0.43870699405670166, -0.23847119510173798, 0.05385516583919525, 0.3422398269176483, -0.5079823136329651, -0.318914532661438, -0.3274460732936859, -0.355084091424942, 0.483725368976593, -0.1837824434041977, -0.1311354637145996, ...
[], A, B). ``` with those values: `A = []` and `B = [2]`. So that's a good step, we now reached the "base case" of the recursion. We just have to build our result from bottom to top now. Remember when we called recursively our predicate `halve/4` a few steps above? We had already said that the first element of `A` w...
[ -0.08829526603221893, 0.08229551464319229, 0.24268057942390442, -0.12593014538288116, -0.1478206217288971, -0.016758520156145096, 0.42700061202049255, -0.4926088750362396, -0.20083071291446686, -0.24474231898784637, -0.1567065566778183, 0.42706599831581116, -0.08885659277439117, 0.07033199...
you might wonder, why does this work? Well, if you pay attention, you'll note that the second argument of `halve/4` is gone through twice as fast as the first one. `[H|T]` vs `[_, _|T2]`. That means that when we hit the end of the list with our second argument, the first one is still at the middle of our list. This way...
[ 0.2835384011268616, -0.048367660492658615, 0.16575662791728973, -0.09262144565582275, -0.23063097894191742, 0.15182720124721527, 0.09419327229261398, 0.08120590448379517, -0.23360934853553772, -0.6923514008522034, 0.22386588156223297, 0.5243590474128723, 0.167030930519104, 0.19274871051311...
I am working on [a website](http://www.apptec.net/) where I have to add ads below the menu but they should be aligned with the menu from the left. I tried to apply padding to the ads but its causing a problem when I increase or decrease the size of the page(`CTRL+` or `CTRL-`). Is there a way I can align it with the me...
[ 0.3665381371974945, 0.1805887222290039, 0.8708705902099609, -0.14759370684623718, -0.09019023180007935, 0.13932175934314728, 0.061243366450071335, -0.20999610424041748, -0.16750618815422058, -0.9595728516578674, 0.07881975173950195, 0.533968985080719, -0.42951634526252747, -0.2936823368072...
10px; position: relative; width: 960px; z-index: 15; ```
[ -0.4437236487865448, 0.04617515951395035, 0.6103423833847046, 0.0045990184880793095, -0.1671534776687622, 0.4458429515361786, 0.001967409159988165, 0.03368797525763512, -0.14764519035816193, -0.5202970504760742, -0.5623008012771606, 0.5319980978965759, 0.10139413177967072, 0.19861860573291...
I am designing a website, with a quote on every page. I am applying CSS to this quote to make it look the best it can and stand out. However I am having a couple of issues. ```css .quote { font-size: 18pt; padding-top: 50px; padding-bottom: 15px; text-align: center; line-height: 0.25; } .speech_mark_...
[ 0.5675204396247864, 0.2409415990114212, 0.624354898929596, -0.1232258677482605, -0.2343536615371704, 0.15231014788150787, -0.22136354446411133, -0.01855551265180111, 0.2666422128677368, -0.6869418621063232, 0.05229386314749718, 0.6031175255775452, -0.39918139576911926, -0.00673107011243701...
to be closer together, but when I apply a line height, to solve this, it pushes the speech marks up into the previous line. How do I solve this? You should set the `line-height` on the complete `.quote` element. Next you set `vertical-align` to `top` for the inner `.speech_mark_large` element. By changing the `line-hei...
[ 0.021686984226107597, 0.25968340039253235, 0.8314778208732605, -0.18277883529663086, -0.13976967334747314, 0.16871024668216705, 0.2712987959384918, -0.40043210983276367, 0.03200447931885719, -0.7247104644775391, -0.1952114850282669, 0.7066773772239685, 0.0196144450455904, -0.29647135734558...
padding-bottom:15px; text-align: center; line-height: 30px; } .speech_mark_large { color:#203D69; font-size:50pt; vertical-align: top; top: 5px; position: relative; } ``` See this updated [JSFiddle](http://jsfiddle.net/LxMYv/)
[ -0.5205352306365967, 0.037585362792015076, 0.9380831122398376, -0.2520783841609955, 0.08256696909666061, 0.4534854590892792, -0.07516349852085114, -0.07098769396543503, -0.2077893316745758, -0.8316361904144287, -0.4005753993988037, 0.5121617913246155, -0.02902291715145111, -0.1477548480033...
I'm trying to increase the size of a particular textview from within the app. I would like to do it via a menu item selection but am having problems. I have tried the following: ``` @Override public boolean onCreateOptionsMenu(Menu menu) { // Create an options menu for the activity super.onCreateOptionsMenu( ...
[ 0.3472742736339569, -0.3186200261116028, 1.0197217464447021, -0.2118603140115738, -0.04545078054070473, 0.31643033027648926, 0.4903704822063446, -0.4896532893180847, -0.2641494870185852, -0.8717229962348938, -0.12765273451805115, 0.9894232749938965, -0.5091496706008911, 0.01504242513328790...
item) { // handler.sendMessage( handler.obtainMessage() ); TextView tempTxt = getTextView(); tempTxt.setTextSize( 25 ); return true; } }); return true; } ``` But this is throwing a null pointer exception. I also tried just using intro.setTextS...
[ 0.13951368629932404, -0.2980210483074188, 0.573311448097229, -0.32728925347328186, -0.13400015234947205, 0.08054991066455841, 0.8294343948364258, -0.5311289429664612, -0.1028548926115036, -0.6532546281814575, -0.3537861108779907, 0.5304574370384216, -0.39490002393722534, 0.1861567199230194...
the same error. How can I access the textview from within this menu item? \*\*Update ``` //Method used to fetch the textview public TextView getTextView() { return intro; } ``` And the error from log cat: ``` AndroidRuntime FATAL EXCEPTION: main java.lang.NullPointerException at android.omni.Artist_activity$1...
[ -0.27465716004371643, -0.015594111755490303, 0.8510034084320068, -0.1998010277748108, -0.12909439206123352, 0.20284949243068695, 0.44452130794525146, -0.26376408338546753, 0.026816701516509056, -0.8957499861717224, -0.17685048282146454, 0.8370088934898376, -0.20687825977802277, -0.05000047...
<LinearLayout android:orientation = "vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id = "@+id/faq_Intro" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:text = "@string/faq_Intro" and...
[ -0.15355955064296722, -0.02828139066696167, 0.7273268103599548, -0.3909772038459778, 0.045187175273895264, 0.17452993988990784, 0.09869366139173508, -0.3221972584724426, -0.08804641664028168, -0.3306978940963745, -0.19083301723003387, 0.4412265717983246, -0.06517250090837479, 0.07503202557...
android:layout_height = "wrap_content" android:text = "@string/faq_Intro_Info" android:textSize = "10dp" android:typeface = "monospace" android:textStyle = "bold" /> </LinearLayout> </ScrollView> ``` Any thoughts? ***My Code Solution*** ``` @Override public boolean onCreateOptionsMenu(...
[ -0.03283528611063957, -0.06096704676747322, 0.7057116627693176, -0.21138910949230194, -0.053449131548404694, 0.44106245040893555, 0.38100674748420715, -0.561405599117279, -0.1977028101682663, -0.7081420421600342, -0.3617808222770691, 0.7974365949630737, -0.5221009254455566, -0.167763143777...
boolean onOptionsItemSelected(MenuItem item) { // Increase size menu item if( item.getItemId() == 1 ) { intro.setTextSize( myIntroSize += 5 ); introInfo.setTextSize( myIntroInfoSize += 5 ); } // Derease size menu item else if( item.getItemId() == 2 ) { intro.setText...
[ -0.11999960243701935, -0.1018161028623581, 0.3576122522354126, -0.47610554099082947, 0.3372209072113037, 0.4575190842151642, -0.08468770980834961, -0.16590066254138947, -0.21606294810771942, -0.5369900465011597, -0.6148809790611267, 0.6366391777992249, -0.39942899346351624, -0.021755333989...
} return true; } ``` The onCreate() method simply initialises the textview as before. Oh and the values of myIntroSize and myIntroInfoSize can be whatever you want. Please try the following code and tell me if it works. I don't know what is wrong, it's just based on a few hunches - ``` @Override public bool...
[ 0.23149272799491882, -0.1155223548412323, 0.6519864797592163, -0.2752813398838043, 0.1866501271724701, 0.1260390430688858, 0.247113898396492, -0.3214845359325409, -0.12371326237916946, -0.7206071615219116, -0.2817234992980957, 0.9989470839500427, -0.3655741214752197, -0.14975836873054504, ...
item) { if(item.getItemId() == 4){ TextView tempTxt = (TextView)findViewById( R.id.faq_intro); tempTxt.setTextSize( 25 ); } } ```
[ 0.014997622929513454, -0.15948541462421417, 0.7662885785102844, -0.22171491384506226, -0.06969382613897324, 0.1526065170764923, 0.4905607998371124, -0.6041785478591919, -0.13422885537147522, -0.6056337356567383, -0.6603259444236755, 0.6133891940116882, -0.28839796781539917, 0.2604539096355...
This is my first here in Stackoverflow. So I just want to ask question about Login Authentication using ADO.NET in C#. So here it goes. I stumbled upon reading an eBook called "Syngress - SQL Injection Attacks and Defenses" and I was a bit confused with the example given on the book. Here is the sample code from the...
[ -0.041325654834508896, 0.18418541550636292, 0.3632908761501312, 0.16113130748271942, -0.015887077897787094, -0.34795475006103516, 0.08995252102613449, -0.3645045757293701, -0.06264863163232803, -0.7349444627761841, 0.244950070977211, 0.5533522963523865, -0.3873791992664337, 0.0362887009978...
// name SqlDbType.NVarChar, // data type 16); // length cmd.Parameters.Add("@password", SqlDbType.NVarChar,
[ 0.09229937195777893, 0.16484344005584717, 0.4921652674674988, -0.03075396828353405, 0.15889284014701843, 0.024148497730493546, 0.17575904726982117, -0.31604066491127014, -0.23751772940158844, -0.2779810130596161, -0.20721429586410522, 0.5824815034866333, -0.16232788562774658, 0.32350271940...
16); cmd.Parameters.Value["@username"] = username; // set parameters cmd.Parameters.Value["@password"] = password; // to supplied values reader = cmd.ExecuteReader(); ``` I'm confused with the "cmd.Parameters.Value" part because when try to code there is no Parameters.Value given in my IDE.. So what I did is i'm usi...
[ -0.05993082374334335, 0.045249443501234055, 0.7133320569992065, -0.21314162015914917, 0.04483521357178688, 0.4077015817165375, 0.41417643427848816, -0.3639307916164398, -0.2053300440311432, -0.5875053405761719, -0.20146551728248596, 0.7360063791275024, -0.4596708416938782, -0.0432663373649...
"AND cashierpass = ?cashierpass"; MySqlCommand cmd = new MySqlCommand(sql, con); //Add parameters to SQL Query cmd.Parameters.Add("?cashieruser", MySqlDbType.VarChar, 35); cmd.Parameters.Add("?cashierpass", MySqlDbType.VarChar, 15); cmd.Parameters.AddWithValue("?cashieruser", cashieruser); cmd...
[ -0.16302205622196198, -0.20564505457878113, 0.9258288741111755, 0.06706840544939041, 0.11676996946334839, 0.6136367917060852, 0.4375692307949066, -0.35152217745780945, -0.15851198136806488, -0.3130911886692047, -0.20702683925628662, 0.7055349349975586, -0.2808539867401123, 0.31801491975784...
= true; } else IsAuth = false; } finally { con.Close(); } return IsAuth; } ``` So I got an Exception: "Parameter '?cashieruser' has already been define." So what Syntax will I use in order to set the parameters and supply the values? *By the way, I'm using MySQL whic...
[ 0.15694960951805115, -0.051800284534692764, 0.6236065626144409, -0.25142982602119446, 0.02443409524857998, 0.0016665197908878326, 0.25585126876831055, -0.048512641340494156, -0.016254208981990814, -0.5235807299613953, 0.08600033819675446, 0.7507067918777466, -0.2996208369731903, 0.09965075...
the collection on which use the index. The right syntax is: ``` cmd.Parameters["@username"].Value = username; // set parameters cmd.Parameters["@password"].Value = password; // to supplied values ``` In the second example you try to add the same parameters two times You could combine create and value setting...
[ 0.07005726546049118, 0.05632362887263298, 0.6671736836433411, 0.19141755998134613, 0.05068963021039963, 0.05167149752378464, 0.17904645204544067, -0.30107665061950684, -0.41121384501457214, -0.42530855536460876, -0.048562873154878616, 0.5220760107040405, -0.4362575113773346, 0.288416862487...
text there is no space between the first where condition and the second part of the query. (really there is no need to concatenate string here.)
[ -0.21219010651111603, 0.14883193373680115, 0.36525759100914, 0.1038900837302208, -0.3158572316169739, -0.07437539100646973, 0.31824642419815063, 0.2740563452243805, 0.09044794738292694, -0.37086448073387146, -0.5216891765594482, 0.5658312439918518, -0.44608715176582336, -0.4129772484302521...
I was wondering if this is possible. I was thinking of creating a server client application using java and jsp, but don't want to use online hosting services. Its my first time using jsp and I have little knowledge of java. So any advice will be greatly appreciated <http://www.manageengine.com/products/applications_ma...
[ 0.4720118045806885, 0.04769314453005791, 0.06706375628709793, 0.048573292791843414, 0.07861801236867905, 0.02733951434493065, 0.053626641631126404, 0.2973461151123047, -0.3858353793621063, -0.6960846185684204, 0.24437351524829865, 0.7777223587036133, -0.04793206602334976, -0.09144653379917...
and Servlet Tutorials.
[ 0.10661715269088745, 0.0423537902534008, -0.09138717502355576, 0.218092679977417, 0.17988444864749908, 0.0022664887364953756, 0.22965940833091736, -0.2257414311170578, -0.06001060828566551, -0.11143767088651657, -0.628047525882721, 0.35526537895202637, 0.20664101839065552, -0.3209142684936...
Is there a way to synchronize the entry values of a hashmap with a JComboBox. This means that as i add put more items to the hash map, the JComboBox is automatically aware that new items can be selected. You could create your own combobox model by extending `AbstractListModel<E>`, implementing `ComboBoxModel<E>`, `List...
[ 0.05133862420916557, -0.48920637369155884, 0.21570837497711182, 0.1817167103290558, -0.006939490791410208, 0.008657620288431644, -0.17466120421886444, -0.19181124866008759, -0.22184360027313232, -0.7466946244239807, 0.16780824959278107, 0.41013702750205994, -0.3028264343738556, -0.05305384...
In C, I can write an if-statement ``` if (firstInt & 1) ``` but when I try and do the same in Java, the compiler tells me "incompatible types" and says I need a `boolean` instead of an `int`. Is there any way to write that C code in Java? Any of the following should work for you: ``` if ((firstInt & 1) != 0) if ((f...
[ 0.019883329048752785, 0.08775868266820908, -0.0016826537903398275, -0.2732987403869629, -0.1690567135810852, -0.3548359274864197, 0.13586372137069702, -0.25495484471321106, -0.05404919385910034, -0.32502686977386475, -0.16303975880146027, 0.7141207456588745, -0.5782964825630188, -0.1916586...
I have a main property that has a structured property. I have a property defined inside the structured property and it needs access to the parent property's values. The syntax I tried was `self.key.parent().email`, but that didn't do the trick. How can I do this? ``` class Individual(ndb.Expando): name = ndb.Strin...
[ 0.15597772598266602, 0.04743306338787079, 0.08532989770174026, -0.0038459182251244783, 0.16506975889205933, -0.018073031678795815, 0.22146904468536377, -0.33914196491241455, -0.24687160551548004, -0.49172455072402954, -0.0013722419971600175, 0.3902435302734375, -0.11973026394844055, 0.2265...
return self.key.parent().email ``` Individual is not parent of IndividualTeam. Individual just include IndividualTeam only. You shold use Individual object access to email property.
[ -0.1449698954820633, 0.1368885487318039, 0.08741502463817596, -0.018996594473719597, -0.1433531939983368, -0.0831640437245369, 0.25254935026168823, 0.005668938159942627, -0.021696753799915314, -0.5284073352813721, -0.09716491401195526, 0.3045838475227356, -0.20949864387512207, 0.3111904263...
Really simple error when I'm creating some tables and it's probably just me being stupid but I'd rather post it here and have it sorted. I'm using Postgresql. (This table is just one of many but it's the one that's giving me a problem) ``` CREATE TABLE Ticket ( ID INTEGER NOT NULL PRIMARY KEY, Problem V...
[ -0.23497961461544037, -0.12208447605371475, 0.3247475326061249, 0.26388052105903625, 0.09847812354564667, 0.22301332652568817, 0.2894733250141144, 0.0770971029996872, -0.32865574955940247, -0.864952564239502, 0.12040220946073532, 0.3625321090221405, -0.4729568660259247, 0.2280866652727127,...
ProductID INTEGER NOT NULL, FOREIGN KEY (ProductID) REFERENCES Product(ID), FOREIGN KEY (CustomerID) REFERENCES Customer(ID), CHECK (status='open' OR 'closed' AND priority = 1 OR 2 OR 3) ); ``` The error: > ERROR: invalid input syntax for type boolean: "closed" Also if anybody can give me a better m...
[ -0.2655114233493805, 0.02709939144551754, 0.4046120345592499, -0.054746948182582855, 0.19266542792320251, 0.2042468786239624, -0.2095566838979721, -0.041798364371061325, 0.1487240046262741, -0.6032453179359436, -0.25136902928352356, 0.3932913541793823, -0.2628732919692993, 0.10154721140861...
(Priority = 1 OR Priority = 2 OR Priority = 3) ```
[ -0.09180815517902374, 0.1136162057518959, 0.16130666434764862, 0.1076650619506836, 0.05835407227277756, -0.008433385752141476, -0.10992704331874847, -0.09186466783285141, -0.4402046501636505, -0.40490737557411194, -0.3965783417224884, 0.24831326305866241, -0.14491115510463715, 0.2630821168...
I am interested in how to highlight the category in which I am present - with the "current" class in the template. The problem is compounded by the fact that the list of categories is not retrieved from the database WordPress (the same place, as I understand, they are stored?), that is - directly from the HTML... How t...
[ 0.352937787771225, 0.006231986451894045, 0.12942154705524445, -0.14069952070713043, -0.314482718706131, 0.1450459212064743, 0.03523113206028938, -0.1271020919084549, -0.2602114975452423, -0.6317943930625916, -0.10017009824514389, 0.27655062079429626, -0.1040734350681305, 0.2292815446853637...
<li class="blabla"> <a>3</a> </li> </ul> ``` code to be dynamic, for example when I go into the category of "2" to "li" will be added to the class "current": code: ```html <ul> <li class="blabla"> <a>1</a> </li> <li class="blabla current"> <a>2</a> </li> <li class="bl...
[ -0.4477860629558563, -0.390799880027771, 0.3244529366493225, -0.25002217292785645, -0.1989278793334961, 0.3711054027080536, 0.28867724537849426, -0.07995631545782089, -0.44281908869743347, -0.38934412598609924, -0.1292746514081955, 0.4322696030139923, -0.5406838059425354, 0.159442633390426...
not good at php and most importantly hard to read in English I sincerely apologize for the broken English with which I asked, "that" the question I'm not sure if I understand your question, but based on what you said, you can use css. Example ``` /* This will highlight your menu item gray if it has current in its cl...
[ 0.1414245367050171, 0.1532534509897232, -0.05973227694630623, 0.08834726363420486, -0.10830774158239365, -0.3185451030731201, 0.4506036043167114, 0.23508451879024506, -0.19366924464702606, -0.5873974561691284, -0.0012981704203411937, 0.5141893625259399, -0.16196759045124054, -0.09194625914...
current-cat. This only happens when you are in the category filter list view, so if you click on a post with that category, it will not say 'current-cat'. If you want something more specialized, then it's still possible. Tell me if the category widget will not work for you. --- Here is the way to do it in php if you...
[ -0.06426467001438141, -0.21815761923789978, 0.810338020324707, 0.1544012874364853, -0.14940854907035828, -0.3071078360080719, -0.05405048280954361, 0.06840880960226059, -0.4251031279563904, -0.4991045594215393, 0.038897544145584106, 0.44673454761505127, -0.29669609665870667, 0.147812828421...
want your categories to appear: ``` <?php echo wp_list_categories() ?> ``` That should create a basic html list of all the categories. It will also set the current-cat class if you are in the category archive view. If you want to override the current category behavior above, you can also force the menu to select a...
[ 0.08401468396186829, -0.031098198145627975, 0.5887145400047302, -0.21233732998371124, -0.3611012399196625, 0.0008890653843991458, 0.2675110697746277, -0.4776110351085663, -0.543243944644928, -0.4228391945362091, -0.10262112319469452, 0.4259675443172455, -0.5146933794021606, 0.0341444127261...
Is it possible to make this line of code valid? ``` description, content, state, city, datetime = makeTupleRightOrder(dictionary) ``` this makeTupleRightOrder would get the 'parameters' from the left side of the assignment, convert their names to strings and build a list getting their values from the dictionary. No....
[ 0.2943420708179474, -0.09187411516904831, 0.4713483154773712, 0.321453332901001, 0.19672955572605133, -0.30154475569725037, 0.13855941593647003, -0.2161150425672531, 0.17643575370311737, -0.2102459818124771, -0.1765398532152176, 0.4133504331111908, -0.3033140301704407, 0.22513771057128906,...
I'm trying to handle errors coming from my backend. The `handleMessage()` is called if an error occurs but the content is an instance of XmlMessage. I would like to change it to my own response - just set the response code and add some message. I haven't found any proper documentation which could tell me how to do thi...
[ 0.11051564663648605, -0.01891886070370674, 0.13671347498893738, -0.07416068762540817, -0.34762418270111084, -0.10680537670850754, 0.6068753004074097, -0.28477033972740173, 0.07392755895853043, -0.7188088893890381, 0.17354632914066315, 0.650380551815033, -0.47576379776000977, 0.000541658955...
public void handleMessage(Message message) throws Fault { Response response = Response .status(Response.Status.BAD_REQUEST) .entity("HOW TO GET A MESSAGE FROM AN EXCEPTION IN HERE???") .build(); message.getExchange().put(Response.class, response); } } ``` **con...
[ -0.1345779001712799, 0.09320122003555298, 0.125730961561203, -0.22304034233093262, -0.21625916659832, 0.1262691766023636, 0.5170997977256775, -0.32522982358932495, -0.2786293625831604, -0.49857059121131897, -0.18602588772773743, 0.3803139925003052, -0.4490560293197632, 0.3606244623661041, ...
</jaxrs:serviceBeans> <jaxrs:outFaultInterceptors> <ref bean="errorHandlerInterceptor" /> </jaxrs:outFaultInterceptors> </jaxrs:server> ``` And here's [the other piece of your puzzle](https://stackoverflow.com/a/10096951/517815). You're already using [JAX-RS](http://en.wikipedia.org/wiki/Java_API_for_R...
[ -0.20569874346256256, 0.3611384332180023, 0.280256062746048, -0.21272310614585876, -0.134896919131279, 0.04102684184908867, 0.3915107250213623, -0.40816962718963623, -0.22357109189033508, -0.5483115911483765, -0.10550883412361145, 0.4554154574871063, -0.5100142955780029, -0.010079196654260...
by the name of the exception, and FaultBean is replaced by the class name that implements the fault bean. The fault bean is a Java bean that contains the information of the fault and is used by the Web service client to know the cause for the fault. And there's your mapping. Simply specify implementations of the above...
[ 0.28890880942344666, 0.1596464365720749, 0.025246715173125267, 0.13204152882099152, -0.044015172868967056, -0.29591864347457886, 0.153751403093338, 0.09126242250204086, -0.18181683123111725, -0.6023394465446472, 0.11859417706727982, 0.16831068694591522, -0.24894943833351135, -0.07522399723...
I have this add-in for the sql server 2012 following everything the author mentioned but still stuck at this not really an error but not able to figure how to get past this [How to remove "Server name" items from history of SQL Server Management Studio](https://stackoverflow.com/questions/1059105/how-to-remove-server-...
[ -0.16650822758674622, 0.1584133356809616, 0.4358544945716858, -0.0794382244348526, -0.23428577184677124, -0.32779771089553833, 0.3572765588760376, -0.34059035778045654, -0.29319578409194946, -0.4586429297924042, 0.23494213819503784, 0.3391229808330536, -0.14704133570194244, 0.2271095663309...
the same issue and after reading [this article](http://satheeq.blogspot.ro/2013/01/how-to-write-sql-server-management.html) I found out that the solution is to simply remove the `/resetaddin ...` parameter. After doing this it worked fine for me.
[ -0.04250255972146988, 0.16015996038913727, 0.1720626801252365, -0.18286214768886566, 0.18689103424549103, -0.15705755352973938, 0.47045448422431946, 0.08548756688833237, -0.20576584339141846, -0.5446973443031311, 0.2393627017736435, 0.7048669457435608, -0.36491087079048157, 0.3303775787353...
I am retrieving data from a dynamically updating json. It contains an object of type X at some time, and an array of X type objects at some other time. I need a parent class Y that could work in any of the above situation. And also the object name: x remains the same. ``` class Y { public X x { get; set; } pub...
[ 0.10268465429544449, 0.09749023616313934, 0.11275838315486908, -0.053199563175439835, -0.09555716812610626, -0.14762216806411743, 0.3771929442882538, -0.09720350056886673, 0.17858298122882843, -0.5889931321144104, -0.3257014751434326, 0.4929340183734894, -0.38941866159439087, 0.31013643741...
there any possible way to do it?? No, that is completely impossible\*. No matter how good your encryption is, no matter how obfuscated your program is, people will recover the keys and break it. Not to mention the fact that to execute code, the computer has to have a copy of the unencrypted code; and when there's a cop...
[ 0.42477911710739136, 0.36830395460128784, 0.07553904503583908, 0.4621152877807617, 0.372842013835907, -0.15428279340267181, 0.5794501304626465, 0.10667671263217926, -0.25799664855003357, -0.29819726943969727, -0.3105620741844177, 0.5509285926818848, -0.11256950348615646, -0.027999334037303...
thing as irreversible obfuscation. Also, this would be really slow, as you could never compile it for fear of recovery of the contents from memory, and you'd have to create a new compiler, since any resemblance to native code would make it trivial to decipher.
[ 0.02661002241075039, 0.11432729661464691, -0.1842806041240692, 0.2741676867008209, -0.26927363872528076, -0.08277998119592667, 0.3152211010456085, 0.12168008834123611, -0.1297822892665863, -0.42852532863616943, 0.12529487907886505, 0.3547355532646179, -0.13084112107753754, 0.34896919131278...
> **Possible Duplicate:** > > [Convert Null to zero in access database](https://stackoverflow.com/questions/4705738/convert-null-to-zero-in-access-database) I'm using Microsoft Visual Web Developer 2010 Express to create ASP/VB.NET page to connect with a Microsoft office Access 07. Here's my issue: I have this pag...
[ -0.038448940962553024, 0.10546193271875381, 0.3088199198246002, 0.10202736407518387, -0.3597635328769684, -0.06900632381439209, 0.2599428594112396, 0.014308014884591103, -0.33642688393592834, -0.8042600154876709, 0.3389624357223511, 0.36947375535964966, -0.33991119265556335, 0.034166947007...
SelectFilterWomen(ByVal tTypeCode As Integer, ByVal bBrandCode As Integer, ByVal sSize As Integer) As DataTable Dim Command As New OleDbCommand() Command.CommandText = "QUERY;" Command.Connection = DB.Conn() Command.Parameters.AddWithValue("@tTypeCode", tTypeCode) Command.Parameters.AddWithValue("@b...
[ 0.22918497025966644, -0.5465199947357178, 0.6944169998168945, -0.27408817410469055, -0.12672875821590424, 0.42813634872436523, 0.21984514594078064, -0.8662381172180176, -0.18034876883029938, -0.6764287352561951, -0.24534432590007782, 0.6225365996360779, -0.5647547841072083, 0.0936790853738...
B.bBrandCode) AND S.sSize = Nz(@sSize, S.sSize) AND S.sSex = 'Female' AND S.sActive = 'Y'; ``` Thanks An Access query can use VBA functions (and user-defined functions) if and **only if** the Expression Service is available. And the Expression Service is only available from within an Access application instance. W...
[ 0.36112284660339355, 0.23420456051826477, 0.2934713065624237, -0.17400525510311127, -0.19164784252643585, 0.16696015000343323, 0.28793153166770935, -0.28631120920181274, -0.06624013185501099, -0.49860715866088867, -0.27778711915016174, 0.4599439203739166, -0.5648077726364136, 0.47612378001...
engine. So no matter what you try, any query which includes the VBA `Nz()` function will trigger that "*Undefined function 'Nz' in expression*" error. Access' db engine doesn't know what `Nz()` is without the Expression Service to help it. Look for an alternative to `Nz()`. In many situations, the [IIf Function](http...
[ -0.10536371171474457, -0.011189844459295273, 0.22858062386512756, -0.16957129538059235, -0.22022846341133118, -0.14430110156536102, 0.4480500817298889, -0.4842356741428375, 0.17880304157733917, -0.55007404088974, -0.18653680384159088, 0.7554107308387756, -0.5603351593017578, 0.287445306777...
`IIf()`. The db engine's `IIf()` "short circuts" when *truepart* is True so does not evaluate *falsepart* in that situation; VBA `IIf()` always evaluates both *truepart* and *falsepart* even when *truepart* is True.
[ -0.06837065517902374, -0.036349326372146606, 0.0379183255136013, -0.37868499755859375, -0.37600013613700867, -0.24008773267269135, 0.9210124611854553, -0.5297023057937622, 0.2643897831439972, -0.16167522966861725, -0.36080625653266907, 0.5198593735694885, -0.24583232402801514, 0.1712872684...
Recently I started out with developing in Zend Framework. I am using Zend Framework 1.11 since 2.0 is still in development and I can find more information on 1.11. I have followed multiple tutorials and am trying to combine them for a project I am working on. The thing is, and I just dont quite understand this. In th...
[ 0.5657166838645935, 0.16967155039310455, 0.08370210230350494, -0.17390447854995728, -0.31271645426750183, -0.41554298996925354, 0.09931939840316772, -0.3818044066429138, -0.07909980416297913, -0.8558980226516724, 0.1526849865913391, 0.6255768537521362, -0.4243571162223816, -0.0643549188971...
and running the `Frontcontroller`/`Zend_application` gives me the exact same result. I tried looking for the correct anwser but I cant find it.. Thanks in Advance **Zend\_Application**, ofcourse You can easily dispatch from the Frontcontroller, but it's the `old way` of dispatching ZF based apps. Zend\_Application ...
[ 0.11498748511075974, 0.1060195118188858, 0.381651371717453, 0.1325065642595291, 0.04794323444366455, -0.09774423390626907, 0.34389808773994446, -0.24070791900157928, -0.2410687357187271, -0.7918402552604675, -0.057345207780599594, 0.9077529907226562, -0.26550379395484924, -0.07759554684162...
I have a table `Page`. Every record in this table have a primary id. Now, I have a table Photos, with has: * `id` for each record. * `idPage` which refers to a page. I need a sort of key in the table `Photos` : so, when I add the same record on the table Photo with `id` and `idPage` twice, it doesn't add it twice. ...
[ 0.2667635381221771, 0.4673881530761719, 0.4562302529811859, 0.05657428130507469, -0.1680423617362976, -0.07668747007846832, -0.18948310613632202, -0.32185468077659607, -0.4851533770561218, -0.7988787293434143, 0.19835728406906128, 0.2046227604150772, -0.09329110383987427, 0.486880183219909...
your available bandwidth. from the [man](http://jimmyg.org/blog/2007/rsync-basics.html) pages, > blocks of data are sent, then if rsync determines the transfer was too fast, it will wait before sending the next data block. The result is an average transfer rate equaling the specified limit.) Take a look into [trickl...
[ 0.5099008679389954, -0.30191516876220703, 0.2126561850309372, 0.26693129539489746, -0.1947939246892929, 0.08195382356643677, -0.07326174527406693, 0.22958162426948547, -0.5427020192146301, -0.5269891023635864, 0.15562476217746735, 0.17536111176013947, -0.33434462547302246, 0.21069040894508...
I used a generator to create s ``` s= generator(n) ``` the generator yeilds (a,b) for n in a range(n). where a=[w,x] and b=[y,z] printing s using ``` for i in s: print i ``` this returns: ``` ([0.27704232355167768, 0.44459304959240675], [0.4387731877846518, 0.38108111684466683]) ([0.27704232355167768, 0.44...
[ -0.19405010342597961, 0.43614447116851807, 0.3536092936992645, -0.035004373639822006, -0.31522440910339355, 0.43100425601005554, 0.24888063967227936, -0.6768712401390076, -0.190751850605011, -0.42464953660964966, 0.1688835471868515, 0.5663196444511414, -0.2789260149002075, 0.28958463668823...
each row, so you can just join all of the elements with a tab, then join rows with newline.
[ 0.04717952758073807, -0.2531672418117523, 0.5734296441078186, 0.023077698424458504, -0.008957353420555592, 0.15450046956539154, 0.09001709520816803, -0.2124626338481903, -0.18255296349525452, -0.5587655305862427, -0.0070147886872291565, 0.08137790858745575, -0.31964975595474243, 0.08629138...
I have an object like this: ``` <div class="myObject">My Object</div> ``` I want to display a image ***in front of*** that `<div>`'s box, I thought code like this will work: ``` .myObject { background-image: url(foo.png); background-position: 0px -20px; } ``` But, unfortunately, this does not work. How c...
[ 0.11360503733158112, 0.12742534279823303, 0.3733256161212921, -0.14380598068237305, -0.10336640477180481, 0.011726119555532932, 0.2984759211540222, -0.044462502002716064, -0.07072515040636063, -0.7504050731658936, -0.08904346078634262, 0.3696177005767822, -0.4088168144226074, 0.15220990777...
an image to the left of an element, using pure CSS, the [`:before`](https://developer.mozilla.org/en/CSS/::before) pseudo-element can be used: Demo: <http://jsfiddle.net/2HEpn/> ---------------------------------- ``` .myObject:before { content: " "; background-image: url("/favicon.ico"); /* a 16x16 image, fo...
[ -0.033897291868925095, 0.031582556664943695, 0.4784046411514282, 0.06574136018753052, 0.10504928231239319, 0.199426531791687, -0.025827836245298386, -0.31088006496429443, -0.2835264801979065, -0.5573982000350952, -0.5188547968864441, 0.3542685806751251, -0.4959656000137329, -0.121142938733...
After I change the DataGridView cell's value programmatically, the source cannot be updated. What can I do? ``` datagridview1.DataSource = bindingsource1; datagridview1.Rows[0].Cells[0].Value = "1"; ``` mre solution is actually a good idea, but you may have issues if another repaint comes in (because you move the JFr...
[ 0.3384222686290741, -0.0416547916829586, 0.7328947186470032, -0.2698706090450287, 0.1556510478258133, 0.1583670973777771, 0.290995717048645, -0.2932700216770172, -0.09162598848342896, -1.0106958150863647, -0.04643911123275757, 0.7681129574775696, -0.08143886923789978, 0.10267365723848343, ...
super.paintComponent(g); if (draw) { Graphics2D g2=(Graphics2D)g ; Color[] c = {Color.BLUE, Color.RED, Color.GREEN, Color.YELLOW, Color.MAGENTA, Color.WHITE, Color.ORANGE, Color.PINK}; for(int i=0; i<8; ++i){
[ -0.051739081740379333, -0.3205633759498596, 0.6691430807113647, -0.4736644923686981, 0.028406744822859764, 0.40684592723846436, 0.3215438425540924, -0.21024560928344727, -0.13012339174747467, -0.6662014126777649, -0.4339304566383362, 0.6548168063163757, -0.397964745759964, -0.0827838853001...
g2.setColor(c[i]); int start_angle=i*45; g2.fillArc(mx-100, my-100, 200, 200, start_angle,45); } } public void setDraw(boolean draw) { this.draw = draw; repaint(); } } ``` And then you can just draw or not in your JPanel simlpy by calling mypanel.setDraw(bo...
[ 0.2560570538043976, -0.3191424608230591, 0.5759578943252563, -0.30138257145881653, 0.1755504012107849, 0.0879366397857666, -0.010217578150331974, -0.27472999691963196, -0.17547853291034698, -0.5836355686187744, -0.30770429968833923, 0.5306867957115173, -0.42055076360702515, -0.032227993011...
using the arcsynthesis opengl tutorial and I'm trying to build the unofficial sdk that the examples use, per the instructions here: <http://glsdk.sourceforge.net/docs/html/pg_build.html#page_build_libs> . (I'm using code::blocks and the gnu gcc compiler, and 0.4.0 of the unofficial sdk) It's not working, I get this err...
[ 0.1754428744316101, 0.2991446554660797, 0.24341492354869843, -0.03998993709683418, -0.3018840253353119, -0.15940840542316437, 0.45489633083343506, -0.04761320725083351, 0.1679832637310028, -0.5242201685905457, 0.12450864911079407, 0.6459811329841614, -0.3479737341403961, 0.1504196077585220...
not rolling my own or anything. > arcsynthesis opengl tutorial and I'm trying to build the unofficial sdk that the examples use, per the instructions here: <http://glsdk.sourceforge.net/docs/html/pg_build.html#page_build_libs> . The Tutorial distribution comes *with* the SDK; it's in the folder called `glsdk`. You are...
[ 0.400003045797348, 0.09406939893960953, 0.6152040362358093, -0.04425513744354248, -0.49916455149650574, -0.15175020694732666, 0.04547100514173508, 0.31560656428337097, -0.2165348082780838, -0.6601284742355347, -0.07454872876405716, 0.36637794971466064, 0.1643473505973816, 0.095908589661121...
I'm writing a web application using node.js & express to provide a real-time [aprs](https://en.wikipedia.org/wiki/Automatic_Packet_Reporting_System) stream to each user via ZeroMQ & socket.io. The concept is: the node.js app has the full aprs stream sent to it via subscribing to the ZeroMQ publisher. When a user visit...
[ 0.4072156548500061, 0.23330610990524292, 0.6409896016120911, -0.41772574186325073, -0.2251264452934265, 0.18059886991977692, 0.05008191242814064, 0.08682228624820709, -0.09259241819381714, -0.9194204211235046, 0.043568938970565796, 0.20544004440307617, -0.27713489532470703, -0.164531916379...
well, but it breaks when more than one person loads the site. The scope of the current viewed map becomes global and if you zoom/pan one map, it will start showing spots on the new location to both browsers. I need each socket.io session to retain its own scope and only receive the data from its unique scoped map boun...
[ 0.5868062376976013, 0.02290615811944008, 0.4942132234573364, -0.14473560452461243, 0.025472797453403473, -0.19782038033008575, 0.1178664043545723, 0.15978354215621948, -0.29273995757102966, -0.8991916179656982, -0.12554685771465302, 0.6502636075019836, -0.28805655241012573, 0.2768949866294...
can be found here: <https://github.com/gmcintire/aprs.bz> If you want to test the app locally, you should be able to clone my repo, run `npm install`, then `coffee app.coffee` to start. Just be aware it will start streaming the full APRS feed from my ZeroMQ server, which could be ~100KBytes/sec. app.coffee ----------...
[ 0.03300710767507553, 0.13109049201011658, 0.8480448126792908, -0.06558480113744736, -0.15142954885959625, 0.3458223044872284, 0.3025800883769989, -0.3616570234298706, -0.2912345230579376, -0.8113129734992981, -0.26035648584365845, 0.5155704617500305, -0.4541744291782379, -0.124368518590927...
if packet.latitude? and packet.longitude? and (mapbounds != "") insideMap = geolib.isPointInside latitude: packet.latitude longitude: packet.longitude , [ latitude: mapbounds._northEast.lat longitude: mapbounds._southWest.lng , latitude: mapbounds._northEast.lat longitude...
[ -0.9705284833908081, -0.2398005574941635, 0.922336995601654, 0.21797192096710205, 0.316329687833786, 0.06995654851198196, -0.15091575682163239, -0.13840822875499725, -0.25866347551345825, -0.9150114059448242, -0.24089735746383667, -0.23271296918392181, -0.07306317985057831, 0.1076408028602...
mapbounds._southWest.lng ] if insideMap console.log "\n--------------------------------------------------------\n" io.sockets.emit "packet", packet console.log packet app.configure -> app.set "views", __dirname + "/views" app.set "view engine", "jade" app.use express.bodyParser() app....
[ -0.3876059055328369, -0.0674053207039833, 0.784588634967804, -0.09038042277097702, -0.013810197822749615, 0.3152047395706177, 0.4438852071762085, -0.6303656697273254, -0.0918038934469223, -0.9053428769111633, -0.3519952893257141, 0.7199769616127014, -0.4600411057472229, -0.2585628926753998...
app.address().port, app.settings.env ``` I'm not a CS or ZMQ guy either but it sounds like you're broadcasting data to too many clients. `io.sockets.emit` will emit the event to all connected sockets. If you want to send data to only 1 socket, you should use `socket.emit` where `socket` has been set to a single socket...
[ 0.2330855131149292, 0.23050668835639954, 0.20603632926940918, -0.10175914317369461, -0.3083491325378418, 0.039040930569171906, 0.3384615480899811, 0.03566830977797508, -0.2203184962272644, -0.8591271042823792, -0.34628137946128845, 0.5984477996826172, -0.566611111164093, -0.021821903064846...
I just recently upgraded to `1.0.3`, and the routes.rb file in my config/routes folder seems to ignore all my custom routes. MY routes.rb ``` JollyStore::Application.routes.draw do # Mount Spree's routes mount Spree::Core::Engine, :at => '/' root :to => 'pages#index' namespace :admin do resources :wysiw...
[ 0.03831464797258377, 0.36778366565704346, 1.1433783769607544, -0.21581953763961792, -0.27898773550987244, 0.019356779754161835, 0.7786949276924133, -0.7066603899002075, -0.11713799834251404, -0.4989618957042694, -0.04090191051363945, 0.7882453203201294, -0.36370396614074707, -0.00565956626...
'delivery_shipping_policy/', :to => "pages#delivery_shipping_policy" end ``` If I run `bundle exec rake routes`, it returns all the approriate routes. But when I try to reach that specific page, I get : ``` undefined local variable or method `about_us_path' ``` Or the same error for every link that is within my c...
[ 0.17151623964309692, -0.008988885208964348, 0.6705489754676819, -0.05822371318936348, 0.08302685618400574, 0.26691505312919617, 0.3170737624168396, -0.01804044470191002, -0.3087359368801117, -0.6878668069839478, -0.06236502155661583, 0.4194875955581665, -0.38434135913848877, 0.276765733957...