text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
] }; postParams.attributes[0] = new Object(); postParams.attributes[0].name = "test"; postParams.attributes[0].description = "test"; postParams.attributes[0].attributeType = "test"; postParams.attributes[0].value = "test"; ``` Here's how I call the Controller method: ``` var actionURL = "@Url.Action("Sav...
[ -0.04023201763629913, -0.4648929834365845, 0.3987153172492981, 0.07060833275318146, 0.13233031332492828, 0.1298215240240097, 0.04266320541501045, -0.1536092758178711, -0.3600319027900696, -0.4192982017993927, -0.12036676704883575, 0.6591793894767761, -0.3565751910209656, 0.1766741871833801...
data: postParams ...... ``` On the Controller side I've declared a ViewModel as follows: ``` public class AttributeViewModel { public string name { get; set; } public string description { get; set; } public string attributeType { get; set; } public string value { get; set; } } ``` My Control...
[ -0.04214934632182121, -0.36624830961227417, 0.5217297673225403, 0.10174057632684708, 0.02873777039349079, 0.16693884134292603, -0.045477233827114105, 0.10167963802814484, -0.12508690357208252, -0.6828252077102661, -0.08875429630279541, 0.6402442455291748, -0.17930082976818085, 0.1505541503...
Not sure how to even start debugging this. You can try [json.net](http://json.codeplex.com/) library to solve your issue ``` [JsonFilter(Param = "attributes", JsonDataType = typeof(AttributeViewModel[]))] public JsonResult Save(AttributeViewModel[] attributes) ``` At client: ``` $.ajax({ type: 'POST', ...
[ -0.009826975874602795, -0.275466650724411, 0.5853287577629089, 0.16307547688484192, -0.03800597041845322, -0.22682005167007446, 0.26965105533599854, 0.007949716411530972, -0.4158594310283661, -0.7145616412162781, -0.018739286810159683, 0.6507633924484253, -0.1951870173215866, 0.08348258584...
success: function (data) { }, error: function (xhr, ajaxOptions, thrownError) { } }); ```
[ -0.26671919226646423, 0.06497132778167725, 0.06340649724006653, 0.2223445028066635, -0.04763980582356453, 0.1716773957014084, 0.4011595547199249, -0.001958847278729081, -0.06256455183029175, -0.4138944745063782, -0.40962985157966614, 0.7723618149757385, -0.14405687153339386, 0.107855960726...
I want to add some admin utilities to a little Web app, such as "Backup Database". The user will click on a button and the HTTP response will return immediately, although the potentially long-running process has been started in the background. In Java this would probably be implemented by spawning an independent threa...
[ 0.07514020800590515, -0.0393621064722538, 0.24241773784160614, -0.02784731239080429, -0.03441258892416954, -0.0916585698723793, 0.2584597170352936, 0.15312504768371582, -0.12377235293388367, -0.647704005241394, -0.08738436549901962, 0.7059422135353088, -0.28392690420150757, -0.073207505047...
doSomething(); response.writeHead(202, headers); response.end("doing something"); } function doSomething(){ // long-running operation } ``` I want the response to return immediately, leaving doSomething() running in the background. Ok, given the single-thread model of node that doesn't seem possible wi...
[ 0.08492156118154526, -0.1387251913547516, 0.4880102574825287, -0.23739565908908844, 0.14218543469905853, -0.11684761196374893, 0.4294162392616272, -0.20410184562206268, -0.10254073143005371, -0.6517467498779297, -0.05436442419886589, 0.7962087392807007, -0.3651607632637024, 0.1803133785724...
have `doSomething()` start an asynchronous operation. It'll return immediately, your `onRequest` will write the response back, and the client will get their "OK, I started" message. ``` function doSomething() { openDatabaseConnection(connectionString, function(conn) { // This is called some time later, onc...
[ 0.4824843406677246, -0.11584024131298065, 0.7413848638534546, -0.10554619133472443, 0.016902633011341095, -0.4759652614593506, 0.23917068541049957, -0.2870362401008606, -0.27235546708106995, -0.7292258739471436, -0.35295453667640686, 0.6728742122650146, -0.22554679214954376, 0.383959531784...
a callback that will run later. Behind the scenes, your database library is probably creating some threads for you, to make the async work the way it should, but your code doesn't need to worry about it; you just return right away, send the response to the client right away, and the asynchronous code keeps running asyn...
[ 0.15076427161693573, -0.3652310073375702, 0.41165515780448914, 0.34427550435066223, 0.012179248966276646, -0.1472996473312378, 0.13677743077278137, -0.062290992587804794, -0.3437025845050812, -0.42817050218582153, -0.19461195170879364, 0.8913715481758118, -0.36947101354599, -0.035604536533...
do here; you want to return immediately, which is exactly what your code will do.)
[ 0.3141788840293884, -0.17455433309078217, 0.24364250898361206, 0.06088842824101448, 0.3957224488258362, -0.15037645399570465, 0.36661577224731445, -0.23754887282848358, 0.0020723629277199507, -0.4678158760070801, -0.5788745284080505, 0.4154726266860962, -0.22875574231147766, -0.03410753607...
We can put our file say one.txt in txt folder available in tomcat->webapp folder. Now we can access this file in browser using url as below: ``` http://localhost:8080/txt/one.txt ``` I am new in glassfish server. Can anybody please tell me how to do same thing in glssfish server as in tomcat server? By definition a...
[ 0.7887753844261169, -0.11750047653913498, 0.5832663774490356, -0.11729267239570618, -0.055789295583963394, -0.29006919264793396, -0.05966430902481079, -0.35795000195503235, -0.39424991607666016, -0.688420832157135, 0.23136478662490845, 0.693888783454895, -0.025887856259942055, 0.0428273528...
I'm using Microsoft Moles to mock a method. This method call another method that invokes a PowerShell script and returns > Collection`<PSObject>` So I want to mock it to return a custom PSObject. It will have two properties, ID and Name. But when I try to use ``` PSObject obj = new PSObject(); obj.Members.Add(new...
[ -0.005891217850148678, 0.2805635333061218, 0.21453623473644257, 0.022319741547107697, -0.04420725256204605, 0.17014096677303314, 0.421537846326828, -0.2028205543756485, -0.4189673364162445, -0.8228998780250549, 0.006393704097718, 0.3859555423259735, -0.4884898066520691, 0.2362280637025833,...
System.Management.Automation.PSCodeProperty System.Management.Automation.PSNoteProperty System.Management.Automation.PSProperty System.Management.Automation.PSScriptProperty ``` Choose your class, and init it.
[ -0.1075344905257225, -0.15181352198123932, 0.12551391124725342, 0.29398733377456665, 0.0016823955811560154, 0.34664708375930786, 0.1910407394170761, 0.17674335837364197, -0.19745942950248718, -0.9551988244056702, -0.4140903055667877, -0.05229999125003815, -0.32046830654144287, 0.0115434275...
I'm currently trying to design a property system, to bind member variables of a few classes to a serializer, and I want to write the least possible code for each binding, and yet be flexible. I think getters/setters aren't really necessary most of the time, so they would only be used when they actually trigger somethi...
[ 0.5903865694999695, 0.026514321565628052, -0.06943009793758392, 0.19442228972911835, -0.2277507334947586, -0.1691773384809494, 0.39936140179634094, -0.2736833989620209, -0.10176140815019608, -0.36865484714508057, 0.13442471623420715, 0.5248203277587891, -0.5037744641304016, 0.2739346325397...
get binding info once for all instances of each class, and store that somewhere). AFAIK, Boost::bind doesn't allow that. Dangerous yes, immoral no. You can make the classes be friends of the serializer and hide the binding stuff for mortals to improve safety, then you have a set of related classes which are morally all...
[ 0.3211574852466583, -0.2576862871646881, 0.16411271691322327, 0.5635161995887756, -0.3291650116443634, -0.32606977224349976, 0.32271644473075867, -0.34911930561065674, -0.044691406190395355, -0.6131218075752258, -0.07709331810474396, 0.5143710970878601, -0.3327590525150299, 0.1029321402311...
of a prototype field as a `const char *` and subtracting from the address of the prototype also as a `const char *` you get the byte offset for the field. Of course, then you need to make sure you know what type the field is, so you can correctly manipulate the data given a byte offset (e.g. cast back to the correct p...
[ 0.07120596617460251, -0.07808428257703781, -0.17609168589115143, 0.19098611176013947, -0.09737375378608704, -0.24603474140167236, 0.043142713606357574, 0.1447276622056961, -0.04948010668158531, -0.5944433212280273, -0.059685494750738144, 0.27840229868888855, -0.20577459037303925, 0.2130989...
I have a Service class like this: ``` @Service public class CompanyServiceImpl implements CompanyService { @Autowired private CompanyDAO companyDAO; @Transactional public void addOrUpdateCompany(Company company) { companyDAO.addOrUpdateCompany(company); } } ``` Normally, I can have an ...
[ 0.15676310658454895, 0.27691909670829773, 0.3712784945964813, -0.2085386961698532, 0.10171055048704147, -0.03816986083984375, 0.30723410844802856, -0.050861187279224396, 0.03711734339594841, -0.4287417531013489, -0.34795674681663513, 0.40087682008743286, -0.17350032925605774, 0.25394383072...
public void setApplicationContext(ApplicationContext applicationContext) { CONTEXT = applicationContext; } public static ApplicationContext getContext() { return CONTEXT; } } ``` And then ``` CompanyService service = ContextHolder.getContext().getBean(CompanyService.class); ```
[ 0.018137624487280846, 0.021572545170783997, 0.5911846160888672, -0.030391685664653778, 0.3219195306301117, -0.09693673253059387, 0.22403086721897125, 0.040826622396707535, 0.034068167209625244, -0.5257017612457275, -0.6472962498664856, 0.6540188789367676, -0.5365393757820129, 0.28052026033...
After installing `Eclipse e4 Tools` in my Eclipse 4.1.2 from [update site](http://download.eclipse.org/e4/downloads/drops/S-0.12M6-201203151300/repository/). I am getting error when launching the eclipse.exe "`An error has occurred. See the log file <my_workspace_path>\.metadata\.log"`. And the content of `.log` file a...
[ -0.09833447635173798, 0.3387874960899353, 0.4524056613445282, -0.11881871521472931, -0.3796674609184265, 0.018688423559069633, 0.49520280957221985, -0.5650715827941895, -0.12207842618227005, -0.37336188554763794, -0.2547502815723419, 0.681643009185791, -0.20136676728725433, -0.066624417901...
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:61) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53) at org.eclipse.e4.ui.internal.workbench.E4Workbench.processHierarchy(E4Workben...
[ 0.07303070276975632, 0.2276870757341385, 0.5233312845230103, 0.0065346527844667435, -0.3039076030254364, 0.5121301412582397, 0.3160091042518616, -0.5023778676986694, -0.4665971100330353, -0.9041202068328857, -0.4221749007701874, 0.2790668308734894, -0.08078426122665405, 0.06086791679263115...
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) ``` I also tried the `eclipse.exe -clean` to launch it but getting same error. Probably using the wrong update site had caus...
[ 0.3779628574848175, 0.11460340768098831, 0.25150224566459656, -0.13089914619922638, -0.5007123351097107, 0.05825212597846985, 0.41282176971435547, -0.1899455338716507, 0.032772742211818695, -0.8153557181358337, -0.039899397641420364, 0.7560579776763916, -0.37649738788604736, -0.15340559184...
I need to unzip en zip some files in my application using Shell32. Right now, I use `srcFolder.CopyHere(destFolder.Items())` to achieve this. However, my next line of code requires the newly made ZIP-file. But since the `CopyHere` method is Async, how can I check when it in finished? Right now I use a `Thread.Sleep` fo...
[ 0.5656450390815735, 0.08189187198877335, 0.525450587272644, 0.008162490092217922, 0.1311543732881546, -0.25082528591156006, 0.28533464670181274, -0.1063300371170044, -0.4200291633605957, -0.9241774678230286, -0.027467072010040283, 0.5165378451347351, -0.022240672260522842, 0.30198302865028...
While FileInUse(FILEPATH & "BudgetJaarOverzichtSMB.zip") Thread.Sleep(100) End While Private Function FileInUse(ByVal FilePath As String) As Boolean Try FileOpen(1, FilePath, OpenMode.Input) FileClose(1) Return False ' File not in
[ -0.012089824303984642, -0.38008618354797363, 0.3090863525867462, -0.20394359529018402, 0.025745803490281105, 0.18988671898841858, 0.4036146402359009, -0.021063897758722305, -0.3490431010723114, -0.6129888892173767, -0.35730984807014465, 0.33909091353416443, -0.4278546869754791, 0.125871002...
use Catch ex As Exception Return True ' File in use End Try End Function ``` Not really perfect but will lose less time than with my first approach.
[ -0.14325861632823944, -0.2132515013217926, 0.3187636137008667, -0.2021629363298416, -0.014332788996398449, -0.43022575974464417, 0.6145350337028503, -0.19559137523174286, 0.37000420689582825, -0.25880709290504456, -0.25060325860977173, 0.5501677989959717, -0.32659828662872314, -0.069139406...
I use this for click event of button ``` $(document).on("click", "#feed_show_more_button", function() { var a = $("#feed_show_more_button").attr("name"); show_more(a); }); ``` Then after button dynamically created i want to use this as a fake click ``` $("#feed_show_more_button").click(); ``` but it does...
[ 0.11651510745286942, -0.1269884556531906, 0.512778639793396, -0.14932094514369965, -0.06573031842708588, -0.09535462409257889, 0.18690168857574463, 0.02442404255270958, -0.32748907804489136, -0.6234492063522339, 0.2229275107383728, 0.7567976713180542, -0.5619248747825623, 0.134736672043800...
Thread.Sleep(100) End While Private Function FileInUse(ByVal FilePath As String) As Boolean Try FileOpen(1, FilePath, OpenMode.Input) FileClose(1) Return False ' File not in use Catch ex As Exception
[ 0.2001713663339615, -0.3813067078590393, 0.3039998710155487, -0.2468944489955902, 0.11981739848852158, 0.01502890232950449, 0.29369765520095825, -0.11292146891355515, -0.2277406007051468, -0.4875428080558777, -0.32157304883003235, 0.2599145174026489, -0.5177817344665527, 0.3039144873619079...
Return True ' File in use End Try End Function ``` Not really perfect but will lose less time than with my first approach.
[ -0.137630432844162, 0.09210479259490967, 0.5816447734832764, -0.255710631608963, 0.06432706117630005, -0.32674676179885864, 0.6854545474052429, -0.16933317482471466, 0.6432571411132812, -0.4124075472354889, -0.24761538207530975, 0.6985464692115784, -0.17242492735385895, 0.02695555612444877...
I am new to PHP and trying to learn it by creating a database of all my jobs (I'm a freelance designer). I have created the code below to generate a table to display all jobs where the description contains logo which works fine and generates several rows.... ``` <?php $logojobs = mysql_query("SELECT * FROM hlgd_proj...
[ 0.6317414045333862, 0.3286082148551941, 0.4721749722957611, -0.4054134488105774, -0.20658954977989197, -0.04170405492186546, 0.13348886370658875, -0.260291188955307, -0.14602451026439667, -0.8893072009086609, 0.24817053973674774, 0.2628887891769409, -0.03347811475396156, 0.0003696109633892...
<th>Start</th> <th colspan='2'>Codes</th> <th>Client</th> <th>Description</th> <th>Fee</th> <th>Contact</th> <th colspan='2'>Invoice</th> <th>Paid</th> </tr>"; while ($logojob = mysql_fetch_array($logojobs)) { echo "<tr> <td class='id'>" . $logojob['id'] . "</td> ...
[ 0.21884062886238098, 0.02181347832083702, 0.6038824915885925, -0.1255558282136917, 0.02870984934270382, 0.13560882210731506, 0.07794777303934097, -0.4750570058822632, -0.09721460938453674, -0.31369155645370483, -0.3705250024795532, 0.6362792253494263, -0.3487963080406189, -0.19304013252258...
<td>" . $logojob['date_start'] . "</td> <td>" . $logojob['code_lead'] . "</td> <td>" . $logojob['code_hlgd'] . "</td> <td>" . $logojob['client'] . "</td> <td>" . $logojob['description'] . "</td> <td>&pound;" . $logojob['fee'] . "</td> <td>" . $logojob['contact'] . "</td> ...
[ 0.45213809609413147, 0.36175793409347534, 0.6505228281021118, -0.4888331890106201, -0.035507768392562866, 0.13015033304691315, -0.03934277966618538, -0.1722860485315323, -0.1789437234401703, -0.47577744722366333, -0.43393176794052124, 0.3452907204627991, -0.22767497599124908, 0.01043656747...
<td>" . $logojob['date_paid'] . "</td> </tr>"; } echo "</table>"; } ?> ``` However I would like to be able to generate reports for lots of different things and so would like to create a function to generate the table and pass the relevant arguments each time. I've done this as follo...
[ 0.7479057908058167, 0.30520007014274597, 0.4842616319656372, -0.22257843613624573, -0.006543449126183987, -0.10873711854219437, -0.12473089247941971, -0.18911957740783691, -0.1735887974500656, -0.2300829291343689, 0.11751919239759445, 0.37826091051101685, -0.3897256553173065, 0.02967580780...
me where I'm going wrong or how to better put the code above into a function? ``` <?php function report_bytype($title,$job_set,$job_name) { $reporthead = "<h1>$title</h1> <table id='report'> <tr> <th></th> <th>Status</th> <th>Lead</th> <th>Start</th> <th colspan='2'>Codes</th> ...
[ 0.272175133228302, 0.16148649156093597, 0.4291481375694275, -0.01807880401611328, 0.15770795941352844, 0.03936382383108139, 0.3758460283279419, -0.313383013010025, 0.012127048335969448, -0.4100281298160553, 0.04422492906451225, 0.5696563124656677, -0.06755644828081131, 0.28921881318092346,...
$reportrows = " <tr> <td class='id'>" . $job_name['id'] . "</td> <td>" . $job_name['status_id'] . "</td> <td>" . $job_name['lead_id'] . "</td> <td>" . $job_name['date_start'] . "</td> <td>" . $job_name['code_lead'] . "</td> <td>" . $job_name['code_hlgd'] . "</td> ...
[ -0.08021765202283859, 0.1587720513343811, 0.17547975480556488, -0.48067736625671387, -0.18832159042358398, -0.0016293093794956803, 0.1403343677520752, -0.35901251435279846, -0.13720287382602692, -0.5684313774108887, -0.34606537222862244, 0.3923523724079132, -0.09691684693098068, 0.35148677...
<td>" . $job_name['description'] . "</td> <td>&pound;" . $job_name['fee'] . "</td> <td>" . $job_name['contact'] . "</td> <td>" . $job_name['invoice'] . "</td> <td>" . $job_name['date_inv'] . "</td> <td>" . $job_name['date_paid'] . "</td> </tr>"; }
[ 0.22577372193336487, 0.10153278708457947, 0.36535894870758057, -0.4064211845397949, 0.2775512933731079, 0.34877827763557434, 0.06315130740404129, -0.28746774792671204, -0.1609622985124588, -0.2415224313735962, -0.3826170563697815, 0.5239976048469543, -0.10090433806180954, 0.064530782401561...
$reportfoot = "</table>"; $reporttable = $reporthead . $reportrows . $reportfoot; echo $reporttable; return $reporttable; } ?> <?php if($report == 'logo') { report_bytype("logo",$logojobs,$logojob); } if($report == 'stationery') { report_bytype("stationery",$stationeryjobs,$stationeryjob); } ?> ``` Many than...
[ 0.32984817028045654, 0.39239218831062317, 0.48158150911331177, -0.11584866791963577, -0.14189916849136353, -0.07766995579004288, 0.30635157227516174, -0.551939070224762, -0.16830109059810638, -0.18972070515155792, -0.05520305037498474, 0.3431369960308075, -0.28584715723991394, 0.1580071300...
method. If you wanted it to work both ways, you'd have to either declare `private_b` as a module method as well, or simply add the line `extend self` to `MyModule`, so that all it's methods would become module methods.
[ 0.09548022598028183, -0.19125227630138397, 0.1355246603488922, -0.14859312772750854, 0.048188526183366776, -0.20726732909679413, 0.1403658092021942, -0.1033305674791336, -0.07964639365673065, -0.1800706833600998, -0.12812644243240356, 0.4425366520881653, -0.45414888858795166, 0.08561383932...
I successfully put my private key at a place where git finds it when it connects to github. (like this <https://serverfault.com/questions/194567/how-to-i-tell-git-for-windows-where-to-find-my-private-rsa-key/198691#198691> ) But when I try to sign a tag, this default magic seems not to apply. The brilliant [git commun...
[ 0.13388670980930328, 0.22210398316383362, 0.4883999228477478, -0.046947017312049866, 0.040755003690719604, -0.2783909738063812, 0.5319381952285767, -0.3038773834705353, -0.16099034249782562, -0.419787734746933, -0.15034382045269012, 0.5536093711853027, -0.09408407658338547, 0.1204553321003...
connection and identify yourself to the server. The GPG works in general similar how ever there is a kind of "profile" linked to your public gpg key. To get started on with GPG on windows [gpg3win](http://www.gpg4win.org/ "gpg4win") is a good place to look. Also the Wikipedia entries on [GPG](http://en.wikipedia.org/w...
[ 0.026733068749308586, 0.08088874816894531, 0.7649841904640198, 0.11658190935850143, -0.44819432497024536, -0.3134591281414032, 0.0429353229701519, 0.14172311127185822, -0.5976863503456116, -0.6830782294273376, 0.05914285033941269, 0.2977350950241089, -0.030896469950675964, 0.28616419434547...
How to add libgdx rendered view into current android xml layout e.g LinearLayout> ``` <com.libgdxView.obj android:id="@+id/sheet" android:layout_width="1152dp" android:layout_height="576dp" android:layout_centerInParent="true" /> ``` /LinearLayo...
[ -0.1812165081501007, -0.24965249001979828, 0.8741059303283691, 0.12206584215164185, -0.2554890215396881, 0.04286744073033333, 0.02998029626905918, -0.5700615048408508, 0.009224643930792809, -0.9414474368095398, 0.20815418660640717, 0.40873512625694275, 0.07189798355102539, -0.0020107969176...
detection with posterization of the image to give a good cartoon-like feel. As implemented in this framework, it's fast enough to run on realtime video from the iPhone's camera, and is probably at least an order of magnitude faster than something similar in ImageMagick. My framework's also a little easier to integrate ...
[ 0.15598896145820618, -0.2586292326450348, 0.387045294046402, 0.09856659919023514, -0.10705768316984177, 0.11053518950939178, 0.28661075234413147, -0.40325745940208435, -0.03132212162017822, -0.5946025252342224, 0.19948725402355194, 0.6254063248634338, -0.28886815905570984, -0.3569121956825...
I have an android application that has a button which I want to have black text and background while it is disabled and then a green background with white writing when it is enabled. Ive got the enabling and disabling working but if I change the colors the button stays the same regardless of its state. I've read that...
[ 0.07168082147836685, -0.2193199247121811, 0.46256572008132935, -0.17587178945541382, 0.2629145681858063, 0.27297088503837585, 0.3973120450973511, -0.2564156949520111, -0.34872207045555115, -0.5992556214332581, -0.21822097897529602, 0.706382691860199, -0.41149845719337463, -0.04395607858896...
android:state_enabled="true" android.textColor ="@android:color/white" android:drawable="@color/green" /> ``` continuebutton in layout xml file: ``` android:id="@+id/continueButton" android:layout_width="200dp" android:layout_height="55dp" android:layout_gravity="center" android:paddingTop="10dp" an...
[ -0.04956084117293358, -0.12290693819522858, 0.8638914227485657, -0.4050883650779724, 0.4826529026031494, 0.02790132351219654, 0.21812206506729126, -0.1208190843462944, -0.3615821301937103, -0.6285688877105713, -0.2934131622314453, 0.6726942658424377, -0.1579168289899826, -0.171988233923912...
color? Any ideas? You can pass `this` as context (second parameter) to jQuery function to search only inside current element. ``` $('form').submit(function(e){ e.preventDefault(); $('input, textarea', this).each(function(){ alert('a'); // Alerts on every input inside this form. }); }); ```
[ 0.2916005849838257, -0.26273202896118164, 0.27630722522735596, -0.13631537556648254, 0.40475574135780334, 0.32258856296539307, 0.05036426708102226, -0.2696809470653534, -0.06468711048364639, -0.7693762183189392, -0.43063774704933167, 0.4478975832462311, -0.544895350933075, -0.1560832560062...
I have two table "TABLE\_EXAM" and "TABLE\_QUESTION". I fetch record using following code but it show only one record. I need to show all record but one by one after clicking on *Next* button.Please give me some reference or hint. I don't understand how to fetch record one by one by clicking on Next Button. Th...
[ -0.04283316433429718, 0.19332687556743622, 0.4937264621257782, -0.030182383954524994, -0.15974023938179016, 0.11558816581964493, 0.22863738238811493, -0.4454854726791382, 0.013615459203720093, -0.9650096297264099, 0.0437413714826107, 0.5515206456184387, -0.050222523510456085, 0.08412640541...
for (final ObjectiveWiseQuestion cn : QuestionWiseProfile) { db=new MySQLiteHelper(getBaseContext()); db.getWritableDatabase(); //db.close(); txtQuestion.setText(cn.getQuestion()); optionA.setText(cn.getOptionA()); optionB.setText(cn.ge...
[ -0.3773360550403595, -0.1721927374601364, 0.4248005151748657, -0.08838651329278946, 0.009095833636820316, 0.28723636269569397, 0.2984639108181, -0.44791924953460693, 0.1479721963405609, -0.3706747889518738, -0.48307016491889954, 0.557953953742981, -0.31715840101242065, -0.05925646424293518...
optionC.setText(cn.getOptionC()); optionD.setText(cn.getOptionD()); correctOption=cn.getCorrectOption(); } } btnNext.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {
[ -0.35758697986602783, -0.6351364254951477, 0.9158808588981628, -0.26031389832496643, 0.28165102005004883, 0.4106891453266144, 0.4180397689342499, -0.2790418863296509, -0.42963090538978577, -0.4842425584793091, -0.20434676110744476, 0.5896173715591431, -0.23675043880939484, 0.17361202836036...
try { db=new MySQLiteHelper(getBaseContext()); db.getWritableDatabase(); owq.getCorrectAnswer(); owq.setExamId(examId); //owq.getExamId();
[ -0.08319386839866638, -0.007034761365503073, 0.46845585107803345, -0.21108320355415344, 0.09518712013959885, 0.06632375717163086, 0.7556793689727783, -0.5923138856887817, 0.42906007170677185, -0.8527536988258362, -0.4414973855018616, 0.4335152208805084, -0.44268104434013367, 0.173051118850...
owq.getQuestionId(); db.addResultDetails(owq); db.close(); } catch(Exception e) { e.printStackTrace();
[ 0.020282097160816193, -0.1236465647816658, 0.4139508903026581, -0.35735517740249634, 0.15303939580917358, -0.12278345972299576, 0.49521851539611816, -0.6733682155609131, 0.2178255319595337, -0.38972118496894836, -0.4320158064365387, 0.5321027636528015, -0.4405101239681244, -0.1105925738811...
} } }); ``` MySQLiteHelper.java ``` public List<ObjectiveWiseQuestion> getOneQuestion(int examId) { // long index = 0; List<ObjectiveWiseQuestion>LocwiseProfileList=new ArrayList<ObjectiveWiseQuestion>(); db = getReadableDatabase(); String selectQuery=("select * from question where ex...
[ -0.40838247537612915, -0.17774832248687744, 0.6827114820480347, -0.35200726985931396, 0.11984833329916, 0.11077172309160233, 0.2006501853466034, -0.7404651641845703, 0.1493096500635147, -0.4846096634864807, -0.5034331679344177, 0.7000095248222351, -0.3266935646533966, 0.01362522691488266, ...
ObjectiveWiseQuestion owq= new ObjectiveWiseQuestion(); owq.setQuestionId(cursor.getInt(0)); owq.setExamId(cursor.getInt(1)); owq.setQuestion(cursor.getString(2)); owq.setOptionA(cursor.getString(3)); owq.setOptionB(cursor.getString(4)); owq.setOp...
[ -0.4165460765361786, -0.21414002776145935, 1.005769968032837, -0.09414345026016235, -0.25305867195129395, 0.24336211383342743, 0.3449459969997406, -0.7111337184906006, 0.0676305964589119, -0.5528478622436523, -0.4402236044406891, 0.6522495150566101, -0.7859903573989868, -0.4118352830410003...
LocwiseProfileList.add(owq); } while(cursor.moveToNext()); db.close(); } return LocwiseProfileList; } ``` how to do that? Finally I got answer... I count number of record and only decrement it by 1. If i have 10 record then i set counter=10 and simply decrement it by 1 on each next click. ...
[ 0.016288699582219124, 0.024239448830485344, 0.6136749386787415, -0.25570547580718994, 0.04188604652881622, 0.19929662346839905, 0.24691800773143768, -0.8034183382987976, -0.045746590942144394, -0.6312437057495117, 0.007944207638502121, 0.7512930035591125, -0.27828606963157654, -0.120901189...
db = getWritableDatabase(); String selectQuery=("select * from question where exam_id ='" + examId + "' and question_id ='" + questionId +"'" ); Cursor cursor = db.rawQuery(selectQuery, null); if (cursor.moveToFirst()) { do { ObjectiveWiseQuestion owq= new ObjectiveWiseQuesti...
[ -0.34095633029937744, -0.18201757967472076, 0.54193115234375, -0.44006359577178955, -0.4225320518016815, 0.2612963914871216, 0.5054000616073608, -0.8858367204666138, 0.48694872856140137, -0.571768581867218, -0.28436022996902466, 0.5721345543861389, -0.3290157616138458, 0.08556163311004639,...
owq.setQuestion(cursor.getString(2)); owq.setOptionA(cursor.getString(3)); owq.setOptionB(cursor.getString(4)); owq.setOptionC(cursor.getString(5)); owq.setOptionD(cursor.getString(6)); owq.setCorrectOption(cursor.getString(7)); LocwiseProfileList...
[ -0.32542362809181213, -0.22715812921524048, 0.8829380869865417, -0.28639256954193115, 0.09927641600370407, 0.28653576970100403, 0.18083246052265167, -0.6055747866630554, -0.0736173614859581, -0.6449902057647705, -0.8087921738624573, 0.5173153281211853, -0.6539016366004944, -0.2114123106002...
db.close(); } return LocwiseProfileList; } ```
[ -0.01948738470673561, 0.051471855491399765, 0.25777506828308105, -0.46752288937568665, -0.15497003495693207, -0.0204915851354599, 0.38600921630859375, -0.4753096401691437, 0.3910311758518219, -0.5357706546783447, -0.26187965273857117, 0.5561816096305847, -0.39746594429016113, 0.29113233089...
> **Possible Duplicate:** > > [Call to a member function on a non-object](https://stackoverflow.com/questions/54566/call-to-a-member-function-on-a-non-object) What is wrong with this line of code? `$this->Post->saveField('slug', $this->Text->truncate(Inflector::slug($post['Post']['title']),25,array('exact'=>false,...
[ 0.09063698351383209, 0.025018181651830673, 0.4671024978160858, 0.09467093646526337, 0.2798651158809662, -0.1570400595664978, 0.22086696326732635, -0.2661385238170624, -0.29233258962631226, -0.4259573817253113, 0.13732938468456268, 0.41809824109077454, -0.4536004960536957, 0.358304411172866...
component, you should add it to the `components` array. You can use the `String` class if you are looking for the `truncate` method that TextHelper provides. See the example given for `String::truncate` here: <http://book.cakephp.org/2.0/en/core-utility-libraries/string.html>
[ 0.20812876522541046, -0.4694811999797821, 0.3237685561180115, 0.1719580739736557, -0.016944600269198418, -0.04153195396065712, 0.0733443945646286, -0.1290106177330017, -0.20556087791919708, -0.32793447375297546, -0.198297381401062, 0.43926867842674255, -0.23526158928871155, 0.1201781556010...
I have some work to do in the another thread (by doingAsyncTask). Work start when user click on button. But at the same time only one object of doingAsyncTask must do this work, i meen if doingAsyncTask is working, then click on button must not create a new object of doingAsyncTask and execute it, it must wait until w...
[ 0.49121445417404175, -0.40107256174087524, 0.6144712567329407, -0.010840273462235928, 0.40088242292404175, -0.2961874306201935, 0.31162428855895996, -0.12335409224033356, -0.28800129890441895, -0.6882995367050171, -0.11856123059988022, 0.40446341037750244, -0.4389306306838989, 0.0053342613...
public void onclickButton(View view) { new doingAsyncTask().execute(); } public class doingAsyncTask extends AsyncTask<Void, Void, Void> { protected Void doInBackground(Void... unused) { //doing something return(null); } protected void onProgressUpdate() { } protect...
[ 0.43951651453971863, -0.10429989546537399, 0.45326700806617737, -0.20886391401290894, 0.2447260320186615, 0.24284273386001587, 0.37628793716430664, -0.12833082675933838, -0.22380642592906952, -0.3689013123512268, -0.16801844537258148, 0.23174242675304413, -0.3129332959651947, 0.07254845649...
if(task.getStatus() == AsyncTask.Status.FINISHED) task=new ProgressBarShow(); if(task.getStatus() == AsyncTask.Status.PENDING){ //task=new ProgressBarShow(); task.execute(); } ``` Check this [AsyncTask.Status](http://developer.android.com/reference/android/os/AsyncTa...
[ -0.12324594706296921, -0.13005326688289642, 0.6002127528190613, -0.43089762330055237, 0.27730274200439453, 0.5248701572418213, 0.35905954241752625, -0.2744024395942688, -0.41506364941596985, -0.6694847345352173, -0.44104087352752686, 0.363116055727005, -0.25031140446662903, 0.2071924358606...
RUNNING Indicates that the task is running. ``` **code:** ``` if (doingAsyncTask().getStatus().equals(AsyncTask.Status.FINISHED)) doingAsyncTask().execute(); else ``` **EDIT:** ``` public class SearchActivity extends Activity { doingAsyncTask asyncTask; public void onCreate(Bundle savedInstanc...
[ 0.12530606985092163, -0.5581896901130676, 0.7180781364440918, -0.15105144679546356, 0.31920263171195984, 0.06950847059488297, 0.4292483627796173, -0.32384613156318665, -0.35492026805877686, -0.4771936535835266, -0.2941040098667145, 0.48560503125190735, -0.5350785851478577, -0.0061715315096...
ayncTask.getStatus().equals(AsyncTask.Status.PENDING)) { asyncTask.execute(); } else { // do something } } // ... } ```
[ -0.005091893952339888, -0.10156330466270447, 0.39107751846313477, -0.06093878298997879, 0.17033687233924866, -0.06450295448303223, 0.5311591625213623, -0.13636860251426697, -0.13743363320827484, -0.4489673674106598, -0.33246567845344543, 0.4470183849334717, -0.5423051118850708, -0.02315955...
useing asp.net webservice with method : ``` [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public List<MyObject> GetList() { ....return new List of MyObject{ x = .., y = .. , z = ..}; } ``` the client using that service is with JQuery Ajax call is working good ``` $.aj...
[ -0.0308445505797863, -0.23993676900863647, 0.41739752888679504, 0.08092163503170013, -0.19438064098358154, 0.015478148125112057, 0.29671335220336914, -0.28556203842163086, -0.31386443972587585, -0.7420158386230469, -0.3146807849407196, 0.589238703250885, -0.23108194768428802, -0.2241662591...
on ... ``` but with firebug I've notice that the response is : `{"d":[{"__type":"Common.MyObject","z":"2000","x":1500,"y":1000,"a":"0"},{"__type":"Common.MyObject","z":"2000","x":1455,"y":1199.57,"a":"1"} ...... and so on ]}` 1) question is why do I need this ""\_\_type":"Common.MyObject" ? 2) I want to remove...
[ -0.18132269382476807, 0.006694139447063208, 0.568700909614563, -0.2603999674320221, -0.23765340447425842, 0.004629580769687891, 0.48479631543159485, -0.25786516070365906, -0.1438906192779541, -0.736650288105011, -0.14788398146629333, 0.5609046220779419, -0.3383781313896179, 0.0091875847429...
Been at it for hours Please help ``` $("#NewsReel").click(function(){ if( $(".block_news").css("background","url('/new_skool/images/news_1.jpg')no-repeat")) { $(".block_news").css("background","url('/new_skool/images/news(2).jpg')no-repeat"); } else { if( $(".block_news").css("background","url(...
[ 0.34992125630378723, -0.005816077813506126, 0.48825913667678833, 0.15672166645526886, -0.24389100074768066, -0.017484117299318314, 0.2919657528400421, 0.14373010396957397, -0.3601616621017456, -0.16710267961025238, -0.3389476537704468, 0.9413308501243591, 0.03215256705880165, -0.1117670983...
set it. For example it might return the value as: ``` no-repeat url('/new_skool/images/news(2).jpg') ``` It's best to create two CSS classes and just use [toggleClass()](http://api.jquery.com/toggleClass/) to change the background image for example in [**this demo**](http://jsfiddle.net/Lh6D5/) ### HTML ``` <ul id...
[ 0.5410194993019104, -0.0947914868593216, 0.4424118995666504, 0.01529308408498764, -0.09470536559820175, -0.027248745784163475, -0.044188305735588074, -0.21075868606567383, -0.2523996829986572, -0.7195362448692322, -0.35275521874427795, 0.5213261842727661, -0.48585036396980286, 0.0178765077...
Can someone help me understand why Win32 error codes don't match method signatures and what is the correct way to deal with this issue? Take for example [SCardReleaseContext](http://msdn.microsoft.com/en-us/library/windows/desktop/aa379798%28v=vs.85%29.aspx), as per the MSDN documentation the return type is `LONG`. As...
[ -0.13079355657100677, 0.07112699002027512, 0.24184773862361908, -0.08784721046686172, 0.124273382127285, 0.03472550958395004, 0.1767628937959671, -0.15229465067386627, -0.12235639989376068, -0.31142720580101013, 0.12846797704696655, 0.5383913516998291, -0.06575178354978561, 0.4264661669731...
code values as `uint`. This way my code compiles and works. Otherwise, the compiler will complain that the value cannot be converted to int, for instance - `enum ErrorCodes : int { SCARD_E_CANCELLED = 0x80100002 }`. Can I correctly assume that a c++ compiler will take the value 0x80100001 (which doesn't fit into an in...
[ 0.27573564648628235, 0.4351024925708771, 0.18999311327934265, -0.20203113555908203, -0.03641194477677345, 0.006456831935793161, 0.36260104179382324, 0.008381925523281097, -0.010308720171451569, -0.48023051023483276, 0.050168897956609726, 0.6909521222114563, -0.10295452177524567, 0.15863044...
p/invoke signature and use `uint` instead? **Edit:** Fixed the last link, which was sort of incorrect, in it the values were cast to `DWORD`, which happens to be `uint`. Set the link to point to Microsoft's own site. The winapi was designed to be used with a C compiler. A language which allows assigning an unsigned...
[ 0.01751771941781044, -0.09529273957014084, 0.23835636675357819, 0.06714554131031036, -0.1038442999124527, 0.02797788195312023, 0.29423296451568604, -0.06238016486167908, 0.09682951867580414, -0.5757884979248047, -0.1469762623310089, 0.3686800003051758, -0.315030038356781, -0.09680180996656...
SCARD_F_INTERNAL_ERROR = unchecked((int)0x80100001) } ``` The cleaner solution is to have the enum inherit from uint instead. ``` enum ErrorCodes : uint { SCARD_F_INTERNAL_ERROR = 0x80100001 } ``` And change the pinvoke declaration to return an uint instead of an int. Lying in the pinvoke d...
[ 0.2584400177001953, -0.05622096359729767, 0.26602768898010254, -0.11391153931617737, 0.0648869201540947, 0.08103536814451218, -0.002684979932382703, -0.21092571318149567, -0.0949297547340393, -0.4642513394355774, 0.037176281213760376, 0.8002356290817261, -0.09651998430490494, 0.09975938498...
size, only the value interpretation is different.
[ 0.01552062202244997, 0.01647247187793255, -0.010670053772628307, 0.13413462042808533, -0.14044582843780518, 0.05735339596867561, -0.0827261209487915, -0.45755535364151, -0.375392884016037, -0.5906909108161926, -0.07549058645963669, 0.3863096833229065, -0.04321320354938507, 0.50172203779220...
I have two models, say, `Question` and `Topic`. I am trying to add methods to the Question model's custom manager, e.g. some method that filters by `Topic`. I can't seem to use the other manager's code for this (cannot `import Topic` either, so I can't do `Topic.objects...`) In `class QuestionManager` ``` def my_f...
[ -0.09725715965032578, -0.13323383033275604, 0.12126222252845764, -0.08840663731098175, -0.3563939929008484, -0.15523095428943634, 0.02459334023296833, -0.24052637815475464, -0.3780481219291687, -0.6487516760826111, 0.10295642167329788, 0.578644335269928, -0.3337647318840027, 0.131033241748...
by subclasses. 220 """ --> 221 return self.model._meta 222 223 def clone(self, klass=None, memo=None, **kwargs): AttributeError: 'NoneType' object has no attribute '_meta' ``` I can't use the 2nd line since I can't import Topic, since Topic depends on the TopicManager in this file. I...
[ 0.012098549865186214, 0.059424690902233124, 0.3131340444087982, -0.09692461788654327, -0.2298833727836609, 0.14308717846870422, 0.4428948760032654, -0.3867151141166687, -0.4658721685409546, -0.49851730465888977, 0.09200041741132736, 0.3000556230545044, -0.2579379081726074, 0.37090629339218...
can't import the model at the top of the file because of a circular dependency, you can simply import it inside the method.
[ 0.2690747082233429, -0.0767146423459053, 0.05689863860607147, 0.3458035886287689, 0.18852782249450684, -0.25023695826530457, 0.0466800257563591, -0.1661911904811859, -0.15015080571174622, -0.28475314378738403, 0.05539429932832718, 0.37492379546165466, -0.32127144932746887, 0.50617551803588...
I have a function to use but I don't know the content of this function. The only thing I know is that the function returns an array of associative arrays and the keys for the arrays. The data that the function returns come from a database. Can you help in how to read the data from this array? I am confused with the arr...
[ 0.05558283254504204, 0.1989317536354065, 0.547860324382782, -0.02170545794069767, -0.11859429627656937, 0.09994542598724365, 0.1930965632200241, -0.2764444649219513, 0.07906709611415863, -0.3880715072154999, 0.14134575426578522, 0.7260331511497498, -0.31422948837280273, 0.2608488202095032,...
} } ``` I take the error: Warning: mysql\_fetch\_array() expects parameter 1 to be resource, array given in... I know that something is missing, but I till now I can't fix it. Something like - ``` $array = myfunction($var); foreach($array as $key => $row) { print"{$row['elem1']} {$row['elem2']}"; } ```
[ -0.2648095190525055, 0.29802802205085754, 0.2722998261451721, -0.37018275260925293, 0.44850197434425354, 0.017798293381929398, 0.2724803388118744, -0.05139623209834099, -0.24080035090446472, -0.555505096912384, -0.23170199990272522, 0.8234307765960693, -0.40849968791007996, 0.1741724312305...
OK. I'll be looking for the answer, and may find it myself. I have a nasty habit of answering my own questions. In any case, I have an app that is designed to be "skinned" fairly easily. As part of that, I have sequestered methods in a static class that is specific to variants. These static methods feed the main app i...
[ 0.5641865730285645, -0.10457901656627655, 0.4703074097633362, 0.21914193034172058, 0.20629534125328064, 0.4206540584564209, 0.07387909293174744, 0.4592941105365753, -0.6420508623123169, -0.7484411597251892, -0.1564544290304184, 0.44250357151031494, -0.1475761979818344, -0.31166502833366394...
automagically tiled), so the interface file specifies the routine as returning a UIColor, like so: ``` + (UIColor *)meetingDetailBackgroundColor; ``` But the implementation file loads an image file, and returns that, like so: ``` + (UIColor *)meetingDetailBackgroundColor { return [UIColor colorWithPatternImage:...
[ 0.19329723715782166, -0.2509992718696594, 0.48195531964302063, -0.09956691414117813, 0.0022575680632144213, -0.10343367606401443, 0.5171900391578674, -0.32243579626083374, -0.09831831604242325, -0.6691985726356506, -0.020391754806041718, 0.7967468500137329, -0.39869213104248047, -0.2540776...
I'm supposed to do it. `UIColor colorWithPatternImage` is buggy, do not use it. My experience is that it tends to greatly cripple performance on the device but not in the simulator. Anything like scrolling or animation on top of it tends to get slow. I'm not sure whether this really qualifies as a leak, I'm not seeing ...
[ 0.47337353229522705, -0.3159113824367523, 0.40705713629722595, 0.18954072892665863, 0.07142220437526703, -0.07532656192779541, 0.3385757803916931, -0.20256313681602478, 0.006225628778338432, -0.5866486430168152, 0.12830856442451477, 0.7709357142448425, -0.26945969462394714, 0.0057202852331...
CGContextRef c = UIGraphicsGetCurrentContext(); CGContextSetBlendMode(c, kCGBlendModeCopy); CGContextDrawTiledImage(c, CGRectMake(0, 0, bkgnd.size.width, bkgnd.size.height), bkgnd.CGImage); } ``` This will tile the image. I then either use `self.tableView.backgroundView` or `[self.view insertSubview:bkgnd atI...
[ 0.0351485013961792, 0.00029763689963147044, 0.673403799533844, -0.18100789189338684, 0.03891103342175484, 0.17039112746715546, 0.16130082309246063, -0.005684558767825365, -0.2932816743850708, -0.6954138278961182, -0.044768739491701126, 0.487400621175766, -0.04644861817359924, -0.0066734156...
``` def a: Int = { for(i <- Array(1,2,3,4,5)){ if(i == 3) return i } } ``` The above method will not compile, I get the following error: ``` error: type mismatch; found : Unit required: Int for(i <- Array(1,2,3,4,5)){ ^ ``` The expected behaviour is that the method returns 3. ...
[ 0.10485702753067017, 0.25372791290283203, 0.324718713760376, -0.4096457362174988, 0.1034398078918457, 0.022290684282779694, 0.8558118939399719, -0.48967745900154114, 0.09566541016101837, -0.32746824622154236, -0.02730175107717514, 0.8582174777984619, -0.46048954129219055, 0.034289620816707...
should work. ``` def a: Int = { for(i <- Array(1,2,3,4,5)){ if(i == 3) return i } 0 } ```
[ 0.2283354103565216, 0.05872821807861328, 0.14663639664649963, -0.38820743560791016, 0.3165678381919861, -0.0061423867009580135, 0.6147259473800659, -0.5880123972892761, 0.1880655139684677, -0.3734547793865204, -0.31272178888320923, 0.7042273879051208, -0.4202415347099304, -0.18840974569320...
I created a powershell script that gets all the pdb files from the drop location after the build is set to release and copies them to a folder that is shared on the network. I also created a sample application and I added the nuget packages that contain the assemblies that I need (without the pdb files). I found some...
[ 0.748803973197937, 0.20174919068813324, 0.1442006379365921, 0.026186292991042137, -0.0848403349518776, -0.20554861426353455, 0.1930566430091858, -0.25247177481651306, -0.16120541095733643, -0.6125742793083191, 0.1915697306394577, 0.40537339448928833, -0.34685707092285156, 0.019010761752724...
I need to make in order to use the pdb files that are shared on the network to be able to debug the assemblies that I get using nuget package manager? Thanks ! If you are looking for a good overview of symbols, Symbol Server, and more importantly Source Server indexing, check out <http://bit.ly/SymbolServerTFS> which ...
[ 0.7587282657623291, -0.06681683659553528, -0.1761407107114792, 0.30953872203826904, -0.4859403669834137, -0.18156448006629944, 0.46887338161468506, 0.031430263072252274, -0.14717994630336761, -0.9487835764884949, 0.3732497990131378, 0.3176954686641693, 0.25449836254119873, -0.0555762723088...
my feature request on Uservoice: <http://bit.ly/AtLSjl> We definitely would appreciate the added voices & votes!
[ 0.6119869351387024, -0.15370598435401917, 0.5227156281471252, 0.16464866697788239, -0.3014775216579437, 0.0039472198113799095, 0.5613591074943542, 0.34248632192611694, -0.20900732278823853, -0.6088362336158752, -0.5475009679794312, 0.3827894330024719, 0.4402608573436737, -0.014778236858546...
I have two dropdowns in a RadAjax panel. On SelectedIndexChanged of the first dropdown, the second one is populated. After the initial page load the jqTransform is just fine. But after the postback it dissapears. I tried setting the property of the RadAjax ClientEvents-OnResponseEnd="setJqTransformFunc();" with no lu...
[ -0.06431250274181366, -0.05899422615766525, 0.6200203895568848, -0.15838029980659485, -0.16007660329341888, -0.11902797222137451, 0.6682345271110535, -0.009093070402741432, -0.0837988331913948, -0.6320930123329163, -0.06399046629667282, 0.5833324790000916, -0.1873323768377304, -0.058430626...
the RadAjax panel after postback? PS: setJqTransformFunc() {$("form .myClass").jqTransform();} what i did was, after the response i first remove the 'jqtransformdone' class first and re-apply the jqtransformation $("form .myClass").removeClass('jqtransformdone').jqTransform(); this helped
[ 0.16463468968868256, -0.324748158454895, 0.4718579351902008, -0.29899945855140686, -0.11420419067144394, 0.07080844789743423, 0.7714560627937317, -0.3606741726398468, 0.164960578083992, -0.24388445913791656, -0.1316089779138565, 0.7946144938468933, -0.31402379274368286, 0.13995404541492462...
This is my code in C : ``` #include<stdio.h> int main() { printf("hello","world"); } ``` When I run this code in my system it showed only hello as output.Why is it not showing hello world as output ? What is the significance of usage of , between hello and world ? Can anyone please explain this to me ? Thanks in a...
[ 0.202117919921875, 0.28290292620658875, 0.2024117112159729, -0.27261486649513245, 0.00962119922041893, 0.10874327272176743, -0.06221054494380951, 0.11795875430107117, 0.061906598508358, -0.5434942245483398, -0.10175139456987381, 0.5248044729232788, -0.612997829914093, 0.0963512435555458, ...
the format string instead of placeholders. But your format string has no placeholders, so the second argument is not used. This would work though: ``` printf("hello %s", "world"); ```
[ -0.24232827126979828, 0.03520241752266884, 0.3742958903312683, -0.09703069180250168, 0.03543991968035698, 0.012883028946816921, 0.03724106773734093, 0.09917186945676804, 0.11957235634326935, -0.7050759196281433, -0.3823911249637604, 0.4782678782939911, -0.23219668865203857, 0.2245706915855...
For example, if I got the following predicates : ``` father('jim', 'Boby') father('rob', 'bob') ``` and I would like to know who got father with is name starting with 'bo' ? Another ISO option is `sub_atom/5`: `sub_atom(Atom, Before, Length, After, Sub_atom)` ``` ?- sub_atom(bob, 0, _, _, bo). true. ``` Com...
[ 0.040766891092061996, 0.2129092961549759, 0.0732404962182045, -0.3098653256893158, -0.29334333539009094, 0.24678367376327515, 0.20316210389137268, 0.1477254331111908, -0.19870056211948395, -0.22489456832408905, -0.3999866843223572, 0.04135656729340553, -0.20494672656059265, 0.4004418253898...
I've seen a lot of stackoverflow questions regarding the other client side scripting languages The Internet is becoming a very content-rich and dynamic place. HTML and CSS specifications are trying to bring the Web to the next level - we are getting WebSockets support which is real nice for full-duplex client-server c...
[ 0.30426791310310364, 0.2514687776565552, 0.15667219460010529, 0.22883403301239014, -0.23356349766254425, -0.11937882751226425, -0.0028950287960469723, 0.5174947381019592, -0.32668358087539673, -0.8116219639778137, 0.14966550469398499, 0.6805137991905212, -0.13738270103931427, -0.0236184876...
a rendering architect. JavaScript has served all of us marvelously, has it not? We've used it for getting basic user interactions with 2D *linear* websites, responding to simple events and combining all that with HTML and CSS. **Given the fact that the doors of realtime communication and GPU-driven visualization have...
[ 0.20502012968063354, 0.037600137293338776, -0.09000684320926666, 0.023806486278772354, -0.2930755317211151, 0.2477603405714035, 0.3031098246574402, -0.04431319981813431, -0.04794531315565109, -0.9687738418579102, 0.07961802929639816, 0.5715025663375854, -0.007396867033094168, -0.3249770998...
a fun time). I've shifted a lot of the code to the GPU, but even then my in-house renderer is simply CPU-bound (the HD6990 can't be the problem, let alone the code which powers the desktop/embedded engine). So, here is it out in the front: * Code is **lying naked** because of the interpreter design. Rendering techn...
[ 0.4824873208999634, 0.18196097016334534, 0.18522298336029053, 0.2420576512813568, -0.18631982803344727, 0.07728035748004913, -0.05335322767496109, 0.27949127554893494, -0.2404087632894516, -0.6058217287063599, -0.011747379787266254, 0.5554259419441223, 0.381693571805954, -0.120521269738674...
can be processed by the VM?** * It is weakly typed. Juggling matrices, vectors, quaternions, arrays and all other sorts of data common to highly-interactive applications just bloats processing with runtime checking. Even though it eventually goes to the GPU side, you still have to do a fair amount of work on the CPU si...
[ 0.3160193860530853, -0.04477393627166748, 0.562549889087677, 0.3680841326713562, -0.20473723113536835, 0.05719412490725517, 0.07572533935308456, -0.14145095646381378, -0.0711197629570961, -0.72081059217453, 0.06787055730819702, 0.4139900505542755, -0.39220327138900757, 0.12602338194847107,...
demanding high fidelity 2D/3D content?** * WebSockets have proven to be a beautiful new addition to web gaming (BrowserQuest), not to mention dynamic websites, and will be driven by a lot of people in the future to develop awesome content ( my company is running a little closed project that implements a small MMO in a ...
[ 0.643097996711731, 0.2852262556552887, 0.2651888430118561, 0.38556692004203796, -0.27285224199295044, -0.35407042503356934, 0.02099633775651455, 0.42756855487823486, -0.49039918184280396, -0.3983840048313141, 0.08128964900970459, 0.8561708927154541, 0.024341745302081108, 0.0608954094350338...
the "way of the Stackexchange", but it doesn't harm since all the other questions are legitimate and answers can be based in fact. Your concerns are based on misunderstanding how Javascript run-times work and mostly have no basis in reality. * All Javascript code is JIT'ed nowadays - intermediate bytecode language is...
[ 0.3019450008869171, 0.3006068766117096, 0.2802515923976898, 0.3112797737121582, -0.04407012462615967, -0.17676518857479095, 0.3204919695854187, -0.07006117701530457, -0.36703774333000183, -0.5676443576812744, 0.03069121390581131, 0.7199236154556274, -0.2988719940185547, -0.3069123923778534...
end anyway. More material you can provide for JIT to work with, the better. In fact for Java they disabled bytecode optimizations in modern versions because it was confusing JIT compiler. * JIT compilation can optimize out dynamic typing issues, though they will never provide statically typed performance, but most like...
[ 0.7090966105461121, 0.17136690020561218, 0.05819801986217499, 0.17771022021770477, -0.3692615032196045, -0.43367719650268555, 0.5600665807723999, -0.016454821452498436, -0.04185773432254791, -0.7232798337936401, -0.01182632427662611, 0.5019157528877258, -0.052317116409540176, 0.16726507246...
run-time. * I don't see why prototype based approach would have any connection to high fidelity, they are two totally separate things * Currently the alternative approaches like Google NaCL are not endorsed by other browser vendors and most likely never will, as Microsoft and Apple would not adopt Google-only technolog...
[ 0.5158811211585999, 0.056090112775564194, 0.1576283574104309, 0.3973674476146698, -0.19558297097682953, -0.07416471838951111, 0.4722728431224823, 0.2867025136947632, -0.16589802503585815, -0.7573966383934021, -0.18595585227012634, 0.20189571380615234, -0.3253907263278961, -0.12793560326099...
see tQuery which is jQuery like framework for 3D content <https://github.com/jeromeetienne/tquery> Cheers, Mikko
[ 0.18602746725082397, 0.3911110758781433, 0.30812978744506836, 0.201133131980896, -0.44659358263015747, 0.1671248972415924, 0.1274910271167755, 0.18519608676433563, -0.2918888032436371, -0.36858418583869934, -0.17677856981754303, 0.3733702301979065, 0.3659268617630005, -0.1776123344898224, ...
i am working on an xsd-specification (for a simple game ;) ) which has that specification: I have an Elem `players` with an attribute `number`, which indicates the number of the players(a num between `1 and 4`). As childelems, it contains elems of zero to four `screenname` elements. These elements have player screenna...
[ -0.08867708593606949, 0.2179953157901764, 0.5357392430305481, 0.14342321455478668, 0.18319879472255707, 0.06743704527616501, -0.40854910016059875, -0.06566152721643448, -0.22022080421447754, -0.6909209489822388, 0.09540540724992752, 0.47805798053741455, -0.025769228115677834, 0.36006247997...
<screenname endofgame="3">player screenname text content</screenname> </players> ``` This would be an automatically generated XSD: ``` <?xml version="1.0" encoding="utf-8"?> <!--W3C Schema generated by QTAssistant/W3C Schema Refactoring Module (http://www.paschidev.com)--> <xsd:schema attributeFormDefault="unqualifi...
[ -0.4151988625526428, -0.30796632170677185, 0.583375871181488, -0.08856498450040817, -0.16483323276042938, -0.19500166177749634, -0.20332814753055573, -0.8057737946510315, -0.15186963975429535, -0.8023380041122437, -0.05827353149652481, 0.41969233751296997, -0.3323517143726349, 0.0882637053...
name="endofgame" type="xsd:unsignedByte" use="required" /> </xsd:extension> </xsd:simpleContent> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name="number" type="xsd:unsignedByte" use="required" /> </xsd:complexType> </xsd:element> </xsd:...
[ -0.11521585285663605, -0.10312387347221375, 0.20723773539066315, -0.17749813199043274, 0.11405186355113983, 0.09043186902999878, -0.1923421323299408, -0.4852551221847534, -0.11460492014884949, -0.5152860283851624, -0.15636016428470612, 0.40048104524612427, -0.34594306349754333, 0.125189900...