title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
JAX-WS response with holder<List<T>> with an object but with null attributes | <p>i have a big problem calling a webService. When i did the import of the classes of the wsdl, i give this @WebService as a interface:</p>
<pre><code>public void consultarProgramaCronicos(
@WebParam(name = "consultarProgramaCronicos", targetNamespace = "") ConsultarProgramaCronicosVO consultarProgramaCronicos... | 2 | 2,025 |
crash at exit when creating a QML application with Visual Studio and Qt 5.3 | <p>I've been playing with QML application and extensions through qmlRegisterType, and I stumbled into a strange thing : I have 2 projects. The first one produces a dll with a custom QML type, and the second one is a really simple application which looks like this :</p>
<p>main.cpp :</p>
<pre><code>int main(int argc, ... | 2 | 1,222 |
MySQl - AVG ( AVG IF) & group by | <p>I use MySQL. I have data in the following format - </p>
<pre><code>DATE , PAGE , PAGE_LOAD_DURATION , VISIT_TYPE
01-01-15 , A , 6 , AM
01-01-15 , B , 4 , PM
01-01-15 , C , 5 , AM
01-01-15 , D , 4 , AM
02-01-15 , B , ... | 2 | 1,360 |
CameraX View in React Native - Unable to configure camera | <p>I am creating cameraX view for react native through bridging.(Normal Views are rendering in RN. Bridging flow is fine.) Using <code>PreviewView</code> for display camera feed for CameraX’s preview. I have successfully implemented the preview but not sure why preview is not rendering on the UI. <strong>It just a blan... | 2 | 2,775 |
Unable to compile typescript on heroku | <p>I am trying to deploy a typescript nodejs app using express to heroku, the code is pushed up fine, heroku installs the dependencies and then runs <code>tsc</code> but crashes with <code>src/controller/adminTypes.ts:3:34 - error TS2307: Cannot find module '../repo/adminTypes'.</code>.</p>
<p>I checked the line where... | 2 | 1,433 |
PhpStorm via phpunit.phar - Warning: require_once(PHPUnit/Runner/Version.php) | <ol>
<li>I have downloaded phpunit.phar from official website <a href="https://phar.phpunit.de/phpunit.phar" rel="nofollow noreferrer">https://phar.phpunit.de/phpunit.phar</a>
v4.6</li>
</ol>
<p>PhpStorm v8.0.3 (PS-139.1348, February 12, 2015)</p>
<ol start="2">
<li>Configured phpunit settings in PhpStorm. Set "Path ... | 2 | 1,032 |
can't get address of the dll function with GetProcAddress | <p>I created a dll with VS C++ (of course as a dll project) with the following code of the header file:</p>
<pre><code>#pragma once
#include <iostream>
#include "..\..\profiles/ProfileInterface.h"
using namespace std;
extern "C" __declspec(dllexport) class CExportCoordinator: public CProfile... | 2 | 1,120 |
Prediction with tensorflow-gpu is slower than tensorflow-cpu | <p>Below is my code for prediction:</p>
<pre><code>start=time.time()
with tf.Session(graph=graph) as sess:
predict('/home/4_bikes/test_images/bikerider4.jpg',sess)
predict('/home/4_bikes/test_images/bikerider4.jpg',sess)
predict('/home/4_bikes/test_images/bikerider4.jpg',sess)
predict('/home/4_bikes/te... | 2 | 1,286 |
Why does Valgrind complain about this code? | <p>I am trying to implement a linked list which stores non-negative integers. My implementation looks like this:</p>
<p>I was curious about memory leaks so I tried this tool named Valgrind with the command "valgrind --leak-check=yes".</p>
<pre><code>==2540== error calling PR_SET_PTRACER, vgdb might block
==2540== Inv... | 2 | 1,341 |
How to edit user's profile view with django | <p>I am making a form in which the user can edit their profile, so currentley I have 2 forms, one that edits the User model(first_name, Username and Email) and other one that edits the Profile model(biography). The problem is that everytime I edit, just the User model is the one that gets saved while the Profile model ... | 2 | 1,179 |
How to fix "HTTP Status 404" Spring MVC | <p>I have a problem with my Spring web application: it shows Apache Tomcat/4.0.6 - HTTP Status 404 - /spring-mvc-example/ (The requested resource (/spring-mvc-example/) is not available.) I'm going crazy with this error and I don't know what to do.
I'm using STS.
Thank you for your help!
This is how the folders are org... | 2 | 3,636 |
Problems setting up conditional search space in hyperopt | <p>I'll fully admit that I may be setting up the conditional space wrong here but for some reason, I just can't get this to function at all. I am attempting to use hyperopt to tune a logistic regression model and depending on the solver there are some other parameters that need to be explored. If you choose the libline... | 2 | 2,955 |
Entity Framework 6 and Moq4: Is it possible to have a mocked DbSet retain added data for the duration of its scope? | <p>Background:
- Using EntityFramework 6
- Using Moq v4.2.1402.2112
- Using DbFirst methodology</p>
<p>I have been following the EF6 Moq walkthrough (which can be found <a href="http://msdn.microsoft.com/en-gb/data/dn314429.aspx" rel="nofollow">here</a>) however; I have been wondering if it is possible to have a mo... | 2 | 1,060 |
How to successfully run "Java Quickstart" sample for Google Drive API? | <p>I followed Google's <a href="https://developers.google.com/drive/v3/web/quickstart/java" rel="nofollow noreferrer">Java Quickstart</a> guide to try to develop a search function for Google Drive files. After I executed <code>gradle -q run</code> or <code>gradle run</code> command, it open a web page and shows "Error:... | 2 | 2,516 |
How to use collections in a fieldset factory in ZF2 | <p>I am developing a project with ZF2 and Doctrine. I am attempting to use Doctrine Hydrator in the form creation as shown in <a href="https://github.com/doctrine/DoctrineModule/blob/master/docs/hydrator.md#a-complete-example-using-zendform" rel="nofollow noreferrer">this tutorial</a>. In this method, an ObjectManager... | 2 | 2,646 |
Validate password with confirm password during sign up in php | <p>We are using below code for "sign up". we have only <strong>password</strong> field , we want to add <strong>confirm password</strong> field. </p>
<p><strong>signup.php</strong></p>
<pre><code>if(isset($_POST['btn-signup']))
{
$uname = trim($_POST['txtuname']);
$email = trim($_POST['txtemail']);
$upass... | 2 | 1,342 |
Xamarin - Error when trying to read JSon | <p>I want my Android app to be able to get information from a site using Json and I'm using the Rest API to send and recieve that information, however things don't work as intended.
It gives me a <code>java.lang.reflect.InvocationTargetException</code> and the debug output is as follows: </p>
<pre><code>Forwarding deb... | 2 | 6,109 |
R nls Different Errors occur | <p>I'm new in R programming and I don't get a solution to an error which occurs when I use the nls Function.
I try to fit the data from an ecdf (values are extracted and saved in y) to this function model with four parameters:</p>
<pre><code>fitsim <- nls(y ~ exp(-(((a-Abfluss)/(c*(Abfluss-b)))^d)),
s... | 2 | 1,450 |
ASP.net WebApi - Custom Message for malformed post data | <p>I have an MVC 4 WebAPI application. What i want to do is filter out any <code>ModelState</code> errors that happen because of malformed data sent during the put/post.</p>
<p>I have an <code>ActionFilterAttribute</code> that checks if the <code>ModelState</code> is valid. I want to send the state's <code>ErrorMess... | 2 | 1,609 |
Converting JSON to XML XmlMapper- Jackson 2.10 | <p>I have pojos with @JsonProperties. I use these to read JSON and parse to POJO. I am now having to post these pojos formatted as XML. </p>
<p>The Required XML format to successfully post looks like this (note the namespace type, xsi type formatting):</p>
<pre><code><network_objects>
<network_object xml... | 2 | 3,158 |
Hibernate 4, cannot persist an entity with composite primary key | <p>I want to persist an entity that contains a composite primary key.
the connection to the database and create the table it works but inserting a new line failed.</p>
<p>Student.java:</p>
<pre><code>@Entity
@Table(name = "student")
public class Student extends BaseEntity implements Serializable{
/**
*
... | 2 | 7,165 |
Sorting Arrays - Java in eclipse | <p>Here is the Question:</p>
<p>The international Olympics Committee has asked you to write a program to process the data and determine the medal winners for the pairs figure skating. You will be given the following file:
Pairs.txt</p>
<p>Which contains the data for each pair of skaters. The data consists of each ska... | 2 | 3,017 |
How to Invoke Button click Event of .ascx after checking timeout value using Javascript on its .aspx File | <ul>
<li>I have 2 Files. One is aspx and its ascx.</li>
<li>aspx contains Javascript which calculates count down time for exam.</li>
<li>while timer value reaches to 00:00:00 I want to invoke an event "Submit Exam" which is in ascx file.</li>
</ul>
<blockquote>
<p>Final Paper.aspx.cs</p>
</blockquote>
<pre><code>pu... | 2 | 2,856 |
Error in goto. (C#) | <p>I'm making a fake shell program, and I want to be able to trigger an error screen by inputting a certain line of code.</p>
<p>Here's the affected bit of my code:</p>
<pre><code> Console.Title = "Command Prompt";
OperatingSystem os = Environment.OSVersion;
Version ver ... | 2 | 1,599 |
AXIS2 Java Client for a SOAP wsdl with basic authentication | <p>I am a newbie to web services and I am trying to create java client using the auto generated stub by Eclipse Web Service Client using Axis2. Following is my </p>
<pre><code>client code. public static void main(String[] args) {
new wsClient2().runService();
}
public void runService(){
try {
Co... | 2 | 1,728 |
Google Recaptcha v2 With email form, gives http 500 Error | <p>Using an html form for a "contact us". This passes name, email, & message to a .php script and it works well. Add the Google recaptua v2 to this form gives a http 500 Error. This post and the code have been edited to reflect the KaplanKomputing tutorial suggested by Chris White.</p>
<p>You can visit the working... | 2 | 1,642 |
Set boundary limit for MovieClip (AS3) | <p>I have a MovieClip that can move up, down, left and right. If the MovieClip hits a wall, the MC bounces, and should not move past the wall--but if you continue to press either your up, down, left or right key, and don't let go--the MovieClip will go past the wall. I'm trying to figure out a way, to stop that from ha... | 2 | 1,322 |
MVC - how to use hyphen in model properties | <p>I am getting json response from some server in format like: </p>
<pre><code>[
{
"email":"john.doe@sendgrid.com",
"sg_event_id":"VzcPxPv7SdWvUugt-xKymw",
"sg_message_id":"142d9f3f351.7618.254f56.filter-147.22649.52A663508.0",
"timestamp":"1386636112",
"smtp-id":"<142d... | 2 | 1,284 |
uncaught type error:$ is not a function | <p>I have the html page below and when you select an item on the dropdown it runs a function.
Each time I step through the function and I get to the line</p>
<pre><code> $("#ddlRoute").html(procemessage).show();
</code></pre>
<p>I get this error : uncaught typeerror:$ is not a function</p>
<p>Do you know what thi... | 2 | 1,502 |
ASP MVC ControllerFactory failing on AccountController | <p>I'm using Unity and even though I shouldn't have to register my controllers (as far as I'm aware), I get the following error on my AccountController, which is just the one taken from the default MVC template when making a new project.</p>
<pre><code>The IControllerFactory 'WebApplication1.Models.ControllerFactory' ... | 2 | 1,805 |
parallel 2D convolution using openMP | <p>I'm attempting to implement 2D convolution in C. I have 2 implementations: first one is sequential and the second one is a parallel implementation using openMP.
The problem is that the runtime for parallel code is always more than the runtime for the sequential code. The original algorithm was implemented in C++ usi... | 2 | 1,638 |
How to draw dotted polylines using Google Maps - Android | <p>I have noticed that iOS has a built in function to draw dotted polylines using Google Maps, but I am unable to find the equivalent for Android. The idea is that iOS can set two colors, one being the color of the line and the other being the space between (transparent) and this will create dotted lines. iOS implement... | 2 | 1,169 |
Put request with file and json body | <p>I create a POST Rest API with @RequestParam and it works with : </p>
<pre><code>@PostMapping("/shop-menu")
@PreAuthorize("@accessChecker.hasAccessToWebservice(#request)")
public ResponseEntity<EntiteShopMenuDTO> addShopMenu(HttpServletRequest request,
@Re... | 2 | 1,196 |
Why the memory is not released after writing files on disk in C# | <p>I have a complicated algorithm which receives data from a socket connections, transformate the data and stores it as soon as possible on the HD..The data, because of that fact I don't want the processing to slow down is stored by using a different thread.
The data storage algorithm resembles this structure. It essen... | 2 | 5,425 |
Scala code generates type mismatch (ScalaPB) | <ol>
<li>I have a protobuf file ...</li>
<li>which I transform to a Scala file using ScalaPB. This way I can then ...</li>
<li>use it inside my Juypter notebook* for transformation. Sadly, when I ...</li>
<li>run the specific cell I get an type
mismatch error and I don't know why?</li>
</ol>
<p>As the protobuf file is... | 2 | 5,901 |
Using an interface with Firebase | <p>Currently I am implementing an interface called RowType for a handful of different classes let's say class A, B, and C. How would I iterate through Firebase to get each different object? </p>
<pre><code>.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void ... | 2 | 1,254 |
Android Studio can't build a fresh Project | <p>Iam completly new to Android Studio. I did a fresh installation, but i cant even build a fresh Project. Java RE and JDK are also installed.</p>
<p>FAILURE: Build failed with an exception.</p>
<ul>
<li>What went wrong:
Execution failed for task ':app:mergeDebugResources'.
<blockquote>
<p>Error: java.util.concurr... | 2 | 1,347 |
How to insert registration page data into mysql table after verification in php | <p>I have make a registration page using php bootsratp. after fillup the registration form if i press the submit button i get msg uploaded successfully...but table is blank...and no validation msg show....if any field is blank
below is my code</p>
<p><strong>form validation code:</strong></p>
<pre><code>function form... | 2 | 2,632 |
Highlighting rich text box with huge text efficiently in a windows form | <p>I have huge text files that I process line by line and add the results to a <code>StringBuilder</code> so I don't hold the main form with loading single lines of text to it. </p>
<p>Once processing is done I dump the result to a <code>richtext textbox</code>. I want to highlight some of the text based on keywords I... | 2 | 1,039 |
AWS CloudFormation Template format error: Unresolved resource dependencies <s3 bucket> in the Resources block of the template | <p>All that I am trying to do is follow this guide to get Atlassian services (Jira/JSM/Confluence) up and running on AWS <a href="https://aws-quickstart.github.io/quickstart-atlassian-jira/" rel="nofollow noreferrer">https://aws-quickstart.github.io/quickstart-atlassian-jira/</a></p>
<p>I have followed all the details ... | 2 | 2,004 |
convert context.Request.Params to C# properties in generic handler | <p>I am using jquery ajax with generic handle to submit my record to sql server 2012 database but my code "List PP" returning null value so that i can not insert data in database table.
I want to add JSON.stringify values in c# properties and insert it into database.
Here is my code sample</p>
<p><strong>Jquery ajax</... | 2 | 1,794 |
Script only works while alert box is in the script | <p>If I take the alert call out of the following script firebug says that results is undefined?`</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Inventory Management</title>
<meta http-e... | 2 | 1,515 |
Keras custom loss function vs. Lambda layer | <p>I have model that I am able to train using a custom loss function and it works fine. I would like to replace the customized loss function with the standard mean_squared_error by moving some calculations to a Lambda layer instead.</p>
<p>Some details:
The model ultimately needs to produce a single floating point num... | 2 | 1,495 |
Click event for attach files link is not being bound in Firefox | <p>So far uploading works in Chrome on Linux, OSX and windows, and IE on Windows, but fails in Firefox for all OS's.</p>
<p>The issue seems to be that no event is being bound to the attach file link which can be seen when using Allan Jardine's Visual Event plugin.</p>
<p>However in the online demo <a href="http://plu... | 2 | 1,212 |
Java - Print any detail of HTML element | <p>I am fairly new to Java, at least regarding interacting with web. Anyway, I am making an app that has to grab HTML out of a webpage, and parse it.</p>
<p>By parsing I mean finding out what the element has in the 'class="" ' attribute, or in any attribute available in the element. Also finding out what is inside the... | 2 | 1,739 |
How to reset data in UseEffect React Hooks before each rendering? | <p>Here's the situation.
I use <code>useEffect</code> to filter some data and it's working well.
Here are the code and <a href="https://codesandbox.io/s/brave-oskar-p2fy3" rel="nofollow noreferrer">codesandbox</a>.</p>
<pre><code>const data = [
{name: 'aml', age: 10},
{name: 'abcb', age: 12},
{name: 'asr', age: ... | 2 | 1,404 |
Dart migration tool errors on generated files | <p>I'm trying to use <code>dart migrate</code> to upgrade dart to null safety, but when I do, I get tons of errors in my generated files:</p>
<pre><code>benjaminfarquhar@Benjamins-MacBook-Pro vepo_front_end % dart migrate
Warning: `dart pub outdated --mode=null-safety` exited with exit code 69 a... | 2 | 8,151 |
Right way to read stream from Kafka topic using checkpointLocation offsets | <p>I'm trying to develop a small Spark app (using Scala) to read messages from Kafka (Confluent) and write them (insert) into Hive table. Everything works as expected, except for one important feature - managing offsets when the application is restarted (submited). It confuses me.</p>
<p><strong>Cut from my code</stron... | 2 | 1,428 |
mvn test returns 0 tests run | <p>Trying to run mvn from the IntelliJ terminal and it is not running the tests? Like it runs but returns the following </p>
<p>When I run mvn test from the project directory's command line I get the following.....</p>
<pre><code>[INFO] Running TestSuite
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time e... | 2 | 2,442 |
Docker (compose): connection refused without sudo | <p>All was fine until "something". After that "something", I could use <code>docker</code> and <code>docker-compose</code> with <code>sudo</code> but without it the <code>docker</code> would hang indefinitely and the <code>docker-compose</code> would return connection stack traces.</p>
<p>Doesn't wo... | 2 | 2,583 |
Swiper gallery failing to load with Bootstrap Tabs | <p>I'm trying to create a page with two galleries using Swiper javascript templates, and separated by tabs using Bootstrap. Without the tabs, the galleries load just fine, but with them, the gallery that lives in the inactive tab fails to load. My best guess is that the gallery's width is set by the size of the conta... | 2 | 10,155 |
Populate Spinner that maps strings to numbers from XML in Android | <p>In my application I need to have Spinner with set of values, for example:</p>
<ul>
<li>today</li>
<li>tomorrow</li>
<li>after_tomorrow</li>
</ul>
<p>User chooses one of it and applications send request to server. To send the request i need to encode user's choice as int value:</p>
<ul>
<li>Request.TODAY = 0;</li>... | 2 | 2,033 |
Characters not displaying properly with Struts2 file download | <p>I am using Struts2 file download for downloading a file from AS400 server.The file which i am downloading has CCSID 37(ebcdic) and when it is downloaded to PC it doesnot show anything just junk characters. When i display it on AS400 server its shows fine . Please suggest !
Help is appreciated!</p>
<p>jsp form :</p>... | 2 | 1,099 |
AttributeError: draw_artist can only be used after an initial draw which caches the render | <p>My requirement is to plot the data in polar graph. However I need to keep polar graph in particular angle to looks like "V" shape and data need to plotted in between the particular angle. </p>
<p>In python I don't find a solution to keep the polar graph in particular angle, Example : Graph should be display in betw... | 2 | 2,474 |
Dropdown menu in HTML/CSS doesn't actually "drop down" | <p>I'm trying to add a drop-down menu for one of the options in my nav menu for a simple html page. However, when I hover over the nav menu option, the menu doesn't actually drop down. It just replaces the nav menu option with the first option in the drop-down whenever I hover over it. I'm not exactly sure why it isn't... | 2 | 1,050 |
xsd schema not working against the xml file | <p>having a nightmare here with XSD and XML. Got 1 simple xml file (representing my table in database) and a XSD Schema, I was trying to validate them against each other, and every single time some errors come up. The best thing is different validators show totally different errors on the same files. This first time I'... | 2 | 4,470 |
Facebook API - How to get user's nationality (location)? | <p>I'm using facebook phonegap plugin for my mobile game project. My problem is I can't get user's location after call <code>facebookConnectPlugin</code> .</p>
<pre><code>facebookConnectPlugin.login(["email"], function(response) {
console.log(JSON.stringify(response.authResponse.userID));
sessionStorage.setIte... | 2 | 3,385 |
What is the output of loop task in argo? | <p>As per the <a href="https://github.com/argoproj/argo/blob/release-3.0/docs/variables.md#dag-templates" rel="nofollow noreferrer">Argo DAG template documentation</a>.</p>
<blockquote>
<p><code>tasks.<TASKNAME>.outputs.parameters</code>: When the previous task uses
'withItems' or 'withParams', this contains a JS... | 2 | 2,858 |
Not able to resize image using ImageMagick Node.js | <p>I am trying to resize an image using <a href="https://github.com/rsms/node-imagemagick" rel="nofollow">ImageMagick</a> and I've referred <a href="http://code4node.com/snippet/resize-an-image-using-imagemagick" rel="nofollow">this example</a></p>
<p>and I am getting this error:</p>
<pre><code>{ [Error: Command fail... | 2 | 1,560 |
TailWind CSS Dropdown on hover | <p>I have the following component:</p>
<pre><code><div class="p-5">
<div class="flex h-64 justify-center">
<div class="relative ">
<div class="flex flex-row cursor-pointer truncate p-2 px-4 rounded">
<div><... | 2 | 5,312 |
Can't get MAMP to load xdebug (phpinfo()) | <p>MAC OSX 10.7.5 -- MAMP 2.1.3 -- XDEBUG 2.2.3<br>
I used the <a href="http://xdebug.org/wizard.php" rel="nofollow noreferrer">xdebug wizzard</a> to download and install using the terminal. After following the steps
Rebooted MAMP but no xdebug in <code>phpinfo();</code><br>
I thought it was weird that the wizzard says... | 2 | 1,622 |
add field first_name and last_name in django-profile | <p>I need add the <code>first_name</code> and <code>last_name</code> fields associated with
that <code>User</code> model and display it in the profile <code>form</code>.</p>
<p><em><strong>fields:</em></strong></p>
<pre><code> >>> user = User.objects.get(pk=1)
>>> user.first_name
u'S... | 2 | 1,088 |
Powershell popup to list of usernames | <p>I wish to have a powershell script that provides a popup message to a specific list of users. I need to use a list of relevant users in a spreadsheet with their network username and not use Active Directory. I have the powershell script to display a suitable message with a Warning icon and found to format the popu... | 2 | 1,112 |
How to change text size to print on thermal printer | <p>I have a java applicato that use the thermal print to printer a text. I use this printer to print the order for the bar.
This is an example of the ticket:</p>
<pre><code> --> BAR
Coca Cola 1 x 1.5
Fanta 1 x 1.5
-------------------
TOTALE 3.00 euro
</code></pre>
<p>And the code to print this ticket wor... | 2 | 1,738 |
Using Html.DropDownListFor to list data from one table, but save it to another | <p>On the Create action, I can add information into editor fields and save them to Table1, however, for one of the fields I want a drop down list, populated from a column from Table2, which can then be selected and saved to Table1 in one of the fields, depending on selection. I have managed to display the information i... | 2 | 1,126 |
Scrapy + Tor + Mongodb | <p>I face a problem when using Scrapy + Mongodb with Tor. I get the following error when I try to have a mongodb pipeline in Scrapy.</p>
<pre><code>2012-11-05 13:41:14-0500 [scrapy] DEBUG: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
|S-cha... | 2 | 1,165 |
WiX Burn 3.7 and Postgresql Registry Search fail | <p>I'm trying to build a bundle which with postgresql as prerequisite.
I'm trying to detect postgresql by searching into registry as follows: </p>
<pre><code><Fragment>
<util:RegistrySearch Id ="PostgresqlPath_x64"
Root="HKLM"
Key="SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.1"
Result="exists... | 2 | 7,520 |
How do I animate a camera movement in a-frame, using JavaScript? | <p>I am working with A-Frame to build a virtual tour, running on a regular webpage, in the desktop. No VR navigation, just moving and clicking the mouse cursor around.</p>
<p>I will have several buttons above the a-scene. Each button will point the camera at a different direction. I managed to get that working. Next st... | 2 | 1,048 |
React native "fontFamily is not a valid style attribute" | <p><a href="https://i.stack.imgur.com/0zXFV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0zXFV.png" alt="error image"></a></p>
<p>I've been getting this error today in my react native/expo project. I have tried clearing cache and re-installing packages, etc. </p>
<p>My package.json is the follow... | 2 | 1,404 |
Yii2 POST image to model in API without Yii2 Naming convention | <p>I'm creating an endpoint for a mobile application to send a image to the server. I'm posting the image with the POSTMAN extension for chrome. The image is in the <code>$_FILES</code> variable, and named <code>image</code>. How can I load this image into a model, or the <code>UploadedFile</code> class? The <code>$mod... | 2 | 1,231 |
SapUI5 - How can i bind an object Master-Detail page? | <p>I'm trying to bind and present an element to a detail page, but no success about it.</p>
<p>the master page is displayed well and present the data.
but when i want to present the item on a detail page the data doesn't displayed.
*for fetching all the data i use an API request</p>
<p>I'm not sure what am i doing wr... | 2 | 2,896 |
How do I change class name for CSS inside a PHP Loop? | <p>Hello I am trying to change CSS content on some DIVs depending of their class name.</p>
<p>To explain better, I have a while loop in PHP reading from the database to output DIVs and I have a field named "section" with data such as A,B,C,D,E,F,G.</p>
<p>For the DIVs located in section "A" and "B" I want the class... | 2 | 1,024 |
Trying to scrape data from a table without class or id using python scrapy | <p>I am trying to scrape data from <a href="http://rotoguru1.com/cgi-bin/hyday.pl?game=fd" rel="nofollow">http://rotoguru1.com/cgi-bin/hyday.pl?game=fd</a>. But the code below does not give me any answer. I think something is wrong with the table path or the xpath for the name variable. Could someone please help to ide... | 2 | 1,573 |
How to write a nested object in Swagger 3.0 for components | <p>So I am working on developing the components yaml file in the Data Transfer Object files so I can then reference them.</p>
<p>This is what I have so far:</p>
<pre><code>/**
* @openapi
* components:
* schemas:
* VerifiedEmailAddressDto:
* type: object
* required:
* - email
* properties... | 2 | 2,546 |
Undefined symbols for architecture i386 - All items from podfile | <p>I am getting the below error for Restkit, however reskit is added using cocoapods. I have tried a lot of solutions and can not seem to find the correct one. Does anyone know what I am doing wrong? </p>
<p>Error Message:</p>
<pre><code>ld: warning: directory not found for option '-L/Users/ME/Documents/proj'
ld... | 2 | 1,721 |
Why does onUpdate in AppWidgetProvider reset widget state, for 1 second before it returns? | <p>I have the following AppWidgetProvider</p>
<pre><code>public class MyWidgetProvider extends AppWidgetProvider {
public final String TAG = "WidgetExample";
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
Log.w(TAG, "onUpdate method calle... | 2 | 1,810 |
Uncaught ReferenceError: total cost is not defined | <p>I've looked over and over it, but I can't seem to find the problem. When I load the script in Google Chrome's JavaScript console, it returns the following error back to me
<code>Uncaught referenceerror: total cost is not defined</code>. This happens by the <code>document.getElementById("answer").innerHTML</code> cod... | 2 | 1,142 |
ggplot2 boxplot only shows vertical lines | <p>I was trying to plot some index values as a boxplot against the values of another index, but something went wrong and I can't figure out what.</p>
<p>Here's how my data looks:</p>
<pre><code>'data.frame': 150 obs. of 11 variables:
$ method : chr "GEMAX" "GEMAX" "GEMAX" "GEMAX" ...
$ season_year ... | 2 | 4,341 |
Angular Material Nested Tree | <p>Can someone please help me with the simplest method of adding a new node to the angular material nested tree?
I searched everywhere and did not find a suitable method for the nested tree.
This is my cod so far :</p>
<pre><code>TS:
export class FileNode {
children!: FileNode[];
fileName!: string;
type: any;
}
... | 2 | 1,073 |
Showing a hidden toolbar animation not smooth | <p>in one of my recent apps I implemented the hide/show toolbar when the user is scrolling in a list (Recyclerview). My app has 3 fragments and a view pager to present them.The toolbar hides appropriately when scrolling. However, when I change the fragment (onPageChange listener is called on the view page) I am expandi... | 2 | 3,542 |
Responsive datatables details icon conditional formatting | <p>I just want to change color of detail symbol color when datatable is collapsed on specific condition. Spend soo much time to do it</p>
<p>here is my code:</p>
<pre><code><table class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>... | 2 | 1,422 |
nested foreach loops with switch statement not incrementing case variable | <p>I have this code:</p>
<pre><code> foreach(List<string> build in Builds)
{
int i = 0;
foreach(string item in build)
{
switch (i)
{
case 0:
... | 2 | 1,176 |
DoctrineORM -> OutOfBoundsException -> Missing value for primary key id | <p>I am using <code>Doctrine</code> ORM with <code>CodeIgniter</code>. Error looks like this;</p>
<blockquote>
<p>An uncaught Exception was encountered</p>
<p>Type: Doctrine\Common\Proxy\Exception\OutOfBoundsException</p>
Message: Missing value for primary key id on TestDoor</p>
Filename: >/home/qualesof/hotel.quale... | 2 | 2,054 |
Cannot connect to ODBC from Python Error: file not found (0) (SQLDriverConnect)") | <p>I am trying to connect to oracle database using Python on the Linux server by <code>pyodbc</code> driver. but I am getting below error:</p>
<pre><code> File "Query.py", line 20, in <module>
connection = pyodbc.connect('Driver=/usr/lib/oracle/18.3/client64/lib/libsqo ... | 2 | 1,148 |
Dismissing a viewcontroller messes up the content of UIScrollView | <p>I have FirstViewController which contants a UIView with a UIScrollView in it and there's a UITableView in the UIScrollView. The UITableView has scrolling disabled and I only increase the contentSize of the UIScrollView to be able to see the complete UITableView.</p>
<pre><code>___________________________________
| ... | 2 | 1,334 |
Rails 5- How to import data from an xls file to the database | <p>I am trying to figure out how to add data from an xls file to my rails 5 psql database.</p>
<p>I have tried to follow the GoRails tutorials - but those become irrelevant quickly, because they use CSV files created somewhere in the app to do the tutorial. I don't know how to convert my xls data to csv data to follow... | 2 | 2,642 |
JSch SFTP put to IBM z/OS fails :failed to write file; nested exception is 3: Permission denied | <p>I am trying to put file via SFTP to mainframe using JSch.</p>
<p>Here is the code:</p>
<pre><code>public void uploadFile(String contents) throws Exception {
JSch.setLogger(new JSCHLogger());
connectIfDisconected();
LOGGER.info("Channel isConnected=: " + channel.isConnected());
OutputStream os = cha... | 2 | 1,984 |
With Entity Framework how to create nested objects without one massive query resultset or hundreds of small queries? | <p>I'm using EF to populate objects which I then interact with in my business layer code. The objects have several levels but let's first simplify it to a typical master-detail example with <code>Order</code> and <code>OrderLine</code>.</p>
<p>Let's say I need to retrieve 50 orders each of which has about 100 order lin... | 2 | 1,077 |
python requests lib is not working in amazon aws | <p>I am trying following code:</p>
<pre><code>import requests
headers = {
'authority': 'www.nseindia.com',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36 OPR/72.0.3815.320',
'accept': 'text/html,... | 2 | 1,781 |
Webpack won't compile my SASS with background-image | <p>I have issue compiling my SASS code.
I would like to use a background image, but when I tried this, all my css stopped working.</p>
<p>My SASS file looks like this</p>
<pre><code>@import "~bootstrap/scss/bootstrap";
@import "constants";
#crossroad {
position:relative;
background-image: url("../assets/bg.jpg")... | 2 | 1,193 |
Embed a div table within a div table | <p>I would like to achieve the following layout in HTML using div tags instead of table tags (the colouring is just to make it more clear which cells I want to have equal width):</p>
<p><a href="https://i.stack.imgur.com/fKCHX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fKCHX.png" alt="enter ima... | 2 | 1,338 |
setOnItemClickListener on ListView after AsyncTask finished | <p>I've setup a <code>ListView</code> and a <code>SimpleAdapter</code> that get data through a function which runs in a <code>AsyncTask</code> but the problem is that I now want to set an <code>setOnItemClickListener</code>on this <code>ListView</code>.</p>
<p>The problem is that I'm trying to attach a <code>setOnItem... | 2 | 8,049 |
Reading php generated XML in flash? | <p>Here is part 1 of our problem <a href="https://stackoverflow.com/questions/2390896/how-to-load-dynamically-generated-xml-file-as-php-in-flash">(Loading a dynamically generated XML file as PHP in Flash)</a>.</p>
<p>Now we were able to get Flash to read the XML file, but we can only see the Flash render correctly whe... | 2 | 1,580 |
Creating custom icon for FontAwesome 5 | <p>I'm trying to create my custom icon for FontAwesome using this tool: <a href="https://editor.method.ac/" rel="nofollow noreferrer">https://editor.method.ac/</a></p>
<p>It came with code:</p>
<pre><code><svg width="512" height="512" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw - http:... | 2 | 2,092 |
Show progress bar while loading list Firebase | <p>I would like to show a progress bar on my screen while I seek a listing in Firebase. How can I do this? </p>
<p>The code as it is now does not show the progress bar. If you can help me, thank you.</p>
<pre><code>@Override
protected void onResume() {
super.onResume();
openProgressBar();
callConnection()... | 2 | 1,893 |
Submit button is not working in bootstrap validator even if there is no incorrect field | <p>In my HTML and JavaScript code, all the things are working nicely except the submit button, which should submit the page if there is no error in any of the form fields, but it's not submitting.</p>
<pre><code> <div class="container">
<div class="panel panel-default">
<div class... | 2 | 4,071 |
SSL error in CURL call to Twitter API | <p>Below is some code of my controller (dont worry, de keys are fake). Im using the ZendService\Twitter\Twitter module. Almost everything is working only the last error is a bit strange and i can not figure it out:</p>
<p><code>Unable to enable crypto on TCP connection api.twitter.com: make sure the "sslcafile" or "ss... | 2 | 1,088 |
How to fetch Item Key from Firebase | <p>I want to get the item key of my data in my database but in as you can see in DataSnapshot function, I call try to fetch the item key but it return empty. I am trying to bind all item keys to my data fetch. So every item fetched should have its key in it so I can use the key. But then, all other elements are fetche... | 2 | 1,420 |
Problem with starting foreman for Clojure app | <p>I'm tried to follow the guide on getting a Clojure app on Heroku. Everything works fine except running it locally. I'm using Windows 7.</p>
<p>The step says:</p>
<ol>
<li>gem install foreman</li>
<li>foreman start</li>
</ol>
<p>On 1 I had to be admin, but the installation went ok</p>
<p>When I execute 2 I get:</... | 2 | 1,082 |
How to return current user information from MongoDB in a MEVN stack app | <p>I am attempting to build a basic login/registration app using Vue, Express, Node, and MongoDB. I have been successful in setting up the Express router to enable registration and logging in of users, with basic user info stored in MongoDB. I am attempting to return user data back to the screen after logging in. So fa... | 2 | 1,866 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.