title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Deploying Quarkus Apps with Kubernetes
<p>I'm trying to deploy an <a href="https://github.com/quarkusio/quarkus-quickstarts/tree/main/rest-json-quickstart" rel="nofollow noreferrer">example Quarkus app</a> with Kubernetes. Everything is fine when i run it in <code>dev</code> mode as <code>mvn quarkus:dev -Dquarkus.http.port=8080</code>. But when i deploy an...
3
1,034
how to fetch payload from quick replies in botpress
<p>i am new to botpress and trying to make simple order bot with botpress. but not using messenger,etc just trying to make simple question answer bot. in available example on github uses content.yml but it gives error</p> <blockquote> <p>[Renderer] Renderer not defined (#welcome) at /Applications/MAMP/htdo...
3
1,031
jQuery search only searching the page its on
<p>I have laravel data which is paginated using laravels default paginator like so.</p> <p>Controller</p> <pre class="lang-php prettyprint-override"><code>$applications = Application::onlyTrashed()-&gt;latest()-&gt;paginate(25); return view('index', compact('applications')); </code></pre> <p>The table is my blade te...
3
1,523
Changing ID Chosen Being dropdown PHP
<p>I have a script for the forum. By default, users can only post if it has opened the site to determine the parent first. For example <code>domain.com/new.php?parent=3</code></p> <p>Here I am trying to modify using the dropdown. For example: OPTION 1 (value1) OPTION 2 (value2) OPTION 3 (value3)</p> <p>I add <code>$p...
3
2,986
Exception while accessing data in JSP file (within scriptlet) forwarded from sevrlet
<p>I’m trying to access in a JSP file data send from a Servlet. I’m getting an Exception whenever I run the project. I have already tried using<br> - <code>&lt;% … %&gt;</code><br> - <code>${…}</code><br> - <code>&lt;c:out value="${loginFailed}"/&gt;</code></p> <p>Even when I attempt to use the commenting tag an Exc...
3
4,629
How can i load data on specific tab in android?
<p>My task is to load data on 50th screen out of 100 screens in one tab activity and also to increment date on forward swipe and decrement date on backward swipe. </p> <p>I wrote code to increment date and made 50th screen as my current screen but i don't know how to load that current date in 50th screen and to decrem...
3
2,011
Get object from an array inside of an array
<p>I am trying to get a list of places from Foursquare's API. So far so good, but I have hit a wall that I can't figure out. Hopefully someone on here might have a good idea.</p> <p>The list I currently have shows the types of venues from a forsquare list, and then it breaks down each venue's name and lat/lng. The iss...
3
2,314
Role does not work with (LDAP) Active directory
<p>I have successfully installed openkmcommunity edition (Version 6.3.6, Tomcat-8.5.24, PostgeSQL 9.4.15 and Debian 8.2.0) with MS AD (windows 2012 R2) using advanced configuration and best practices in docs : </p> <p><a href="https://docs.openkm.com/kcenter/view/okm-6.3-com/active-directory-advanced-configuration.ht...
3
3,462
cannot call method replace on undefined script issues
<p>What I am trying to do below since I don't have access to the PHP to my site, I am using this code to work around it. It will search for any links containing the two listed below. one from youtube with the /watch? in it and the other from youtube with just the /v in the url. It also is searching the any embedded ele...
3
1,312
Enter an object and send it to the backend
<p>I have an ECommerce project and this project contains an interface for creating a product, and an interface for creating a product that contains several fields</p> <p>And these are the fields as they appear in the backend:</p> <pre><code>mutation{ createProduct(createProductInput: { En:{ title: &quot;New...
3
3,273
How to create custom recipe for dlib library for p4a
<p>The code below successfully creates <code>libdlib.so</code> and copies it to <code>.buildozer/android/platform/build-armeabi-v7a/build/libs_collections/&lt;APP&gt;/armeabi-v7a</code> also this file is located in the apk itself along the path <code>.buildozer/android/platform/build-armeabi-v7a/dists/&lt;APP&gt;__arme...
3
3,436
Why am I getting a null object?
<p>I'm trying to get JSON data from <code>https://newsapi.org/v1/articles</code> with Retrofit, but I'm new to it and it's been quite confusing so far.</p> <p>From what I can tell, I've managed to establish a successful connection. However, for some reason I haven't been able to identify yet, Retrofit doesn't map the ...
3
1,191
Tests are failing with NullPointerException if run through TestNG xml, but work if run independently
<p>I have got two tests which I am attempting run through TestNG xml. </p> <p>If I run those independently, it works. But the first test is failing with a NullPointerException <a href="http://i.stack.imgur.com/1HoYA.png" rel="nofollow">as shown here</a> if I run it as a suite with xml.</p> <pre><code>package com.Page...
3
1,818
Can't control Android SearchView focus
<p>I have an activity with <code>SearchView</code> the problem I am having is </p> <p>1- I can't get focus when activity starts. I solved this by using <code>searchView.requestFocusFromTouch();</code> from <code>onCreateOptionsMenu()</code>. I thought this would be default because there is nothing else in this activit...
3
1,762
rendering javascript in textarea in php
<p>I have one form, textarea &amp; one button. On button click I call one php function. From that I call service to get data as per value inserted in textbox. function code is </p> <pre><code>function fire_btn(btnvalue) { if(btnvalue=="Create Widget") { var dataString = $("form").serialize(); rece...
3
1,297
Adding/Removing Class to h1 tags via scrolling
<p>I've been looking for ways to add/remove classes via scrolling, and have found several close examples, but nothing that I can seem to use with the site I'm working on.</p> <p>I know there's quite a few threads on here that ask a similar question, but the solutions I find don't work the way I need them to.</p> <p>S...
3
1,055
Angular2: Cannot find name 'Promise' after having installed global dependencies
<p>I'm building an app using angular 2 and nodejs and I've installed the necessary dependencies from the package.json already. Inside of the package.json, there is a postinstall command to install the dependencies in typings.json. I was initially trying to install the es6-shim using:</p> <pre><code>"ambientDependencie...
3
2,580
Full-screen frame-rate limit conundrum
<p>my game(framework) can't go faster than 30 frames per second(about 33 ms between update calls) in full-screen. I use a Timer for the loop. Actually it gets a bit more complicated, since when i decrease the delay incrementally, the time between calls i measure goes nuts. It jumps form the set delay to twice or more t...
3
1,327
Error starting MongoDB with volumen via docker-compose
<p>I want to start a mongodb with a data volumen via docker-compose.</p> <p>This is my docker-compose file</p> <pre><code>version: '3' services: mongodb_container: image: 'mongo:4.2' container_name: mongodb environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITD...
3
2,448
unable to write /proc/sys/kernel/ns_last_pid file
<p>I want to edit the <code>ns_last_pid</code> file present in <code>/proc/sys/kernel</code>, but i'm getting the error of <code>Read-only file system</code>. How to resolve this? This is what i've written to open the file.</p> <pre><code>int fd = open(&quot;/proc/sys/kernel/ns_last_pid&quot;, O_RDWR | O_CREAT, 0644); ...
3
1,577
Swift, Xcode: Using PanGestureRecognizer for quiz app's answer options
<p>Currently I'm building a quiz app with the PanGestureRecognizer functional. The idea is that user can drag one of the answer option to 'questionMark' cell and drop it there. The app should be able to check whether a dropped answer option in the 'questionMark' cell is correct or not. </p> <p>So here is <strong>the q...
3
2,227
Extract Modulus and Exponent from a RSA Public key in ASN.1 Format in Android
<p>I have a problem where a hardware component returns the public key portion of a RSA key pair in ASN1 format.</p> <pre><code>Buffer Contents [0x30 0x82 0x01 0x22 0x30 0x0D 0x06 0x09 0x2A 0x86 0x48 0x86 0xF7 0x0D 0x01 0x01 0x01 0x05 0x00 0x03 0x82 0x01 0x0F 0x00 0x30 0x82 0x01 0x0A 0x02 0x82 0x01 0x01 0x00 0xAA 0x07 0...
3
1,523
Calling Numba-generated PyCFunctionWithKeywords from Python
<p>I serialized a jitted Numba function to a byte array and now want to deserialize and call it. This works fine for primitive data types with <code>llvm_cfunc_wrapper_name</code>:</p> <pre class="lang-py prettyprint-override"><code>import numba, ctypes import llvmlite.binding as llvm @numba.njit(&quot;f8(f8)&quot;) d...
3
1,275
Writing unit test cases for lazy loaded module angular
<p>Getting <strong>NgModuleFactoryLoader is deprecated: the <code>string</code> form of <code>loadChildren</code> is deprecated, and <code>NgModuleFactoryLoader</code> is part of its implementation. See <code>LoadChildren</code> for more details.</strong> warning and not able to stub the module for testing the lazy loa...
3
1,240
How to authenticate users in WebServices with Key using different checks
<p>I'm working with a Web Api which is using Active Directory to authenticate users. I'm using this Api in PHP to login user that are in my WEB API key (The key is in "Web.Config" file). I'm new to c# web api and there is something wrong which I'm unable to resolve. I need to insert some checks for user. First one is I...
3
1,196
Try to pass the initial data in the form with the field ManyToMany
<p>My problem is that I can not save the form. I think the problem lies in the <code>event</code> field in the <code>Register</code> model. I do not want the user to choose an Event from the list, I want it to happen automatically, hence the code: <code>form.cleaned_data['event'] = kwargs['pk']</code> This part of code...
3
1,276
The package name of your Instant App APKs should be the same as your app's package name
<p>I'm trying to upload my instant app t play store. I see the below error which uploading instant app apk zip:<br> The package name of your Instant App APKs should be the same as your app's package name <br></p> <p>My build.gradles for respective features as below: <br> Installed apk (build.gradle) : <br></p> <pre><...
3
1,099
How to add a button to questionnaire
<p>How do I make a button that is light in color and unclickable until a user answers all 3 questions and when that happens the button lights up and is clickable. The button generates the links that are already within the code and it takes them to the desired page.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt...
3
2,280
Comparing NSArray values with NSMutableDictionary
<p>I have an <code>NSMutableDictionary</code> which was created from a JSON string.</p> <p>The problem is that I need to do some pretty complex data comparisons between a <code>NSArray</code> and a <code>NSMutableDictionary</code>. I cannot figure out an efficient way to do so.</p> <p>The dictionary looks like this:<...
3
1,246
RestSharp Not Deserializing all Values
<p>I am having inaccurate Deserialization results from RestSharp The fields <strong>TodaysCases</strong> and <strong>TodaysDeaths</strong> are always deserializing as '0' What is the issue?</p> <pre><code>var client = new RestClient("https://corona.lmao.ninja/countries"); var response = client.Execute&lt;List&lt;Count...
3
15,375
TypeError: Cannot read property 'method' of undefined using react router (express)
<p>I have the following class using React with express.</p> <p>I'm trying to call another method from the method <code>getOne</code> which is declared in a route. But when I call the route for method <code>getOne</code> I have this error:</p> <pre><code>TypeError: Cannot read property 'createFromSystem' of undefined ...
3
1,404
push data in Array AJAX/NodeJS
<p>When I selected a service from select input, I got a div created by JS as below:</p> <pre><code>&lt;form method=&quot;POST&quot; action=&quot;/booking/success&quot;&gt; // SOME CODE IN HERE................................. &lt;div class=&quot;col-12&quot;&gt; &lt;h3 class=&quot;service__title&quot; name=&quot;...
3
1,294
PHP Encode parts of a string and then decode
<p>I have a string containing HTML and some placeholders.</p> <p>The placeholders always start with <code>{{</code> and end with <code>}}</code>.</p> <p>I'm trying to encode the contents of places holders and the decode them later.</p> <p>While they're encoded the ideally need to be valid HTML as I want to use DOMDo...
3
2,139
Cant able to parse the data by OKhttp library
<p>When I'm compiling the app it isn't updating the Textviews, even it's not showing any error on the android monitor. Can someone explain me how to map JSON to java object and array?</p> <p>Main Activity.java</p> <pre><code>public class MainActivity extends AppCompatActivity { public static final String TAG = MainAc...
3
1,870
Working program throws xercesc_3_2::TranscodingException when run as linux service
<p>I have program which reads an RSS feed using the <a href="https://xerces.apache.org/" rel="nofollow noreferrer">Xerces XML framework</a> and "does stuff" with the information it gets.</p> <p>The program works.</p> <p>However, if the program is run, in any way, via a Linux service (init.d script started as <code>se...
3
2,833
The modal screen remains black on showing AJAX response after modal hide
<p>The following is the HTML code. When I click on Upload Building, the following file selection modal pops up. Once the user selects a file and clicks the upload button on the modal, the modal should close down, send an AJAX query, and then replace the upload button with the HTML response. </p> <pre><code># HTML Code...
3
1,551
Html input radio with multiple array name attribute validation failed
<p>I have below radio buttons</p> <pre><code>&lt;div class="col-md-12 clearfix multi-wrap"&gt; &lt;div class="radio-inline"&gt;&lt;label for=""&gt;Academics&lt;/label&gt;&lt;/div&gt; &lt;div class="radio-inline"&gt; &lt;label class="radio-label" style="background: rgb(221, 221, 221);"&gt;1 &lt;input t...
3
1,210
How can i make a two message events for json Data by pushButton click in Qt?
<p>How can I make a message?</p> <p>I want make 2 message events. First, if is nothing include in my lineEdits and push the button. Must come error message "You have not includet the data". And second, if i include my lineEdits and push the button. Must come message "You have includet the data." But it's not work for ...
3
1,319
Trim string contents to get only the ID value
<p>I am trying to figure out how to trim a string so I get just the ID int value. I have a text box that can accept ID values so long as they are formatted like [@ID=#] 9. It can also accept BP [which stands for, "base price"] and valid numbers and math operators). What I need to do is get the number in that string and...
3
1,383
CSS link hover positioning issue
<p>I wrote a little generic menu and need help figuring out why second level links always display to the right of first level links. Code is kind of lenghty so here is a <a href="http://jsfiddle.net/11rosicky/zx8oyx2n/3/" rel="nofollow">jsfiddle</a>.</p> <p>Here is the essentially what is happening.</p> <pre><code> ...
3
1,409
AJAX not working within form and instantly sending me to PHP script? PHP/AJAX
<p>I've currently got a feature on my web application where you can add your skills by clicking the <code>"Add a Skill"</code> button, very simple and worked up until I tried to add something else into the mix. The error is the fact that when I click the "Add a Skill" button it acts as if that were the submit button an...
3
1,375
I Need Help Making a Couple Elements More Responsive to the Viewport on my Website. (CSS)
<p>I am in the process of making a website using Wordpress and I am almost done messing around with the additional CSS, I just need help tweaking a couple elements...</p> <p>My website started out as a template that I bought, and I've just added a significant amount of additional CSS to the template in order to customi...
3
1,072
I got 400 bad request on blacklist when I logout
<p>I'm trying to blacklist the user when the <code>logout</code> function called using <code> django-rest-framework-simplejwt</code>. I can logout from the page but I keep getting 400 bad request in terminal. I believe that the token is not destroyed yet and also in my APIview I got <code>&quot;detail&quot;: &quot;Meth...
3
3,295
create objects based on entries from a file
<p>How to create objects during runtime based on input from file.</p> <p>I have few entries in a file in an organized way separated by a space</p> <pre><code>entryname type satus entry1 type1 yes entry2 type2 no ... </code></pre> <p>I would like to create objects of below class based on number of entries.</p> <pre><c...
3
3,389
How to determine the original coordinate using the mouse coordinate, the translation and the zoom scale?
<p>I will ask for this problem without a specific programming language.</p> <p>I have got a canvas control with the hability to do zoom and translating the view (dragging). I have loaded an image on the canvas and my objetive is to obtain the coordinate when I click the mouse on the canvas.</p> <p>The event when I cl...
3
1,041
Bootstrap dropdown menu not working in mobile view
<p>I want that if I change to mobile view, the menu items will collapse and when I click it, then it shows the menu in dropdown. It seems this code does not work, what's wrong?</p> <p>I want to click this icon and show menu item in dropdown. Check this image <a href="https://i.stack.imgur.com/yaInj.png" rel="nofollow n...
3
1,561
value_counts not working in groupby apply
<p>I am using <code>.apply(pd.Series.value_counts, axis=0)</code> to count the values in two pandas columns ['a','b'].</p> <p>However when I try and use it <strong>after grouping</strong> on column 'Group', I get the error:</p> <pre class="lang-py prettyprint-override"><code>TypeError: value_counts() got an unexpected ...
3
1,264
Sync flex Sliders - flex-direction-nav(Arrows)
<p>I was working on the Slider using flex-slider. I got an Idea of syncing two flexsliders into one as we do to Owl-carousel. As the flex caption animates with the image I have to use two flexsliders because I want the flex-caption animation to differ from the image animation. I've got them synced with the help of this...
3
2,149
HTTP Status 500 - javax.servlet.ServletException file not found in Tomcat 9.0.22
<p>We have a Java Spring MVC web application that is deployed on Tomcat. For the last few months, we have been experiencing an exception on a regular interval (after every 11 days) due to which our application stops working &amp; starts throwing HTTP 500 Internal Server Error for every request. We have also observed th...
3
1,099
How to call JSON from a file instead of in-line for Multi-Edge D3 Example
<p>I am following this example: <a href="http://bl.ocks.org/mbostock/1153292" rel="nofollow noreferrer">http://bl.ocks.org/mbostock/1153292</a></p> <p>I have row upon row of JSON data that looks like this:</p> <pre><code>{"source":"Michael Scott","target":"Jim Halpert","type":"pro"}, {"source":"Jim Halpert","target":...
3
2,014
Jquery plugin not work properly on multiple element
<p>I have created my own simple jquery plugin,but im having some problem when i put 2 elements and call the plugin on each element</p> <p>my js code:</p> <pre><code>function fTable(element,options){ self = this; this.$element = $(element); this.table = $(this.$element).find('table'); this....
3
2,172
Parsing data from csv file to Google Spreadsheet with python
<p>I'm writing a python script to send data from a csv file to a Google Spreadsheet. I'm have a clear understanding of the basics need for this project, however I'm totally lost regarding formatting/parsing data from a csv file to the google sheet (I'm still learning python !). </p> <p>So here is the first part of my ...
3
1,271
How do i access each element in the row?
<p>I am currently working on a college project on the GPA calculator whereby the default subjects, subjects code and credits are filled in the table by default and are editable. The students only need to fill in their expected marks for each subjects and then just simply click on a button that has been provided to view...
3
3,711
Python Pandas Create New DataFrame Using Existing DataFrame to Query Another DataFrame
<p>My goal is to build a new <code>DataFrame</code> named <code>df3</code> (dataframe 3).</p> <p>Using <code>df1</code>'s <code>['Header 1', 'Header 2', 'Normalized']</code> values, how do I look in <code>df2</code> rows to find where <code>df1</code> <code>['Header 1', 'Header 2', 'Normalized']</code> is equal to <co...
3
2,418
ejabberd server does not start because ``mod_shared_roster`` module fails to start
<p>I am trying to start an ejabberd server but when I run the command <code>ejabberdctl live</code> or <code>ejabberdctl foreground</code> I am getting an error.</p> <p>The error states that the <code>mod_shared_roster</code> module cannot start, but the error reason is <code>undef</code> which doesn't help much.</p> ...
3
4,526
Stop grunt-ts from compiling references
<p>I've recently switched from using Web Essentials to grunt-ts to compile my typescript files due to the flexibility of output. Part of the reason I switched is that I don't want all files compiled seperately, and I don't want to have all files compiled to a single file. I want a bit of both. Since I've recently start...
3
1,275
jenkins Emulator occasionally hangs indefinitely on startup
<p><strong>Problem:</strong> when I try to build an android project on Jenkins, emulator occasionally hangs indefinitely on startup and the job finished: NOT_BUILT.</p> <p>I have Jenkins slaves running on Debian EC2 instances - not using any emulator snapshots, every run is fresh with a clean workspace, so I haven't b...
3
5,488
angular-material - $mdSticky duplicates object
<p>I'm starting to work with Angular Material and I want to make a sticky toolbar, so I went to the documentation and read about $mdSticky. So I wrote my directive, but the toolbar repeats itself when cloning. Can this be fixed/removed?</p> <p>index.html</p> <pre><code>&lt;body ng-cloak&gt; &lt;md-content layout-...
3
1,193
Cannot fix the select/delete function. PHP/MySQL/JavaScript
<p>guys I have the following script for adding, editing and deleting content in mysql, and showing it at index.php file. So here is my index.php file:</p> <pre><code>&lt;script&gt;function goDel() { var recslen = document.forms[0].length; var checkboxes="" for(i=1;i&lt;recslen;i++) { if(...
3
2,018
How can I store the value of each input into vuex?
<p>This is my &quot;Test.vue&quot;components</p> <pre><code> &lt;template&gt; &lt;div&gt; &lt;div&gt; &lt;button @click=&quot;decrenumber (id)&quot;&gt;-&lt;/button&gt; &lt;input name=&quot;test&quot; type=&quot;text&quot; :key=&quot;id&quot; v-model.number=&quot;num&quot;&gt; ...
3
1,069
How to refresh a Grid class in wxpython?
<p>I am currently creating a program that configures IP connections, when I stumbled upon a problem in regards to the refreshing of the data in the Grid, for I have made a Grid class that contained SQL queries that execute once that class is loaded. Said Refresh function has to be done within the Remove, or Modify butt...
3
1,184
Custom CSS checkbox margin missing when viewed on mobile
<p>I have a custom checkbox written in CSS that looks as expected in development. But when it is viewed on mobile (via Heroku), the right margin does not show up, as can be seen here:</p> <p><a href="https://i.stack.imgur.com/XgdIx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XgdIx.png" alt="ente...
3
1,328
Isolate scope variable is undefined
<p>For some reason I am not able to access my isolate scope variable "index" in my link function. I have tried both <code>@</code> and <code>=</code> to see if it made any difference and this had no effect, I also tried using a word other than index (in case it was already in use by angular or something) with the same ...
3
1,920
Listviewer in Streambuilder doesnt update the deleted objects correctly
<p>When I delete an item from the listview, the listview shows me the wrong item. Although in the displayed map the correct element is deleted. Unfortunately, googling has yielded nothing. Can you understand how this happens?</p> <p>I have tried an additional StreamBuilder for the ItemAddSingleIngredient widget among m...
3
3,139
Laravel8 Many To Many change id for custom attribute
<p>I created a relationship <code>many-to-many</code> between <code>Faculties</code> and <code>Departments</code>(im Working in a prototype timetable problem). For a petition, these tables need a validation code <code>vcode</code>. The problems are in the relationship of this, I don't know why the relationship recogniz...
3
1,331
Is there any parameter partitioning when Spark reads RDBMS through JDBC?
<p>When I run the spark application for table synchronization, the error message is as follows:</p> <pre><code>19/10/16 01:37:40 ERROR Executor: Exception in task 0.0 in stage 3.0 (TID 51) com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server...
3
1,032
converting object properties which are array like to array is not working
<p>I have an nested object like following(it can have any depth):</p> <pre><code>{ "a": 5, "b": { "0": 1, "1": "x" }, "x": { "a": 1, "1": "z" }, "c": { "0": 3, "1": "Am", "3":{ "0": 3, "1": "x", "2":{ ...
3
1,218
Header and footer are being overwritten while creating PDF
<p>I have included a cs class for creating the footer and header for a pdf file, so what am getting is the header and footer is overwriting the current contents on the file, what i want is the header to show and shift other cells in every page</p> <pre><code>public class ITextEvents : PdfPageEventHelper { ...
3
2,312
why selenium throw error with chrome driver version 2.25 while I installed 2.20
<p>recently I want to execute my capybara test case with chrome instead of firefox on jenkins. (with selenium 2.39.0) However, after download chrome version 48, and chrome webdriver 2.20. I met below selenium exception from Jenkins:</p> <pre><code>/var/lib/jenkins/workspace/test/srm-smokestack/vendor/bundle/ruby/1.9.1...
3
2,052
GridviewRowCommand not firing
<p>I've got a gridview, which each row have a edit and a delete button. I've managed to put my edit button working, but not the delete button. Here's my aspx:</p> <pre><code>&lt;asp:GridView ID="gvfaq" runat="server" AutoGenerateColumns="false" DataKeyNames="faq_id" OnRowDataBound="gvfaq_RowDataBound" OnRowCommand="gv...
3
1,265
Repeated UI functionality in MVC
<p>I have a few screens which have duplicated complex UI functionality. i.e. Drop down A triggers a JSON call to my Controller, which populates the values in drop down B and C, based on the value selected in drop down A.</p> <p>So, on the screens, I have drop down A, and then under that, B and C.</p> <p>This is dupli...
3
1,112
How to filter out rows that follow a certain established threshold being reached in R?
<p>I have the following data:</p> <pre><code>group &lt;- rep(letters[seq(from = 1, to = 3)], each = 4) date &lt;- c(&quot;1999-01-01&quot;, &quot;1999-01-02&quot;, &quot;1999-10-01&quot;, &quot;1999-10-05&quot;, &quot;1988-02-01&quot;, &quot;1997-12-25&quot;, &quot;1997-12-26&quot;, &quot;1998-01-01&quot;, ...
3
1,117
Admob ads not showing in Jquery mobile app
<p>I'm trying to show ads in the app built with jquery mobile using Cordova. I'm using the Cordova-Admob-plus plugin to show ads. The plugin works fine when I use the onsen UI to build apps. But when I use Jquery Mobile the ads do not show.</p> <p>I don't know why the ads do not work when I use the Jquery Mobile framew...
3
2,746
How to display Multi select Listbox as dropdown in ASP.NET web forms
<p>I have the below code implemented, but the desired output is not rendered. The list boxes are used to filter the grid view. I can filter the grid view but the filters (list boxes) are being rendered as it is. I need them to be inside the dropdown. I have included the links to relevant resources in the head section, ...
3
2,404
How to fix a problem with substract position by grouping on some position
<p>In my xslt converter I have to substract some of position from one invoice and show it on group. I don't know how can I do this. Now I have xslt which give me a result in separate position. </p> <pre><code>&lt;Invoice&gt; &lt;P_1&gt;2019.04.30&lt;/P_1&gt; &lt;P_2&gt;FV_0660/E/2019&lt;/P_2&gt; &lt;P_3&gt...
3
1,618
Flask: Make Application State Persist over tabs
<p>I'm new to Flask and am trying to create an application that can remotely control a voltage supply to set voltage/current and turn the voltage supply on and off on and off. With these actions, I would like to update some info on the webpage. </p> <p>The issue I'm running into is, if, for example, I set the power/cu...
3
1,415
Vuetify style not 100% applied
<p>I have a vuetify application that is set up using vue cli. Unfortunately, some CSS styles are not applied properly.</p> <p>Example: I am using a <code>v-text-field</code> which is rendered fine except that the <code>input</code> element gets borders set by <em>user agent stylesheet</em>.</p> <p>I saw <a href="http...
3
2,014
VGG: ValueError: too many values to unpack (expected 2)
<p>I defined VGG net and made test tasks: def net get the VGG model parameters, so I can use mnist data for a test task.</p> <p>Here are the error information:</p> <p>Traceback (most recent call last):</p> <blockquote> <pre><code> File "D:\Users\2015randongmei\workspace\tensor\VGG.py", line 73, in &lt;module&gt; ...
3
1,976
Certain Image src="" not showing on localhost.html/localhost.php file but shows in a plain .html file
<p>I am creating my first website as a university project, Im not very advanced, anyway I have a very distinctive problem. My client has sent me a bunch of images in jpg format from google drive.</p> <p>I have an collection.php file which dynamically populates each collection got from a JSON file.</p> <p>Everything w...
3
2,016
Azure Storage Exception while creating a container : Null InputStream is not a valid argument
<p>i have created an OSGI bundle and deployed on karaf which uploads file to Azure blob.(lets say B1) i also have another bundle for some other functionality.(lets say B2)</p> <p>now when i deploy B1 alone it works fine and when i deploy both bundles B1 and B2, my upload bundle gives me following exception.</p> <pre>...
3
12,598
memory game in javascript
<p>I am trying to make a memory game for my assignment in <code>Java</code>. I am stuck, so I need some help. So, I have made a menu where you choose your game difficulty (easy, medium, and hard). The various game modes give the player a different number of tries. I am stuck because I do not know how to get the tries' ...
3
1,101
list to handle array of doubles
<p>Is there a way to handle a list of doubles I can handle ints with the code below but not sure how to handle array of doubles.</p> <pre><code> { CalculateSumOfList.ServiceReference1.Service1SoapClient client = new CalculateSumOfList.ServiceReference1.Service1SoapClient(); CalculateSumOfList.ServiceReference1.Arra...
3
1,355
Magento 2: syntax error, unexpected '"', expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in phtml file
<p>Could someone please tell me why am I getting the following error?</p> <p>Parse error: syntax error, unexpected '&quot;', expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /app/vendor/magenest/module-instagram-shop/view/frontend/templates/slider/slider.phtml on line 161 ?</p...
3
9,414
Unable to send email with PDF attachment using Chrome
<p>I have a form that a user enters information and has the option to upload a document. Once they have filled out the form and click on the submit button, an email is sent to the indicated reciever. This works fine in IE and Firefox (whether the user uploads/doesnt upload a document).</p> <p>However, when a user uploa...
3
1,772
How to get a certain info from a json format?
<p>I am trying to get the count number of occurrenceTypeId = &quot;DANGEROUS_ATTACK_AWAY&quot;. For example in this case i want to display 10. I mention that this properties and valus aren't in the same order all the time, so liveStatistics[3].count is not working.</p> <pre><code> &quot;liveStatistics&quot;: [ ...
3
1,384
How to add new op in distributed Tensorflow?
<p>I'm trying to add a new op in distributed tensorflow. Following code is how I create a new operator which can add two array (following this tutorial: <a href="https://www.tensorflow.org/api_docs/python/tf/py_func" rel="nofollow noreferrer">https://www.tensorflow.org/api_docs/python/tf/py_func</a>).</p> <pre><code>i...
3
2,307
CAML query throwing SoapServerException
<p>This is the exception:</p> <pre><code>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. </code></pre> <p>Here's the CAML code:</p> <pre><code>&lt;Query&gt; &lt;Where&gt; &lt;And&gt; &lt;And&gt; &lt;And&gt; &lt;And&gt; &lt;And&gt; &lt;And&gt; ...
3
1,264
Spring Not Calling PostConstruct method when XML config is used but works when Java Config is used
<p>I have following class</p> <pre><code> import com.ujjwal.model.Speaker; import com.ujjwal.repository.SpeakerRepository; import javax.annotation.PostConstruct; import java.util.List; public class SpeakerServiceImpl implements SpeakerService { private SpeakerRepository repository; public SpeakerServiceImpl...
3
1,164
I`m Trying To Merge Two Adapter In One Recycler View but when Irun my app the app will be crashed
<p><a href="https://i.stack.imgur.com/ITDXk.png" rel="nofollow noreferrer">Here is the logcat error</a> <strong>I face some crash issue in my app when I run the app will be crashed, I`m doing two adapter merger in one recycler view at loading time app will be crashed I don't know about why app will be crashed</strong><...
3
6,475
I have tried to run this file in html but give me that error uncaught-reference script-is-not-defined
<pre><code>var alreadyDid = []; const getId = setInterval(() =&gt; { var weapon = priceArray[~~(Math.random() * priceArray.length)]; fetch(`http://localhost:3000/api/${weapon.name}`, { &quot;headers&quot;: { &quot;accept&quot;: &quot;application/json, text/plain, */*&quot;, &quot;accept-...
3
1,271
What if if statement is not executed and does not recognize numerical data from the date format?
<p>A user suppose to enter the date and based on the date entered the code determines which day of the week was at that specific date?</p> <p>The code successfully recognize the day of the week and recognize that each month has 31 days, so if I enter February 31, it automatically recognizes as March 3 if the year is si...
3
1,058
Problems with Unity rhythm game if key is pressed and note is not on box then count as miss
<p>I'm making a rhythm game in Unity and so far I've got the basic functionality running. However I would like it so that if the user pressed a key when no arrow is on the box to count as a miss. To do this I added an else statement to <code>canbepressed</code>.</p> <p>This is my code so far:</p> <pre><code>using Syste...
3
1,451
Black color for a style font clips through original line
<p>the purpose of <code>shadow()</code> is to create a line where a color that the user picks is followed by a black line. However, when the user drags the line across the canvas, particularly from right to left, the black line stutters over the original color </p> <p>I implemented the same method used to create a lin...
3
1,830
"undefined method `/' for "":String:" Error when implementing geokit
<p>I'm trying to use geokit to find all the entities next to a given set of coordinates, I've been trying for quite a few hours now and can't seem to find what the issue is.</p> <p>Initially thought it would have something to do with the Latitude and Longitude columns being String, so just ran a migration to convert t...
3
1,238
Close() was never explicity called on database
<p>I have a SQLite database that stores coordinates for my Google maps. It works fine but in my logcat i recieve this error:</p> <pre><code>01-25 14:36:24.338: E/SQLiteDatabase(12337): close() was never explicitly called on database '/data/data/com.example.androidbasic12/databases/android_api' 01-25 14:36:24.338: E/S...
3
5,348
Issue in drawing ellipsoid with OpenGL
<p>this is the code I use to create and draw an ellipsoid with OpenGL with shader</p> <pre><code> const float _2pi = 2.0f * M_PI; std::vector&lt;glm::vec3&gt; positions; std::vector&lt;glm::vec3&gt; normals; std::vector&lt;glm::vec2&gt; textureCoords; for(int i = 0; i &lt;= stacks; ++i) { // V texture ...
3
2,958
Cx_freeze bdist_msi directories syntax? how to interpret 'directory_table'
<p>I am having trouble creating new directories with the MSI generated with cx_freeze. I don't understand the windows direcotry_tables object and there is little to no documentation explaining it. has anyone had any success with this?</p> <p>here is the documentation for the setup script for cx_freeze bdist_msi.</p> ...
3
1,175
MVC application throws error when opening dev tools in browser
<p>I'm catching an error in my Application_Error method in global.asax when opening the dev tools in my browser. It's happening in both Chrome and IE (haven't tried any other browsers). This just started happening. The error is <strong>"The controller for path '/Scripts/kendo.all.min.js.map' was not found or does no...
3
1,413
Why these c3p0 queries are running often in mysql
<p>below is the <code>c3p0</code> and <code>hibernate</code> configuration and i'm going through below issues.why are these queries are running continuously and how can I disable them.</p> <p><strong>Hibernate and c3p0 configuration</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE hi...
3
2,673
Apache flink-kafka Adding multiple consumers in single flink-kafka consumer group
<pre><code>I am reading a "ABC" topic which have 5 partitions </code></pre> <p>but actually when i created a consumer group (i.e. Flinkkafkaconsumer09)it has only one consumer instance and that consumer is consuming all partitions.</p> <pre><code>I am trying to have a consumer group with 5 </code></pre> <p>consume...
3
1,550