title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
jsRender create an template for html table , given a certain number of rows and cols | <p>I need to do something like <a href="http://jsfiddle.net/edaloicaro18/t5MYG/3/" rel="nofollow noreferrer">this</a>, but using templates.</p>
<p>Do you know how to use counters inside a template? I ask you because I need those counters to generate the IDs for the inputs I create.</p>
<p><strong>HTML Code:</strong></p... | 2 | 1,159 |
binding on p:dataTable which is included multiple times causes ID unqiueness exceptions | <p>I'm attempting to use a special PrimeFaces data exporter implementation as being used in this answer:</p>
<p><a href="https://stackoverflow.com/a/14413932/396732">https://stackoverflow.com/a/14413932/396732</a></p>
<p>Our use case however is a little more complex, e.g. using Facelets to show the respective datatab... | 2 | 3,613 |
Unable to use *.pfx certificate with kestrel inside windows service | <p>I'm trying to configure my ASP.Net Core 3.1 app using windows service and kestrel.
So far the app works and starts correctly. Also works correctly in console mode.</p>
<p>However when i add https with my certificate (*.pfx container) things get weird.
The app works in console made without troubles but fails in serv... | 2 | 1,240 |
Making editable cells of a table readonly having Scroll Bar with itext | <p>Please find the below code.</p>
<pre><code>public class MakingFieldReadOnly implements PdfPCellEvent {
/** The resulting PDF. */
public static final String RESULT1 = "text_fields.pdf";
/** The resulting PDF. */
public static final String RESULT2 = "text_filled.pdf";
/** The text field index of ... | 2 | 2,514 |
Using Openlayers 3 clicks mouse and pop-up Overlay.is not work | <p>I use openlayers3 to display the map, now I want to click on the mouse pop-up a dialog box, but no matter how I modify the following code can not pop-up window, please help check, thank every body. The following code is a bit long, but I really don't know where I was wrong, so I have to post it all. I'm sorry.</p>
... | 2 | 9,392 |
How to change table data in react with buttons in modal | <p>Hi i have problem with my react components. I don't know how to update element in table from shared modal for all elements. In my real case i have students timetable and i have to edit columns with subjects. After I click on subject in table, modal should open and after i choosed which subject i want to input it sh... | 2 | 1,502 |
Materialize is not working with React, Webpacka. jQuery is not extended | <p>I have a problem with using materialize-css with React. I have built it using Webpack and Babel. The problem is:</p>
<blockquote>
<p>TypeError: $(...).parallax is not a function<br>
TypeError: $(...).material_chip is not a function<br>
TypeError: $(...).modal is not a function<br>
etc.</p>
</blockquote>
<p... | 2 | 1,482 |
MVVM - Using entities in ViewModels | <p>I am really just starting out with MVVM, IoC and Dependency Injection and I've hit a stumbling block that I don't know how to solve but I do understand why it's happening.</p>
<p>I am using Castle Windsor for DI and IoC functionality and MVVM Light as my MVVM framework in a WPF application. Using <a href="http://f... | 2 | 1,772 |
viewing XML like that of IE on Vista with TWebBrowser | <p>On XP this code worked fine if I wanted to view XML in a <code>TWebBrowser</code>:</p>
<pre><code>uses ComObj, MSHTML, ActiveX;
procedure DocumentFromString(ABrowser: TWebBrowser; const HTMLString: wideString);
var
v: OleVariant;
HTMLDocument: IHTMLDocument2;
begin
if not Assigned(ABrowser.Document) then
b... | 2 | 1,099 |
making a session cookie expire in 2 years | <p>I have the below script that sets cookies and pulls values into the forms. What I am struggling with is setting the expiration date for 2 years?
</p>
<pre><code> // Parse the URL
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = n... | 2 | 1,074 |
How to Redirect with primefaces polling? | <p>I'm developing jsf with primefaces 5.0, I need to redirect user to another page if condition is satisfied in the backing bean. So I use <code>p:poll</code> to let the page check the condition every second, if the condition is met, redirect user to another page.</p>
<p>I create a small project to try this scenario, ... | 2 | 1,131 |
VBScript Regex Fill Submatches even when not Required for the Match | <p>I'm trying to replicate Google calendar's method of creating an appointment from a narrative. I want to enter <code>5pm Happy Hour for 1 hour</code> and parse it into, ultimately, an Outlook AppointmentItem.</p>
<p>My problem, I think, is I have a large chunk of optional text at the end. And because it's optional, ... | 2 | 1,600 |
Netbeans jPanel build successful but no Output | <p>Every time I run this, it shows Build Successful. But no output is shown. I've tried configuring the project's main class, but didn't work. Is there anything to recheck in this code? I've pasted the whole code btw.</p>
<pre><code> import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.... | 2 | 6,533 |
Null Pointer Exception: addTextChangedListener | <p>In my application, there are two <code>AutoCompleteTextView</code> and a <code>Button</code> to calculate a certain operation. I am setting the <code>Button</code> responsive to the two <code>AutoCompleteTextView</code> in the sense that, if both of the <code>AutoCompleteTextView</code> are filled, only then should ... | 2 | 1,844 |
Threads in Background Service Android | <p>Hi I am trying to use the service class for first time and have been facing problems. What I want is an infinitely running (unless killed by Android System) service with an active Network connection. I have written the code which works fine on Android 4.3 and 4.4 but the application crashes when I try running on And... | 2 | 1,514 |
Discovering referers to SQLAlchemy object | <p>I have a lot of model classes with ralations between them with a CRUD interface to edit. The problem is that some objects can't be deleted since there are other objects refering to them. Sometimes I can setup ON DELETE rule to handle this case, but in most cases I don't want automatic deletion of related objects til... | 2 | 1,099 |
Hygieia - Creation of dashboard is failing | <p>I'm working no setting up Hygieia dashboard.</p>
<p>Hygieia: <a href="https://github.com/gigaaks/Hygieia" rel="nofollow">https://github.com/gigaaks/Hygieia</a> </p>
<p>Trying both approaches of setting it up locally or using Docker based installation/setup.</p>
<p>I'm successfully able to get mongoDB, it's API, U... | 2 | 1,151 |
Using useState hooks to update based on the previous state successively | <p>I'm trying to enable button if both the checkboxes are checked, I have nonworking <a href="https://stackblitz.com/edit/react-wpfepl" rel="nofollow noreferrer">stackblitz link</a></p>
<p>I have added the only crux of functionality. Please look into the link for the nonworking demo</p>
<pre><code> import React, {... | 2 | 1,214 |
Unable to instantiate activity ComponentInfo Android Studio Error | <p>I am newbie ... I ve been trying to create a simple program but it keeps failing so I need some help with this error... what is wrong ?</p>
<p>the error i get is : </p>
<pre><code>08-20 20:08:59.422 6192-6192/com.example.raduc.anew E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.raduc.anew, PID: ... | 2 | 2,238 |
Pythonanywhere - ImportError: No module named 'myapp.settings' | <p>Using Python 3.5 and Django 1.9, I was trying to deploy my app to pythonanywhere, but I keep getting this error</p>
<pre><code>2016-10-07 01:44:28,879 :Error running WSGI application
Traceback (most recent call last):
File "/bin/user_wsgi_wrapper.py", line 154, in __call__
app_iterator = self.app(environ, sta... | 2 | 1,207 |
Getting some error while installing Hudson? | <p>After Installing Hudson i got the below error message.</p>
<p>Can anyone help me how to fix the error.</p>
<p>Error: </p>
<pre><code>[!] Error
org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: mav... | 2 | 2,246 |
Angular JS ng-repeat arranging in vertical split format | <p>I need to maks some modifications in the traditional way of viewing the <code>angular js</code> <code>ng-repeat</code>. I have a JSON data in which there are n number of data (response from server. Length is not fixed). I need to show the data in split format. i.e, the first half number of the response is to be in a... | 2 | 1,032 |
Rails Missing JBuilder File Template | <p>I've been trying to use Fullcalendar to display events from a JSON feed. The events in the JSON feed are generated by SchoolEventsController. However, the events won't show up on Fullcalendar. Also, viewing the JSON file(school_events/index.json.jbuilder) produces this error:</p>
<p><em>ActionController::UnknownFor... | 2 | 2,845 |
Using paginate links on post archive page | <p>I would like to use paginate links on my archive page where I list all the posts from the website.</p>
<p>I would like to show only 10 posts per page and in the bottom to have OLDER POSTS link to display older posts on next page.</p>
<p>I tried adding pagginate function at the end but nothing shows up to me in the... | 2 | 1,331 |
Box2D dynamic body getting stuck (iPhone) | <p>I have a ground object and a spear shaped object(dynamic). When a button is pressed, a linear velocity is applied to the spear. It works fine but sometimes, it gets stuck on the ground. This happens most of the time (not always) when the side opposite of spear hide collides straight down with the ground. I am attach... | 2 | 3,000 |
Cannot install packages to R after brew install | <p>I've spent about an hour trying to debug this, but I think it's best to assume I haven't tried anything except <code>brew install r</code> and <code>install.packages("tidycensus")</code> and a few other packages to check if it was <code>tidycensus</code> specifically. </p>
<p>Let me know if there's any information ... | 2 | 3,656 |
C++: Mathematical error when adding two polynomials | <p>I'm in the process of writing a Polynomial Class and have overloaded the + operator. I asked a question a few days ago regarding the actual overloading process, and received a great answer. However, my question now is in regards to the actual function of my program. </p>
<p>I need to add two user entered polynomial... | 2 | 3,478 |
create a multidimensional array in codeigniter controller | <p>I'm having a controller to get users from DB and display every user in a table row</p>
<pre><code>Controller: [update] //only first page displays data correctly but pager +1 using
pagination displays user data only not getting orders as first page
when I print_r($orders) in all pages I get correct orders but in th... | 2 | 1,730 |
How do I trigger a jquery slider (NIVO SLIDER) to work in a jqModal window? | <p>I hope someone can offer any help!!</p>
<p>I have web page that initiates a modal window using jqModal (http://dev.iceburg.net/jquery/jqModal/). The jqModal is calling an external html file that has a NIVO Slider.</p>
<p>When I look at the external html page by itself without the jqModal window, the NIVO SLIDER wo... | 2 | 1,344 |
How to exclude weekends when adding days in sql | <p>I have the following tables on oracle DB
PRB_phases which contains:
PRBID,CREATION_DATE,INSERTIONDATE,ENDDATE,PRIORITY,COMPLEXITY,PHASES
and table RFQ_HOLD_TIME which contains
RFQID,HOLDDATE,UNHOLDDATE where i save the time that the problem is on hold status
so on the following query except the information about th... | 2 | 1,833 |
VBA / Macro upgraded from 32 bit to 64 bit | <p>I have been upgraded from 32bit to 64 bit and my macro to merge and arrange files in a folder does not work any more, not a VBA user so am pretty much stuck and would appreciate help getting the marco to work ?</p>
<pre><code>Option Explicit
'32-bit API declarations
Declare Function SHGetPathFromIDList Lib "shell... | 2 | 1,546 |
how to compare two gridview and ignore the sequence of data inside | <p>I am working with a program that need to compare between two gridview.</p>
<blockquote>
<p>So, I have two gridview</p>
<p>The first Gridview have a data that I added manually,</p>
<pre><code> column 1 | column 2 | column 3
a | d | g
b | e | h
c | f |... | 2 | 1,159 |
Android how to restart Timer Handler? | <p>I want to know how to restart a Timer after on Button click after timer has been stopped.
What I want is: </p>
<ol>
<li>first button click: timer start</li>
<li>second click: timer stop</li>
<li>third click: timer restart</li>
</ol>
<p>The first two are working but not the restart.</p>
<pre><code>private Button s... | 2 | 1,046 |
failed to sign in . Please check your network connection ad try again , google play game services | <p>This might be a duplicate but i have tried everything available on internet to fix this but no luck so far , so asking again .
I have implemented a game in libGDX and now using google play games in it , using BaseGameUtils lib and google api methods . but when i start game now i get below error</p>
<blockquote>
<... | 2 | 5,076 |
Flask WSGI application hangs when import nltk | <p>I followed the instructions <a href="https://beagle.whoi.edu/redmine/projects/ibt/wiki/Deploying_Flask_Apps_with_Apache_and_Mod_WSGI" rel="nofollow noreferrer">here</a> to create a onefile flask-app deployed to apache2 with mod-wsgi on ubuntu. That all works fine when using the original flask app. However, when addi... | 2 | 1,069 |
Passing variables between classes in Tkinter, Python 3 | <p>I'm kind of a newbie to Python, and I'm writing some code to take data via a user input and put it into a .csv file. To do that, the program needs to pass data from class to class.</p>
<p>To teach myself how to pass data, I took code from <a href="https://stackoverflow.com/questions/32212408/how-to-get-variable-dat... | 2 | 1,093 |
Dynamically add/remove whole UI elements in Shiny | <p>I've been trying to generate a Shiny page where elements can be added or removed by the user - based on <a href="https://gist.github.com/beader/bbf2221ab6f84a819c0f" rel="nofollow noreferrer">this snippet</a>. I tried to adapt it for UI elements rather than buttons, but I've clearly done something wrong. </p>
<p>I'... | 2 | 1,071 |
how to generate cubes randomly in opengl / c# | <p>I'm trying to build a game 'blocks' which sees the matches cubes and delete them.
This code makes two cubes and moves them along the y-axis. Then, it supposed to disappear and 100 cube in different places to appear. My problem is I don't know how to make the cubes look disappearing nor how to write the function 'cub... | 2 | 2,881 |
how to extract the detected region in opencv? | <p>Everyone. I have shown below my code for tracking objects and it shows background subtraction result also. Here I am using frame differencing method. now my problem is that I have to extract that moving object from the color video file. I have done segmentation. But for detection I want to extract the region on whic... | 2 | 3,131 |
How to gracefully stop a java main program running inside eclipse | <p>I am running a script in eclipse ( java main method program ) which creates threads where each thread processes an excel sheet and then saving the processed data into database. It has been crunching data since 2 days, suddenly today logs which i print after processing each record from the excel stopped. </p>
<p>Aft... | 2 | 2,698 |
Problems whit AspecJ AOP Configuration in Spring : java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut | <p>I am studying AspectJ annotation to configure AOP in Spring Framework reading this article:
<a href="http://www.tutorialspoint.com/spring/aspectj_based_aop_appoach.htm" rel="nofollow">http://www.tutorialspoint.com/spring/aspectj_based_aop_appoach.htm</a></p>
<p>Differently from this article I am not manually addin... | 2 | 3,279 |
How to Render Google Maps with Markers after Ajax Call | <p>The objective of below program to fetch the json (long/lat) data from a webservice, and then insert the received data into markers, and then render the Google map with markers. I have tried various strategy (e.g. kept ajax call here and there) but it didn't work, whatever be the reason that Ajax call happened after ... | 2 | 1,716 |
Moodle: Using the returnto query parameter to redirect back to my local plugins index after course edit | <p>tl;dr; Trying to link the 'save and return' button when editing/deleting a course to my local plugins index.php instead of moodles default redirect for these features, moodle allready has a <code>returnTo</code> query parameter so i was thinking if that could be used somehow. </p>
<p>Hey</p>
<p>I am creating a loc... | 2 | 1,076 |
edit_text cannot be resolved or is not a field | <p>I hit "Run" while doing the tutorial on Android.com in Eclipse, and I get "edit_text cannot be resolved or is not a field". Here is my code for MainActivity '</p>
<pre><code>import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText... | 2 | 1,340 |
Scrolling programmatically | <p>I would like the cell of my JTable to be aligned horizontally with the selected panels.<br/>Here is the a SSCCE to illustrate my problem. Thanks for any help.<br/></p>
<pre><code>public class TableCellAlignment {
private final static int MAX = 50;
private static SelectablePanel[] selectablePanels = new Se... | 2 | 2,516 |
how to retrieve all the input value in a div class | <p>I tried to retrieve all the input value in this tr class</p>
<pre><code> <tr class="tr-shadow" id="myform">
<td>
<span class="status--process">
<input class="au-input au-input--sm" type="text" name="search" placeh... | 2 | 1,575 |
How to remove unwanted keys and key values | <p><br/>
Here is the original <strong>JSON</strong> object I am retrieving from my <strong>CouchDB</strong> database:</p>
<pre><code> {
"total_rows": 3,
"offset": 0,
"rows": [
{
"id": "1e8fe199d4e761b71bb8920eb3003db2",
"key": null,
"value": {
"_id": "1e8fe199d4e761b71bb8920eb3003db... | 2 | 3,421 |
Embedding multiple levels collection of forms in Symfony2 | <p>I have the following situation: the CVCFormType is a collection of BenefiItemsFormType. Each BenefitItemFormType has one field that is a collection of BenefitGroupFormType.</p>
<p>I want to be able to dynamically add and remove elements.</p>
<p>I followed the instructions <a href="http://symfony.com/doc/current/co... | 2 | 3,187 |
Can't do all possible moves of a Horse in a Chess table | <p><strong>UPDATE:</strong> Thanks a lot M Oehm for your awesome answer, really helped me a lot. That struct pos moves is really helpful, haven't studied it yet on class. Im working on a fully solution of my code adding yours as a bone on the programs skeleton. Already fixed the problem of updating fila and columna, th... | 2 | 1,737 |
Error - this S4 class is not subsettable | <p>I know there are several answers on this question, however I could not find any applicable to my question. Could anyone help me in regards to the error this S4 class is not subsettable at the bottom of this code. I am not sure where this error comes from. The output result should be the thresholded coefficients of D... | 2 | 1,527 |
TextAreaExpander plugin for jQuery: Error for know the browser | <p>I using the plugin's programmed in javascript or Query from two years.</p>
<p>Now I opened this my project with my plugin for expander the textarea.</p>
<p>I have this new error on this sentence (analizying with Firebug).
TypeError: $.browser is undefined</p>
<pre><code>var hCheck = !($.browser.msie || $.brow... | 2 | 1,089 |
MVC And Ajax.BeginForm and DIV.Load | <p>I have a partial that defines an Ajax.BeginForm. The model returned has a property for ReportLink created on the server resource that returns a Url to a PartialView.</p>
<p>On the Ajax,BeginForm.OnSuccessFunction I am attempting to return and load html content with <code>$("reportContent").load(AJAXRESULT.RenderLin... | 2 | 1,588 |
How to refresh table data while select different value in Select box | <p>I want to refresh table value while select different value in Select box. My Issue is when select the select box value Table load the data perfectly then i select the another value Table loaded without refresh the existing value.</p>
<p>HTML Code</p>
<pre><code><select id="destinations">
<option value=... | 2 | 1,640 |
How to export more than 63 parameters using a FileWrite() function in MQL4? | <p>Below I have the full code that allows me to download the data of one currency pair, the <code>USDJPY</code></p>
<pre><code>#property copyright ""
#property link ""
#property version "1.00"
#property strict
datetime LastActiontime;
//+------------------------------------------------------------------+
//| E... | 2 | 7,413 |
Tomcat 7 does not scan annotations when using Jersey 2 | <p>I have a Jersey 2 Maven project.</p>
<p>web.xml:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8"?>
<!-- This web.xml file is not required when using Servlet 3.0 container,
see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html --&... | 2 | 3,877 |
How to push all lower elements down when expanding a div? | <p>I have a video iframe that expands when clicking a button. This is contained inside of a header for the page which has 100vh height (full screen). When the video expands, it pushes the rest of the content in the header up in order to have everything vertically centred within the header. Instead, I would like to incr... | 2 | 2,383 |
How to fix: "Testing pyext configuration : Could not build python extensions" | <p>I am trying to install wxPython but the wheel build fails. The error message is not helpful in indicating what to do or where to look to fix this. Can anyone please help me understand how to build this wheel correctly?</p>
<pre><code>Machine: Linux on Power (this is not x86)
OS: RHEL Server, 7.5 (Maipo)
python vers... | 2 | 5,303 |
From MPI_Scatter to MPI_Scatterv | <p>This is a part of the code:</p>
<pre><code>#include<mpi.h>
#include<stdio.h>
int main(int argc, char *argv[])
{
int numtask;
double *Matr_Init,*Matr_Fin;
int i, myrank, root=0;
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
MPI_Comm_size(MPI_COMM_WORLD, &numtask);
double ... | 2 | 1,441 |
boost::ref and boost::asio completion handlers, pass-by-reference | <pre><code>m_io_service.post(boost::ref(i));
</code></pre>
<p>I have this call in a section of code, the underlying type <code>i</code> is definetly a callable (because removing the boost::ref leads to pass by value, which works fine), however clang tells me that :</p>
<pre><code>/opt/dev_64_swat/proto-rpc2/dependenc... | 2 | 1,184 |
Making a 10 second timer for an Angular JS application | <p>I was working on a quiz application in Angular JS, more like the quiz up application where you can have a timed quiz consisting of questions, each question giving you 10 seconds to answer.I have completed making a quiz application which allows me to answer questions and at the end giving results but i am stuck on th... | 2 | 1,140 |
Find Controls placed inside ListView Wpf | <pre><code> <ListView Height="Auto" Name="lstIndent" SelectionMode="Single" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Row="0" >
<ListView.View >
<GridView x:Name="dgIndentDetails" >
<GridViewColumn Width="Auto" >
<G... | 2 | 2,871 |
How to dynamically create nested list using jQuery? | <p>I'm new to web development and I'm sort of stuck with this. I have the idea in mind but I don't know how to formulate it using jQuery. I have an unordered list which should be updated with a listitem every time a button is clicked. If a listitem is highlighted, then I click the Add button, it should create a sublist... | 2 | 1,236 |
Parsing Google API 'Address_Components' List/Dictionary Results Consistently in Python | <p>I am using Python 3 and the Google Geocoding API to gather address information. I am having a difficult time consistently parsing out the address components that I am getting back. The JSON structure for the <em>'address_components'</em> section does not seem to follow standard json formatting, and I can't find any ... | 2 | 1,179 |
get user returns "AnonymousUser" on django | <p>I followed this <a href="https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#custom-users-and-the-built-in-auth-forms" rel="nofollow">tutorial</a> creating a custom <code>User</code>.
in <code>views.py</code> I created a method preseting the user information by userid (i.e. /users/42) but the result is <c... | 2 | 1,681 |
several questions regarding zoo::rollapply | <p>My understanding of <code>rollapply</code>'s <code>width</code> option is that it specifies the window size on which the function will operate and <code>by</code> options specifies the shift size for this window. Here is my dataset:</p>
<pre><code>> dataset <- as.vector(t(cbind(5:1, 1:5)))
> dataset
[1] 5... | 2 | 1,931 |
Scrapy gathers data, but does not save it into the item | <p>I've built a spider that gets the stock data for a given stock from as many pages that the stock has (this can be 1 page of stock data, or 20 from Yahoo! Finance). It scrapes all the pages well, and gathers all of the data as it should. However, for some reason it won't save any of the data into the actual scrapy it... | 2 | 7,084 |
Upgrading angular 2.0.0 to 2.4.x | <p>I'm trying to upgrade my Angular 2.0.0 application to 2.4.8 i used following link guides <a href="https://www.npmjs.com/package/npm-check-updates" rel="nofollow noreferrer">https://www.npmjs.com/package/npm-check-updates</a>. but i get some error.</p>
<p><strong>Old dependencies</strong></p>
<pre><code>dependencie... | 2 | 2,528 |
Using Entity Framework 6 / EF Core inside SQL CLR | <p>Microsoft Azure Tech support has confirmed <strong>that all version of .Net 4.XX including 4.7.2 is supported</strong> in SQL Server Managed Instance CLR.</p>
<p>We're transforming some portion of Business layer with 4.7.2 and latest EF 6.2 </p>
<p><a href="https://stackoverflow.com/questions/48284609/use-entity-f... | 2 | 2,945 |
Jquery validation to require at least one field is selected for a filter? | <p>Can someone give me a Jquery example to enforce at least one field is selected.
My issue how do I check for items like checkbox and dropdownlists (default empty string)?
Note: using ASP.NET MVC3 C#</p>
<p>my code in the view:</p>
<pre><code> <fieldset id="fieldset1" class="coolfieldset">
<legend&... | 2 | 1,930 |
Traverse Nested Tables in JQuery | <p><strong>Need</strong>:
I want to convert the data in my table into a comma separated value.</p>
<p><strong>Problem</strong>:
A table cell may have another table. (e.g. Row1, Cell 3 contains a table) The script needs to run for nested tables and capture the column only once. Here it is capturing "Col 3" twice.
The n... | 2 | 1,207 |
Array Items Filtering Ionic 3 | <p>I have implemented array list. It is populated from fire-base. I want to search through that list. When the page is loaded first time, It do not display any listed item. But if I type something on search input then it shows the list items. I tried ngZone but it did not work, here I will give you full source code. </... | 2 | 1,174 |
Sequelize Query Execution In Loop | <p>Below iam calling addUpdateDailyLeads with an array like </p>
<pre><code>[{
"yyyymmdd": "20191124",
"admin_login":"rasheed.s",
"category":"PO",
"amount":10,
"office_id":10000,
"new_leads_attempted":10
},
{
"yyyymmdd": "20191124",
"admin_login":"rasheed.s",
"category":"PO",
"a... | 2 | 1,207 |
MySql query fails in Kafka-connect | <p>I am using Kafka connect (confluentinc/cp-kafka-connect:5.4.0) and have MySQL connector installed in it. Basically the following Dockerfile:</p>
<pre><code>FROM confluentinc/cp-kafka-connect:5.4.0
RUN echo "===> Installing MySQL connector" \
&& curl -k -SL "https://dev.mysql.com/get/Downloads/Connec... | 2 | 15,349 |
How to update list of child entities when i have ManyToMany relationship (spring-boot/spring-data-jpa)? | <p>I have Product and Category entities. There is ManyToMany relationship between them and Product is relationship owner, so when I call action to create/save Product(with category1 and category2 for example) two queries are called:</p>
<ol>
<li>insert into Products...</li>
<li>insert into ProductCategory...</li>
</ol... | 2 | 1,118 |
API authentication failure due to Unclassified Authentication Failure with WSO2 IS-KM as Key manager in WSO2 API M | <p>Hello I am very much new to WSO2 products and exploring WSO2 API Manager 2.6.0 and WSO2 IS - KM 5.9.0. I am trying to use WSO2 IS -KM as key manager for WSO2 API M. I have followed all the steps mentioned in <a href="https://docs.wso2.com/display/AM260/Configuring+WSO2+Identity+Server+as+a+Key+Manager#ConfiguringWSO... | 2 | 3,591 |
Thread pool stuck on wait condition | <p>I'm encountering a stuck in my c++ program using this thread pool class:</p>
<pre><code>class ThreadPool {
unsigned threadCount;
std::vector<std::thread> threads;
std::list<std::function<void(void)> > queue;
std::atomic_int jobs_left;
std::atomic_bool bailout;
std::atomic... | 2 | 1,484 |
MongoDB Atlas "MongoSocketException Exception sending message" | <p>I got this problem when trying to upload an Image to the Atlas database with SpringBoot. When Ido the test on the local MongoDB database, it works well.</p>
<p>Also My project connected to Atlas well because I can use another api to upload "logo" image, but for my "Image" api, it not working, it ... | 2 | 2,049 |
Facebook xfbml Like Button not working correctly | <p>I have a news section on my site that is ajax driven. I'm trying to implement the xfbml version of the Facebook Like button and have run into a few problems.</p>
<p>When clicking on 'Like' on a news item for the first time, none of the og tags are pulled in, so all you get is a comments box.
Strangly, if I then vi... | 2 | 1,272 |
Maven project build into jar and war | <p>I have a project with the following <em>pom.xml</em> and I have removed some of the unwanted stuff from it. What I intended to happen was to generate a jar file and ultimately generate a <code>war</code> package that includes the <code>jar</code> file as a library. Unfortunately, this doesn't seem to be happening wi... | 2 | 1,456 |
HighChart with large amount of data not working | <p>I am working with one of the large CakePHP portal, where I have used Highcharts for some graphical representations.</p>
<p>Its working fine for almost all the simple graphs, but my problem arise when Query retrieved large data from database and tried to plot in Highchart.</p>
<p>Below are the example data which I tr... | 2 | 1,594 |
MySQL join three tables with where clauses from each | <p>I have three tables that I need to join all together and create a large table with where conditions.</p>
<p>I am using Codeigniter with MySQL backend.</p>
<p>Consider an HTML form where the admin is asked to input the item ID. A table is then to display that lists all the players in the database with that specific... | 2 | 2,198 |
Chart.js PolarArea Chart Labeling | <p>I searched throug the net, but couldn't find any helpful advice to solve my problem. I'm using chart.js and I want to create a polararea type chart. So far so good, but when I draw it there are no labels.</p>
<p>It looks like this:
<a href="https://i.stack.imgur.com/nX2Vd.jpg" rel="nofollow noreferrer"><img src="ht... | 2 | 1,270 |
Login app with existing user - phone Auth Firebase Android - | <p>I'm developing an app where I use the firebase phone auth method. It works great with first time users, they get the sms code and get registered in the firebase console. But if they signout or reinstall the app, they can't access to the app menu since they are already in the firebase console database.</p>
<p>I don'... | 2 | 5,143 |
How to get mouse position properly on keypress with autohotkey Invalid Hotkey Error | <p><em><strong>For those who find this later, for google reasons or anything, while the comments helped, I largely had to re-do the code from scratch. If you want the CSP equivalent of a private layer in Procreate, or if you want to use CSPs recording features without your reference layers showing up, download autohotk... | 2 | 1,284 |
Plugin cannot be loaded for module "QtMultimedia". Cannot load library declarative_multimedia.dll | <p>I'm creating a PyQt5 + qml application. <strong>Windows 10, PyQt5 5.13.2, Python 3.6</strong>. Everything works fine until I try and import QtMultimedia, which results in the error message:</p>
<pre><code>QQmlApplicationEngine failed to load component
file:///C:/Users/user/PycharmProjects/Project/project/pyqt-gui/p... | 2 | 5,576 |
undefined reference to vtable with all virtual functions implemented | <p>I have these two structs defined:</p>
<pre><code>#ifndef OBJECT_H_
#define OBJECT_H_
#include <stdio.h>
#include "vector.h"
struct object{
public:
int index; // identifies a object; must be greater than 0
float mat_ambient[3]; // material property used in Phong model
float mat_di... | 2 | 1,923 |
Retrofit returns content length 0 with spring data rest | <p>I am using spring boot application with spring data rest deployed on heroku. I have a /api/userDatas end point on which an entity can be created by a POST request. I have tested it using Postman and it gets created. </p>
<p>Now I am using retrofit on android to perform the same functionality. But the problem is tha... | 2 | 1,370 |
testing php laravel controller shouldReceive arguments | <p>I have a laravel model which uses ardent/eloquent. I am trying to set up tests for the controller in particular, storing a new model that uses the ardent model.</p>
<p>The method works in the app but I'm having trouble with my tests</p>
<p>I'm having problems working out how to mock the calls this method makes.</p... | 2 | 1,459 |
I²C Master Write with PIC18F45K50 : keeps SCL low | <p>I'm writing my own I²C Master Write function according to Microchip's datasheet. I'm using MPLAB X. I generated the configuration with the Code Configurator, but here are the interesting bits :</p>
<pre><code>// R_nW write_noTX; P stopbit_notdetected; S startbit_notdetected; BF RCinprocess_TXcomplete; SMP Standard ... | 2 | 1,329 |
How To Create Razor MVC That Accesses Data from a Stored Procedure | <p>New to MVC, I am trying to get a model-view-component that works. The only constraints are that the data gets populated by a stored proc in a C# class, and that the PartialView uses Razor and is stored in the _Shared folder so all pages can reference it.</p>
<p>All I have that I think might work is the ViewModel, B... | 2 | 1,460 |
Apollo client not updating cache | <p>I am trying to use the Apollo mutation component but somehow, my cache (or ui?) isn't updated as I expect. The code executes just fine, but the new user data received from the server (such as uuid/id etc.) has never been populated with the current one.</p>
<p>The 'updateCache' were I know about shouldn't be necessa... | 2 | 1,282 |
Trying to mount a usb partition in Linux using a cpp program | <p>I want to detect a usb connection and mount its corresponding partition.
I tried using udev.I was able to find device in /dev/bus/usb/001 or/002.But from this I cannot find which partition it uses. So using udev I searched for block partitions and mount if a partition is added..eg/dev/sda1.But this is a temporary so... | 2 | 2,962 |
PCM DMA Engine Using AXI-DMA IP on Xilinx Zynq Based Platform | <p>I am trying to use a DMA engine on a Zynq-7000 based platform to transfer a PCM stream to a custom I2S controller in the Zynq PL. My I2S controller interfaces to an external amp. I want to use DMA through an AXI-DMA Controller. This is currently my datapath:</p>
<p><a href="https://i.stack.imgur.com/j4xGo.png" rel=... | 2 | 2,832 |
how to fix error with Substring and IndexOf c# | <p>i dont know how to fix this runtime error:</p>
<p><a href="http://postimg.org/image/hh9vl7hi9/" rel="nofollow">http://postimg.org/image/hh9vl7hi9/</a></p>
<p>The value of roomsInfo is : "@114|mag|nir|1||dan|nir|1||\0"
and it crash when the value is : "dan|nir|1||\0"
(in the second time of the while) when i try to ... | 2 | 1,066 |
How to convert unicode string to proper character using jQuery? | <p>Here I have the following function to convert the string into a slug to make SEO friendly URL.</p>
<pre><code>stringToSlug: function (title) {
return title.toLowerCase().trim()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/&/g, '-and-') // Replace & with 'and'
... | 2 | 1,026 |
Errors building R-packages for conda | <p>I am having a tough time installing R-packages that are not available in the Anaconda repositories. My attempts so far can be found here <a href="https://stackoverflow.com/questions/36652015/how-to-install-r-packages-not-in-the-conda-repositories">How to install R-packages not in the conda repositories?</a>.</p>
<p... | 2 | 1,403 |
Wordpress get_permalink() PHP Link not working for external links in posts | <p>Using wordpress and editing some PHP code in my child theme and have run into an issue with a sidebar widget for popular posts.</p>
<p>Each blog post in wordpress that is popular accurately shows up in the popular posts sidebar, and clicking the story title it will go to the single story page <em>on my blog</em>.</... | 2 | 1,092 |
Set view to match_parent in a layout in android | <p>I have a tiny problem with a InfoWindow layout.
I am trying to set a view in the layout to match the parent in width, but I get some small gaps in the left and right margins.
I tried with LinearLayout, RelativeLayout and ConstraintLayout as root view, I get the same results.</p>
<p>Here is my XML:</p>
<pre><code>&... | 2 | 2,513 |
debug AuthComponent in cakephp 2.4 | <p>I baked a cakephp application with a users table, and I'm trying to get authentication to work using the Blowfish hash. My password field is a varchar(255), so it should be long enough to store the hash. Everything in the app is the default baked output, expect for what follows.</p>
<p>This issue is that I can't lo... | 2 | 1,164 |
How to set target net7.0 -windows? | <p>I try change</p>
<pre class="lang-xml prettyprint-override"><code><Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<... | 2 | 1,626 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.