title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
React-Native: Could not resolve all dependencies for configuration ':app:debugCompileClasspath' | <p>I am kind of new to the react-native thing so please excuse me for maybe making stupid mistakes.</p>
<p>I basically tried everything I could find before posting here and by now am not sure if this is something on my end (aka me being stupid) or a bug due to recent updates somewhere.</p>
<p>So, my problem is the er... | 0 | 4,891 |
Oracle Minus query. How can I get a result with NULLS if the top SQL and the bottom SQL don't contain NULLs? | <p>How could this SQL...</p>
<pre><code>CREATE TABLE NewTable AS
SELECT A,B,C FROM Table1
minus
SELECT A, B, C From Table2
</code></pre>
<p>...create a new table with NULL values in column A
when neither Table1 or Table2 had NULL values for in column A?</p>
<p>But on the other hand, this SQL...</p>
<pre... | 0 | 5,075 |
Hibernate unable to add foreign key constraint | <p>I have already created database and all tables with all foreign key constraints. But when I run the spring boot application hibernate is throwing error</p>
<blockquote>
<p>Unable to execute schema management to JDBC target [alter table
tlp_client add constraint FKfd2km387c8s4oou769dmw5t94 foreign key
(u_frn_a... | 0 | 1,146 |
Jodconverter exception: failed to start and connect in windows | <p>Why I get the following exception..</p>
<p>I stuck with this issue with several days..</p>
<p>Please help me.. </p>
<pre><code>INFO: ProcessManager implementation is WindowsProcessManager
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
at org.artofsolving.jodcon... | 0 | 4,346 |
Spring boot , Exception in thread "main" java.lang.NoClassDefFoundError : org/SpringFramework/boot/SpringApplication | <p>I have a spring-boot maven application that runs fine in eclipse but when i try to do java -jar "jarname".jar it throws an exception</p>
<p>Because of this i am not able to start the application on one of my local servers which run ubuntu </p>
<pre><code> Exception in thread "main" java.lang.NoClassDefFoun... | 0 | 4,361 |
Why does the bootstrap .row class have a default margin-left of -30px? | <p>When I do boostrap I have to use the class "row" ...</p>
<p>When you look at my test design:</p>
<p><img src="https://i.stack.imgur.com/o3K1I.png" alt="enter image description here"></p>
<p>Why I am forced with a margin-left of -30px?</p>
<p>With this html I would expect 3 rows sharing each column 33% of the who... | 0 | 1,304 |
How can I clear form values after successful form submission | <p>How can I clear form values after successful form submission?</p>
<p>These didn't help:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/15014747/how-to-clear-field-value-with-symfony2-forms">How to clear field value with Symfony2 forms</a></li>
<li><a href="http://forum.symfony-project.org/viewtopic.php?... | 0 | 1,036 |
caret train() predicts very different then predict.glm() | <p>I am trying to estimate a logistic regression, using the 10-fold cross-validation. </p>
<pre><code>#import libraries
library(car); library(caret); library(e1071); library(verification)
#data import and preparation
data(Chile)
chile <- na.omit(Chile) #remove "na's"
chile <- chile[... | 0 | 1,948 |
symfony2: class included in AppKernel can not be found | <p>I have this <code>app/AppKernel</code>:</p>
<pre><code><?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\Framew... | 0 | 2,787 |
Simple way to Export DataGridView to Excel | <p>I am trying to copy DataGridView data to Excel and I am using this code:</p>
<pre><code>public static void ExportToExcel(DataGridView dgView)
{
Microsoft.Office.Interop.Excel.Application excelApp = null;
try
{
// instantiating the excel application class
object misValue = System.Reflect... | 0 | 1,741 |
Android ImageView Zoom-in and Zoom-out Continuously | <p>Is there any way to Zoom-in and Zoom-out an <code>ImageView</code> continuously in Android. I tried using the below code, but only one of the Zoom function is working. </p>
<p>zoomin.xml</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/an... | 0 | 1,079 |
How To Overwrite A File If It Already Exists? | <p>I'm making a music player. It has 2 forms; one is the main area where you play music. The second form has a CheckedListBox where you select the mp3s you want.
When I click a button, it saves the selection in a .txt file so I can access them in the first form, where I'll put the strings into the paths for music playe... | 0 | 1,257 |
Method invocation failed because [System.IO.FileInfo] does not contain a method named 'op_Addition' | <p>I have the following PowerShell script that copies all of the config files in certain directories to my local system. This script works as expected on many of my servers, but on 4 servers it fails:</p>
<pre class="lang-cs prettyprint-override"><code>$source = @()
switch ([System.Net.Dns]::GetHostByName(($env:compu... | 0 | 1,292 |
Border Layout Spacing/Margins | <p>for my beginner Java class we made an automated Tic-Tac-Toe game, and now we are creating a GUI to play it on. However, I'm having a lot of trouble getting the spacing/margins right. So far, I've just been trying to get the general framework for the GUI, and then I'm going to go back and actually implement the Tic-T... | 0 | 1,916 |
Angular JS - How can i animate on model change? | <p>i'm trying to do a nice fadeout+fadein transition when the currentVertical changes.
in knockout it was so simple but i can't figure it out here. please help. </p>
<p>the following code displays a UL list which is "bound" to a pricings array in the $scope.currentVertical when an LI element is clicked, the $scope.cur... | 0 | 1,499 |
Getting Error: Execution failed for task app:transformClassesWithMultidexlistForDebug | <p>i've tried nearly everything at other topics but i have the same problem in my rss reader app. How can i fix it?</p>
<p>i'm getting this error:</p>
<blockquote>
<p>Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: com.android.i... | 0 | 6,243 |
accessing <td> value with selenium | <p>Using selenium i'm trying to read out a dynamically generated table, i got down to the right elements (using the <code>findElement</code> method) but using <code>getText()</code> on them returns nothing.</p>
<p>Probably because <code>getText()</code> looks for quotation marks when returning "text" and can't find an... | 0 | 4,517 |
ASP.NET MVC 3: DefaultModelBinder with inheritance/polymorphism | <p>First, sorry for the big post (I've tried to do some research first) and for the mix of technologies on the same question (ASP.NET MVC 3, Ninject and MvcContrib).</p>
<p>I'm developing a project with ASP.NET MVC 3 to handle some client orders. </p>
<p><strong>In short:</strong> I have some objects inherited from a... | 0 | 1,644 |
PyInstaller ImportError: No module named 'pyfiglet.fonts' | <p>I'm attempting to use PyInstaller to compile one of the demo scripts for Asciimatics, in hopes to eventually be able to create a simple GUI for a text-based game I'm developing, and it returns the following error:</p>
<pre><code>C:\Users\X\Documents\Python Scripts\asciimatics samples\dist\test>test.exe
Tracebac... | 0 | 1,309 |
When should I omit the frame pointer? | <p>Is there any substantial optimization when omitting the frame pointer?
If I have understood correctly by reading <a href="http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Optimize-Options.html" rel="noreferrer">this</a> page, <code>-fomit-frame-pointer</code> is used when we want to avoid saving, setting up and restoring... | 0 | 1,091 |
error: No validator could be found for type: java.time.LocalDate | <p>I'm working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the <code>@Past</code> annotation.</p>
<pre><code>@Past(message = "A data deve estar no passado.")
private LocalDate dataAbertura;
</code></pre>
<p>But, when the validation occurs I get the following ... | 0 | 2,213 |
Web Api return DataSet with Get | <p>I had code in which it works as it returned I assume to proper object type</p>
<p><strong>jquery</strong></p>
<pre><code> $(document).ready(function () {
jQuery.support.cors = true;
$.ajax({
url: '/api/News/5',
type: 'GET',
dataType: 'json',
success: ... | 0 | 1,302 |
Synchronous query to Web SQL Database | <p>I'm working on a bit of JavaScript that interacts with a client-side SQLite database, via the newish <code>window.openDatabase(...)</code>, <code>database.transaction(...)</code> and related APIs. As most of you know when you execute a query in this way it is an asynchronous call, which is typically good. You can ma... | 0 | 1,266 |
Configure WCF for WS-Security with Username over https | <p>I'm trying to call a Java based, WS-Security enabled web service over https using a WCF client and can't seem to get the security configuration right. Using SvcTraceViewer, I don't see the expected security header with any of the security configurations I have tried.</p>
<p>My most recent security configuration is... | 0 | 1,189 |
SocketException: Connection reset on server with ObjectInputStream | <p>
I'm trying to get my head around the <em>ObjectInputStream/ObjectOutputStream</em>, so I create a very simple server-client application where the client sends a HashMap object over the created stream and the server receives that and prints it out.</p>
<p>This my server code:</p>
<pre class="lang-java prettyprint-... | 0 | 1,896 |
How to represent arrays within ember-data models? | <p>Is it necessary to use <code>DS.hasMany</code> pointing to a <code>DS.Model</code> when a model contains an array? Even if the array elements are not really models (no IDs or endpoints of their own)? Is there a better way?</p>
<p>I am using <code>DS.hasMany</code>, but my extended <code>DS.RESTAdapter</code> is thr... | 0 | 2,858 |
Flexbox alignment with images and text inside same container | <p>I am making a flexbox Employee ID card layout. The employee's picture will go to the left and the employee's info (name, employee-id, department, etc) will go to the right of the image in a list format top-to-bottom.</p>
<p>I need to do this using flexbox.</p>
<p>Here is a link to my JSFiddle with what I have don... | 0 | 1,185 |
Unit test the new Kotlin coroutine StateFlow | <p>Recently, the class <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/" rel="nofollow noreferrer"><code>StateFlow</code> was introduced</a> as part of Kotlin coroutines.</p>
<p>I'm currently trying it and encountered an issue while trying to unit test my... | 0 | 1,230 |
How to print multi-digit numbers like a 7-segment display | <p>I am just wondering whether is it possible to display number in digital format.
In this we are accepting number from console.</p>
<p>For example:</p>
<pre><code>123 should be display in following format, and in one line.
_ _
| _| _|
| |_ _|
</code></pre>
<p>I tried using switch case but not got appropriate met... | 0 | 1,081 |
Reference parent query column in subquery (Oracle) | <p>How can I reference a column outside of a subquery using Oracle? I specifically need to use it in the WHERE statement of the subquery.</p>
<p>Basically I have this:</p>
<pre><code>SELECT Item.ItemNo, Item.Group
FROM Item
LEFT OUTER JOIN (SELECT Attribute.Group, COUNT(1) CT
FROM Attribute
... | 0 | 1,117 |
R: need finite 'ylim' values in function | <p>I'd like to plot the data in data.frame <code>xy</code> for each group (defined by <code>ID</code>). When a year before 1946 is in a group, <code>plot 2</code> should be executed. When the years are between 1946 and 2014, <code>plot1</code> should be executed. </p>
<p>My problem: This works fine without NA values, ... | 0 | 1,090 |
How do I use a DataPager with Server Side Paging? | <p>I'm trying to use a DataPager to do Server Side paging. Here is my code</p>
<pre><code><asp:DataPager ID="pgrFooBars" PagedControlID="lvFooBars"
QueryStringField="page" runat="server" >
<Fields>
<asp:NumericPagerField />
</Fields>
</asp:DataPager>
</code></pre>
<p>Code Behind... | 0 | 1,178 |
Does TestNG guarantee @BeforeSuite methods are executed before @BeforeTest methods? | <p>BACKGROUND: My goal is to code a TestNG-Selenium system that runs self-contained (no strings to Maven or Ant plugins; just Java). It must allow for test cases to accept parameters including the browser and the domain URL. When the <code>TestRunner</code> instantiates these test cases, the browser and domain are used... | 0 | 1,899 |
Javascript functions not being called in JSPs | <p>SOLVED: Stray <code>}</code> within the Javascript. Eclipse IDE doesn't check these when in a JSP.</p>
<p>I'm having trouble getting my Javascript functions to be called in my JSP. I have commented above which functions are working and not working. My goal is to have my dropdown boxes to be preselected based on a p... | 0 | 1,438 |
Change margins in Excel using VBScript Code | <p>I have a script that currently takes in an Excel document and turns it into a report (still in the Excel format), broken up in to two sheets: UPLOAD and PRINTOUT. </p>
<p>The Upload sheet shows all of the information that was taken in from the original Excel doc and filters it into the right columns/rows for the re... | 0 | 1,046 |
Gradle build: resource android:style/TextAppearance.Material not found | <p>I just installed AndroidStudio and imported an old Eclipse ADT project (API level 18). However, when trying to build this project in AndroidStudio, I get the following errors:</p>
<pre><code>resource android:style/TextAppearance.Material not found.
resource android:style/TextAppearance.Material.Body1 not found. ... | 0 | 1,216 |
Recursive list of LINK_LIBRARIES in CMake | <p>I am trying to acquire a list of the absolute paths to all libraries linked to a specific target in CMake for use in a call to <code>add_custom_command</code>. However, <code>get_target_property(_LINK_LIBRARIES ${TARGET} LINK_LIBRARIES</code> only includes the direct dependencies (i.e. anything that is used in a <co... | 0 | 1,422 |
How to get request cookies in Web API authorization attribute? | <p>In .NET there are two <code>AuthorizeAttribute</code> classes. One defined in <code>System.Web.Http</code> namespace:</p>
<pre><code>namespace System.Web.Http
{
// Summary:
// Specifies the authorization filter that verifies the request's System.Security.Principal.IPrincipal.
[AttributeUsage(Attribu... | 0 | 2,647 |
Error Code: 1062. Duplicate entry 'PRIMARY' | <p>So, my professor gave me tables to insert it in a database but when I execute his code, MySQL is constantly giving the Error Code: 1062.
Here is the conflict tables and the inserts:</p>
<p><strong>TABLES</strong></p>
<pre><code>CREATE TABLE FABRICANTES(
COD_FABRICANTE integer NOT NULL,
NOMBRE VARCHAR(15), ... | 0 | 1,499 |
Compare two Lists for differences | <p>I would like some feedback on how we can best write a generic function that will enable two Lists to be compared. The Lists contain class objects and we would like to iterate through one list, looking for the same item in a second List and report any differences.</p>
<p>We already have a method to compare classes, ... | 0 | 1,116 |
Using recursion in Python class methods | <p>NB Noob alert ... !</p>
<p>I am trying to use recursion in a Python class method, but with limited results.</p>
<p>I'm trying to build a car class, with very basic attributes: id, position in a one lane road (represented by an integer), and velocity. One of the functions I have is used to return which car id is i... | 0 | 1,067 |
Jersey serialization/deserialization issue: abstract types can only be instantiated with additional type information | <p>I'm using jersey for both serialization and deserialization. I've made REST channel on WebLogic using jersey. I have result object with contains abstract class. Jersey adds to the result metadata with this class'es implementation name:</p>
<pre><code>{"order":{"@type":"installationOrder",
</code></pre>
<p>However,... | 0 | 1,065 |
Sort the array in decreasing order of frequency of occurrence of elements in C | <p>Question is to sort the array according to the frequency of the elements. For example, if the input array is </p>
<pre><code> { 2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12 }
</code></pre>
<p>then modify the array to:</p>
<pre><code> { 3, 3, 3, 3, 2, 2, 2, 12, 12, 4, 5 }
</code></pre>
<p>I wrote the code for this and i... | 0 | 1,254 |
iis 7.5 dns windows authentication page user identity not working | <p>In IIS 7.5 server I have a website apps.mydomain.com. Site binding for this website is:</p>
<p>IP: All Unassigned</p>
<p>Port: 80</p>
<p>Host name: apps.mydomain.com</p>
<p>In DNS there is an ip address pointing to apps.mydomain.com. Site comes up fine when browsing to this hostname. </p>
<p>I want to get cur... | 0 | 12,610 |
Filtering JSON in React | <p>I'm loading some JSON data using FETCH. I'm trying to add/create a simple filtering functionality on the content displayed. </p>
<p>I'm getting this error:</p>
<p><strong>Uncaught TypeError: Cannot read property 'toLowerCase' of undefined</strong></p>
<p>Any idea what could be causing this error?</p>
<p>This my ... | 0 | 1,656 |
An error occurred while accessing the Microsoft.Extensions.Hosting services when do first migrations | <p>I don't understand what wrong.
I tried to make a simple crud in .net core mvc with a very simple model which has few fields.</p>
<p>These are my models:</p>
<pre><code> public class Employee
{
[Key] public int EmployeeId { get; set; }
[Required] public string FistName { get; set; }
[... | 0 | 3,444 |
How to display django form in modal window? | <p>I saw this <a href="https://stackoverflow.com/questions/11276100/how-do-i-insert-a-django-form-in-twitter-bootstrap-modal-window">post</a>, but it did not help me</p>
<p>In the modal window, the form is not displayed.</p>
<p>View:</p>
<pre><code>class CreateOrder(FormView):
template_name = 'toner/add_order.ht... | 0 | 1,229 |
How do I set the SMB username and password? | <p>I have a Vagrantfile (copied below) that uses SMB shared folders. On <code>up</code>, Vagrant always prompts for the username and password. How do I set the username and password once and stop the prompts?!</p>
<ul>
<li>Windows 10 Pro x64 1703 </li>
<li>Vagrant 1.9.5 </li>
<li>VirtualBox 5.1.22 </li>
</ul>
<p><... | 0 | 1,162 |
ConnectionString property has not been initialized | <p>I've looked at a lot of posts on different forums where others have received the same error. Most say they were not referencing the connectionstring from the web.config file correctly, or they were trying to open the connection before setting the connectionstring. Well, if that were the case for me, then how does it... | 0 | 1,515 |
Add event to button with javascript | <p>In this page there's a way to
<a href="http://viralpatel.net/blogs/2009/01/dynamic-add-textbox-input-button-radio-element-html-javascript.html" rel="noreferrer">dynamic add html (textbox,input button and radio elements with javascript</a></p>
<p>my questioon is how can i add an event to the button, imagine that i ... | 0 | 2,959 |
How to write OAuth2 Web API Client in Asp.net MVC | <p>We have developed a set of Web APIs (REST) which are protected by an Authorization server. The Authorization server has issued the client id and client secret. These can be used to obtain an access token. A valid token can be used on subsequent calls to resource servers (REST APIs).</p>
<p>I want to write an web ba... | 0 | 2,049 |
SEVERE: Allocate exception for servlet <myservlet-name> java.lang.ClassNotFoundException: <myservlet> exception | <p>When I use the following <code>web.xml</code>, my project runs fine and I can see "Hello World" getting displayed via index.jsp page. I am using <strong>Netbeans 7.4</strong> and <strong>Apache tomcat 6.0.41</strong></p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http:/... | 0 | 1,518 |
How to cascade create and store references in the same Spring Data JPA save request? | <p>My <code>Parent</code> entity has a <code>Child</code> entity and collection of <code>Element</code>s:</p>
<pre><code>@Entity
public class Parent {
@Id
private String id;
@OneToOne(cascade = CascadeType.ALL)
private Child child;
@ManyToMany(cascade = CascadeType.ALL)
private List<Elemen... | 0 | 5,960 |
Cannot access first() element from an empty list when using Grails SortedSet | <p>I am working on creating some grails domain objects dynamically and then adding them a SortedSet declared in another grails domain object. I have created a Project class, filled in its values, and checked to make sure it is valid. It is valid, so I want to add this Project to an Employee.</p>
<p>My code essentially... | 0 | 1,638 |
How to make HA Proxy keepalive | <p>In my environment I have haproxy load balance for 2 web servers (Apache), this is my HA Proxy configuration :</p>
<pre><code>global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
tun... | 0 | 1,035 |
Cannot get SSL to work in Docker container | <p>Let me start off by saying that I am no server administrator and there are a great many things I do not know. Because of this I am sure that I have made a mistake somewhere setting up my Docker container, because SSL does not work. </p>
<p>The container is running Apache 2.4 with PHP 5.6 on Ubuntu 14.04 and is link... | 0 | 1,978 |
mysqli::query(): Couldn't fetch mysqli | <blockquote>
<p>Warning: mysqli::query(): Couldn't fetch mysqli in C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\my portable files\class_EventCalendar.php on line 43</p>
</blockquote>
<p>The following is my connection file:</p>
<pre><code><?php
if(!isset($_SESSION))
{
session_start();
} ... | 0 | 1,121 |
error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found | <p>I have recently upgraded my Visual Studio environment, and now I seem to have a problem with my .Net framework, as you can see in following error message:</p>
<blockquote>
<p>9> C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1126,5): er... | 0 | 1,511 |
get other values from marker | <p>I'm stuck with this problem and I hope someone can lead me to a solution, I have spent 3 days on it until now..</p>
<p><strong>The Problem</strong></p>
<p>I have 2 activities, activity <strong>A</strong> is a listview populated from a JSON list. Activity <strong>B</strong> is Google maps v2 based with the same jso... | 0 | 5,905 |
Composer failed to clone git repo | <p>I'm trying to get a development version of a module in my private GitLab repository.</p>
<p>Using what I've found in <a href="https://stackoverflow.com/questions/34781422/is-it-possible-to-install-a-package-from-a-repository-on-gitlab-using-composer">other answers</a>, my project's composer.json is:</p>
<pre><code... | 0 | 1,387 |
android scrollable activity layout | <p>I am trying to make my activity screen where there is a form to be filled scrollable but unfortunately, when I tried it crashed the app. I have the following xml for that activity:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.co... | 0 | 3,016 |
Twitter Bootstrap Tabs href="#" anchor tag jumping | <p>I am using TW Bootstrap's tabs to tab through content on my <a href="http://www.koodoocreative.co.uk/~stagesca" rel="noreferrer">clients' site</a> I have set the HTML Markup to remove the "data-toggle" as I need to intialise the jScrollpane library on click.</p>
<p>I have got this to work, However when you click on... | 0 | 3,251 |
ESP: Auto login/accept message by OS with redirect to page like public WIFI portals access points | <p><strong>Example:</strong></p>
<p>I do not know how you call this feature so I try to explain it. For example when you connect your phone to a public WiFi hotspot/access point, you receive a message from OS that it is required to accept terms/conditions or you need to logon to be able to use the connection. When you... | 0 | 6,393 |
Failed building wheel for numpy pandas | <p>I'm on Centos and I'm trying to install <code>pandas</code> but I get the following error:</p>
<pre><code> sudo pip3 install pandas ~
Collecting pandas
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.5.0 ... | 0 | 8,245 |
How to execute Ant build in command line | <p>I have an Ant build file, and I try to execute it in the command line with the following command:</p>
<pre class="lang-bat prettyprint-override"><code>$ C:\Program Files (x86)\.....>ant -f C:\Silk4J\Automation\iControlSilk4J\build.xml
</code></pre>
<p>But nothing happens, and the result is:</p>
<pre><code>BUIL... | 0 | 2,035 |
SwingWorker ProgressBar | <p>I am trying to get a progress bar to accurately reflect my SwingWorker. But I really can't figure out how to do it. I got the bar to just do a static animation until the operation has completed but I want a real active bar.</p>
<pre><code>/*
* To change this template, choose Tools | Templates
* and open the templ... | 0 | 1,901 |
Java account class program | <p>I have wrote this program over and over again, can someone please tell me what I am missing, it looks like its a small error I am not catching. </p>
<p>Here is what I am trying to accomplish:</p>
<p>Design a class named Account that contains:</p>
<ul>
<li>A private int data field named id for the account(default ... | 0 | 1,202 |
Using Chrome to debug React TypeScript .tsx file - Webpack | <p>I'm using webpack for bundling my js-files so normally I only see one big bundled file under sources in Chrome. However if I add a <code>debugger;</code> to my <code>.tsx</code> file I can see a single file just fine. My question is if I can get webpack to output all my files in Chrome Source so that I can browse th... | 0 | 1,378 |
how to insert image in database using phpmyadmin? | <p>im develop website using xampp localhost. I want to add image using phpmyadmin but i can't add it..the image can display in phpmyadmin but can't appear on my website..is it any wrong with my coding in php?</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-c... | 0 | 1,031 |
Google Maps API v3: InfoWindow is not in right position | <p>I want the infoWindow to open on the specific marker every time I click on the marker. But every time it stays in the same position where it used to be at the last time. Here's my code </p>
<pre><code>var infowindow = new google.maps.InfoWindow(
{
size: new google.maps.Size(150,20)
});
var ... | 0 | 1,202 |
Python: octal escape character \033 from a dictionary value translates in a print statement to a UTF-8 character instead | <p>I've been experimenting a little with color output in terminal and <strong>Python 2.7.3</strong>. The ANSI color codes are always rendered flawlessly in the terminal, with this one little exception which I couldn't pinpoint yet any preciser than to this particular dictionary definition.</p>
<p>Here's what causes co... | 0 | 1,989 |
Unexpected EOF in prolog | <p>On client side I created 3 attachments in the following way:</p>
<pre><code>public String sendMessage(MMSMessage mmsMessage, String formatCDR, FlowSessionData flowSessionData)
throws IOException, ServiceException, PolicyException {
SendMessage sendMessage = sendMessageService.getSendMessage();
int ... | 0 | 2,980 |
Get column name where value is something in pandas dataframe | <p>I'm trying to find, at each timestamp, the column name in a dataframe for which the value matches with the one in a timeseries at the same timestamp.</p>
<p>Here is my dataframe:</p>
<pre><code>>>> df
col5 col4 col3 col2 col1
1979-01-01 00:00:00 11... | 0 | 1,468 |
Infinite horizontal scrolling image loop? | <p>so I'm trying to create an infinite scroll animation on my website, but I've been really struggling. The original tutorial is here, and uses 6 images, with 4 repeating at the end to make the transition seamless.</p>
<p><a href="https://designshack.net/articles/css/infinitephotobanner/" rel="noreferrer">https://desi... | 0 | 1,469 |
React-native android WebView handle clicked Url before loading | <p>I'm showing a Website trough a WebView in react-native. On this Website there is a link to a PassWallet (.pkpass) file (not the only use case). When I click on any link on this Website I want to check whether it is an other Website or a .pkpass file or whatever. While this check is running I don't want to load anyth... | 0 | 1,566 |
How to Stream With FFmpeg and NGINX RTMP | <p>I'm trying to stream from OBS (open broadcast software) on my Windows PC to NGINX+RTMP also installed on the same PC. I have set a bitrate of 20,000Kbps in OBS which will be the foundation bitrate for the multiple streams I aim to setup within NGINX. </p>
<p>I would like to be able to stream into NGINX and then on-... | 0 | 1,512 |
What is the difference between echo and Write-Host in PowerShell? | <p>I'm confused about the difference between <code>echo</code> and <code>Write-Host</code> in PowerShell. I have two files, <code>POC.ps1</code> & <code>validatePath.ps1</code>. These files are on my local machine, and I'm running them on a remote machine using <code>Invoke-Command</code>. I am using PowerShell v3.... | 0 | 1,646 |
Android - How to download a file from a webserver | <p>In my app I am downloading a <code>kml</code> file from a webserver. I have set the permission for external storage and internet in my android manifest file. I am new to Android, your help is greatly appreciated.</p>
<p><strong>MainActivity.java</strong></p>
<pre class="lang-java prettyprint-override"><code>packag... | 0 | 4,156 |
Elasticsearch default mapping | <p><strong>My current understanding-</strong></p>
<ol>
<li>Elasticsearch creates the mapping indices the first time it receives the JSON datasets.</li>
<li>This mapping cannot be changed, but the datasets can be re-mapped.</li>
</ol>
<p><strong>Question-</strong></p>
<p>Forget re-mapping. Is there any way to tell ES... | 0 | 1,393 |
Matrix Multiplication with operator overloading | <p>I am attempting to create an overloaded operator for a matrix class that I have built. My matrix class stores the matrix in a dynamically allocated multidimensional array. I am simply trying to test my overloaded operator by multiplying two matrices together that are exactly the same and display the output. I am get... | 0 | 2,905 |
WP get_footer function does not show footer | <p>I'm trying to learn how to build my own WordPress themes. I've been through a few tutorials but I've hit a snag. I can't seem to figure out what I'm doing wrong. When I have my html for my footer in the same file as my "home.php" it works fine. When I try to separate it however and place the footer html in "footer.p... | 0 | 1,191 |
Deployment of a JAX-RS application using web.xml, Servlet 3.0 and Jersey | <p>I'm trying to deploy my application, using web.xml, servlet 3.0, and jersey API. Unfortunately, it doesn't work.</p>
<p>This is MyApplication.class :</p>
<pre><code>package com.example;
public class MyApplication extends Application {
public Set<Class<?>> getClasses() {
Set<Class<?>... | 0 | 1,371 |
Dynamically changing the template for an Angular 4 components | <p>Using Angular 4.1, I'm trying to dynamically change a module type's template before the module rendered. Is this possible?</p>
<p>We are bootstrapping an unknown number of components on the page (from a known list of component types), and the page may contain multiple components of the same type. I've found out a... | 0 | 1,306 |
How to bottom align button in card, irrespective of the text in vuetify? | <p>I am trying to align button in my cards. I have a layout which contains 3 cards in a row. But, the problem is, when i add text in the card the position of the button changes in the specific card. </p>
<p>I have tried passing different props and tried using different classes. But it did not work for me</p>
<p>This ... | 0 | 1,048 |
Could not load file or assembly 'System.Web.WebPages.Razor'? | <p>I have an MVC5 Application that I am trying to publish to Microsoft Azure Webhosting. When I execute the application on my localhost, everything works as intended. However, when I publish to Azure and attempt to load the host domain, I receive the following error message:</p>
<p><code>Could not load file or assembl... | 0 | 2,525 |
How to use graph API with react-native-fbsdk? | <p>I read the document, both on <a href="https://github.com/facebook/react-native-fbsdk" rel="noreferrer">github</a> and <a href="https://developers.facebook.com/docs/react-native/graph-api" rel="noreferrer">Facebook developers docs</a>. <br>
There is only sample, nothing more. No API document. <br></p>
<p>The code to... | 0 | 1,965 |
Spring - Thymeleaf: Exception processing template | <p>I'm following the a book Spring in Action 5th ed., but I believe that is presents a bug.</p>
<p>This is the GitHub of the book. I'm arrived on chap 3 tacos-jdbc
<a href="https://github.com/habuma/spring-in-action-5-samples" rel="noreferrer">source of code</a></p>
<p>When submit my order a sudden error appears:</p>... | 0 | 1,837 |
Exception in thread “main” java.lang.StackOverflowError | <p><strong>Errors</strong> When i Compile the file I get no errors but when I try to execute this I get the following messages:</p>
<pre><code>Exception in thread "main" java.lang.StackOverflowError
at sun.awt.SunToolkit.isInstanceOf(SunToolkit.java:1988)
at sun.awt.SunToolkit.isInstanceOf(SunToolkit.java:1997)
at sun... | 0 | 2,211 |
Example of code to implement a PDF reader | <p>I want to implement a PDF reader in the application that I am doing, I have found several APIs, but none of them were open source.</p>
<p>Does any of you guys know a good free alternative?</p>
<hr />
<h2 id="slight-adaptation-of-dipak-keshariyas-solution-made-by-the-op">Slight adaptation of <a href="https://stackove... | 0 | 1,382 |
ui:repeat JSF 2.0 cannot render iterate p:row primefaces | <p>I got a problem here, my system config was Mojarra 2.1.7, Primefaces 3.2 and using Glassfish 3.1+. </p>
<p>before this, i got my code well rendered using this codes: </p>
<pre><code><p:tabView>
<p:tab title="Offices Access" >
<h:outputText value="Access | Offices Name | Offices Code |... | 0 | 1,381 |
What is boost log, how to get it and how to build it | <p>So I heard good things about boost log. This claims its existence: </p>
<p><a href="http://boost-log.sourceforge.net/libs/log/doc/html/index.html" rel="noreferrer">http://boost-log.sourceforge.net/libs/log/doc/html/index.html</a></p>
<p>This is the tutorial:</p>
<p><a href="http://boost-log.sourceforge.net/libs/l... | 0 | 1,162 |
Testing URL and URLConnection | <p>I don't know how should I test this without really taking connection to real url to server.</p>
<p>I have read few articles about using Mockito in this kind of situation and tried to search around, but can not find good tutorial or advices how should I make jUnit-test for URL and URLConnection in my project.</p>
<... | 0 | 1,538 |
django 2 not able to load env variables from the .env file to setting.py file | <p>I tried to load environment variables from a file named .env to settings.py file
here i created the .env file and settings file same folder.</p>
<p>this is my .env file </p>
<pre><code>DEBUG=on
SECRET_KEY=ksmdfw3324@#jefm
DATABASE_URL=psql://urser:un-githubbedpassword@127.0.0.1:8458/database
SQLITE_URL=sqlite:///... | 0 | 1,589 |
Nested vertical layout in horizontal layout | <p>I'm creating an android app and I want to create a layout that has two buttons side by side and three buttons underneath. An example of what I am trying to do can be found here:</p>
<p><a href="http://mycolorscreen.com/2014/11/29/flatdrop-zw-skin/" rel="nofollow">http://mycolorscreen.com/2014/11/29/flatdrop-zw-skin... | 0 | 1,230 |
PrimeFaces command button does not update form on submit | <p>This is my Sample backing bean.</p>
<pre><code>@ManagedBean
@SessionScoped
public class Sample {
private String dateText;
public Sample(){
dateText = (new Date()).toString();
}
public String updateDate(){
setDateText((new Date()).toString());
return null;
}
public ... | 0 | 1,156 |
How can I run rails console in Heroku? Rails 5.1 and postgresql | <p>I've been following along with a tutorial for a Rails app. The tutorial is based on Rails 5 and I am using Rails 5.1.2. Everything works great locally and pushed to heroku with no problems. However, when I went to create an admin user on the production database by running:</p>
<pre><code>$ heroku run rails c
</code... | 0 | 1,361 |
Conditional required elements in an XSD | <p>I have a requirement for an xml schema which accepts either a request with the customer or with the customer id. If the customer Id is 0 then we need the customer data, if it's > 0 then customer data is optional (They can submit ammendements). My XSD looks like this at the moment;</p>
<p></p>
<pre><code><xs:c... | 0 | 1,634 |
How to pass an entire ViewModel back to the controller | <p>I have a ViewModel that contains two objects: </p>
<pre><code>public class LookUpViewModel
{
public Searchable Searchable { get; set; }
public AddToSearchable AddToSearchable { get; set; }
}
</code></pre>
<p>The two contained models look something like this:</p>
<pre><code>public class Searchable
{
[K... | 0 | 1,248 |
How to run jar generated by package (possibly with other jars under lib)? | <p>How can I run <code>.jar</code> file which is generated by sbt's <code>package</code>?</p>
<p>I created a really simple example with a single <code>.scala</code> source:</p>
<pre><code>package org.pack {
class ScalaParser(files: Array[String]) {
def doAll() = {
println("hello")
}
... | 0 | 1,219 |
How to Use MVC Controller and WebAPI Controller in same project | <p>I am trying to use an MVC Controller and a Web API controller in the same project, but I get 404 errors for the Web API. I started the project as an MVC project in VS 2015, but then added the Web API controller, and with the default code it is giving a 404 error.</p>
<p>What could be the possible solution? I have t... | 0 | 1,307 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.