title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Maven: package org.junit does not exist | <p>I'm new to Maven, so excuse me if this is so elemental. I have searched about this problem, and everyone seems to solve it removing the tag from the pom.xml file.</p>
<p>I do not have that tag there:</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i... | 1 | 1,150 |
programmatically get children of folder sharepoint | <p>I have been asked to retrieve the contents of a document library and display them on a webpage with links to download using MVC. I can retrieve all the documents from the library with no issue. However when the documents are stored within subfolders in my document library my links only open the folder.</p>
<p>My do... | 1 | 1,309 |
keyup event not triggered inside twitter bootstrap modal form | <p>I am using Twitter Bootstrap. </p>
<p>I have created a modal window and it gets called as expected. </p>
<p>Inside this modal, there is a form: </p>
<pre><code><div id="initialSurveyInfo" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalId" aria-hidden="true">
<div class="... | 1 | 1,369 |
Overriding a pure virtual function from templated classes | <p>I have searched stack overflow but haven't found something that exactly answers my question. I have an interface class which contains only pure virtual functions which I would like to be implemented by classes which derive from this class. </p>
<p>I have an interface that I will call <strong>BaseInterface</strong>... | 1 | 1,089 |
C++ Stacks with multiple values | <p>I have some code below. This code is a basic push/pop stack class that I have created as a template to enable someone to push/pop stacks. I have a homework assignment and what I am trying to do now is create a stack that has multiple values. </p>
<p>So I want to be able to create a stack that basically can be se... | 1 | 1,237 |
Upload file via POST | <p>I have the necessity to implements a file upload on a web server in C++, I succeed with the following code:</p>
<pre><code> #include <windows.h>
#include <wininet.h>
#include <iostream>
#define ERROR_OPEN_FILE 10
#define ERROR_MEMORY 11
#define ERROR_SIZE 12
... | 1 | 1,415 |
Solid bars in bar chart with react-native-chart-kit | <p>I am using <a href="https://www.npmjs.com/package/react-native-chart-kit" rel="nofollow noreferrer">https://www.npmjs.com/package/react-native-chart-kit</a> and am trying to make a chart to match the following design spec:</p>
<p><a href="https://i.stack.imgur.com/UUvkp.png" rel="nofollow noreferrer"><img src="https... | 1 | 1,160 |
Setting mock location in FusedLocationProviderApi | <p>I'm trying to get mock updates from <code>FusedLocationProviderApi</code>, but I can't seem to make it work. This my set up method in android instrumentation test:</p>
<pre><code>locationProvider = new LocationProvider(InstrumentationRegistry.getTargetContext().getApplicationContext(), settings);
// Connect first,... | 1 | 1,156 |
Java - Two threads communicating via wait()/notify() but threads are alternating on with thread gets lock first | <p>The desired output of this programme is:</p>
<p>Ping
Pong
Ping
Pong
Ping
Pong</p>
<p>Yet it alternates between that and</p>
<p>Pong
Ping
etc.</p>
<p>The thing is, I create the Ping thread and run it first. So I am not sure why Pong is occassionally coming first.</p>
<p>So here is my code (readily compilable). ... | 1 | 1,120 |
Cannot read property 'context' of null | <p>I've been going through the Egghead "Build your first production quality React app" and everything's going fine until lesson 17, where you're supposed to use <code>context</code>to create your own home made router component. As far as I can tell, I do exactly the same thing as in the lesson, but I get this console e... | 1 | 1,321 |
how to edit custom xml from pull to refresh library? | <p>I have to implement a library of <code>PullToRefresh</code> in my project.</p>
<p>I need to change the text color of the "loading..." and "pull to refresh". So I read the doc inside the project and I understood that it needs to be done in the xml, but I'm not sure how.</p>
<p>I have tried to add "color=0x0" and st... | 1 | 1,844 |
How to access JSON data with multiple array objects : android | <p>I am stuck in getting the data from the JSON file with multiple data sets.</p>
<pre><code>{
"status": "ok",
"count": 3,
"count_total": 661,
"pages": 133,
"posts": [
{
"id": 20038,
"type": "post",
"slug": "xperia-launcher-download",
"url": "http:\/\/missingtricks.net\/xperia-lau... | 1 | 1,030 |
Calling Oracle "DEFINE" from Java | <p>I need to define some variables in Oracle to be used further down our application's database installation scripts. Basically, the way our installer works now is it reads in the script files and calls each one via JDBC in Java. I need to have Oracle do the variable substitution on the database side, as there are proc... | 1 | 1,179 |
Marquee not working right in firefox | <p>I am using a marquee, it's going fine in chrome, but in firefox it shows only the first div again and again. Here's the code :</p>
<pre><code><marquee direction="up" scrollamount="3">
<div class="eachnews">
<a href="#"> <div class="news-date"><span class="day_news">... | 1 | 1,169 |
how to print values on a JSP page from a hashtable using useBean | <p>I have created a shopping cart application using jsp and servlets.</p>
<p>I am able to add items to shopping cart.</p>
<p>But I want to show the items on <strong>"View Shopping Cart"</strong> jsp page in <strong>following table format.</strong></p>
<pre><code>Item | Quantity | Price
book1 | 1 ... | 1 | 1,766 |
Error while running Spring-boot: Error creating bean with name 'entityManagerFactory' | <p>I'm quite new to spring boot application. I have created that code and it was running in other machine but when I took it in my machine it's producing the error. </p>
<p>Code is also available in GIT :
<a href="https://github.com/pramendra0510/Spring-Boot-MVC-Rest-Sample-Project" rel="nofollow noreferrer">https://g... | 1 | 6,732 |
ng-view doesn't show anything in my angularJS app | <p>I'm new in Angular. I have a simple angular app and I try to see how routing works in angular. I have three links which I want angular to change the URL for me and show the right view for each link in the same single page application.
This is my code:</p>
<p><strong>index.html</strong></p>
<pre><code><!DOCTYPE ... | 1 | 1,412 |
error C2593: 'operator <<' is ambiguous | <p>i have some problems with template operator<<
having a code:</p>
<pre><code>class Manager
{
multiset<Advertising*, CompareAddPtr > AddToSend;
LinkedList<Client > ClientList;
LinkedList<Client > ActiveClientList;
list<string> initList;
list<string> commandsL... | 1 | 1,398 |
AlertDialog with Blur background in position center | <p><strong>Question</strong> </p>
<p>Tried to blur (not DIM) the background of a <code>Dialog</code>.</p>
<p>and <code>FLAG_BLUR_BEHIND</code> is <em>deprecated</em>. </p>
<p>Approach is, take a screenshot form the currant view and blur it.Then <strong>attach to the background</strong>,When <code>AlertDialog</code> ... | 1 | 5,645 |
Adding natural dragging effect to ImageView same as Facebook Messanger chat heads using Rebound library | <p>I am developing one app where I am dragging around my ImageView in Activity.
I have configured <a href="http://facebook.github.io/rebound/" rel="nofollow"><strong>Facebook Rebound library</strong></a> for spring animation which is originally used in Facebook Messenger's chat heads animations. I want to add this kind... | 1 | 2,038 |
Certificate Store Access denied | <p>I'm receiving a System.Security.Cryptography.CryptographicException Access is denied. when trying to create media service task or job. The app is running on an azure website instance. Everything works locally. Look like the app is unable to write to the certificate store. I have tried elevating the trust level for t... | 1 | 1,388 |
Jersey-Spring3 maven dependency issue | <p>I have declared jersey-spring3 dependency for my jersey2 rest application in pom.xml as follows:</p>
<pre><code><dependency>
<groupId>org.glassfish.jersey.ext</groupId>
<artifactId>jersey-spring3</artifactId>
<version>>${jersey.version}</... | 1 | 5,240 |
HDFStore.append(string, DataFrame) fails when string column contents are longer than those already there | <p>I have a Pandas DataFrame stored via an HDFStore that essentially stores summary rows about test runs I am doing.</p>
<p>Several of the fields in each row contain descriptive strings of variable length.</p>
<p>When I do a test run, I create a new DataFrame with a single row in it: </p>
<pre><code>def export_as_df... | 1 | 1,890 |
Using Profiles with nestjsx-automapper in nest.js | <p>I´m using <strong>nestjsx-automapper</strong> (<a href="https://automapper.netlify.app/docs/usages/init/add-profile" rel="nofollow noreferrer">https://automapper.netlify.app/docs/usages/init/add-profile</a>) by Chau Tran (thanks for that cool piece of code). I´ve implemented it like shown in the documentation and as... | 1 | 1,448 |
How to disable embedded database Spring-boot spring-data-jpa | <p>I can't Read/Write on my Postgresql database (9.4) set up locally. My app always use an embedded database. When I execute some select queries on my database, there is no data inserted. Could you check my files please? </p>
<p>I'm using Spring-boot with Spring-Data-JPA.</p>
<p>File : <strong>application.properties<... | 1 | 3,433 |
Cannot build a cmake project in Visual Studio and vcpkg (fatal error C1083) | <p>I installed vcpkg today, enabled integration with Visual Studio, ie .\vcpkg integrate install, and started installing libraries.</p>
<p>I basically installed cpprestsdk and that trigger installation of boost libraries. Then I opened the project in the Visual Studio (CMake).</p>
<p>When I installed cpprestsdk I rec... | 1 | 2,788 |
How to read nodejs internal profiler tick-processor output | <p>I'm interested in profiling my Node.js application.
I've started it with <code>--prof</code> flag, and obtained a <code>v8.log</code> file.
I've taken the windows-tick-processor and obtained a supposedly human readable profiling log.
At the bottom of the question are a few a small excerpts from the log file, which I... | 1 | 2,143 |
how to run django sslserver(https) such that remote systems in network can also access? | <p>I am trying to run my server with https, so I installed <code>django-sslserver</code>, and running as below.</p>
<pre><code>python manage.py runsslserver --certificate /etc/ssl/certs/server.crt --key /etc/ssl/private/server.key 0.0.0.0:8000
</code></pre>
<p>It is running successfully with above command. I am able ... | 1 | 1,411 |
Failed to start spring boot integration test when setting the application type as reactive | <p>I have an application using Spring Webflux via Spring boot 2.0.0.M3.</p>
<p>The application is set as <strong>REACTIVE</strong> type when running it.</p>
<pre><code>public static void main(String[] args) {
SpringApplication application = new SpringApplication(AgentApplication.class);
application.setWebAppl... | 1 | 2,426 |
Kubernetes postStart lifecycle always failing | <p>Trying to solve dependency between pods using postStart lifecycle.</p>
<p>Use case: micro service A should start after the start of micro service B.</p>
<p>For that we have added one container (curl) which will check if dependent service is up or not using curl command.</p>
<p>But when we add any command in postStar... | 1 | 1,078 |
Best practice for tracking upstream in fork on github | <p>Summary: What are the best practices for handling long running tracking of upstream repositories where you want to maintain a set of local changes?</p>
<p>I want to keep a fork on github up-to-date with the upstream but still allow clear tracking of changes unique to the fork. (for this discussion, assume that <cod... | 1 | 1,088 |
Parse Lines of Single Words and Groups of Words Inside Quotes Using Regular Expressions in Ruby | <p>I'm trying to figure out how to better parse lines of text that have values that look like this:</p>
<pre><code>line1
'Line two' fudgy whale 'rolly polly'
fudgy 'line three' whale
fudgy whale 'line four'
'line five' 'fish heads'
line six
</code></pre>
<p>I wish to use <strong>a single regular expression... | 1 | 1,086 |
Ionic 3 Post Camera Image to API With cordova-plugin-file | <p>I have been successfully using cordova-plugin-file-transfer to post an image file from a device camera to an API e.g. fileTransfer.upload(fileUrl, url, options).</p>
<p>However, cordova-plugin-file-transfer has now been deprecated:
"With the new features introduced in XMLHttpRequest, this plugin is not needed any m... | 1 | 1,379 |
How can I display a different icon for markers that fit wthin different categories? | <p>I'm attempting to make a Google Map which allows the user to check off a category and have those specific locations display. I've got that part working:</p>
<p><a href="http://thedenvillehub.com/test-hs/adv/scripts/test.html" rel="nofollow">http://thedenvillehub.com/test-hs/adv/scripts/test.html</a></p>
<p>What I ... | 1 | 1,037 |
Change menu color when scrolled past certain div | <p>I'm trying to make my menu, that sticks on the top of the page, to change color when I passed scrolling a certain div.</p>
<p>I guess the problem lies in this line: <code>var mainbottom = $('#main').offset().top + $('#main').height();</code>
Because I get the error from chrome: <code>Uncaught TypeError: Cannot read... | 1 | 1,060 |
Javascript Psychic Game | <p>I am creating a guessing game and am trying to get a condition that doesn't allow my user to choose the same answer twice. I was thinking somehow say if the userGuess is not equal to an item in the empty span (user guesses) I created then nothing happens. Am new to javascript and just needed some direction! </p>
... | 1 | 1,098 |
Accept facebook login into my REST API | <p>I have a backend server (Java / Spring / Spring Security).
Currently when users from mobile app login, they simply submit their username/password and Spring Security creates a Session and assign it to the request with a JSESSIONID.</p>
<p>We would now also have a button on the mobile app "Login with Facebook". Her... | 1 | 1,705 |
How to read XML file data with Php? | <p>I have xml file in the following format.</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Data feed Title</title>
<link>http://www.amarchitrakatha.com/in/</link>
<description&g... | 1 | 1,969 |
jQuery UI Accordion Can't Open 3rd Panel Programatically | <p>Having trouble getting the 3rd panel in a Jquery UI Accordion to open via a jQuery program call, while keeping panels 1 and 2 closed. My HTML structure is like this:</p>
<pre><code><div class="accordion1">
<div class="left-menu-title" id="restaurant">
<h3>Restaurant</h3>
</div>
<d... | 1 | 1,119 |
Python can't communicate with subprocess of a Minecraft server | <p>I'm trying to write a handler/controller for the Minecraft server. My problem is that I can't seem get writing and reading to work properly. When a client issues a command that uses the server class's method <code>serverCom</code>, the Minecraft server's text/log starts to come into the Python window/Python console ... | 1 | 2,849 |
If lifecycleScope is supervisor, why its child coroutine's failure causes the app crash? | <p>I'm new to Kotlin coroutines and try to understand supervision. As docs say:</p>
<blockquote>
<p>A failure or cancellation of a child does not cause the supervisor job to fail and does not affect its other children.</p>
</blockquote>
<hr>
<p>Ok, I've written the following code for JVM:</p>
<pre><code>@JvmStati... | 1 | 1,675 |
Url redirection in PHP | <p>i am having a url like
<a href="http://localhost/joomla/Joomla_1.5.7/index.php?option=com_content&view=section&layout=blog&id=3&Itemid=55" rel="nofollow noreferrer">http://localhost/joomla/Joomla_1.5.7/index.php?option=com_content&view=section&layout=blog&id=3&Itemid=55</a></p>
<p>an... | 1 | 1,186 |
How to reset radio button in react JS | <p>I am trying to reset radio button, after adding some form data, but its nit happening in react.</p>
<p>In the add method, i am trying to set the state value of the radio button to blank.</p>
<p>I tried different ways to make the radio button again to blank.None of them is working</p>
<p>I see some react js radio ... | 1 | 1,284 |
assign output of exec-maven-plugin to variable | <p>I want to use exec-maven-plugin to get git 'revision', so I'm using following configuration:</p>
<pre><code><plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execu... | 1 | 1,286 |
Crashlyitics not appearing in Firebase | <p>My Crashlytics data is not appearing in the Firebase Crashlytics view. It does show "Crash-free statistics" as being 75%, so it appears to be recording some data. I also see the crashes appearing instantly both in Fabric and in the old Firebase Crash Reporting interface, as well as in the DebugView as gene... | 1 | 2,059 |
Java parallelStream does not use expected number of threads | <p>Java 8 parallelStream seems to use more threads than the ones specified by the system property <strong>java.util.concurrent.ForkJoinPool.common.parallelism</strong>. These unit tests show that I process tasks using the desired number of threads using my own ForkJoinPool but when using parallelStream the number of th... | 1 | 1,307 |
javax.persistence.NonUniqueResultException: query did not return a unique result: 3 | <pre><code>**hi big community! someone can help me**
**here: Role entity**
@Entity
@Table(name="roles")
public class Role implements Serializable {
@Id @GeneratedValue(strategy = GenerationType.AUTO)
private Integer id;
private String obser;
public Role() {
... | 1 | 1,543 |
c# WPF, How to expand form on button click? | <p>I'm working on a c# WPF program, and im trying to make the search form expand(grow bigger), when a button is clicked (much like the Expander function, but the entire form). </p>
<p>Picture of the form NOT expanded:
<a href="https://i.stack.imgur.com/mFZvR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.img... | 1 | 3,083 |
unable to download the file from website loaded in android Webview | <p>I just working on a simple App which loads a website in the Webview. this app contains only webview nothing beyond that. Its purpose is to show the webpage as an app.</p>
<p>When my app is opened, the website loads automatically and then navigation flow is working fine. </p>
<p>Here comes the issue, few of my web ... | 1 | 2,280 |
Stay on same component of page after refresh browser in ReactJS | <p>I am very new to ReactJS. My query is I want to stay on same component of page in ReactJS. Below is my code.</p>
<p>App.js</p>
<pre><code>import React, { Component } from 'react' import { BrowserRouter as Router, Route } from 'react-router-dom'
import { authenticationService } from './_service/authentication.serv... | 1 | 1,491 |
issue with passing data to onActivityResult | <p>im attempting to send a string from one of my activities to the main activity of the group, but am having a small issue. Im attempting to create an object in the onActivityResult part of my code(which seems to work). but when trying to access methods from this class other than getName(), it spits out a resource not ... | 1 | 2,848 |
Cannot create service: service port not found when create treafik ingress route | <p>When I am create treafik ingress,it throw this error:</p>
<pre><code>{"ingress":"kubernetes-dashboard-route","level":"error","msg":"Cannot create service: service port not found","namespace":"kube-system","providerName":"k... | 1 | 4,972 |
OpenGL ES 2.0 for Android - gl_FragCoord and gl_FragColor | <p>After a few day with a lot of researching and tests I finally was able to implement the Fragment Shader that is shown is this book (an excellent book, may I say): <a href="http://arcsynthesis.org/gltut/Basics/Tutorial%2002.html" rel="nofollow">http://arcsynthesis.org/gltut/Basics/Tutorial%2002.html</a>.</p>
<p>It j... | 1 | 2,032 |
Fetching YouTube Live Stream Chat messages | <p>Since this is a question about the new YouTube API that has just been released it is not a duplicate.</p>
<p>I am trying to fetch the chat messages from the YouTube API 3. I have tried everything I can and I am stuck.</p>
<p>I need the liveChatId to be able to fetch them but I don't know how to retrieve that value... | 1 | 1,366 |
I am trying to implement SSO in .net core 3.1 by sharing cookies between apps (Login and Web page) | <p>I am trying to implement SSO by sharing cookies between two .net core 3.1 apps. I have followed <a href="https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-3.1" rel="noreferrer">this link</a>. I am trying to implement it by Sharing Cookies between the applications as mentioned in th... | 1 | 2,985 |
How can I configure SOAP XML namespaces in web service client request? | <p>I am having trouble calling a 3rd party web-service. I have <em>not</em> received a SOAP fault, but am <em>not</em> getting a valid resultset. A colleague of mine has written a client in RPG on the OS400 and it returns a valid resultset. When comparing the RAW request in Fiddler2 for both requests, the only glari... | 1 | 1,564 |
Copy data from emails in Outlook Inbox and personal subfolders to Excel through VBA | <p>I need to copy the name, subject and received date fields from emails received in my Outlook 2007/2010 inbox, subfolders and public shared folders to Excel 2007/2010.</p>
<p>Also when I export to Excel it should append data every time I run the macro.</p>
<p>This code, which I got online, allows me to pick a folde... | 1 | 1,115 |
Adding Eigen library to c++ project using cmake | <p>Unfortunately, i have some problems adding the headers only <a href="http://eigen.tuxfamily.org/index.php?title=Main_Page" rel="nofollow noreferrer">Eigen 3.3.7 Library</a> to my Makefile with Cmake on my Ubuntu 18.04.4 LTS system.
I can compile my code using the library by just copying the library folder in the inc... | 1 | 1,126 |
Unable to find artifact from artifactory | <p>I am using JFrog artifactory 3.2.1.1 with Maven 3.2.1.</p>
<p>I uploaded a built project that exists in libs-snapshot-local under the repository browser. If I browse to com.foo.project, I will see the project-1.0-20151113.133436-1.jar file and pom and metadata in the artifactory browser.</p>
<p>Even accessing <a h... | 1 | 2,259 |
Python3 asyncio: wait_for() communicate() with timeout, how to get partial result? | <p><a href="https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.asyncio.subprocess.Process" rel="noreferrer">The Python docs about asyncio - Subprocess say:</a></p>
<blockquote>
<p>The <code>communicate()</code> and <code>wait()</code> methods don’t take a timeout parameter: use the <code>wait_for()</c... | 1 | 1,084 |
Bootstrap 4: Dropdown menu is not right-aligned when inside nav.navbar | <p>Latest Boostrap 4 and popper.js as of time of writing are loaded from CDN.</p>
<p><a href="https://codepen.io/tmrczk/pen/pWLXbO" rel="noreferrer">Codepen here</a>.</p>
<p><strong>Problem</strong>.</p>
<p>My dropdown code:</p>
<pre><code><div class="btn-group">
<button type="button" class="btn btn-se... | 1 | 1,058 |
How can I take build number using SVN and Maven? | <p>I use <code>buildnumber-maven-plugin</code> and I need take build number of project from svn. My pom.xml:</p>
<pre><code><scm>
<connection>
scm:svn:https://username:password@path_to_repositiry
</connection>
</scm>
<plugin>
<groupId>org.codehaus.mojo</group... | 1 | 1,061 |
Typescript: How to have some imports in the global scope? | <h2>Context:</h2>
<p>I work on a project where the senior programmer decided to reduce the boilerplate code in newly created typescript files. Two examples of this boilerplate code would be importing the React library or the function that fetches and processes our localized strings.</p>
<h2>Question:</h2>
<p>Is it p... | 1 | 2,012 |
How to properly implement error handling in async/await case | <p>I use async/await ecma6 standard without any custom library.</p>
<p>I don't get at the moment how I can properly catch and throw errors.
I have multiple async/await functions and if somewhere down below an critical error happens I want to throw the error to the top and of all async functions and stop execution of t... | 1 | 1,067 |
Keycloak admin client responds with Bad Request to attempt to list realms | <p>I am attempting a simple test of the health of a fresh instance of Keycloak (running in a Docker container, it so happens), by trying to list the realms using the Java admin client as the admin user. But this repeatedly fails due to an <em>HTTP 400 Bad Request</em>, apparently when the client is attempting to get an... | 1 | 1,994 |
ServletContextListener.contextInitialized doesnt get called when context is initialised | <p>I am creating a war file (progressReporter.war) and i am deploying it on Jetty7.2.2.v20101205. I have a sysout on contextInitialized method which i should see when jetty starts up. I am starting jetty using<br>
java -jar start.jar </p>
<p>Java version is 1.6 </p>
<p>Same thing when i am running on tomcat, its ru... | 1 | 2,533 |
UITableView like gridview in Xcode? | <p>Im implementing the concept of UITableView acting like gridView .I am loading NSMutableArrays data in UITableView.I am loading the array items in UIButtons of a tableViewCell and when a button is pressed then some action should be performed..i.e 4 buttons in each row and no of rows depend upon the no of array items.... | 1 | 1,954 |
Azure credentials have not been set up or have expired, please run Connect-AzAccount | <p>Related to the following question (<a href="https://stackoverflow.com/questions/54286763/azure-devops-custom-task-powershell-with-azure-authentification">Azure DevOps - Custom Task - PowerShell with Azure Authentification</a>) I am using now <code>Connect-AzAccount</code> to login by using a Azure DevOps Custom Task... | 1 | 2,075 |
C Linked lists with global variables | <p>Hi I'm new to C and I'm struggling to get a linked list working I'm having to use global variables because I can't change the parameters of the function that is being called. I declare the struct and two global pointers to keep track of the root address and last address like this.</p>
<pre><code>struct node {
cha... | 1 | 1,029 |
EditText afterTextChanged not working: displays null | <p>I insert <code>Uri</code> image into <code>SQLite</code> by using below code:</p>
<p><strong>Register</strong></p>
<pre><code>private void insertData( String name,String pass, Uri image) throws SQLiteException {
database = mdb.getWritableDatabase();
ContentValues cv = new ContentValues();
c... | 1 | 1,939 |
AttributeError: Array instance has no attribute '__trunc__' | <p>I am trying to create a 2D-arrays in python using c-types. For that I have created two modules arrays.py and array2D.py</p>
<p>TraceBack is :</p>
<pre><code>Traceback (most recent call last):
File "C:\Python27\Lib\array2D.py", line 52, in <module>
arr = Array2D(2,4)
File "C:\Python27\Lib\array2D.py", l... | 1 | 1,491 |
Alphabetically sort LinkedList without using Collections by first and last name in Java | <p>I am trying to write code which creates a linked list of names in alphabetical order from a file. </p>
<p>The names must be ordered by last name, then first name. The second layer of sorting is where I am having trouble.</p>
<p>I'm including my code so far, and right now I'm just trying to rewrite <code>sortList</... | 1 | 2,044 |
Move Nav Menu to overlay on top of the Slider - CSS | <p>I am working on this site: <a href="http://jillianssf.com/dev/" rel="nofollow noreferrer">http://jillianssf.com/dev/</a></p>
<p>I am trying to get the nav menu to appear above the slider like here:<a href="https://i.stack.imgur.com/dghDt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dghDt.jpg" ... | 1 | 1,626 |
problem POSTing android JSONObject to PHP | <p>I am having trouble getting an android POST of a simple JSONObject to show up in the $_POST data on the server. The server is PHP 5.3.4 and the android side is an SDK 8 emulator. I can post a simple NameValuePair as normal and it shows up but when I switch to the JSONObject + StringEntity that you see below the $_... | 1 | 1,371 |
Jenkins - Active choice reactive reference parameter | <p>Greetings!
I am novice to Jenkins and Groovy. I have a below usecase where I am not able to print the user input values and pass the same to shell script. Could somebody share me your inputs on how to get the input values stored in a variable and print the same in the execute shell.</p>
<p>Appreciate your help on t... | 1 | 1,025 |
binding is not working in javascript model | <p>I created javascript view</p>
<pre><code> sap.ui.jsview("view.taskListView", {
/** Specifies the Controller belonging to this View.
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
* @memberOf view.taskListView
*/
getControllerName : function() {
ret... | 1 | 1,259 |
OpenCL command queue (CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) not working (MacOS) | <p>Working through the examples and source code from Fixstars. Specifically, I'm trying the last bit of code in chapter 5 (two moving averages - aka Golden Cross):</p>
<p><a href="http://www.fixstars.com/en/opencl/book/OpenCLProgrammingBook/opencl-programming-practice/" rel="nofollow noreferrer">http://www.fixstars.c... | 1 | 5,662 |
How to prevent a callback from being interrupted by a figure's close function? | <p>Was wondering how the question in the title can be achieved. I have some callbacks that run from button presses. These callbacks, if interrupted by the figure close, will cause errors because the function seems to run, then gets interrupted by the close function which closes the figure, and then the callback seems t... | 1 | 1,048 |
nuget package add folder to solution | <p>i have to create a nuget package but i have a problem: i want to add a folder named "Config", this folder contains three XML files.</p>
<p>after a search on the web, i have tried two ways (editing my nuspec file) to add this custom folder into my nuget package:</p>
<p>1)</p>
<pre><code><file src="Config\*.*" t... | 1 | 1,365 |
Got error in Writing video in document | <p>Hi I am capturing screen and make as video. It works well in simulator. While I run it in device. App crashes. below I put my code and error</p>
<pre><code> - (void)stopRecording
{
[self.displayLink invalidate];
startTimestamp = 0.0;
dispatch_async(queue, ^
{
... | 1 | 4,317 |
Changing types during binary deserialization in C# | <p>One of the solutions in our company consumes a 3rd party service. Communication is done through XML messaging. On our end, we generate classes to be used based on XML schemas that they provide us, and at some point we serialize some of those types into a binary blob in our database for later use.</p>
<p>The probl... | 1 | 1,234 |
django modelformset_factory - management form data is missing | <p>I am still fighting with formsets and I cant really understand why I am getting this error:</p>
<p>u'ManagementForm data is missing or has been tampered with</p>
<p>Thats my code:
Please point out my mistakes and help me with resolving this issue.</p>
<pre><code>@csrf_protect
@transaction.commit_on_success
def si... | 1 | 1,095 |
Data lose On UITableViewCell When UITableView Scrolling? | <p>I am trying to implement <code>UITableview</code> based application. In my <code>tableView</code> their is 10 Section and each section having one row.
I want implement each section have Different type of <code>ContentView</code>(1-8 same <code>ContentView</code> 9th section Different <code>ContentView</code>). I did... | 1 | 1,218 |
Creating CA for Windows 7's IPSec client | <p>I'm struggling now for a time with creating a CA certificate for Windows 7 to connect to strongSwan.</p>
<p>The problem is, no matter how many flags I try, Windows won't use it. I have 20 certificates in the <em>Trusted Root Certification Authorities</em> group. These were there by default. When I install mine, the... | 1 | 4,827 |
Getting "Aborted because 0 is not accepted" and full page reload with react-hot-loader | <p>I am trying to set up webpack hot reloading with react-hot-loader. It <em>mostly</em> seems to be working. I am using webpack in an existing rails app.</p>
<p>But it isn't hot-reloading. It is simply triggering a reload every time my react code is changed. The error messages I get are:</p>
<pre><code>[HMR] Cannot ... | 1 | 1,489 |
SAXParseException - The element must be terminated by the matching end tag (The XML file is valid) | <p>I am am getting a strange error in my DocumentBuilderFactory parser, the error is the following:</p>
<pre><code>[Fatal Error] standard_000000_3.xml:1221888:48: The element type "tduid" must be terminated by the matching end-tag "</tduid>".
org.xml.sax.SAXParseException; systemId: file:/home... | 1 | 2,377 |
Asp.Net Core 3.1 Cookie Authentication loop to login page | <p>When I successfully signed in to the HTTP context and I'm redirected to the home controller, the Authorize Attribute of the HomeController redirects me to the login path, because I don't know. (Infinite loop)</p>
<p>The validate async method doesn't sign me out or reject the cookie (I checked it.)</p>
<p>But where's... | 1 | 1,817 |
Removing a value from an array using redux toolkit | <p>I am new to using "@reduxjs/toolkit" (version "^1.5.1").</p>
<p>I am trying to remove an object from within the state's array (roundScore). This is usually something that is very simple to do using <code>filter()</code>. For some reason this isn't working and I can't figure out why. Here's my cod... | 1 | 1,733 |
How can I move elements on a css grid? | <p>I am trying to figure out how to position elements using css grid. I'm using firefox and I can see that my areas are defined properly, but when I try to move some sample stuff around they aren't moving.</p>
<p>I've read and tried a bunch of different things but I guess I'm implementing the solutions wrong?</p>
<p>I'... | 1 | 1,330 |
BackAndroid/BackHandler Event Listeners are not Triggered when set in a Modal's Child Component | <p>I am unable to set event listeners using the react-native <strong>BackHandler</strong> in a component that is placed inside a modal. I suspect that this happens because the modal is listening to the method that is passed on the <strong>onRequestClose</strong> prop.</p>
<p>Well, I am not sure if this is a bug or a f... | 1 | 1,166 |
std::vector<std::pair<int,std::pair<Bone,std::string> > > not sorting by int? | <p>I have a <code>std::vector<std::pair<int,std::pair<Bone,std::string> > > </code></p>
<p>I'm trying to sort it with std sort, with the expectation that it is sorted by int, but instead I get 21 errors related to the sort call.</p>
<p>What could be wrong?</p>
<p>Code:</p>
<pre><code>std::vector<st... | 1 | 2,944 |
Android camera permission | <p>I have this code which i make using official developer android sites. I want to create camera preview, but first ask for permissions. When i start the app they crash, but before app exit, they ask me for permissions which i grant, and then app crash. After i enter app again it work just fine, but i want to get rid o... | 1 | 2,094 |
Can't delete session properly in rails | <p>Following the ruby on rails tutorial (<a href="https://www.railstutorial.org/book/log_in_log_out" rel="nofollow">https://www.railstutorial.org/book/log_in_log_out</a>). The logout feature isn't working. I generated a 'sessions' controller and defined a method destroy to 'log_out' the 'current_user' which is an insta... | 1 | 1,821 |
Custom QDial notch ticks with PyQt | <p>Currently I have this custom rotated <code>QDial()</code> widget with the dial handle pointing upward at the <code>0</code> position instead of the default <code>180</code> value position.</p>
<p>To change the tick spacing, <code>setNotchTarget()</code> is used to space the notches but this creates an even distribu... | 1 | 1,173 |
My content won't push the footer down | <p>It seems I have a problem with my footer. My Content div won't push the footer down. It just go through it. I have been searching the net for days now (even stackoverflow), but I can't seem to find a solution. If anyone can help me, I would really appreciate it. I have tryed to clean up the html, so it would be easi... | 1 | 2,839 |
Check which element is hovered in React | <p>I'm building portfolio site for me with Gatsby + Wordpress. I wondered is it possible to hover name of portfolio item and image related to that?</p>
<p>I have idea that if <code>PortfolioItemNameLink</code> is hovered it shows image from same project. How can I check which item is hovered?</p>
<pre><code>const Por... | 1 | 1,228 |
Proguard exception while creating release android apk | <p>I am building an app engine connected android project using the eclipse plugin. The project is working fine and so I decide it's time to create a release APK. Using eclipse, I go through the process. But when I reached the end, I get an exception: <code>Proguard returned with error code 1</code>. I include the entir... | 1 | 8,695 |
EDX set 5 - caesars cipher | <p>I am doing edx problem set 5 and I stumbled upon a problem in my code:</p>
<pre><code># 6.00x Problem Set 5
#
# Part 1 - HAIL CAESAR!
import string
import random
WORDLIST_FILENAME = "words.txt"
# -----------------------------------
# Helper code
# (you don't need to understand this helper code)
def loadWords():
... | 1 | 1,942 |
Recursive evaluate() in expression tree class | <p>I am new in Java and trying to add evaluate method to my class. The ExpTree class and its testing program is given to me. I wrote my code as I learned in the class, but do not know why it does not work.</p>
<blockquote>
<p>An evaluate() method, which returns the arithmetic evaluation of the ExpTree. This should... | 1 | 3,347 |
DirectX 11 Switching from fullscreen -> windowed problem | <p>I've been trawling various sites looking for the correct way to manage switching.</p>
<p>I thought I had cracked it but I've noticed a bizarre issue now that I am setting vertex and pixel shaders for a draw call.</p>
<p>I can swap to full screen using alt-enter and everything is fine, swapping back with either lea... | 1 | 1,347 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.