title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Materialize TextArea not dynamically changing? | <p>Working with a TextArea, class="materialize-textarea".
On the documentation at <a href="https://materializecss.com/forms.html" rel="nofollow noreferrer">https://materializecss.com/forms.html</a> there should be no javaScript or jQuery needed for the TextArea to expand downwards and move the page's content along wit... | 2 | 1,323 |
How to make width of a view dependent on other view in a recyclerview? | <p>I want to measure the width of a cardview and match to the cardview that is on its outside, to get a clear understanding I will attach an image along with the question:</p>
<p><a href="https://i.stack.imgur.com/idDVU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/idDVU.png" alt="enter image desc... | 2 | 4,433 |
How can I handle search queries in react js? | <p>I have my node js server up and running and I handle query requests like this :</p>
<p>controller.js</p>
<pre><code>const getUsers = async (req, res, next) => {
const age = req.query.age || 1;
const lessage = req.query.minAge || 1000000000;
const search = req.query.s || '';
let users;
try {
... | 2 | 1,245 |
Saving a MemoryStream to Azure blob storage | <p>I'm using the Infragistics report system to create reports as PDFs and save them to Azure Blob Storage but I'm having trouble getting it to work. I generate the report as a Report object without any problems. This object has a method called <code>Publish</code> which publishes the report to a stream in a specified f... | 2 | 1,564 |
nginx - php-fpm Forbidden if the index.php is not present in nginx folder | <p>we are trying to deploy an application on GCP with kubernetes. We create a container/pod only with PHP-FPM and another with NGINX.</p>
<p>We make the deploy and all works but when we try to get the 'helloword' php file called index.php we receive an error 403 Forbidden from the NGINX serve.</p>
<p>So I try to ente... | 2 | 1,872 |
Jasmine errors after upgrading to Angular 8 | <p>After upgrading my angular CLI and libraries, I am really struggling to make my project work.</p>
<p>When I run <code>ng test --source-map false</code> I get the following error.</p>
<p>What can I do to fix it?</p>
<pre><code>ERROR in node_modules/@types/jasmine/index.d.ts:20:1 - error TS6200: Definitions of the ... | 2 | 1,919 |
Why do I get "java.lang.IllegalArgumentException" error? | <p>I have this code, I took it from stackoverflow and a bit changed it. The code retrieve the gallery`s content and put every image path inside an array list. Then it choose randomly one of the path inside the ArrayList and put as resources for an ImageView. Thank you for attention.</p>
<pre><code>import android.dat... | 2 | 1,363 |
Problems with hibernate validator- javax.persistence.RollbackException (spring) | <p>I tried to insert validation into my maven project, but after that my project won't work anymore. Here is my code:</p>
<p>My entity class:</p>
<pre><code> @Table(name="Kandidati")
public class Candidate {
@Id
@Column(nullable=false)
@Size(min=13, max=13, message="JMBG mora imati 13 karaktera! ")
... | 2 | 3,955 |
Google App Engine - Update JPA 1 to JPA 2 | <p>I want to update my GAE web app to use JPA 2.0. From the doc <a href="https://developers.google.com/appengine/docs/java/datastore/jpa/overview-dn2#Setting_Up_JPA_2_0" rel="nofollow">here</a>, it says that I have to copy the content of <code>appengine-java-sdk/lib/opt/user/datanucleus/v2/</code> to <code>lib</code> f... | 2 | 1,255 |
c++ functions as template arguments | <p>I'm experiencing some problems which can be resumed by the following piece of code:</p>
<pre><code>template <typename Key, typename Data, typename fct>
size_t wrapper(const std::pair<Key, Data> & p)
{
return fct(p.first);
}
int main(int argc, char *argv[])
{
size_t val =
wrapper<int, in... | 2 | 1,460 |
Invalid property `xyz` of bean class[java.util.ArrayList]: Bean property 'xyz' is not readable or has an invalid getter method | <p>I'm new to Spring boot. I'm having trouble with javax based validations.
The controller expects list of json obj from POST endpoint. In the JSON request json array,
if <code>engine</code> or <code>name</code> is null, I get correct 400 error. But, when <code>engine.type</code>
or <code>engine.name</code> are null,... | 2 | 1,508 |
Using angular ui.router how to start in a standard html angular page and than move forward to one with ui.router template inside a folder? | <p>I have a standard angular page that is not associated with any ui.router functionality(index.html). From that page I click a link that triggers an angular call and than after some operation the flow needs to be redirected to a page inside a folder that is using angular-ui.route template. </p>
<p>I have created a pl... | 2 | 1,759 |
Not able to deploy to Websphere Application server 8.5 through Jenkins | <p>I am getting below error:
"No deployable artifacts found in path" while doing deploy through Jenkins.</p>
<pre><code>[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Activation 0.1
[INFO] -----------------------------------------... | 2 | 1,642 |
Implementing the D3 "reusable chart" pattern in TypeScript | <p>The code in <strong>section 2</strong> below (working example <a href="https://jsfiddle.net/mjmitche/tzboups3/2/" rel="noreferrer">here</a>) is based on the code in section 1 but changed to use arrow functions, and it is based on Mike Bostock's pattern in <a href="https://bost.ocks.org/mike/chart/" rel="noreferrer">... | 2 | 1,109 |
Can't access Mongo from Node container running in Istio | <p>I'm trying to run a stateful Mongo inside Kubernetes and it works with these configurations outside of Istio.</p>
<pre><code> mongodb: {
uri: "mongodb://mongo-0.mongo,mongo-1.mongo,mongo-2.mongo",
dbName: "app"
}
</code></pre>
<p>But when I run the node application inside Istio, it loses the ability to ... | 2 | 1,086 |
UIInput values inside cc:insertChildren are not redisplayed after validation failure | <p><strong>Update:</strong> Updated once more now. I think my previous analysis was wrong, because I have now been able to create an example for this. It appears to be related to composite components and the insertChildren tag.</p>
<p>Here is my facelet:</p>
<pre><code><?xml version='1.0' encoding='UTF-8' ?>
&l... | 2 | 1,480 |
OpenCV resize memory leak | <p>I have a little bigger application that was generating memory leaks. I could nail them down to a <code>cv::resize</code> call. These leaks are not causing guaranteed crashes, but instead it seemed to be system dependent. It crashed on one, but not the other, "only" giving a first chance exception there.</p>
<p>I re... | 2 | 1,664 |
Update multiple fields of a mysql database using a php form | <p>I want to to pull all fields from a row in my table into a form, update them, and post them back to the database. This is what I have, everything from my table row is pulling into the form but when I update I get undefined variable for $row.</p>
<pre><code><?php
include("header.php");
include("config.php");
if... | 2 | 3,314 |
Multiple Minimums in R | <p>I am trying to find the values which contribute the most and least to a Guassian Kernel Density estimator. I've written a function to find these, but I'm getting multiple values for a max when I run it. I thought this might be related to the number of significant digits, so I increased those but nothing changed. </p... | 2 | 1,292 |
How to plot 1-Sigma Prediction Interval for scipy.odr | <p>When using an orthogonal distance regression (<code>scipy.odr</code>) with a log function, what is the correct way to plot 1-sigma prediction interval?</p>
<p>I have tried several different approaches (including from several SO posts), but with the log function, the intervals appear to be far too wide:</p>
<p><a h... | 2 | 2,139 |
Angularjs - How to group by rows with the same value in a specific column into one cell? | <p>I have these columns:</p>
<pre><code>Column1 Column2 Column3
1 a x
1 b y
2 c z
</code></pre>
<p>I want the result to be:</p>
<pre><code>Column1 Column2 Column3
1 a x
b y
2... | 2 | 1,072 |
find specific folder in any mapped drive and report its full UNC path | <p>I was wondering if it was possible using a batch file to find a specific folder in any mapped drive of a PC and have it report the folders full UNC path. Lets say a PC has drives mapped of N:\ & S:\ (or any usual network drive letter for that matter). The folder could be in either folder and I run some code to f... | 2 | 1,376 |
How do I share components with external Sass stylesheets in ReactJS | <p>I am trying to build a monorepo for my React projects as most of the code is shared between a few of my projects. I am using Yarn workspaces and Lerna for this.</p>
<p>I have managed to get a basic example working where the React component is shared between two projects. In this working example, however, the stylesh... | 2 | 1,227 |
Neural Network StyleGAN Style mixing trouble | <p>The neural network is loaded from GitHub with pre-trained files and successfully generates random photos. It seems to be random. But when you run the script generate_figures.py displays a photo of a mixed forest of the other two, also random.
Question. How to make a neural network to make a mix of two user-defined ... | 2 | 1,450 |
Why can't my C code find my Java functions? | <p>My application makes calls to a native library, and then within the native library, makes calls back to the Java code. I have the calls TO the native library working correctly ( I'm pretty sure ), but not its telling me that it can't find the Java functions when trying to call them from the C file. </p>
<p>The appl... | 2 | 1,911 |
Taking a screenshot C++ cli | <p>I've seen the <a href="http://www.daniweb.com/software-development/cpp/threads/335547/take-screenshot-and-save-it-as-jpg" rel="nofollow">following code</a> that takes a screenshot and saves it as jpg, I've managed to compile and run it as win32 CONSOLE application,</p>
<p>But when I tried to use the following code ... | 2 | 2,148 |
.NET Core 2.0 xUnit tests not discovered in VSTS | <p>Im trying to set up VSTS Continuous Integration with a .NET Core 2.0 project and xUnit. </p>
<p>I've got the xunit.runner.visualstudio NuGet package installed, and everything works fine in Visual Studio.</p>
<p>VSTS cant find any tests to run though.</p>
<p>What I could find so far is <a href="https://blogs.perfi... | 2 | 2,464 |
Add list items in specific order | <p>I have two boxes, right and left. Right box contains list of items, and left is blank at beginning.</p>
<p>I want to add items from right to left in specific order even if I click randomly on list items.</p>
<p>And I don't want to rearrange all items every-times on left box after click on each list item.</p>
<p>C... | 2 | 1,414 |
React unit tests with Enzyme don't re-bind context of helper functions | <p>This is an interesting issue that I came across while trying to refactor some of my React components using AirBnB's React testing library, <a href="https://github.com/airbnb/enzyme" rel="nofollow">Enzyme</a>.</p>
<p>I think the best way to explain my problem is through an example.</p>
<p>Here is a small React comp... | 2 | 1,365 |
Django rest framework foreign key constraint fails creating model | <p>I have the following in a Django Rest Framework setup:</p>
<p><strong>models.py:</strong></p>
<pre><code>class Sku(BaseModel):
sku_code = models.CharField(max_length=18, primary_key=True)
supplier_id = models.PositiveIntegerField(db_index=True)
soh = models.PositiveIntegerField(default=0)
reserved ... | 2 | 1,051 |
Loading flat data into a tree data structure | <p>Currently, I have an Item class and a list of items representing flat data retrieved from a SQL Server 2012 DB query. Here is the Item class.</p>
<pre><code>public class Item
{
public string Parent { get; set; }
public string Child { get; set; }
public string Name { get; set; }
public int Quantity {... | 2 | 1,108 |
How to get response from IPN cryptocurrencies | <p>We're trying to receive payment with cryptocurrencies using coinpayment IPN. We are able to create a request and able to do a payment. However, not able to get success or failure response while user come back to the seller side.</p>
<p>Here is how payment request created:</p>
<pre><code>public ActionResult IPN()
{... | 2 | 1,087 |
Oracle Count with Function | <p>I have a <code>SQL</code> like this.</p>
<pre><code>SELECT A.HESAP_NO, A.TEKLIF_NO1 || '/' || A.TEKLIF_NO2 AS TEKLIF
MV_K(A.TEKLIF_NO1,A.TEKLIF_NO2, A.DATE) AS KV
FROM S_TEKLIF A
</code></pre>
<p>When i want calculate <code>MV_K(A.TEKLIF_NO1,A.TEKLIF_NO2, A.DATE)/COUNT(@TEKLIF)</code> but it doesn't work.</p>
<p>... | 2 | 8,643 |
Exception in thread "main" java.io.IOException: toDerInputStream rejects tag type 53 when accessing google spreadsheets | <p>Trying to access google spreadsheets. However, the above error is getting displayed. I have created the .p12 file using the client id from developers.google.com. Please let me know what is the issue. Complete error is as follows:</p>
<blockquote>
<p>Exception in thread "main" java.io.IOException: toDerInputStream... | 2 | 1,042 |
How to finalize an order when implementing offsite payment gateway using Sylius 0.16 and Payum | <p>I've been trying to wrap my head around on how to implement a classic offline payment gateway using Sylius (sylius/sylius-standard, v0.16).</p>
<p>So far I got this in my bundle's build() method:</p>
<pre><code>public function build(ContainerBuilder $container)
{
/** @var PayumExtension $payum */
$payum = ... | 2 | 3,101 |
How to keep my audio from overlapping | <p>I have a simple listview with the name of some songs. When you click on one of the childs, the song plays. However, I noticed that when you accidentally tap it again while its playing, it start to play again causing the sounds to overlap. How can I set it up so that when you click on one song and then click on an... | 2 | 3,890 |
Programming a Poker Hand Calculator in C++ | <p>I've written a few hundred lines of code for a 5 card Poker Hand Calculator in C++ to practice using classes. Here is part of the member function I've written to compare two hands that are both TwoPairs. I've thoroughly tested all of my boolean functions and they all work except the ones to compare TwoPairs, OnePair... | 2 | 1,335 |
How to check the Radio button validation using javascript in HTML form | <p>I Need to validate a radio button input, i.e. when submit button is pressed and no radio buttons have been selected, it alerts the user saying 'please select option', and if a radio button has been selected then simply submit the form and pages redirect to another pages, needs no alert. But in my code, whenever I pr... | 2 | 5,203 |
Native base Root not works and Element type is invalid error | <p>I have tried to upgrade a React Native App, in which the Root component from Native base was not supported and throws the error as
<strong>Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component... | 2 | 6,154 |
Return checked state of checkbox in android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/2406937/android-save-checkbox-state-in-listview-with-cursor-adapter">Android save Checkbox State in ListView with Cursor Adapter</a> </p>
</blockquote>
<p>I have a <code>ListView</code>, where each item contain... | 2 | 2,206 |
Catch Exception thrown by a SwingWorker located in a different class | <p>I have a main class <code>Gui</code> that handles my GUI and calls a few SwingWorkers (calls to DB and other data sources) that have been put in their own class <code>TablesDataManager</code>. My issue is that when one of those swingworkers throws an exception within its done90 method (i.e. on the EDT), I want to be... | 2 | 2,013 |
Increasing memory usage in sqlite3? | <p>I've written a console app which receives events via boost::interprocess memory and dumps the info into an sqlite3 database. While running the app I've noticed that, in the Windows task manager, the memory usage was cyclically increasing every... 30s-1min. This led me to believe that the problem lies within the main... | 2 | 1,536 |
Intercept Text Messages : Debugging Problems | <p>I am using a simple BroadcastReceiver and onReceive method to intercept text messages as they come. For some reason, every time I send the text message: the app crashes. When I try to debug the app: I send the text message and the app still crashes but instead of taking me into the Receiver class, it suspends inside... | 2 | 1,865 |
Hibernate + HSQLDB schema is not exported | <p>I have web application based on Spring-MVC. I've integrated it with Hibernate 3.6.0.
When I'm trying to save entity named User I get :</p>
<blockquote>
<p>org.hsqldb.HsqlException: user lacks privilege or object not found:
USER</p>
</blockquote>
<p>I figured out that there is no table USER in the database but ... | 2 | 2,536 |
Bootstrap modal content overlay on modal | <p>I am having issues with Modal it's not behaving as it should in Bootstrap the content is visible once the model is launched in the middle of the screen. The circles are blocking the visible text.</p>
<p>Example:</p>
<p><a href="https://i.stack.imgur.com/wu1hh.jpg" rel="nofollow noreferrer"><img src="https://i.stac... | 2 | 4,671 |
quickbooks sdk add payment | <p>Hi i've been trying to add payments using the quickbooks sdk, so far so good I'm able to do everything but when I send the request to quickbooks I got a message that the transaction is empty</p>
<p>here is my sample code:
the code is using one of the sample company from quickbooks so if you past this on a c# projec... | 2 | 1,441 |
yaml-cpp trouble parsing mixed array/string nodes | <p>I have the following yaml script that I have tested here: <a href="http://yaml-online-parser.appspot.com/" rel="nofollow">online yaml parser</a></p>
<pre><code>testcases:
- testcase:
desc: 'TEST TC1'
requirement-ref: Doors-10.1.1.0
given:
text: 'A UUT, TEST2 and TEST are connected'
devices:
... | 2 | 1,279 |
MapActivity connection factory client error android | <p>I have created an android application.
it was able to execute it properly but now when i execute it says <code>Couldn't get connection factory client</code> . i am able to see the map also so there is no point of wrong API key .</p>
<p>everything is working but it does not go inside <code>onLocationChanged(Locatio... | 2 | 1,693 |
White screen and no error message | <p>When navigating to the state "editarTitulo" from any origin appears a white screen with no error message. I serchead the solution in many places but nothing works.
My code: </p>
<p>module:</p>
<pre><code>(function () {
angular.module('gerenciadorEpisodios', ['ui.router', 'ui.bootstrap']);
})();
</code></pre>
... | 2 | 3,525 |
NextJS error message Failed prop type: The prop `href` expects a `string` or `object` in `<Link>`, but got `undefined` instead | <p>I'm try implementing a header of Layout in my project</p>
<p>"Error: Failed prop type: The prop <code>href</code> expects a <code>string</code> or <code>object</code> in <code><Link></code>, but got <code>undefined</code> instead.
Open your browser's console to view the Component stack trace."
Can yo... | 2 | 2,990 |
Restart Jboss will get error when I added my created service(MBean) to jboss deploy route | <p>I created one service(MBean), I thought it could be start/stop normally.
I have my MBean in the structure as my previous problem had said:
<a href="https://stackoverflow.com/questions/3177569/a-created-jboss-service-cant-be-stop-normallymbean">https://stackoverflow.com/questions/3177569/a-created-jboss-service-cant-... | 2 | 2,082 |
Why this google translate code isnt working? | <pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Text.RegularExpressions;
namespace WindowsFormsApplication1
{
public partial class Form1 ... | 2 | 1,127 |
Relay Error when deleting: RelayMutationQuery: Invalid field name on fat query | <p>I'm running into an issue when I attempt to commit a deletion mutation. When I commit, I get the error <code>Uncaught Invariant Violation: RelayMutationQuery: Invalid field name on fat query, `company`.</code>. Viewing, creating and updating nodes all work. For some reason I just can't delete. It mentions the compan... | 2 | 1,325 |
Using WSO2 Identity Server with OpenLDAP | <p>While trying to use WSO2 Identity Server with OpenLDAP after following the steps on:
<a href="http://wso2.org/project/solutions/identity/3.2.3/docs/user-core/admin_guide.html#LDAP" rel="nofollow">http://wso2.org/project/solutions/identity/3.2.3/docs/user-core/admin_guide.html#LDAP</a></p>
<p>I get this message, wh... | 2 | 5,523 |
How to compile DeskClock of android4.3 sourcecode | <p>I download android 4.3 sourcecode from source.android.com,i find the app DeskClock and want to compile it,but I have a trouble...</p>
<p>in DeskClock.java
import android.support.v13.app.FragmentPagerAdapter
and
import android.support.v4.view.ViewPager
is it different jar ?</p>
<p>this is the sourcecode:</p>
<pre... | 2 | 8,683 |
wpf toggling visibility collapse only works once | <p>What i want to do is collapse the bottom section of the WPF ui based on the checkbox toggle. This mostly works as expected so far. Below as you step through the images you'll see the collapse stops working once the grid splitter is moved. I do not understand why or how to fix this.</p>
<p>Start of the application, ... | 2 | 1,907 |
Elasticsearch term query not working on numbers | <p>I'm unable to perform a search using a filtered <code>term</code> query on a numeric value (ES 2.3), despite according the doc (<a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_exact_values.html#_term_query_with_numbers" rel="nofollow noreferrer">term Query with numbers</a>) it should wo... | 2 | 1,187 |
Capybara/Selenium/Chrome not able to change value of select drop-down | <p>When I run my test with the features, steps, and HTML below the test executes without error (until it fails on the assertion steps), but I can see that no change occurs to the drop-down selects. What am I doing wrong?</p>
<h3>HTML:</h3>
<pre><code><div class='field'>
<label for="verification_value">... | 2 | 1,029 |
coordinatorlayout not scrolling with swipeRefreshlayout | <p>I have added coordinatorlayout+viewpager+TabLayout and have added three tabs with viewpager but scrolling only works with first tab(recent)</p>
<p>not working with two tabs 1. contact,2.setting</p>
<p>see all codes only xml code posted here as only needed</p>
<p><strong>homeactivity xml(where three fragment get a... | 2 | 3,364 |
Django & Allauth Login Redirect Issue | <p>For some reason after login the page doesn't redirect to where LOGIN_REDIRECT_URL points but remains on a blank page /accounts/login/ with code 200. So, after login I get a blank page and have to refresh (F5) to get to my LOGIN_REDIRECT_URL. After the refresh I am successfuly loged in.</p>
<p>ACCOUNT_LOGOUT_REDIREC... | 2 | 1,678 |
Homework: Class to record Student Grades | <p><strong>Homework Question</strong></p>
<p>Write a grading program for a class with the following grading policies:
a) 3 quizzes graded out of 10 points, weighted 25%
b) 1 midterm graded out of 100 points, weighted 35%
c) 1 final graded out of 100 points, weighted 40%
Your class requires a set of accessor and mutato... | 2 | 2,386 |
How to Accept and add Categories to RequiredAttendees Appointments using Exchange Web Services | <p>I’m using ExchangeService(ExchangeVersion.Exchange2010_SP1)</p>
<p>I want to Accept and add Categories to RequiredAttendees Appointments. To do this i need to find these Appointments.</p>
<p>My understanding in EWS is that on Save of an Appointment that has RequiredAttendees a new Meeting Request is created for e... | 2 | 1,805 |
Make requests and handle responses for resumable upload: Google Drive api [php] | <p>I'm using the API Client Library for PHP (Beta) to work with google drive api, So far I can authorize and and upload a file in chuncks.
According to the <a href="https://developers.google.com/drive/web/manage-uploads#resumable" rel="noreferrer">documentation</a>, these three steps should be taken to upload a file:</... | 2 | 1,113 |
Extjs Tabpanel Resize | <p>I've implemented an EXTJS 4.0 tabpanel containing two grids.</p>
<p>This all runs fine when i first load it. But when i go to another panel( not a child of the tabpanel) and then reload the tabpanel in the viewport OR resize my browser window, the HTML child homeclients (my grid) dissappears ( and it's HTML elemen... | 2 | 1,716 |
bootstrap navbar collapsing social icons on top of one another | <p>I want a navbar that has a collapsible element on the right that holds my social media links and icons. Trouble is, the bootstrap navbar does not seem to be working: <a href="https://jsfiddle.net/44mbr237/1/" rel="nofollow">https://jsfiddle.net/44mbr237/1/</a></p>
<p>When the browser window is collapsed, the social... | 2 | 1,317 |
Fullcalendar.io issue in parsing events properties as function | <p>As per the <a href="https://fullcalendar.io/docs/events-function" rel="nofollow noreferrer">docs of fullcalender.io</a>, I am trying to call API everytime it triggers events like previous, next, month, day or list view. The event is totally working fine in my case. I can call the API and every event and collect the ... | 2 | 1,855 |
Which design pattern could I use for showing dialog boxes? | <p>I do sometimes show Dialog boxes in my Java application.</p>
<p>Currently the Controller classes are (expect some exceptions where only getters are called on my model) used like mediators between my model and my UI.</p>
<p>But my UI knows my controllers and my controllers know my UI.</p>
<p>Whenever I add a new d... | 2 | 1,438 |
jQuery Autocomplete appears at top of the HTML, appends to bottom of the body tag | <p>I'm using jQuery Autocomplete, but the autocomplete list doesn't appear below the textbox.</p>
<hr>
<p><strong>This is my html:</strong></p>
<pre><code>jquery-ui.css
jquery.min.js
jquery-ui.min.js
<div class="collapse" id="search-form">
<div class="well">
<form class="form-inli... | 2 | 1,284 |
golang http too many files | <p>In my project, I need send http requests 5000 times/s. I did read some blogs and questions about the problem, and I try things:</p>
<ol>
<li>change process ulimit to 10^5</li>
<li>close <code>content.Body</code></li>
<li>use one http client and reuse connection</li>
</ol>
<p>But they just don't work. Indeed, my ap... | 2 | 4,799 |
Implementing Double tap into TouchImageView - dragging picture doesn't work now | <p>I have a problem. I've used TouchImageView code from here - <a href="https://github.com/MikeOrtiz/TouchImageView" rel="nofollow">https://github.com/MikeOrtiz/TouchImageView</a> . I have implemented into it double tapping functionality. It works fine, but now I can't drag my image when it is zoomed in. Zooming by ges... | 2 | 6,902 |
fetch Firebase data to as Listview builder in flutter | <p>Can some help me i have list of name books with images in real-time Firebase and each books has an integer ID so when i tried to fetch the data from firebase it give me white screen with out any data.
but when i printout the result of the fetch in the terminal i saw the result i check all the Tutorials but all of t... | 2 | 1,096 |
Jupyter Notebook: HTML rendered in one cell messes up HTML rendered in another | <p>I'm building a report in a Jupyter notebook. Aside from the data visualizations, I have some nicely formatted documentation from a Google doc, with various text colors and formatting, footnotes etc. I want to include portions of the documentation sporadically throughout the notebook, and so have split the Google d... | 2 | 3,359 |
How to insert values using sqlite in iphone | <p>i am trying to insert values.But values are not saved.This is my coding.i alredy created the database using sqlite manager.That database name is "<code>feedback.sqlite</code>". If i run the code no errors will be displayed.But if i entered the data then click the save button the data will not be saved.if i run the c... | 2 | 2,786 |
Split text into equal length strings keeping words intact | <p>I have this code that break longer lines into array of equal length strings keeping words it also take into account the formatting like <code>[[u;#fff;]some text]</code>, it split text so each string can be converted into html independently:</p>
<pre class="lang-js prettyprint-override"><code>var format_re = /\[\[(... | 2 | 2,434 |
Java SOAP header tag and namespace only appears into response | <p>I have a WebService deployed into a server an one client doing requests aginst it. I have client and server certificates which established SSL connection and, in the server side, build a signature and then the client tries to verify it.
The problem is when the server signs the SOAP message it looks like this one:</... | 2 | 2,847 |
TypeError: argument 1 must be pygame.Surface, not function | <p>I'd just like to preface this by saying that I have indeed looked up this issue, but everyone who seems to have had a similar issue has found a solution that doesn't work for me. I'm using python 3.4.3 64 bit and pygame 1.9.2a and getting the error stated in the title. My code looks like this at the moment:</p>
<pr... | 2 | 1,133 |
Import long html into split PDF | <p>My scenario is:</p>
<p>On clicking a button, import datas on a html into a PDF file.</p>
<p>Since this PDF must have some complicated required style, so my first step is to transfer this page into a image using html2canvas.js and then import this image to a PDF with jsPDF.js </p>
<p>And when the data is too large... | 2 | 1,566 |
Vue 3 how to correctly update data in Highcharts? | <h2>Trouble updating data in Highcharts with Vue.js 3</h2>
<p>I have a small webapp with <strong>Vue.js 3</strong> that shows a <strong>Highcharts</strong> Chart and some statistics, with global buttons for time-filters (All, Year, Month, Week).<br />
The data of my Highchart chart needs to change, whenever one of the ... | 2 | 1,380 |
Soft keyboard covers editText in ScrollView-layout | <p>I'm working on an Android fragment with this layout: </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/to... | 2 | 4,163 |
The parameterized query ... expects the parameter ... which was not supplied | <p>I was trying to create a simple data form with check boxes. Its like a duty request form with where check boxes represents each duty slot.</p>
<p>I'm testing it so the userID is simply selected from a dropdown list (ddlID). </p>
<p>Whenever the ddlID's selected index is changed, the duty data is pulled from the da... | 2 | 2,434 |
Checking, if String is Palindrome using substring() and charAt() | <p>My code is supposed to ask a user to input a String and then check to see, if it is Palindrome using <code>charAt()</code> and <code>substring()</code> methods. I believe, I have done everything correctly but NetBeans is compiling it incorrectly. </p>
<p>When I run my code, NetBeans tells me:</p>
<pre><code>Except... | 2 | 1,327 |
How to query Hyperledger Fabric Go Chaincode by using the node.js SDK and TLS? | <p>I created my own Hyperledger Fabric which is up and running. I also installed the Fabcar Sample Chaincode given by the "Writting Your First Application Tutorial" on <a href="http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html" rel="nofollow noreferrer">http://hyperledger-fabric.readthedocs.io/en... | 2 | 10,978 |
Select a portion of an area element based on a data range | <p>I have some data ranging from 2003 - 2007 plotted as a line graph using the following code:</p>
<pre><code>var x = d3.time.scale().range([0, width]),
y = d3.scale.linear().range([height, 0]);
var area = d3.svg.area()
.x(function(d) { return x(d.date); })
.y0(height)
.y1(function(d) { return y(d.price); });
</code>... | 2 | 2,045 |
PHP is_null: Only boolean true and false, not even null? | <p>Following up on this <a href="https://stackoverflow.com/questions/12461146/php-filter-var-how-to-make-sure-the-user-provides-correct-data-types-true-or">question and answer</a>, I decided to accept boolean true and false only, and <strong>not</strong> even <code>null</code> from the input by other developer/ user.</... | 2 | 1,227 |
while ($stmt->fetch()) not fetching all rows | <p>I am trying to display all recipes belonging to a logged in user using the while loop. I noticed that let's say, the user have 4 recipes, the first one will not be displayed, resulting in only 3 recipes appearing in the table. If the user have 3 recipes, the first one will not be displayed, resulting in only 2 recip... | 2 | 1,074 |
readParcelable returns null | <p>I try to pass a <code>News</code> class to an activity, so I implemented the <code>Parcelable</code> interface. Inside <code>News</code> I have two classes implementing <code>Parcelable</code> too, <code>Image</code> and <code>Date</code></p>
<p>The matter is that my <code>News</code> object at the end contains <co... | 2 | 1,391 |
EclEmma JAVA Code coverage - Unable to coverage service layer of RESTful Webservice | <p>I am using EMMA eclipse plugin to generate code coverage reports.
My application is a RESTFul webservice.
Junits are written such that a client is created for the webservice and invoked with various inputs.</p>
<p>However EMMA shows 0% coverage for the source folder. The test folder alone is covered.</p>
<p>The ap... | 2 | 1,134 |
Java REST service - Unable to open resource url | <p>Initially i have developed web scraping using chrome to scrape the data from the required websites,so now i want to convert in this java application into REST service,
so below is my code , while executing received "<code>unable to open resource url make sure the project has been deployed successfully and the server... | 2 | 1,297 |
Hibernate- @OnetoMany with Where clause on Collection | <p>In my One-to-Many and Many-to-One bi-directional relation, I want execute the following sql-</p>
<pre><code>select * from user_credential c
join user_profile p on c.login_id = p.login_id
join user_address a on p.address_id = a.address_id
where p.profile_id = 1
</code></pre>
<p>But, I'm getting the result of the s... | 2 | 1,173 |
Javascript Websocket server message broadcast to clients | <p>I am trying to create a dummy websocket server in javascript to send some message to my android client app. The messages will be injected to the server using a html page( javascript ), which will further be passed on to the android client. I am able to connect these two clients (web and android) individually with th... | 2 | 1,103 |
D3 Y Axis Scaling and Path Transition | <p>I've been very closely following <a href="https://bost.ocks.org/mike/path/" rel="noreferrer">this post</a> about D3 line transitions, implementing something similar to <a href="https://bl.ocks.org/mbostock/1642874" rel="noreferrer">this</a>, except having axis transitions by time.</p>
<p>The end goal is to display ... | 2 | 1,525 |
How Would You Write This C++ Loop in Clojure? | <p>Although I've done some small amount of programming in functional languages before, I've just started playing with Clojure. Since doing the same kind of "Hello World" programs gets old when learning a new language, I decided to go through the <a href="http://libcinder.org/" rel="nofollow">Cinder</a> "Hello, Cinder" ... | 2 | 2,381 |
React - Using Props outside of Render | <p>I am trying to post a UserId to a database but the Id is passed as a prop. When I enter this.props.userId within the render method, it displays the desired information however when I try to incorporate it into a function above the render function I get null. I have spent hours reviewing other postings and trying wha... | 2 | 1,579 |
How to use multiprocessing apply_async pool in a while loop correctly | <p>I need to use a pool to asynchronously parse results coming from an extraction method and send those results to a write queue.</p>
<p>I have tried this: but it seems to just run iteratively... one process after the other.</p>
<pre><code>process_pool = Pool(processes=30, maxtasksperchild=1)
while True:
filepath =... | 2 | 1,585 |
Google Places API Crashes After Launch | <p>I have been trying to integrate Google Places API into my application, but cannot seem to get the API to launch. Every time I click the button to launch the API it will load, then revert back to the main screen. I believe I have followed all steps in the API documentation, but cannot seem to seem to find the issue... | 2 | 4,599 |
photoswipe slideshow doesnt show using jquery mobile and expression engine | <p>hi everyone im been following the examples of photoswipe for my own website, but i cant fix something with photoswipe, the gallery its working fine, but when i select one picture of the gallery nothing happens, the slideshow doesnt show, it just redirect to the picture; this is part of my code:</p>
<p>
... | 2 | 7,304 |
Load data from db using content provider | <p>I am using content providers to store and retrieve data from Database. This is what happening in the app when user install the app.</p>
<ol>
<li>App start a service which will download data from server and store
it in db</li>
<li>App is using <code>CursorLoader</code> to load data from db</li>
</ol>
<p>Problem is ... | 2 | 1,347 |
How to redirect nginx request to different path | <p>Here is my <strong><em>nginx.conf</em></strong> which serves any request coming to <code>example.com</code> with <code>/srv/phabricator/phabricator/webroot/index.php</code>. I want to change the functionality such that if a request comes in to <code>example.com/test</code> then <code>/home/phragile/public/index.php<... | 2 | 1,027 |
Validating OpenId IdToken On Each Request | <p>I'm trying to validate the IdToken I get from Azure AD on each request but I keep getting an error saying that there is no signature on the token. When I validate the Access Token it works, but I would rather use the Id Token as that contains the users claims. Is there anyway to make Azure send back the Id Token wit... | 2 | 1,486 |
Why Media player android not working properly on Samsung Galaxy Tab? | <p>I have right a app, when you move your phone like a Bike race, then it will detect the motion and will choose a random voice of gare and then play it. Its working good on HTC. But when I try to run it on Samsung Galaxy Tab , It is not working properly. It play sound at start but when I try move it, then it play gare... | 2 | 2,683 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.