title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
GLTF create instances | <p>I am new in THREEJS. In the past, I have used AFRAME, CESIUM, XEOGL and BABYLONJS. But eventually, due to memory consumption and performance, I have realized that the best product for making a CAD visualizer is THREEJS.</p>
<p>BABYLONJS takes more than 4 minutes to load a big GLTF file (400MB) while THREEJS takes on... | 1 | 14,705 |
Difference between SAS merge and full outer join | <p>Table t1:</p>
<pre><code>person | visit | code_num1 | code_desc1
1 1 100 OTD
1 2 101 SED
2 3 102 CHM
3 4 103 OTD
3 4 103 OTD
4 5 101 SED
</code></pre>
<... | 1 | 1,822 |
@Before Suite and @BeforeTest methods are not called if groups are executed in TestNG | <p>Below is my XML file and Demo Class. Precondition() method will run before demo1() method and postCondition() method will run after demo1() method. Same process is for demo2(). But when i run the code, BeforeSuite and BeforeTest Methods are not Called. Why.? How to call them ?</p>
<pre><code>Output :
Bef... | 1 | 1,204 |
Yii 2.0 restful routing 404 issue | <p>I am trying to follow the Yii2.0 example as found here with my simple product table
instead of User.</p>
<p><a href="http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html" rel="nofollow">http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html</a></p>
<p>I'm using the basic package, not advanced.<... | 1 | 1,949 |
.NET Core and IIS Intermittent 403 Access Denied | <p>Alright Stackoverflow, after much fruitless research I've ended up here!</p>
<p>I am attempting to get a .NET Core 2.0 site hosted out of IIS with Windows Authentication and SSL, and no matter what I try I continue to get inconsistent/intermittent 403 Access Denied errors. </p>
<p>If there was something dead-wrong... | 1 | 1,185 |
Mixed Portrait and Landscape Pages in Print CSS | <p>I have a report that I want to print using CSS such that the first page is landscape and the second page is portrait. When I do this, the first page is fine, but the second page looks like a landscape page cropped into a portrait frame. That is, when centering text, it puts the midpoint at 5.5 inches (on 8.5x11 le... | 1 | 1,447 |
Using ninject with Ninject.Web.Api for Web Api 2 is not working in ASP.NET MVC 5 | <p>I am developing an Asp.NET MVC project. My project has web api as well. I am using ASP.NET MVC5 and Web Api 2 with Visual Studio 3. I am doing dependency injection using ninject. I know ninject for web is not working for Web Api 2. So I tried to use Ninject for Web Api.</p>
<p>I installed ninject for web api 2 pack... | 1 | 2,070 |
R: set axis ticks & range to include all points w/ pretty breaks | <p>I have a function which builds line plots dynamically, hence need to solve my problem with a formula rather than manually setting ranges. (note to experts: I've written this in logical progression for myself & others later - apologies that this means more text; I find R help to be particularly fragmented and unh... | 1 | 1,590 |
Center Website On All Screen Sizes | <p>I need help centering my webpage on small screen sizes. My site looks fine at its normal width of 989px, but when it gets smaller it gets pushed to the left and there's a lot of white space on the right. I've been trying many ways to fix this but nothing works. </p>
<p>Now it's up to you guys. Hope you can help.</p... | 1 | 1,794 |
Angular 8 - Behavior Subject not emitting next value in Service | <p>Hi I have an angular application where I'm passing data from one component to a service and trying to update the value of a behavior subject in that service by calling it's next function so it in turn updates a subscribe value in another component. My issue is when passing the data and creating an object to pass to ... | 1 | 1,821 |
Android / Layout - Add margin top pragmatically to Relative Layout | <p>I'm trying to add pragmatically a margin top to my Relative Layout in my activity.
Using the xml i can do it in this mode: <code>android:layout_marginTop="10dp"</code>, but when i'm trying to do it pragmatically nothing change...</p>
<p>This is the code that i'm using:</p>
<pre><code>//SCROLL VIEW
ScrollVi... | 1 | 1,474 |
OpenGL Rapid Flickering Issues - and now not showing image | <p>I'm having some troubles with OpenGL. First of all, I have a custom control which I'm building, encapsulating OpenGL. I'm having a problem where it rapidly flickers, like it's 'flashing'. The control was too large and complex to post here, so I made a new small demo app to demonstrate and recreate the same scenario.... | 1 | 4,944 |
Flexbox columns overlap in Safari 10 | <p>I'm working on a simple layout using flexbox that works in Chrome, but in Safari, the heights of elements seem off.</p>
<p>There is a minimal example fiddle here: <a href="https://jsfiddle.net/6h84h2w6/3/" rel="nofollow noreferrer">https://jsfiddle.net/6h84h2w6/3/</a></p>
<p>HTML:</p>
<pre><code><div id="con... | 1 | 1,096 |
How to add custom view inside another custom view? | <p>I'm trying to add CustomViewBeta (an extended RelativeLayout) to CustomViewAlpha (an extended LinearLayout) -- the idea being that the CustomViewAlpha will hold a bunch of CustomViewBetas a la a ListView. No matter what I try, it doesn't work. I either see nothing -- no CustomViewBetas, or it gives me an NPE when I ... | 1 | 1,091 |
Freeze cells in excel using xlwt | <p>I am creating worksheets on a fly and not naming them anything. I am unable to freeze the first column and row. I tired working with naming the sheet when adding it to the workbook and it works. However doesn't work on the fly. Below is the code</p>
<pre><code>base = xlwt.Workbook()
for k,v in MainDict.items():
... | 1 | 1,055 |
How to make Minio-client (from host) talk with Minio-server(docker container)? | <p>I am running a minio-server in the container of docker-compose. I am trying to upload a file to the minio-server in the container, from the host machine (Ubuntu) (instead of container) by using minio-client (python SDK).
I did not make it happen as expected.
I am not clear if it is because of my endpoint(URL), or ... | 1 | 1,061 |
Reading and writing data into sql server simultaneously | <p>I have a service which continuously writes data in a separate thread into SQL database.Now from the same service if i am trying to read from the same table, since i already am writing into it,I get this exception : There is already an open DataReader associated with this Command which must be closed first.
So can an... | 1 | 1,128 |
The above error occurred in the <Provider> component | <p>can't find way how to resolve this problem.</p>
<p><strong>Errors in browser:</strong></p>
<ol>
<li><p>Uncaught Error: Invalid hook call. Hooks can only be called inside
of the body of a function component. This could happen for one of
the following reasons:</p>
<ul>
<li>You might have mismatching versions of React ... | 1 | 3,858 |
applying css using class name or ID attribute of html element in reactjs component | <p>Hi I am using UI component made of bootstrap which uses class name on the html element to define its look and feel. I have written html inside component class Home.js as follows :</p>
<pre><code>import React, { Component } from 'react';
import style from './css/main.css';
export default class Home extends Componen... | 1 | 1,259 |
Index was outside the bounds of the array | <p>I am getting this error:</p>
<blockquote>
<p>Index was outside the bounds of the array.</p>
</blockquote>
<p>Code:</p>
<pre><code> private void PopulateWallPosts(string userId)
{
using (OdbcConnection cn = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=gymwebsite2... | 1 | 1,177 |
Check if document exists in mongodb using es7 async/await | <p>I'm trying to check if the user with the <code>email</code> provided exists in the collection <code>users</code>, but my function keeps returning undefined for every call. I use es6 and <code>async/await</code> in order to get rid of lots of callbacks. Here's my function (it is inside of a class):</p>
<pre><code>as... | 1 | 1,280 |
CXF Web Service WSDL File Not Found Exception | <p>i had tried to develop a web service using eclipse indigo but there is error after generating wsdl file (java2ws) it display error on Test Service Explorere wizard which result previous generate wsdl file been erase. Thus, I'm manually copy the wsdl file to temp folder and copy back to the desire folder but followin... | 1 | 4,411 |
How to test Models (Mongoose) in a service (NestJS) with jest | <p>I have a backend done with NestJS. In my service I inject two Mongoose Models. I use Jest to test the service.
Models are declared as is and injected into the module:</p>
<pre><code>quizes.providers.ts
import { Connection } from 'mongoose';
import { QuizSchema } from './schemas/quiz.schema';
export const quizesPro... | 1 | 1,298 |
c#.net Webbrowser control Anchor Tag Invoke Click event not work for alternate rows | <p>I am using c#.net and webbrowsercontrol.
I am invoking click event of anchor tag.</p>
<p>Application has following code:</p>
<pre><code>HtmlElementCollection anchors = browser.Document.GetElementsByTagName("a");
foreach (HtmlElement anc in anchors)
{
if(anc.GetAttribute("href").ToLower().Contains("javascrip... | 1 | 1,306 |
Prevent subloop repeating within jquery | <p>Im trying to build a simple webtool using jQuery. I'm new using jQuery, so don't laugh ;-). It needs to show a car based on the selection menu and per car it needs to show and hide tinted windows while clicking on the windows. Its all working, but after switching cars the show and hide function of the selected windo... | 1 | 1,752 |
Pivot Cache Type Mismatch error VB.NET Excel | <p>Please see bottom edit for where I am currently at, thank you.</p>
<p>I have created a pivot table that works fine when the pivot cache is defined as:</p>
<pre><code> Dim ptCache As Excel.PivotCache = mainHighway.PivotCaches.Add(SourceType:=Excel.XlPivotTableSourceType.xlDatabase, SourceData:=mainHighwayDat... | 1 | 1,084 |
Implementation of Okapi BM25 in python | <p>I am trying to implement Okapi BM25 in python. While I have seen some tutorials how to do it, it seems I am stuck in the process. </p>
<p>So I have collection of documents (and has as columns 'id' and 'text') and queries (and has as columns 'id' and 'text'). I have done the pre-processing steps and I have my docume... | 1 | 1,819 |
Featherlight Lightbox Target Always Visible | <p>I am using Featherlight.js attempting to get a lightbox effect. The lightbox should open upon the click of an image, yet the target content of the lightbox is a video not the image that is clicked. (Basically, you click a placeholder image and a youtube video pops up.) However, the youtube video is showing as visib... | 1 | 1,272 |
When and how should use multiple spiders in one Scrapy project | <p>I am using <code>Scrapy</code>, it is great! so fast to build a crawler. with the number of web sites are increasing, need to create new spiders, but these web sits are the same type,
all these spiders use same items, pipelines, parsing process</p>
<p>the contents of the project directory:</p>
<pre><code>test/... | 1 | 1,138 |
Based on user current location Region Monitoring, Delete Monitored Region in iOS7 | <p>I am working on such a project where apps do the following things :</p>
<ol>
<li>User select a radius (10 meter to 1000 meter) and go to next viewController by pressing "Go" button</li>
<li>Here apps Grab users current position and start "region monitoring" based on that current position with selected radius</li>
<... | 1 | 1,552 |
Search in TcxGrid | <p>I have this code to search through a DevExpress TcxGrid:</p>
<pre><code> function SearchIncxGrid(AView: TcxGridTableView; AText: string; AFromBeginning: boolean): boolean;
function Compare(const ARecIndex, AColIndex: integer): boolean;
begin
Result := AnsiContainsText(AView.DataController.DisplayTexts[AR... | 1 | 1,589 |
Bootstrap col-xs-12 in HTML is not taking full width | <p>I've created a simple button link in my page with <code>container-fluid</code> and <code>row</code> classes so that I can take utilize the whole available width of the page for the link button.</p>
<p>However, my code doesn't result in the button taking full width of the page. Attached is the screenshot of the said... | 1 | 1,338 |
The ViewData item with the key "KEY" is a "System.Int32" but must be of type 'IEnumerable <SelectListItem> " | <p>The ViewData item with the key "roleID" is a "System.Int32" but must be of type 'IEnumerable ".</p>
<p>I cant fix it
<strong>Please i need your help!! This is my code:</strong> </p>
<p>admin Model:</p>
<pre><code> [Key]
public int adminID { get; set; }
[DisplayName("Role")]
public int roleID { get... | 1 | 2,287 |
Multiple Chart.js Charts in Partial Views Overwriting Each Other | <p>Using Asp.Net MVC, I am trying to create a web page that displays multiple bar charts on a single page using the <a href="http://www.chartjs.org/docs/#bar-chart" rel="nofollow noreferrer">chart.js</a> library. Each chart has different data and is created in its own partial view. Instead of creating multiple differen... | 1 | 1,310 |
Django admin interface multi upload images and relate them to a photoalbum | <p>currently I'm trying to get multi upload in my admin interface working.
I'm using the code Luril Garmash provided in his blog:
<a href="http://garmoncheg.blogspot.de/2011/07/django-creating-multi-upload-form.html" rel="nofollow">http://garmoncheg.blogspot.de/2011/07/django-creating-multi-upload-form.html</a>
He's u... | 1 | 1,645 |
How can you make a sequence of optional items which must be in order in an XML schema? | <p>What I want to do is create a sequence element in an XML schema such that the contents must be in order, but may not all be present. For example, the schema would be something like this:</p>
<pre><code><xs:element name="rods" maxOccurs="1" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs... | 1 | 1,238 |
Nested Fragment java.lang.IllegalArgumentException: No view found | <p>I am using <code>nested Fragment</code> and this is my my fragments layout:</p>
<pre><code>|-------------------|
| Parent fragment |
| |
| A B C |
| |
| |
|-------------------|
</code></pre>
<p>A, B & C are my <code>child fragment</code> (exte... | 1 | 12,759 |
How to package, compress and deploy binaries as zip/tar.gz from a github repo with maven/travis to bintray.com generic repo | <p>Since Github disabled the downloads, we need to use a new service (like Bintray.com) for publishing our binaries. For our usecase I need to build a package (using appassembler-maven-plugin), then zip and tar.gz this build and deploy it to bintray.</p>
<p>It would be nice if a nightly builds will be shipped by travi... | 1 | 2,704 |
Implementing React table expanded rows | <p>It's my first time to use react-table librabry. I am struggling for the previous couple of days how to implement the expansion functionality using useExpanded hook</p>
<p>Docs and all the examples available are not clear about that so, here is my code and hope if somone can give me a hand in that</p>
<pre><code>cons... | 1 | 10,399 |
Enabling write-combining IO access in userspace | <p>I have a PCIe device with a userspace driver. I'm writing commands to the device through a BAR, the commands are latency sensitive and amount of data is small (~64-bytes) so I don't want to use DMA.</p>
<p>If I remap the physical address of the BAR in the kernel using <code>ioremap_wc</code> and then write 64-byte... | 1 | 1,203 |
JAXB or JAX-RS is wrapping numbers in my JSON responses with quotes, turning them into strings. Why this is the default behavior, and how to fix it? | <p>I am currently working on a RESTful API. I have an Employee class and an EmployeeResource class. I also have a custom DateAdapter, which changes my Date properties to Long timestamps. However, my JSON responses are showing the timestamps as strings (wrapped in double quotes) rather than numbers (without double quote... | 1 | 1,383 |
mysql to sqoop - Connection Refused : java.net.ConnectException | <p>I am trying to import data from mysql database on my localhost to HDFS using sqoop and whenever I try to run the code it is giving me connection refused exception.</p>
<p>sqoop import --connect jdbc:mysql://localhost/sqoop --username root --password 123@ajith --table mysql_sqoop --m 1</p>
<p>But it is showing the ... | 1 | 2,845 |
how to find out carrier's name in javascript or php | <p>I need to create a unique id for every mobile device that access my webpage. I already got the user's screen resolution, browser, OS and location, but I also want to know the carrier's name to make it more accurate.</p>
<p>So far I have:</p>
<pre><code><script type="text/javascript" language="Javascript" src="h... | 1 | 1,595 |
Play Framework 1.2.5 : OutOfMemoryError occured : Java heap space in play framework | <p>I gett <code>OutOfMemoryError</code> while querying MongoDb with the 400k records.
I have a User collection with around 400k records. When I try to retrieve all the users (to dump it in elastic search), I get the <code>OutOfMemoryError</code> error.</p>
<p>I have gone through <a href="https://stackoverflow.com/que... | 1 | 1,313 |
error C2664: 'errno_t strcpy_s(char *,rsize_t,const char *)' : cannot convert parameter 2 from 'char [512]' to 'rsize_t' | <p>Code:</p>
<pre><code> #define WIN32_LEAN_AND_MEAN
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <iostream>
#include <string>
// link with Ws2_32.lib
#pragma comment(lib, "Ws2_32.lib")
#define DEFAULT_PORT "27015"
#define DEFAULT_BUFFER_LENGTH 512
class Client {
public:
Clie... | 1 | 5,687 |
iOS Simulator not sending http requests to localhost mac running tomcat webservice | <blockquote>
<p>Important information, I am running all this under a TestCase.</p>
</blockquote>
<p>My URL is <code>http://my-MacBook-Pro.local:8080/myapi/v2/Driver/getDriver?domain=123&driver=125&key=9808098</code></p>
<p>If I paste this URL on <code>Safari</code> running on the same <code>iPhone Simulator... | 1 | 1,163 |
'Specified cast is not valid' error in ASP.net MVC application. Works locally, and for a time after publishing, but then throws the error | <p>My MVC application has worked fine for over a year, but it has now started causing the error below when run online. It works fine locally in debug though.</p>
<p>I made some changes on a Thursday, and it suddenly started causing the error the following Monday (changes were minor, HTML table layout changes). The err... | 1 | 2,637 |
asp.NET Core timed BackgroundService cannot be stopped in Controller with StopAsync() | <p>I have implemented a REST API Server with asp.NET Core. I need a background task which does some administrative stuff.</p>
<p>I tried the several suggestions in the web to create a timed background task and implemented it as fpllowing:
BackgroundService.cs</p>
<pre><code>public abstract class BackgroundService : I... | 1 | 1,384 |
Proper way to log things when using Pytorch Lightning DDP | <p>I was wondering what is the proper way of logging metrics when using DDP. I noticed that if I want to print something inside <code>validation_epoch_end</code> it will be printed twice when using 2 GPUs. I was expecting <code>validation_epoch_end</code> to be called only on rank 0 and to receive the outputs from all ... | 1 | 1,664 |
How to avoid MATLAB crash when opening too many figures? | <p>Sometimes I start a MATLAB script and realize too late that it is going to output way too many figures. Eventually I get an </p>
<blockquote>
<p>Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space</p>
</blockquote>
<p>which can easily be reproduced on my machine using</p>
<pre><co... | 1 | 1,216 |
When I use '/js/app.js' on my Laravel view my Bootstrap doesn't load | <p>I'm using this Laravel View to show a Vue Component, but when I use this on my view, then the Bootstrap doesn't work. How can I solve this problem.</p>
<pre><code><script src="{{ asset('/js/app.js') }}"></script>
</code></pre>
<p>This is my view.</p>
<p><strong>View</strong></p>
<pre><code>@extends(... | 1 | 8,728 |
How to get FQDN of a Target User's (Different) Domain? | <p>How can I get the Fully Qualified Domain Name (FQDN) for a user on a different, trusted domain?</p>
<p>Normally, I would ask said user to take any one of the approaches outlined <a href="http://help.migraven.com/en/find-fqdn/" rel="nofollow noreferrer">here</a> (e.g. <code>whoami /fqdn</code> or <code>echo %userDNS... | 1 | 1,082 |
Not Bound To TTS Engine | <p>I'm trying to make speaking dictionary.</p>
<p>LogCat shows <em>"Successfully bound to com.android.tts"</em> but when the <kbd>Speak</kbd> button clicked, it shows <em>"failed speak : not bound to tts engine"</em>.</p>
<p>But on AVD it runs smoothly, why?</p>
<p><strong>This Is my goTranslator class:</strong></p>... | 1 | 2,875 |
MultipartResolver and AbstractAnnotationConfigDispatcherServletInitializer | <p>I'm having trouble using <code>CommonsMultipartResolver</code> bean in conjunction with an initializer that extends <code>AbstractAnnotationConfigDispatcherServletInitializer</code>.</p>
<p>I have successfully used CommonsMultipartResolver in a previous project, but the initializer implements <code>WebApplicationIn... | 1 | 2,020 |
OnItemClickEvent not fired in GridView in android | <p>i m developing an application in which gridview contain list of button...</p>
<p>when i place images instead of button in gridview then onItemClickEvent get fired..but if i place button in gridView then click event not getting callled...i dont know what is the problem...even i m not getting exception..</p>
<p>here... | 1 | 1,272 |
Getting cannot resolve symbol error for snich sdk,sinch-android-rtc-VIDEO-SNAPSHOT is exist in libs folder | <p>I am getting cannot resolve symbol audio controller and all other components of snich but i already added snich library. how I resolve this problem.</p>
<p>this is my code.</p>
<pre><code>import com.sinch.android.rtc.AudioController;
import com.sinch.android.rtc.ClientRegistration;
import com.sinch.android.rtc.Sin... | 1 | 2,774 |
sequelize.js migration execution sequence | <p>I have a several queries I want to do in the same migration. They are related so they have to be executed in the particular order. This is my migration's up method:</p>
<pre><code>up: (queryInterface, Sequelize) =>
queryInterface.sequelize.transaction(transaction =>
Promise.all([
queryInterface.renameCo... | 1 | 1,297 |
Logic App initialize array from other variables | <p>What's the correct syntax to initialize an array variable with elements from other variables? I tried:</p>
<pre><code>"Initialize_variable_AllEventCounts": {
"inputs": {
"variables": [
{
"name": "AllEventCounts",
... | 1 | 1,158 |
Hibernate/Oracle: How to make sequence execute within insert statement instead of two queries | <p>I come from a jdbc background and I decided to teach myself to use hibernate. So I made a table with a sequence:</p>
<pre><code>CREATE TABLE TST_PERSON(
ID NUMBER,
NAME VARCHAR(30),
SURNAME VARCHAR(30)
);
CREATE SEQUENCE TST_PERSON_SEQ MINVALUE 1 MAXVALUE 999999999999999999999999999
INCREMENT BY 1 START WITH 1000... | 1 | 1,065 |
Spring Tool Suite - org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct | <p>When launching Spring Tool Suite in Ubuntu 16.10 it fails loading the application with error log as below.</p>
<p>I could find something related to this bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=493761" rel="nofollow">here</a> but even after adding </p>
<pre><code>--add-modules=java.se.ee
-Dosgi.r... | 1 | 2,599 |
How to convert keras float predictions to int? | <p>I'm getting the error </p>
<blockquote>
<p>File "/anaconda/envs/tf3/lib/python3.6/site-packages/keras/engine/training.py", line 830, in compile
sample_weight, mask)<br>
File "/anaconda/envs/tf3/lib/python3.6/site-packages/keras/engine/training.py", line 445, in weighted
score_array *= weights<br>
... | 1 | 1,032 |
Undefined Index in Checkbox | <pre><code><form method="POST" action="<?php $_SERVER['PHP_SELF']; ?>">
<table border="1" cellpadding="4">
<tr>
<th>Id</th>
<th>Name</th>
</tr>
<?php
include('con... | 1 | 1,112 |
Rendering Placeholder Items on React Components While Loading from Server | <p>I am working on a MERN application where people can add user created content. I have incorporated a basic loading functionality to give the user feedback when fetching data from the server. However I am hoping for some improvements for better performance and reducing loading times.</p>
<p>My current approach:</p>
... | 1 | 1,405 |
Android Program crahses on start | <p>I have been following <a href="https://www3.ntu.edu.sg/home/ehchua/programming/android/Android_3D.html" rel="nofollow">this</a> series on Open GL for android, but whenever I run the first program it crashes on start. I might have missed something in their code, but I triple checked. does it have something to do with... | 1 | 1,843 |
discord.js: How do I replace reactions with buttons in my ticket system? | <p>I am developing my ticketing system in the last time. I saw an update of 'Ticketsbot' and turned curious "how is that possible???, i have never seen that!"
<a href="https://i.stack.imgur.com/gSUu7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gSUu7.png" alt="this" /></a>
So, can you pl... | 1 | 1,044 |
woocommerce add placeholder text to edit account form | <p>I am customizing my storefront child theme and eventually managed to target all woocommerce forms to show placeholder text only EXCEPT for the fields on form-edit-account that will not change no matter what I have tried (a LOT). I thought of copying that template to my child theme with changes but not sure of the co... | 1 | 1,235 |
Why System.out.println can't print out a string value (in my particular case)? | <p>My program should ask users to enter some value and evetually those value should be printed out depending on the menu option choosen (in my case it's <em>3</em>). I have used <code>System.out.println("Your name: " + name);</code> to print out the name inserted by user, but unfortunately it can't print out the name. ... | 1 | 1,136 |
How to send requests and receive responses to/from an Apache CXF-based service? | <p>I have several servlets, which </p>
<ol>
<li>take JSON-encoded requests as inputs, </li>
<li>process them and</li>
<li>return responses to the client as JSON-encoded objects.</li>
</ol>
<p>Up to now I used Android as client (sample Android code see below).</p>
<p>Now I want to write a plain old Java program, whic... | 1 | 2,727 |
Vue Router passing props to dynamic routes, unclear documentation | <p>I have a <code>ProjectCard</code> component which, among other things, links to a specific <code>ProjectPage</code> component. The ProjectPage is going to have a bunch of different paragraphs, pictures and so on, not wholly relevant for my question.</p>
<p>How do I pass on props to a <code>ProjectPage</code>? The <a... | 1 | 1,024 |
Razor view with asp.net core not working | <p>I'm still trying to get my head around asp.net core so this may be a stupid question but I can't get a razor view to work with asp.net core mvc.</p>
<p>I'm getting a 500 error when I'm trying to return a view and not getting anything useful in the console logging.</p>
<p>My project.json:</p>
<pre><code>{
"versi... | 1 | 1,422 |
Material UI: best way to set elements side by side | <p>I'm currently using Material UI to style an ecommerce project. I'm trying to figure out how to make all of the elements (Typography, Buttons) display side by side in a row instead of vertically.</p>
<p>Is there a way to do this simply with material UI? Should I add CSS? I previously tried adding each element to a Gr... | 1 | 3,272 |
Spring Boot - websocket controller problems | <p>I'm trying to implement some websocket stuff in my app. I'm using Spring Boot and Groovy to achieve that. But I have some troubles with websocket messages that are sent but not handled correctly by Spring controller. I tried to search for the same issue but didn't find any useful information.</p>
<p>Currently, to s... | 1 | 2,471 |
How can I style my highcharts solid gauge to have a background behind the percentage? | <p>I need to style it to look like this:</p>
<p><a href="https://i.stack.imgur.com/jsB8R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jsB8R.png" alt="enter image description here"></a></p>
<p>This is the closest I've gotten. The trouble I'm having is achieving that gray background. I tried to do... | 1 | 1,110 |
Spring boot logging to file does not work | <p>I build Spring boot project as WAR.</p>
<p>Run it on Tomcat and can't see log file in expected directory.</p>
<p>It is my POM files:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi... | 1 | 3,182 |
signalr core (2.1) JWT authentication hub/negotiate 401 Unauthorized | <p>so I have a .net core (2.1) API that uses JWT tokens for authentication. I can login and make authenticated calls successfully.</p>
<p>I am using React (16.6.3) for the client, which getting a JWT code and making authenticated calls to the API works.</p>
<p>I am trying to add signalr hubs to the site. If I do no... | 1 | 2,131 |
How to improve accuracy of Tensorflow camera demo on iOS for retrained graph | <p>I have an Android app that was modeled after the Tensorflow Android demo for classifying images,</p>
<p><a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android" rel="noreferrer">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android</a></p>
<p>The origina... | 1 | 3,691 |
Why is my leading wildcard search failing in Solr? | <p>I have a text field defined that I use copyField to fill with various source fields, and the goal is for this one field to be what I use to search my Solr index. </p>
<p>This text field is defined to use this custom fieldType "text_en_splitting_reversed." I created this field type by copying the example "text_en_sp... | 1 | 1,436 |
Always getting NEED_PERMISSION Exception even after giving permission | <p>I am using Google Drive cross client identity so that when user gives Drive access permission to my Android App, my web server also gains access to user Google Drive.</p>
<p>For this firstly I have to get an Authorization code. For this I am using following code:</p>
<pre><code>private String getAccessToken(Contex... | 1 | 2,615 |
exception information : Message: An item with the same key has already been added | <p>I got an An item with the same key error when i load the page.Is there any solution to solve this ? Here's the error<br><br>
General Information </p>
<pre><code> - - - - - - - - - - - - - - - - - - - - - - -
MachineName: WIN-SKEC08HPAEB FullName: InnoArk.APDMS.Common,
Version=1.0.0.0, Culture=neutral, PublicKe... | 1 | 1,135 |
ArrayList in Java that lists square numbers - Homework | <p>I think I have most of the code figured out, there is just one part that is giving me grief. When I use printList(list) it prints out 1, 2, 3,... up to 9 when it is supposed to be printing the squares of these numbers. If I print out the createSquaresList(10) it is correctly printed. Any help is appreciated :-).</p>... | 1 | 1,654 |
Heroku returns Process exited with status 143 | <p>I'm about to finish an <strong>Ionic2</strong> application that uses <strong>socket.io</strong>.
I use to run (locally) my app with <code>ionic serve</code> (client side) in one terminal and with <code>node index.js</code> (server side) on another terminal. (index.js file is inside my ionic2 project folder).
Now I w... | 1 | 1,219 |
Write server response to browser : Java | <p>I have a simple HTML server program that listens on port 8000 for a request. I want to be able to request an HTML file from the server program and send the requested HTML back to the browser. Currently the server receives the request and parses the requested filename from the request, and will even print the content... | 1 | 1,222 |
Table inside nested Table | <p>I am having a nested table with a while loop, I want to add one more nested table in the same row: </p>
<p><a href="https://i.stack.imgur.com/xSVoO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xSVoO.png" alt="nested table"></a></p>
<p>Now I want to add one more nested table as each cd contain... | 1 | 1,606 |
PHP and Mysql query, use PHP to convert row to columns | <p>I think this is beyond me, I want to convert my MYSQL query so that it displays rows and columns exactly like this:
<img src="https://i.stack.imgur.com/oDzF9.png" alt="enter image description here"></p>
<p>This is what I have created with a MYSQL query:
<img src="https://i.stack.imgur.com/mtp6n.png" alt="enter imag... | 1 | 4,186 |
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded | <p>Help me! Enter "mina deploy" get this beauty:</p>
<p>My "/home/deploy/inscope/shared/config/database.yml" looks:</p>
<pre><code>production:
adapter: postgresql
encoding: unicode
database: ***
username: ***
password: ***
host: localhost
rake aborted!
Gem::LoadError: Specified 'postgresql' for databa... | 1 | 4,016 |
Nested v-for loops in a vue-components | <p>I'm trying to use a vue.js component to display the following data (in a vue instance) as a table.<br>
But I not sure how to access the data. I tried nested v-for loops.</p>
<h2><strong>OUTPUT TABLE</strong></h2>
<p><strong>Equp Name | Service Time</strong><br>
Mill Saw | 2018-02-01 10:00:00<br>
Mill Saw |... | 1 | 1,252 |
Setting PopupWindow to have a maximum height | <p>I inflate a ListView inside a PopupWindow and I want the popup to behave like this:</p>
<ul>
<li>wrap the listview when its height is < x</li>
<li>set the popup's height = x when the listiew's height > x (the listview being scrollable)</li>
</ul>
<p>the popup is showed by a TextWatcher attached to an EditText, ... | 1 | 1,261 |
how to fix UNMET DEPENDENCY errors on expressJS | <p>I'm getting started with express JS and NodeJs
using the
<a href="http://expressjs.com/guide.html" rel="nofollow">ExpressJSGuide</a></p>
<p>I'm stuck at the </p>
<blockquote>
<p>npm ls</p>
</blockquote>
<p>part, it throws the following errors</p>
<p>└─┬ express@3.5.0
├── UNMET DEPENDENCY buffer-crc32 0.2.1</... | 1 | 2,303 |
XGboost model consistently obtaining 100% accuracy? | <p>I'm working with Airbnb's data, available <a href="https://www.kaggle.com/c/airbnb-recruiting-new-user-bookings" rel="nofollow noreferrer">here</a> on Kaggle , and predicting the countries users will book their first trips to with an XGBoost model and almost 600 features in R. Running the algorithm through 50 rounds... | 1 | 1,040 |
Spring Integration - file adapter | <p>I'm newbie to Spring, I am writing a file adapter which reads file from the input folder and move the files to output folder. I played with the following examples but there are some points that are not clear to me. </p>
<pre><code><beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://ww... | 1 | 1,195 |
Google analytics api - get page views by URL | <p>I was able to run de "hello" app from google analytics api:</p>
<pre><code>function getFirstProfileId($analytics) {
// Get the user's first view (profile) ID.
// Get the list of accounts for the authorized user.
$accounts = $analytics->management_accounts->listManagementAccounts();
if (count... | 1 | 2,030 |
Blackjack game using dice | <p>I'm doing a project in java in which I am using dice to simulate a blackjack game, however, I have hit an area where I have written the wrong code. I'm trying to get the dealer to simulate actions if the players score is higher than his. Also my <code>checkWinner()</code> method seems to be coming active at the wron... | 1 | 1,167 |
Warnings while building Scala/Spark project with SBT | <p>I'm trying to build a Scala/Spark project in IntelliJ Idea with the following <code>build.sbt</code>:</p>
<pre><code>name := "try"
version := "1.0"
scalaVersion := "2.11.8"
val sparkVersion = "2.2.0"
resolvers ++= Seq(
"apache-snapshots" at "http://repository.apache.org/snapshots/"
)
libraryDependencies ++= ... | 1 | 1,100 |
Uncaught ReferenceError: jqXHR is not defined | <p>I am trying to submit login form(which is a popup div) using jquery. If form validation fails then I want display error message on popup div only and stop closing that form(popup) as page gets reload when ajax call enters error function.
Here is my js code</p>
<pre><code>$("#loginForm").submit(function(e) {
va... | 1 | 1,111 |
How can I add my github repo to local gerrit server? | <p>I'd like to use gerrit for the code review before merging into my Github repo.</p>
<p>First, I installed gerrit server to the local machine following <a href="http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/dev-readme.html" rel="nofollow">this</a>. Followings are what I entered when initializing ... | 1 | 1,281 |
Post request payload in python | <p>I'm trying to write a python script to get the tracking info from this page: <a href="https://www.purolator.com/en/app-tracker.page" rel="nofollow noreferrer">https://www.purolator.com/en/app-tracker.page</a>.
Using F12 in Chrome, I got the header and the request payload, no form data just request payload. The trac... | 1 | 1,265 |
Spring security cannot resolve reference to bean | <p>I'm getting the error below while trying to deploy my jsf project with spring security integrated. I just started using Spring security today since the java ee security with the security realms were too much of an hassle. I watched <a href="https://www.youtube.com/watch?v=DCd2O0At_fA" rel="nofollow">this tutorial</a... | 1 | 4,569 |
Frustrated by Django User matching query does not exist message | <p>I'm trying to implement a user registration page in Django. Seems like a simple task, but I'm getting an error I just don't understand. Here's my view:</p>
<pre><code>def registration_page(request):
if request.method == 'POST':
form = RegistrationForm(request.POST)
if form.is_valid():
user = User.o... | 1 | 1,811 |
How to make DataGrid scrollable? | <p>Good day!
I have datagrid ,buttons Add\Remove and i want to make vertical scroll rows, when the number of lines increases.</p>
<p>I try this on DataGrid:</p>
<pre><code>VerticalScrollBarVisibility="Visible"
</code></pre>
<p>But scroll is inactive.
Full code:</p>
<pre><code><Grid Grid.Row="2" Grid.Column="0" ... | 1 | 1,651 |
How can I create an audio progress bar in React? | <p>How can I create Audio progress bar in React JS ?
I have an audio list and they are playing successfully but they are not showing the progress of the audio.</p>
<p>I have the duration of audios too.</p>
<p>Code of my songs array - </p>
<pre><code>const songs = [
{
song1: "http://streaming.tdiradio.c... | 1 | 2,057 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.