title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Can't implement the W3Schools slideshow in Bootstrap? | <p>I'm trying to edit my Bootstrap and I want to add more stuff then what it already has but it isn't working.</p>
<p>I tried to add a slideshow, but it is completely white, only the arrows to change the image are blue.</p>
<p>I know part of it is working because when I click to change the image, the dimensions of th... | 1 | 1,851 |
Test MPI on a cluster | <p>I am learning OpenMPI on a cluster. Here is my first example. I expect the output would show response from different nodes, but they all respond from the same node node062. I just wonder why and how I can actually get report from different nodes to show MPI actually is distributing processes to different nodes? Than... | 1 | 3,180 |
Cannot execute Node.js app on Heroku successfully (crashes each time) | <p>I have attempted to put together a sample node.js app on Heroku basically as per their instructions here: <a href="https://devcenter.heroku.com/articles/nodejs" rel="noreferrer">https://devcenter.heroku.com/articles/nodejs</a></p>
<p>The app runs fine locally with <code>foreman start</code>, however, each time I de... | 1 | 1,224 |
Eclipse start problem after plugin installation | <p>I use Eclipse 3.4.2 and just installed Android SDK plugin for eclipse. But After installation when I start the eclipse, I get error message </p>
<p><img src="https://i.stack.imgur.com/88iKM.png" alt="enter image description here"></p>
<p>Here is what the log says</p>
<pre><code>!SESSION 2011-03-07 11:13:53.163 --... | 1 | 1,193 |
Cannot import module from source directory in pycharm | <p>This question has been asked before - but i could not solve it with any of the answers. I opned a project folder in pycharm (<em>note</em> that the project folder is not in the <code>../PycharmProject/...</code> directory. </p>
<p>My structure is super basic:</p>
<pre><code>project_title (folder)
|--s... | 1 | 1,082 |
Accessing view of a NumPy array using the C API | <p>In a Python extension module I've written in C++, I use the following snippet of code to convert a NumPy array into an <a href="http://arma.sourceforge.net/" rel="nofollow noreferrer">Armadillo</a> array for use in the C++ portion of the code:</p>
<pre class="lang-cpp prettyprint-override"><code>static arma::mat con... | 1 | 3,805 |
Laravel model::create() not returning the primary key | <p>I have a following auth table:</p>
<pre><code><?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CreateAuthTable extends Migration
{
/**
* Run the migrations.
*
* @return... | 1 | 1,624 |
Spring Boot + QueryDSL: com.mysema.query package classes missing | <p>I'm trying to setup QueryDSL with Spring Boot and I ran into problems, when I can't compile the project correctly. I get quite a lot of errors:</p>
<pre><code>[ERROR] /C:..../target/generated-sources/apt/**/***/domain/QFirm.java:[68,18] cannot find symbol
[ERROR] symbol: class StringPath
[ERROR] location: class *... | 1 | 6,789 |
raise_application_error exception handling in subprocedures | <p>I have multiple stored procedures calling multiple stored procedures in my database. To give a small example, I've constructed a fictionalised version of a few of them below. In my example, a Java program calls <code>calculate_bill</code>, which calls <code>calculate_commission</code>, which calls <code>update_recor... | 1 | 1,316 |
R if error for subscript out of bounds | <p>I'm looping through a nested loop but not sure how to deal with when one index doesn't have any data.</p>
<p>For example:</p>
<pre><code>A <- list(list(1,2), list(2), list(4,5))
</code></pre>
<p>I can do:</p>
<pre><code>for(i in 1:length(A)){print(A[[i]][[1]])}
[1] 1
[1] 2
[1] 4
</code></pre>
<p>However the ... | 1 | 1,129 |
Error message while connecting to URL using HTMLUnit | <p>I am using HTMLUnit in Java to connect to a remote URL and derive some information from the web page obtained.</p>
<p>I am using the following code:</p>
<pre><code>final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0, "companyproxy.server", 8080);
final DefaultCredentialsProvider scp = ne... | 1 | 1,065 |
Transformations from pixels to NDC | <p>Let's say that my screen is (<code>800 * 600</code>) and I have a Quad (2D) drawn with the following vertices positions using <strong>Triangle_Strip</strong> (in NDC) :</p>
<pre><code>float[] vertices = {-0.2f,0.2f,-0.2f,-0.2f,0.2f,0.2f,0.2f,-0.2f};
</code></pre>
<p>And I set up my Transformation Matrix in this way ... | 1 | 1,066 |
Load image from Firebase storage but got an error using Glide | <p>I am trying to load png image from Firebase storage but i face a weird thing. I am using this <a href="https://firebase.google.com/docs/storage/android/download-files#downloading_images_with_firebaseui" rel="nofollow noreferrer">dependency</a> to my project</p>
<pre><code>implementation 'com.firebaseui:firebase-ui-... | 1 | 1,922 |
Plotting multiple density curves on the same plot: weighting the subset categories in Python 3 | <p>I am trying to recreate this density plot in python 3: math.stackexchange.com/questions/845424/the-expected-outcome-of-a-random-game-of-chess</p>
<p><a href="https://i.stack.imgur.com/CuSlC.png" rel="nofollow noreferrer">End Goal: I need my density plot to look like this</a></p>
<p><strong>The area under the blue ... | 1 | 1,070 |
shamsi / Jalali Calender in Android with string parameters | <p>i'm using this algorithm for changing Calender date to Persian calender.
<a href="https://stackoverflow.com/questions/10378764/is-there-any-library-or-algorithm-for-persian-shamsi-or-jalali-calendar-in-and">here</a>
it's work fine but:
when i want to create a new constructor for getting parameters and change a Strin... | 1 | 7,140 |
Displaying VideoCapture using OpenCV with python and wxPython in a wx.panel: Show only small region of the video | <p>I'm trying to display OpenCV with Python interface in wxPython.
I can display it but only a small region in the top left corner of the video.
What is the problem with my code?
is it the size of parent panel or something else?
note that I use code from this <a href="https://stackoverflow.com/a/14818080/2389238">https... | 1 | 1,109 |
referenceerror $ is not defined ajax for getting xml | <p>I am using jQuery in my head tag for my offical website. It doesn't work and comes up with the referenceerror $ is not defined $.ajax error. I tried these solutions(down below), but it doesn't solve my problem. The first one di</p>
<p>Solutions Tried:</p>
<p>1.Query needs to be the first script you import. The fir... | 1 | 1,353 |
Getting message -> Invalid data found when processing input | <p>I want to use ffmpeg lib in my library.For that purpose,i have successfully compiled it.But when i try to execute any command,i am getting this message:</p>
<pre><code>Invalid data found when processing input.
</code></pre>
<p>I don't know whats the reason behind it.This is the code:</p>
<pre><code>public class V... | 1 | 1,967 |
C++ Headers related to Classes | <p>I've been reading different articles and tutorials on Header files.
I understand that Headers serve for the purpose of keeping the "interface" from the implementation. ( and other things like some compile optimization )</p>
<p>What I still don't get, and really can't wrap my mind around it, is do you always use hea... | 1 | 1,245 |
autoplay with slick slider and videos | <p>I already made a long search here for the solution, but can't find anything...</p>
<p>I'm using the code from this pen: <a href="https://codepen.io/digistate/pen/MvapbE" rel="nofollow noreferrer">https://codepen.io/digistate/pen/MvapbE</a></p>
<p>I changed the videos for youtube, the autoplay works nice, but the s... | 1 | 5,967 |
Race condition / TextWriterTraceListener | <p>I have something wich looks to me like race condition while logging to file from
multiple thread.</p>
<p>1) I've got a custom logger class (ConfigurableTraceLogger) that is shared by multiple threads in my application.
It's has lots of wrapper functions which all call to main core function</p>
<pre><code>protected... | 1 | 1,076 |
Composer does not download | <p>I installed composer and all works fine. When I run <code>composer -V</code> I just receive a warning about Xdebug.</p>
<pre><code>You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Composer version 1.0-dev (4c0e163977f8289288df7b37e0fd04... | 1 | 1,767 |
Is there any memory limit for json_encode() method? | <p>I am trying to echo a json-encoded array which consist of an array but i dont know it is not letting me print that thing. Here's my code:</p>
<pre><code><?php
include_once('confi.php');
header('Content-type: application/json');
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
$lastRecord = isset($_POST['lastRec... | 1 | 1,634 |
python 3.7.4 : FLASK_SQLALCHEMY No module named '_sqlite3' | <p>I'm using Debian "Linux mint 19.1" and python 3.7.4 and system have already 2.7 & 3.6 versions. I create an env but when I start to create database file with <code>db.create_all()</code> I have "... </p>
<blockquote>
<p>ModuleNotFoundError: No module named '_sqlite3' "</p>
</blockquote>
<p>I have try by inst... | 1 | 1,270 |
Xamarin Plugin.Geolocator not working | <p>I tried to get the current location of the user by using the following code in Shared Code Library.</p>
<p><strong>Source of the project is available here at <a href="https://www.dropbox.com/s/3gkvs3wwrcdu3mx/Loco.zip?dl=0" rel="nofollow" title="Dropbox">Dropbox link</a></strong></p>
<pre><code>using System;
using... | 1 | 2,748 |
Apache camel send a simple message | <p>I have a simply camel MINA server using the JAVA DSL, and I am running like the example documented here:</p>
<ul>
<li><a href="http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html" rel="nofollow">Running Camel standalone and have it keep running in JAVA</a></li>
<li><a href="http://camel.a... | 1 | 1,474 |
Localhost:3000 giving 302 error in node | <p>I am a newbie and was trying to create and run an application based on nodejs..</p>
<p>While running server.js via nodemon I am getting the following error in the console..</p>
<pre><code>Express server listening on port 3000
Mongoose default connection open to mongodb://localhost:27017/foo
GET / 302 18.313 ms - 6... | 1 | 2,420 |
TypeError: Class constructor Client cannot be invoked without 'new' | <p>I'm working on a discord bot framework that uses ts-node (in script mode), typescript, and discord.js. When testing the core client class I got this error:</p>
<pre><code>
C:\Users\thedi\Documents\coding\JS-TS\discord-bot\src\struct\Client.ts:13
super()
^
TypeError: Class constructor Client cannot be... | 1 | 1,096 |
How to get python unit test results in SonarQube? | <p>I'm using SonarQube 4.5. I've run nosetests to run python unit tests and create an xunit xml file called nosetests.xml. I'm running Sonar Runner via the Sonar Jenkins plugin. I've set the following Sonar properties:</p>
<pre><code>sonar.projectKey=yauis
sonar.projectName=YAUIS
sonar.projectVersion=1.0
sonar.sour... | 1 | 1,915 |
Export your dataTable to Excel and PDF using Primefaces | <p>I use POI & Itext jar to export Data to PDF or Excel file, I would like to generate a report that contain the data from datatable, but here is what I got as result</p>
<p><a href="http://hpics.li/3653d83" rel="nofollow">http://hpics.li/3653d83</a></p>
<p>As you see, fields contain variable not the data from da... | 1 | 7,620 |
How do I change the font for tab titles created from PagerSlidingTabStrip? | <p>Here is the library in question: <a href="https://github.com/astuetz/PagerSlidingTabStrip" rel="noreferrer">https://github.com/astuetz/PagerSlidingTabStrip</a>
I figure it has something to do with .setTypeface() but I have no idea how to use it. I put the font I want in the assets folder. Here's my code.</p>
<p>Sta... | 1 | 2,484 |
Jquery ajax form submit that contains files | <p>I have a very long form that contains files attachment:</p>
<p>this is how my form looks like:</p>
<p><a href="https://i.stack.imgur.com/hscGB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hscGB.png" alt="enter image description here"></a></p>
<p>The form will be submitted to this action:</p>... | 1 | 1,054 |
Use the `pos` argument in Rgraphviz to fix node position | <p>Based on this question <a href="https://stackoverflow.com/questions/45721802/automatically-curving-an-arc-when-it-is-overlapping-with-another-one">Automatically curving an arc when it is overlapping with another one</a>, I am trying to set the <code>pos</code> attribute in a <code>RGraphviz</code> plot.</p>
<p>Can ... | 1 | 1,370 |
How can I make link background transparent? | <p>I inherited some design css from another designer and I am having trouble figuring out what they are doing.</p>
<p>This is the site: <a href="http://www.problemio.com" rel="nofollow">http://www.problemio.com</a> and in the blue bar towards the top, there is text like "problems support" ..</p>
<p>Right now it has t... | 1 | 2,101 |
Subtracting one dataframe column from another dataframe column for multiple columns | <p>I'm trying to subtract a column from one dataframe from another dataframe's column, and I wanted to do it for n number of columns (currently the dataframes I'm working on have 1000 columns). </p>
<p>Here are how the two dataframes look like:</p>
<p><strong>Dataframe 1:</strong></p>
<pre><code> branc... | 1 | 1,029 |
Error in Kendo ui controls with Angular 6 | <p>I have created project in Angular 6. In that project at first i have successfully installed <code>@progress/kendo-angular-dateinputs</code> using <code>npm install</code> then project was building successfully. </p>
<p>After running <code>ng-serve</code>, following error occurs:</p>
<pre><code>node_modules/@progre... | 1 | 1,141 |
How to get the city name and state/province from marker on google maps | <p>searched the forum for a few days and i still can't get my head around it...</p>
<p>all i can find on this site is the option to get the full formatted adress from a marker..
(Like this: 228 Barbary Coast Trail, San Francisco, California 94102, United States)</p>
<p>I'm developing an application that requires onl... | 1 | 1,317 |
Ajv custom error message for type | <p>i was exploring Ajv with ajv-errors for validating json schema and producing custom error messages. everything works as of now but i can't set custom error message for type for individual values.</p>
<pre><code>const emailSchema = {
type: 'object',
required: ['foo', 'bar', 'car'],
properties: {
foo: { type: 'i... | 1 | 1,109 |
Automated SMTP (not MAPI) emails using SQL Server Job Scheduler | <p>Work on SQL Server 2000.i want to send birthday wishes to all customers whose birthday matches the current day.I have created a database Customers with a table called CustomerDetails with the following fields</p>
<ol>
<li><p>ID</p></li>
<li><p>Name</p></li>
<li><p>BirthDate</p></li>
<li><p>Email </p></li>
</ol>
<p... | 1 | 1,810 |
Custom GroupRow rendering (mbrn/MaterialTable) React | <p>I am customizing groupRow of mbrn/material-table, But I don't find any documents for doing it.</p>
<p><a href="https://material-table.com/#/docs/features/grouping" rel="nofollow noreferrer">https://material-table.com/#/docs/features/grouping</a></p>
<p><a href="https://i.stack.imgur.com/qdDDE.png" rel="nofollow no... | 1 | 1,121 |
pandas concat arrays on groupby | <p>I have a DataFrame which was created by group by with:</p>
<pre><code>agg_df = df.groupby(['X', 'Y', 'Z']).agg({
'amount':np.sum,
'ID': pd.Series.unique,
})
</code></pre>
<p>After I applied some filtering on <code>agg_df</code> I want to concat the IDs</p>
<pre><code>agg_df = agg_df.groupby(['X', 'Y']).ag... | 1 | 1,054 |
Adding Google maps v2 to my android app Programmatically with fragments | <p>hi am playing around with fragments and Google maps and for some reason my map wont display,
I am using fragments with tabs and I want to add a map Programmatically with to one of the tabs.</p>
<p>Please what am I doing wrong:</p>
<p>MainActivity</p>
<pre><code>public class MainActivity extends FragmentActivity i... | 1 | 7,826 |
Spring MVC Multiple file upload using Ajax | <pre><code><body>
<form id="form1" modelAttribute="uploadForm" enctype="multipart/form-data">
<label for="sampleText">Please enter a text </label>
<input id="sampleText" name="sampleText" type="text" /> <br/>
,
<label for="sampleFile">Please... | 1 | 1,592 |
Why are NSResponder's keyboard actions not being called? | <p>NSResponder defines numerous actions that are related to keyboard actions like <code>moveUp:</code>, <code>moveUpAndModifySelection:</code> and <code>moveToBeginningOfLine:</code>. With the exception of the actions that aren't triggered by pressing a modifier key (e.x. <code>moveUp:</code> is simply the <code>Up</co... | 1 | 1,505 |
InvalidLambdaFunctionAssociation when creating CloudFront distribution via Terraform | <p>I want to create a CloudFront distribution that could invoke a <code>lambda</code> (@edge). I was able to do that using AWS console. I am now trying to achieve the same using Terraform. My configurations are as follows.</p>
<p>First, I created a role for lambda.</p>
<pre><code>resource "aws_iam_role" "my_edge_lamb... | 1 | 1,109 |
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in my code | <p>I am new in Php I have to send resume using phpmailer. I found error as "Mailer Error: SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a>". Plz need change in code. I am using phpmailer... | 1 | 1,075 |
Atlassian Stash - Permission Denied (publickey) | <p>I'm actually in the process of setting Atlassian Stash for my Workplace. I've ran into this issue which I'm not able to fix. Note, this is running on a Windows 7 64bits installation.</p>
<p>When setting the SSH Keys, I followed the Stash Guide on how to create them and set them into my account. Still, the issue enc... | 1 | 1,260 |
MongoDB - Error: Cannot find module '../build/Release/bson' | <p>I tried to run a typescript <a href="https://github.com/Microsoft/TypeScriptSamples/tree/master/imageboard" rel="nofollow">example</a> in the following way which caused following error:</p>
<pre><code>$ mongod --dbpath /home/u/databases
$ npm install
$ tsc --sourcemap --module commonjs app.ts
$ node app.js ... | 1 | 1,629 |
How to perform "complex" join using Linq | <p>I need to join two objects (tables) A and B. For any A there can be zero to many B's. The query needs the return one row per A. </p>
<p>The B's I want to order before the join to be able to select the needed row from B's following a certain condition. Say B has a column Type. If there is a Type 1 then that's the B ... | 1 | 1,067 |
Prestashop 1.7 multiple ajax action functions in controller | <p>I have a javascript file and i have two ajax calls in it on different buttons. I have a controller, Auction.php, in which i have the functions for both actions ( showPopup and askBidControl ), but for the second function, the ajax returns 404 not found. It doesn't even enter the initContent function. Here is a sampl... | 1 | 1,729 |
Dynamic "for" property of p:tooltip does not work as expected | <p>I am trying to attach tooptips to commandButtons in a ui:repeat loop. I create ids of commandButtons dynamically and "for" properties of tooltips too. This gives following error:</p>
<pre><code> HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that preven... | 1 | 1,399 |
Amazon cognito: identity not found | <p>I am working on developer authenticated project.And I am trying to get credentials using this below code.But it is giving me following error. </p>
<p>I have pasted IdentityId and Token manually into this code from server code:</p>
<pre><code> Caused by: com.amazonaws.services.cognitoidentity.model.ResourceNotFo... | 1 | 2,920 |
How to make flatpickr datepicker reactive in livewire / alpinejs app? | <p>In my laravel 7 /livewire 1.3 / alpinejs 2 project
I added flatpickr datepicker from <a href="https://flatpickr.js.org" rel="noreferrer">https://flatpickr.js.org</a>
datepicker works ok, but reactive does not work. In the code below
$current_operation_date - public var in the component and is is modified ok
but alpi... | 1 | 1,096 |
FFMPEG: How to manually select video quality from mpd manifest? | <p>I want to ask what command should I use to select video quality from mpd manifest?</p>
<p><strong>mpd manifest link</strong></p>
<pre><code>https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd
</code></pre>
<p><strong>Here, the mpd fil... | 1 | 10,949 |
Install APK as system app with INSTALL_PACKAGES | <p>I have developed an app that is running with system permissions (it is built into the image of AOSP) and has the INSTALL_PACKAGES permission.</p>
<p>My goal is to install a APK silently in the background without user interaction. I read different approaches on stackoverflow, but most of them were either outdated or... | 1 | 1,923 |
How to display same curl output on ansible? | <p>I have curl(and rest api) command for oracle enterprise manager IaaS and would like to generate same output when using ansible for same requests (http get). In my test environment however ansible doesn't display proper output. Please see my test script and output and any comments would be really appreciated. </p>
<... | 1 | 1,062 |
Generating Tables from entities - JPA | <p>I want to gernerate a table in a Database.
I use a non-embedded Derbry Database and glassfish4.0 + ecipse link.</p>
<p>First I configured a new JDBC connectionpool with the glassfish admin-console.
The URL ist <code>jdbc:derby://localhost:1527/firstEeDb;create=true</code> (Derby networkserver ist Stated).</p>
<p>T... | 1 | 3,030 |
Joining Multiple Lines in Python (Text Formatting) | <p>I am working on pulling logs through an web API and so far when pulling the logs they return in the following format (3 events below starting with and ending with . My question is what would be the best way to loop through each line and concatenate them so that the result event looks like below.</p>
<p>Current o... | 1 | 2,626 |
powershell multi-runspace event passing | <p>I've been searching for a way to pass events between different runspaces and yet have not found any. The following snipped creates a background runspace, which shows a small window with only one button. OnClick it shall post an event that the main runspace should receive:</p>
<pre><code>$Global:x = [Hashtable]::Syn... | 1 | 4,983 |
Webpack + Angular(4) + ES6 on IE11 not working | <p>I've been investigating quite a bit this issue and honestly I don't know what to try next. For some reason my webpack is not able to be executed in IE11 (the only IE I've tried), Safari on iPads with iOS 9.3.5 and some Android phones. I'm not sure if they all have the same issue but here I show the IE one. The actua... | 1 | 5,519 |
Make a bootstrap 4 container-fluid go full bleed to edge of browser window | <p>I'm using bootstrap 4 and I'm trying to get a bootrap container and its content to go full width and bleed all the way to the view port.</p>
<p>My initial solution added padding off the side of the screen which lead to the window scrolling right 15px.</p>
<p>My second partial solution is based on this answer for b... | 1 | 2,389 |
SFTP Server for reading directory using node js | <p>I have created a node based SSH2 SFTP Server and Client. My objective is to read directory structure of SFTP Server. Suppose I have an SFTP Server containing folder temp, I want to read files inside the temp directory. I am using ssh2 npm module for creating SFTP Server and Client. It is making connection to SFTP Se... | 1 | 1,815 |
JSF how upgrade to Mojarra 2.1.21 in Netbeans7.1 (just sub jsf-api.jar and jsf-impl.jar fails) | <p>I want to upgrade from JSF implementation Mojarra 2.1.3 in Netbeans7.1 (Glassfish 3.1.1).</p>
<p>You might ask first why I don't just upgrade to Netbeans7.3, and the reasons include that it it runs Glassfish 3.1.2.2 and that I have some other 3rd party software in my web application that is not yet compatible with... | 1 | 2,105 |
Viewing export table on an unmanaged dll in C# | <p>I am currently trying to create a C# application that will allow me to view the export table from an unmanaged DLL. My problem is, once I have all the pointers I need, I have no idea how to loop through the information that the API has provided me. Here is what I have right now:</p>
<pre><code>using System;
using S... | 1 | 4,283 |
Android message "Cannot generate texture from bitmap" | <p>I'm working with Gallery-widget and a lot of bitmaps.
For erasing bitmaps I use Bitmap.recycle(). As result I see on logcat next messsage:</p>
<pre><code>08-18 17:49:26.020: INFO/dalvikvm-heap(13847): Grow heap (frag case) to 22.373MB for 2457616-byte allocation
08-18 17:49:26.060: DEBUG/dalvikvm(13847): GC_FOR_ALL... | 1 | 1,029 |
jQuery 'on' not registering in dynamically generated modal popup | <p>I was under the impression that jQuery's <a href="http://api.jquery.com/on/" rel="nofollow"><code>on</code></a> event handler was meant to be able to 'listen' for dynamically created elements AND that it was supposed to replace the behavior of <a href="http://api.jquery.com/live/" rel="nofollow"><code>live</code></a... | 1 | 1,125 |
ggplot2 strip text labels facet_wrap | <p>I have searched other posts on this topic but can't figure out my problem. I have budgetary data on Brazilian government agencies, and have a classification of agency types. To produce my plot, I do this: </p>
<pre><code>g <- ggplot(data=totalex.df, aes(x=year, y=totalex.billions))
g +
geom_line(aes(colour=fa... | 1 | 5,598 |
Retrieve data from database and show it in textboxes | <p>I am currently working on a web application in which I have to fetch data from database and show it in text boxes. I have these fields: </p>
<pre><code>Name,Comp_Name,User_Name,Email_Id,Password,User_Image,Category,Status
</code></pre>
<p>and on top of it I have 1 text box where user can enter the id to see the da... | 1 | 6,343 |
Solved : ReactJS : Uncaught TypeError: Cannot read property 'id' of undefined when posting to a Laravel Controller using axios | <p>I'm trying to get data and display it as a dynamic selection / option menu using ReactJs, and POST the chosen value to a Laravel controller, so I can't store it as well.</p>
<pre><code>import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
export default class Sm ext... | 1 | 2,948 |
ExoPlayer - java.lang.IllegalStateException: sending message to a Handler on a dead thread | <p>I am using a SimpleExoPlayer in a RecyclerView and sometimes there is an error when calling </p>
<pre><code>simplePlayer.setPlayWhenReady(true);
</code></pre>
<p>The video player remains blank and the moments when the issue appears are not always the same (I did not find an exact way to simulat... | 1 | 1,539 |
Logstash stopped processing because of an error: (SystemExit) exit org.jruby.exceptions.SystemExit | <p>I am trying to run logstash on Windows.</p>
<p>Just installed <a href="https://www.oracle.com/java/technologies/javase-jdk16-downloads.html#license-lightbox" rel="nofollow noreferrer">Java</a>. Then ran logstash as descirbed <a href="https://www.elastic.co/guide/en/logstash/current/running-logstash-windows.html" rel... | 1 | 1,412 |
Windows Phone 8.1 override back button on a certain page | <p>I am developing a WP 8.1 XAML app. The first page is a login page, the second for example a history page. There will be more pages, but it doesn't matter at the moment. When I press the login button on the login page, the second (history) page appears. If I press the (physical) back button on the history page, it go... | 1 | 1,127 |
Request method POST not supported | <p>GET works fine in the same controller. I have researched the error beforehand and no solution worked for me, unfortunately. I have created the simplest post i could imagine, and server still responds with</p>
<pre><code>2015-05-04 01:05:56.669 WARN 6496 --- [-nio-420-exec-8] o.s.web.servlet.PageNotFound ... | 1 | 1,243 |
how to load and validate the video using paperclip-Rails | <p>please help solve the problem.</p>
<p>using a paperclip I organized upload images. it works.</p>
<p>Now I would like to organize a video upload. I changed this model:
model:</p>
<pre><code>class Video < ActiveRecord::Base
validates :title, presence: true
validates :video, presence: true
belongs_to :user... | 1 | 1,622 |
Using batch mode in Quartz | <p>With the intent to improve performance of quartz, I intend to use batching in quartz as suggested in <a href="http://www.ebaytechblog.com/2016/01/14/performance-tuning-on-quartz-scheduler/" rel="noreferrer">Performance Tuning on Quartz Scheduler</a></p>
<p>We create our quartz scheduler in integration with spring a... | 1 | 1,046 |
Set ListView Height dynamically based on multiline textview inside it | <p>I am using a base adapter to set data in a listview dynamically. I tried to set listview height dynamically. It works perfectly if the textview inside it is single line. However if the textview is multiline, the height is not set properly. The height is set considering single line textview only. How can I set correc... | 1 | 1,237 |
Boolean method that returns an int value; | <p>I am teaching myself Java, and I created a program to simulate a game of craps. I have the entire game in a Boolean method. Everything works fine, but I want to count every time the user wins. What is the best way to count these wins, and then print them?</p>
<p>Here is my code:</p>
<pre><code>import java.util.Rando... | 1 | 1,434 |
shopping cart in session how to set values, and remove values? PHP, MySQL | <p>hi all sorry am new in web development<br>
i made a website <a href="http://www.q8movies.com" rel="nofollow noreferrer">my site</a><br>
but it is almost done but i couldn't find how to make a shopping-cart<br>
i figured out that the best way is by doing it in session<br>
i sow in StackOverFlow a very good example <a... | 1 | 1,465 |
Why am I getting a 401 response in my tests? | <p>I am trying to test a route with authentication in my Node / Express / Mongoose back-end.</p>
<p>Here's the test file</p>
<pre><code> var should = require('should');
var _ = require('lodash');
var async = require('async');
var app = require('../../../../app');
var request = require('supertest');... | 1 | 1,624 |
Focus on UITextField does not work | <p><br>
In my iPhone application I have a UIScrollView with several UITextFields.<br>
Using BSKeyboardControls I have added Prev/Next/Done buttons to move between the fields. However, the focus on the selected field is not working, meaning that the text field is actually still under the keyboard although selected.<br>
... | 1 | 1,136 |
Create LineChart using openxml | <p>I'm trying to create a new LineChart on excel worksheet, and i don't know how can i feel data on this chart and how to add values for each series.
The following is what i try to do:</p>
<pre><code> static void Main(string[] args)
{
string docName = @"myFile.xlsx";
string worksheetName = "Shee... | 1 | 1,818 |
maven-plugin error while building maven projects | <p>When I am importing my maven project in my eclipse, I am getting this error:</p>
<blockquote>
<p>Plugin execution not covered by lifecycle configuration:
org.codehaus.mojo:buildnumber-maven-plugin:1.0:create-timestamp
(execution: generate-build-number, phase:
generate-sources) pom.xml /DataClient line 6 Ma... | 1 | 2,181 |
Hibernate join mapping for many-to-one with multiple columns | <p>I'm trying to use Hibernate to map a table as a set of DTOs into another DTO. I'm running into trouble as I need to do the mapping using two columns. Please could somone tell me what to write in the hibernate mapping file to do the mapping as it seems no matter what I put in the 'join' part of the mapping, it is not... | 1 | 1,881 |
Hibernate 4.2.2 The Network Adapter could not establish the connection | <p>I've been working through several Hibernate Tutorial but the application won't run. I get a JDBCConnectionException.</p>
<p>I think maybe there is something wrong with the connection settings: "ERROR: I/O-Fehler: The Network Adapter could not establish the connection"</p>
<p>Therefore I linked the SQL Developer Se... | 1 | 3,823 |
How can I serialize my User class for the Firebase Database and fix this error? | <p>I'm trying to retrieve the updated User from the dataSnapshot of the Firebase Database: </p>
<pre><code>mRef.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
User atualizedUser = dataSnapshot.getValue(User.class);
... | 1 | 2,100 |
(function () { [native code] }) on vue .js | <p>I`m having an assignment where I have to make a simple quiz, each right question must add 1 points to the score, here is my code </p>
<pre><code>let app = new Vue({
el: '#app',
data: {
crameworks: [
{skor: 0}
],
frameworks: [
{ name: 'A.Charles Bababage',
votes : true },
{ nam... | 1 | 1,375 |
stereoCalibrate for different cameras (rgb and infrared) | <p>I have problems with calibrating two cameras: first is rgb and second is infrared. They have different resolution (I resized and croped bigger image), focal length, etc...</p>
<p>Examples:</p>
<p>RGB 1920x1080 <img src="https://i.stack.imgur.com/k7VUk.jpg" alt="RGB 1920x1080"></p>
<p>Infrared 512x424 <img src="ht... | 1 | 1,028 |
cannot use an input for if statement in Verilog | <p>I am trying to pass an integer value to a module, but the <code>IF</code> statement does not work with the parameter. It throws the following error. I am new to <strong>Verilog</strong> so I have no idea how to make this work.</p>
<pre><code>Error (10200): Verilog HDL Conditional Statement error at clock_divider.v(... | 1 | 1,131 |
Android download apk file and save to INTERNAL STORAGE | <p>I have been stuck for days when developing a function that allow user to check for new app update (I use local server as my distribution point).
The problem is the downloading progress seems working perfectly but I could not find the downloaded file anywhere in my phone (i have no sd card / external memory).
Below i... | 1 | 1,246 |
When setting up a WCF client and server, how synchronized does the config files must be? | <p>Most of the WCF examples out there show you how to configure WCF client and server. Now, what happens if you differ the configuration slightly between them? I mean, who has the final word?</p>
<p>Let's take this client configuration for example:</p>
<pre><code><configuration>
<system.serviceModel>
... | 1 | 1,167 |
Synchronizing XML file to MySQL database | <p>My company uses an internal management software for storing products. They want to transpose all the products in a MySql database so they can do available their products on the company website. </p>
<p>Notice: they will continue to use their own internal software. This software can exports all the products in vario... | 1 | 1,545 |
BeanCreationException with Spring and Jackson API | <p>I am getting following exception while trying to use Jackson API with Spring 3.0.6. I have jackson jars of v1.8.9 (core-asl, mapper-asl) into the classpath but still due to some conflicting jars I am facing the error ::</p>
<pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Error creatin... | 1 | 1,354 |
Set header width and column properly during freeze the header in gridview | <p>I want to have a gridview with fixed header . I tried this <a href="http://www.aspdotnet-suresh.com/2011/11/how-to-implement-scrollable-gridview.html" rel="nofollow noreferrer">link</a> and <a href="http://www.codeproject.com/Articles/250669/Gridview-with-Fixed-Header" rel="nofollow noreferrer">this</a></p>
<p>I wa... | 1 | 4,228 |
How to create multiple onClick methods in android | <p>I'm trying to make an application that has multiple buttons, and when each button is pressed, it will start a new timer and display the time on the text view assigned to that button. I have successfully made one of the buttons create a working timer, however I'm having trouble making another button do the same thing... | 1 | 2,250 |
Alignment for fullPage.js vertical slider navigation dots | <p>I am using a jquery plugin called fullPage.js. It seems to be well documented, but I am having difficulty finding anything on the alignment of the navigation dots. When I make them a bit larger (via css modifications), the alignment of the hover and active attributes gets thrown off.<br>
Please see the fiddle belo... | 1 | 1,208 |
JTree rendering with JCheckBox nodes | <p>I am attempting to modify the standard Swing JTree to intermingle nodes with and without checkboxes. This is an example:</p>
<p><img src="https://imgur.com/zkhGi.png" alt="alt text"></p>
<p>When I attempt to check/uncheck one of the checkboxes (the 'User 01' node in this example), the tree loses nodes:</p>
<p><i... | 1 | 1,687 |
How to use template type argument in lambda? | <p>Is it possible to use a template type argument from a surrounding template function within a local anonymous function? I'm pretty certain I can't declare a template lambda ...</p>
<p>For example how would I go about doing something like this:</p>
<pre><code>template <typename T>
void TrimString(std::basic_st... | 1 | 1,089 |
jquery click event not firing on dynamically created div | <p>i'm setting a click event on a div that is dynamically created in a jqueryUI drop event (part of draggable), the click event will remove the div. That works fine. Inside of document.ready I do the same thing, based on data from local storage. I can create the dynamic divs, but the click event does not bind, or the b... | 1 | 5,444 |
Referencing xml schema element from other WSDL file | <p>I have two WSDL files.
I'm trying to use an element defined in one WSDL type in another WSDL file within a complexType element.</p>
<p>For this, I have included the other WSDL file using an import element (otherfile.wsdl is within the same folder).
Furthermore I set the namespaces and used the ref attribute (plus n... | 1 | 1,053 |
.htaccess ERRORDOCUMENT not working | <p>Hope someone can help with this.</p>
<p>I have the following code which checks the user agent of visitors and throws an error</p>
<pre><code># ANYWHERE IN UA
RewriteCond %{HTTP_USER_AGENT} ^.* (exabot|craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures).*$ [NC]
... | 1 | 2,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.