title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Check duplicate's before inserting data in SQLite database | <p>Im inserting 3 values into a database on a click of a button, 1 is the insert date, 2 is a number from a editText and the 3rd is the value assigned to the button being clicked(there are six different buttons that can be clicked)</p>
<p>What I want to do is check if the date and number are already in the database th... | 1 | 1,551 |
Why the same password does not match by the PasswordEncoder? | <p>I did a lot of test, and a cant find the way to make it work.
With the next basic spring-boot project, you can test how even the passwords are the same, the match method always return false.</p>
<p>pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0... | 1 | 2,909 |
RemoveDirectory() function in win32 api doesn't remove parent directory after removing subdirectories | <p>I'm having a problem removing a directory after it's subfolders / files have been removed. I'm using FindFirstFile, FindNextFile, RemoveDirectory, etc. For instance I have this directory:</p>
<blockquote>
<p>C:\Users\user\Desktop\SearchFile\ipch\searchfile-e3798fd4\some-files-here.ipch</p>
</blockquote>
<p>After... | 1 | 2,826 |
Maven does not pick up tests in spring boot app | <p>In a spring boot app, I have a test class as such</p>
<pre><code>class UserInfoControllerTest {
@Mock
private UserService userService;
@Mock
private Principal principal;
private UserInfoController subject;
@BeforeEach
void setUp() {
//before each code
}
@Test
void ... | 1 | 1,747 |
Change text color in corrplot.mixed | <p>In the <code>r</code> package <code>corrplot</code>, you can mix the type of figure on the lower and upper half of a correlation matrix to make a nice visual. I would like to have numbers on the lower half of my matrix, and ellipses on the top half of the matrix - that is all fine. But, with my data I cannot see som... | 1 | 1,092 |
Silverlight - Style ScrollViewer for Listbox | <p>so i have been trying to style a scrollviewer, so that i can change the appearance of a scroll bar. But the problem I am facing, is that when I apply the scrollviewer style to the ListBox, I never see the content anymore. </p>
<p>This is the current style I have: (Unchanged from the default at the moment)</p>
<pre... | 1 | 2,022 |
code build to create lambda layer - cannot find module | <p>I want package a lambda layer using codebuild.</p>
<p>My codebuild buildspec is as follows:</p>
<pre><code>version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- npm init -y
- npm install --save middy
artifacts:
files:
- 'node_modules/**/*'
- 'package-lock.j... | 1 | 1,633 |
CSS Cut out circle from a rectangular shape | <p>I managed to achieve this effect: <a href="http://jsfiddle.net/6z3msdwf/1/" rel="nofollow">http://jsfiddle.net/6z3msdwf/1/</a> but I am not really happy with the markup. Also, there is an weird bug in IE 10/11 where a 1px gap is shown when you resize the window.</p>
<p>Is there any other way to do this? Or maybe fi... | 1 | 1,156 |
Problems linking to static files in Django 1.3 | <p>I'm running django 1.3, python 2.7 on windows XP</p>
<p>I'm trying to setup a css in a static folder for my django app.</p>
<p>The template looks like:</p>
<pre><code><html>
<head>
<title>css demo</title>
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}c... | 1 | 1,256 |
Collapse sidebar in SwiftUI (Xcode 12) | <p>I'm trying to do a simple application in SwiftUI taking advantage of SwiftUI 2.0's new multiplatform project template, and I wish to add the option to collapse the sidebar as many other apps do.</p>
<p>I tried adding a boolean state variable that controls whether the sidebar should show or not, but that doesn't work... | 1 | 5,171 |
Procedure or function x has too many arguments specified | <p>I have a gridview with the following SqlDataSource:</p>
<pre><code><asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnString%>"
SelectCommand="SELECT IDC, DESCPREVIEW, ADESCPREVIEW, DESC, ADESC, DATETOs, Active, HAVEIMG FROM CONTENT O... | 1 | 1,531 |
How to override hydra working dir from within a script? | <p>I know that I can change the working dir in config by setting <code>hydra.run.dir=XXX</code> from the command line.
But how to do it properly from script w/o using CLI arguments in a way that even the logs are saved in the dir which I set?</p>
<p>This code won't work because:</p>
<ol>
<li>the hydra and its loggers a... | 1 | 1,518 |
MongoDB database creation with spring data | <p>I am creating a sample web application with spring 3.0 and mongoDB. Following is my root-context.xml file.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:... | 1 | 1,405 |
Error: Unresolved reference: DaggerAppComponent | <p>I've been facing this problem for 3 hours. I couldn't find any logical reason to what is happening. The problem is, Only when I use the generated <code>Dagger</code> classes, and after <code>Gradle</code> do the <code>Build</code> every reference to these classes became red and I get the error:<br/></p>
<blockquote... | 1 | 1,354 |
Partial mapping of XML in JAXB (MOXy) | <p>I would like to unmarshall only the <strong>trk</strong> and its child elements from the below XML. However, I want to create <strong>gpx</strong> as the root element while marshalling</p>
<pre class="lang-xml prettyprint-override"><code><p:gpx creator="" version="1.1" xmlns:p="http://www.topografix.com/GPX/1/1"... | 1 | 1,595 |
Python IndexError: list index out of range doesn't make sense | <p>I am working on a little python code which parses the response from the google maps API, however I get a "IndexError: list index out of range" error, which does make any sense to me. For some requests, the code is working, for some others, not.</p>
<p>Purpose of the code is to structure the address response to a ra... | 1 | 1,105 |
How to run some CMD commands on Windows 10 as administrator using Nodejs and spawn? | <p>I am working with Nodejs on Windows 10. Every time the app is opened I want to check if the files with the extension <code>ext</code> are associated to my app. If not I would need to run this commands on cmd in order to make the association again:</p>
<pre><code>assoc .ext=CustomExt
ftype CustomExt=app.exe %1 %*
</c... | 1 | 1,117 |
React keycloak TypeError: kc.updateToken(...).success is not a function | <p>I was on keycloak implementation.</p>
<p>This is my keycloak init config:</p>
<pre><code>const token = localStorage.getItem('kc_token');
const refreshToken = localStorage.getItem('kc_refreshToken');
export const keycloakInitConfig = {
onLoad: 'login-required',
promiseType: 'native',
token,
refreshToken,
}... | 1 | 1,280 |
ActiveRecord - Denormalization Case Study | <p><strong>What's the best way to deal with the 8 different SQL questions below.</strong></p>
<p>I have placed below a database schema, how it is represented in my Rails models, and seven questions for data I need to get out of my database. Some questions I have answered, others I'm not sure of the best solution.</p>... | 1 | 2,860 |
Google Maps API v2 Custom MapFragment + SimpleFragment | <p>I need to create a simple application which contain
1. Custom MapFragment which can display current location (LocationListener?), two markers, etc.
2. Simple empty Fragments.</p>
<p>The application must not use support v4 (sdk 11+) / FragmentActivity.</p>
<p>Empty fragment.</p>
<p>XML:</p>
<pre><code><?xml v... | 1 | 1,229 |
HTML Purifier: Removing an element conditionally based on its attributes | <p>As per <a href="http://htmlpurifier.org/live/smoketests/xssAttacks.php" rel="nofollow noreferrer">the HTML Purifier smoketest</a>, 'malformed' URIs are occasionally discarded to leave behind an attribute-less anchor tag, e.g.</p>
<p><code><a href="javascript:document.location='http://www.google.com/'">XSS<... | 1 | 1,199 |
Attach DirectShow video window to WPF Control | <p>I'm using DirectShow.NET to create a web camera control for WPF. I've successfully created a graph and can get video from a camera to display on my screen. However, the video output is completely independent of the WPF control it's being created in. </p>
<p>I am setting the owner of the video window by calling <cod... | 1 | 1,084 |
Kendo UI Grid, Add columns and columns sum values | <p>I'm working with the Kendo Grid tool.
I have a data source which contains values of an object and in this object exists another one. Is like two array, one inside the another one.</p>
<pre><code>$("#PedidoConsolidadoGrid").kendoGrid({
dataSource: {
data: mData,
schema: {
model: {... | 1 | 1,292 |
React DND - Cannot add new item to state after a drag and drop event | <p>I am working on a simple version of ReactDND before I implement this code into my image uploader.</p>
<p>Each time an image is added, it is added to state and passed through to ReactDND so that it is draggable and also droppable (so users can rearrange their images).</p>
<p>Everything works great, except for one t... | 1 | 3,841 |
Extending java's ThreadLocal to allow the values to be reset across all threads | <p>After looking at <a href="https://stackoverflow.com/questions/2795447/is-there-no-way-to-iterate-over-or-copy-all-the-values-of-a-java-threadlocal" title="this question">this question</a>, I think I want to wrap ThreadLocal to add a reset behavior.</p>
<p>I want to have something similar to a ThreadLocal, with a me... | 1 | 1,273 |
Android viewpager......how to get a hold of the views? | <p>I'm able to build an activity with a viewpager from the various examples on the web, but can I no longer use the views as they were in the original activity? Take for example the following:</p>
<pre><code>public class SimpleViewPagerActivity extends Activity {
LinearLayout thisIsWhatBreaks;
@Override
... | 1 | 2,162 |
Vue accessing an array within in an array | <p>I want to access data from a prop that has an array within an array, I have to type tons of <code>v-for</code> statements to access the data. </p>
<p>Currently I have to cycle through the <code>spaces</code> array (check if their id matches with the one I want) and use an <code>v-if</code> statement to output only ... | 1 | 1,825 |
Testing with Jest while using MSW and RTK Query leads to strange error in test | <p>I have been spending most of the day trying to sort out this insanely annoying bug.</p>
<p>I am using redux-toolkit, MSW, RTK query, and React Testing Libary and am currently busy writing an integration test that tests a simple login flow.</p>
<p>The problem I have is that I am testing two different scenarios in one... | 1 | 4,557 |
Toolbar Overlapping Layout | <p>My layout is being overlapped by the Toolbar. I have to include a 56dp padding to push it down below the toolbar, which makes it awkward to work with (and likely also means I can't use AlignParentTop). The fragment screen (activity_login.xml) is pretty much straight up stock Google-provided code. </p>
<p><a href="h... | 1 | 2,282 |
Use Bootstrap PHP Form wizard insert into sql | <p>I am trying to learn PHP and came across Bootstrap Form wizard and wanted to give it a try.</p>
<p>I have made a basic registration form which should basically INSERT the values from the form to the database.</p>
<p>With normal form i have successfully registered using form submit button. But with this wizard i do... | 1 | 11,246 |
What is the difference between using explicit fences and std::atomic? | <p>Assuming that aligned pointer loads and stores are naturally atomic on the target platform, what is the difference between this:</p>
<pre><code>// Case 1: Dumb pointer, manual fence
int* ptr;
// ...
std::atomic_thread_fence(std::memory_order_release);
ptr = new int(-4);
</code></pre>
<p>this:</p>
<pre><code>// Ca... | 1 | 1,039 |
WooCommerce how to edit address | <p>I am having difficulties in editing a new address type in WooCommerce. I added besides shipping and billing, another type of address, personal.</p>
<p>I want the user to change the data on his <strong>my account/edit my address</strong> page.</p>
<p>I can perfectly show the data for personal address, but when the ... | 1 | 1,900 |
Flutter WebRTC audio but no video | <p>So I'm building a video calling application using flutter, flutterWeb, and the WebRTC package. </p>
<p>I have a spring boot server sitting in the middle to pass the messages between the two clients. </p>
<p>Each side shows the local video, but neither shows the remote. Audio does work though. I got som nasty feedb... | 1 | 3,444 |
Cannot display servlet values in JSP | <p>Long story short, I cannot get my servlet variable to display in my JSP page. I have tried methods like</p>
<pre><code> <p><$= request.getAttribute("foo") %></p>
</code></pre>
<p>as well as</p>
<pre><code> <p>"${foo}"</p>
</code></pre>
<p>and importing the page at the top, with and... | 1 | 1,391 |
resizing the background color of a form | <p>if you try my code below you can see that the background color is light blue and it occupies the whole page of a site, I want to resize it how can you do that? I mean that the color will fit to the same size where the fill up boxes are,
do i need to add this code: width="60%"
can you please tell me where can I add... | 1 | 1,064 |
PostgreSQL - Creating temporary columns instead of multiple rows | <p>I'm working with PostgreSQL customer records.</p>
<p>My task is to export customer records.</p>
<p>I have another table aside from customers with contact information.</p>
<p>One contact item per line (phone, value or email, value, etc.).</p>
<p>When I join and relate the data, I pull multiple records per custome... | 1 | 1,377 |
PHP Warning: number_format() expects parameter 1 to be float | <p>Can you please someone help me with this code I got </p>
<blockquote>
<p>PHP Warning: number_format() expects parameter 1 to be float, string given in line 39</p>
</blockquote>
<p>I am copied the whole class I hope that will help you better to find the problem.</p>
<pre><code> class stats_site extends stats ... | 1 | 8,394 |
How can I use redux and graphql with apollo client in the same react app? | <p>I'm working on a project, and I'm using apollo/client, graphql in react, and for the global state management, I have to use redux. I'm quite sure I'll have to handle more data in my project so I'll put it in my store.
I'm wondering about how can I make redux actions to get data from graphql endpoint using apollo Cli... | 1 | 1,294 |
Axis returns error java.lang.NoClassDefFoundError | <p>I have an axis2-based web-service which calls another WebService to get some data. While trying to invoke another service somewhere inside axis2(I can not say exactly where because it's inside some axis2 class) error occurs and gets returned as response:</p>
<pre><code>java.lang.NoClassDefFoundError: org/apache/axi... | 1 | 1,942 |
Change custom post-type rewrite | <p>I have a custom theme that uses custom post types for my portfolio <em>e.g. mysite.com/portfolio/</em>. Once I click on a specific portfolio item the URL changes to <em>mysite.com/<strong>portfolio-type</strong>/name/</em> </p>
<p>What's the easiest way to change the <strong>portfolio-type URL</strong> in the middl... | 1 | 2,259 |
Running a PHP Script as a Daemon in Debian | <p>I am trying to start a php script as a daemon in Debian. I also would like it to start on boot as well. </p>
<p>I have been starting using <code>/path/to/php /path/to/script/Insert.php &</code> without issue, and can <code>shell_exec("nohup /path/to/php /path/to/script/Insert.php >/dev/null &")</code> as... | 1 | 1,683 |
MVC Error: model item of type 'System.Collections.Generic.IEnumerable`1 required | <p>I'm doing some modifications to a system, and I've run into an exception that I was hoping someone could help with?? The error I'm getting is the following:</p>
<blockquote>
<p>Exception Details:
System.InvalidOperationException: The
model item passed into the dictionary
is of type
'System.Collections.Gen... | 1 | 2,129 |
Bootstrap page not taking full width | <p>The width of the page isn't 100% even on desktop view, I'm using bootstrap to design the page it's hosted on www.kenyabuzz.com/mobile the html</p>
<pre><code> {% load markup thumbnail mptt_tags kb %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
... | 1 | 5,942 |
java sound playing in jsf page | <pre><code>URL url1 = new URL("http://localhost:8080/COEE/audio/underdog.wav");
AudioStream as = new AudioStream(url1.openStream());
// Create an AudioStream object from the input stream.
// AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.... | 1 | 3,556 |
Picture Tag Not Showing Image, Reads "Source 0x0" | <p>My client has stressed that the images in their website are blurry so I am trying to fix this issue. Per my research one way is to create different sized images per device (small, med, large) using the <code><picture></code> tag. However, when using the developer tools, my images does not show up at all, in sa... | 1 | 1,429 |
UnhandledPromiseRejectionWarning: Error: WHERE parameter "username" has invalid "undefined" value in postman | <p>Currently working on a backend in nodejs for a login page. I'm following this tutorial <a href="https://bezkoder.com/node-js-jwt-authentication-mysql/" rel="nofollow noreferrer">https://bezkoder.com/node-js-jwt-authentication-mysql/</a></p>
<p>When I try to go to http://localhost:8080/api/auth/signup in postman I ge... | 1 | 1,370 |
How do you define a variable for mysqli_connect? | <p>I am following an example on W3C for a simple database connection using PHP and MYSQL however it is coming up with two errors which I don't understand due to on W3C that is how they do it and theirs do not error. </p>
<p><strong>Error 1</strong></p>
<p>Notice: Undefined variable: mysqli_connect in C:\xampp\htdocs\... | 1 | 1,366 |
Injecting ViewModel using DaggerHilt fails to to compile | <p>I read the <a href="https://developer.android.com/training/dependency-injection/hilt-jetpack" rel="noreferrer">documentation</a> on using Dagger Hilt to inject ViewModels. I tried to implement in my application but the I consistently get an error during gradle build and the project does not compile. How can I fix th... | 1 | 2,692 |
Laravel - voyager BREAD | <p>I started my simple laravel project with posts. First I created my auth, than my posts and everything works fine. But I installed voyager admin panel(without dummy) in my project and I add BREAD to posts table, but when I try to Edit some of my posts it shows me an error: <code>Call to undefined method App\Post::get... | 1 | 2,902 |
Google Chrome Extension Login Functionality | <p>I am developing a Chrome Extension and I am trying to achieve this: </p>
<p>You click on a your chrome extension icon and you're presented with a simple Login page, you type in your credentials and I need to send them to a REST API that has a login method that will return an API key that I will need to store (when ... | 1 | 1,192 |
iTextSharp apply different margins to different pages | <p>(using itextsharp 5.4.3)</p>
<p>I have created an application in which the user can create custom xhtml headers and footers that surround the main content of the page. so the generated pdf looks like this:</p>
<pre><code>------------------------
| xhtml parsed Header |
------------------------
| ... | 1 | 4,953 |
How to decide default navigation in main.dart file and how to change it based on condition checking? | <p>I am trying to achieve user login session. I am willing to skip login screen and willing to navigate to the main screen. I have created two screens and implemented shared preferences to store user response. I am able to save and print it back. I am having an issue in if condition, where am trying to check a boolean ... | 1 | 1,187 |
How to cancel submit in IE8? | <p>I've been struggling to make this work for quite some time. I have the following code:</p>
<pre><code>$(document).ready(function (event) {
$('form').submit(function (event) {
...
});
});
</code></pre>
<p>I've found in most of the places, including on the jQuery site, that this will prevent the form fro... | 1 | 1,419 |
jQuery .load in a partial view (rendered inside a modal popup) doesn't work | <p>I have a main view that has a button "AddSkillBtn" which on clicked shows a modal popup with a partial view inside. Works fine so far. Now I need to do some ajax call while loading the partial view. However i cannot call the .on 'load' in a partial view. Any thoughts on how to achieve this? Below is the code that I ... | 1 | 1,242 |
Extracting data from an API using R | <p>I have access to some telemetry data in azure (specifically all the API calls for customers using a mobile app). I have used the httr package in R to request the data over a 3 minute period and assess the response like so (obviously have my own app ID and key which I have not included below): </p>
<pre><code>instal... | 1 | 1,529 |
(Android, Firebase) databasereference.push().setValue() not working even though log says otherwise | <p>I'm testing Firebase by building an app that simply puts a message in the Database (authorisations are set to true for the test), it worked only once, and now nothing is pushed to the database. But as you can see I put logs everywhere to see where the problem is and surprisingly the <code>onChildEventListener()</cod... | 1 | 1,859 |
How to fix android 4.4.2 error ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList | <pre><code>AndroidRuntime: FATAL EXCEPTION: main
Process: com.info.app, PID: 24503
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip f... | 1 | 4,193 |
iOS symmetric key encryption / decryption equivalent to Java | <p>I am trying to encrypt/decrypt data ios to java & java to ios but I data encrypted in java is not properly decrypted in ios & data encrypted in ios is not properly decrypted in java</p>
<pre><code>- (NSData *) encrypt:(NSData *) dataToEncrypt symmetricKey:(NSData *)symmetricKey context:(CCOperation)encryptO... | 1 | 1,234 |
C++ + SDL + OpenGL 3.3 doesn't work on Mac OS X? | <p>I'm starting developing OpenGL 3 (I'm used to 1, so it's quite a change), and I'm using SDL as my windowing/image/sound/event-framework. I have the following code(taken from opengl.org and slightly modified):</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
/* If using gl3.h */
/* Ensure we are usi... | 1 | 1,340 |
Socket.io using node.js with no express at all? | <p>So I want to create a node.js server using socket.io, but I am more of a beginner, and find the express package rather confusing syntactically. I know that I should learn how to use express and app.js, but plan to do that after I have reached the extent of capability that node.js with only the packages http, js, and... | 1 | 1,875 |
Amazon EC2 instance : Cannot create temp file for here document. No space left on device | <p>I have an EC2 instance, which keeps on running Out Of Memory killing my mongod process in turn. </p>
<p>Doing df -h gives</p>
<pre><code>udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 41M 355M 11% /run
/dev/xvda1 7.8G 7.4G 0 100% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs... | 1 | 1,388 |
Upgrade to Django 1.7 - AppRegistryNotReady exception | <p>I'm struggling by trying to make things work after upgrading the Django version from 1.6.7 to 1.7. It looks like I'm not able to focus on the right matter. I try to resume the situation so far.</p>
<p>Thing is: if I leave the command django.setup() in my wsgi.py file, when I try to access my website I get an intern... | 1 | 2,038 |
Geth websocket over nginx reverse proxy | <p>I try to connect to my private geth blockchain over a websocket using nginx as reverse proxy. This is my setup:</p>
<p><strong>Node setup:</strong></p>
<pre><code>docker run
-d
--net mynet
--ip ... | 1 | 1,770 |
AWS CloudFormation: Nested Sub with Dynamic References using {{resolve}} causes error and doesn't execute resolve to get value from Parameter Store | <p>I am trying to use AWS CloudFormation Template to create an EC2 Instance with some userdata generated using dynamic references and cross-stack reference in the template . There is a parameter stored in AWS Systems Manager Parameter Store with <code>Name:/MyCustomParameter</code> and <code>Value:Test1</code>.</p>
<p... | 1 | 1,448 |
Numpy installation dependency | <p>I am trying to update my machine and have ran into a problem. I followed instructions on this page: <a href="http://www.scipy.org/Installing_SciPy/Linux" rel="nofollow">http://www.scipy.org/Installing_SciPy/Linux</a> . It seems the newer Numpy/Scipy versions want an older version of Python. I am currently runnin... | 1 | 1,113 |
iOS 12 wrong navigation bar height | <p>I'm working on an iPad app in landscape orientation. There is a navigation bar at the top without a status bar, and I want to line up a <code>UITableView</code> such that the top of the table is at the same y coordinate as the bottom of the navigation bar. Naturally, I do the following in <code>viewDidLoad</code>:</... | 1 | 1,111 |
Splitting and Merging large files (size in GB) in Java | <p>Suppose, </p>
<ul>
<li><p>I am splitting <strong>2590400 KB</strong> (approx 2.5 GB) file in 30 parts. </p></li>
<li><p>It will produce 30 files with size of <strong>86347 KB</strong>.<BR>
Which seems correct, 2590400/30 = 86346.66666667</p></li>
<li><p>Now if I merge all the parts (30) again it is producing the fi... | 1 | 2,623 |
Uncheck all checkbboxes after form is submitted | <p>Hi I have a form that already clears other inputs but I'm having a hard time with the checkboxes. Could someone help me. This is my form inputs.</p>
<pre><code><input type="hidden" name="admissionassessmentfee" value="0">
<input type="hidden" name="admissionassessmentexam" value="0">
<input type="che... | 1 | 2,120 |
MSBuild SonarQube runner in command line | <p>I have a problem analyzing a project using MSBuild SonarQube runner. SonarQube database and server are up and running, i have tried to analyze an example project and it all went well. But when i try to analyze my project something goes wrong. The analysis completes with no errors but no analysis data is saved to dat... | 1 | 1,157 |
Using WSIT security on web service with self signed certificates (Glassfish) | <p>I used this guide to create certificates for Metro: <a href="http://www.jroller.com/gmazza/entry/using_openssl_to_create_certificates" rel="nofollow">http://www.jroller.com/gmazza/entry/using_openssl_to_create_certificates</a></p>
<p>So I now have servicestore.jks and clientstore.jks.</p>
<p>When I check the keyst... | 1 | 1,581 |
Firebase Phone Auth Recaptcha Verifier not being set to window/loading | <p>I'm trying to load a RecaptchaVerifier into my React class, so I can enable Phone Auth for my web app. However, when I submit my phone number, I get the following error:</p>
<p><code>"signInWithPhoneNumber failed: Second argument "applicationVerifier" must be an implementation of firebase.auth.ApplicationVerifier."... | 1 | 3,382 |
Dynamic dependent dropdown with jquery-select2 | <p>I am making 3 dynamic dependent dropdowns (selects) using <a href="http://www.codingcage.com/2015/04/dynamic-dependent-select-box-using-jquery-php.html" rel="nofollow">this</a> tutorial. I am also using <a href="https://github.com/select2/select2" rel="nofollow">jquery-select2</a> to enhance user experience. The fir... | 1 | 2,569 |
How to connect Java classes to GUI? | <p>I'm designing a database that can be accessed through a GUI, I have three classes Main, Database and GUI, When I run the main I get an error and the GUI closes followed by a brief error message which I cannot read, not sure where this is going wrong as i believe it can be a number of issues. Thanks for all your help... | 1 | 1,770 |
"no module named imutils" when it says imutils is installed? | <p>I want to run this code on my Raspberry Pi 3. I have used <code>pip install imutils</code> on the Pi but, when I run the code via the CLI, it returns "<em>No module named imutils</em>". I do not wish to use virtual environments. I have cv2 running correctly on the Pi and that works no problem, is there a fix for thi... | 1 | 2,772 |
docker + rails + redis - rescue workers are not running | <p>I've created a docker environment that creates 3 images: rails, postgresql and redis. It has been working quite well but I have found that my redis image does not seem to have any workers running.</p>
<h2>Docker Info</h2>
<p>My docker-compose.yml is as follows</p>
<pre><code>web:
build: .
command: bundle ex... | 1 | 1,238 |
Error Unknown type "DateTime" on Apollo Payload of gql | <p>I have a lot of problem, but this time my problem is GraphQL and its payload, my <code>schema.gql</code> and <code>resolvers.js</code> files looks like these:</p>
<pre><code> # schema.gql
scalar GraphQLDateTime
scalar GraphQLDate
scalar GraphQLTime
type Query {
magicQuery(
idMag... | 1 | 1,791 |
Node failure on windows 7 | <p>==============================</p>
<h1><strong>SOLVED:</strong> switched from node 4.0.0 to 0.12.7. Node v4.0.0 seems to be pretty raw yet</h1>
<p>I've read many articles, they didn't help me. Any workarounds?</p>
<p>I've installed Visual Studio Express 2013 on my Windows 7, and did <code>set GYP_MSVS_VERSION=201... | 1 | 3,045 |
javascript/jquery: how to make pagination in carousel (i.e. numbers | <p>How can I make pagination in my carousel, sometimes they're in dots, numbers, etc. I want them to link the their appropriate slide-item. So for example if I click number 3, then the 3rd slide-item should slide to the viewport and so on. No plugin please, as I'm learning how to write javascript.</p>
<p>JS:</p>
<pre... | 1 | 1,409 |
Dropbox Api Not Working Properly | <p>I am using php sdk provided by Dropbox Core API.
I have a minor bug... My file is being redirected all the time even I click on the allow button... Below is my index file:</p>
<p>index.php</p>
<pre><code><?php
session_start();
ini_set("display_errors",1);
require_once __DIR__.'/dropbox-sdk/Dropbox/strict.php';... | 1 | 5,313 |
Powershell commands not working in Build Events in Visual Studio | <p>When I run a file through the <strong>Build Events in Visual Studio</strong> I get the same error for EVERY in-built powershell command I try.</p>
<p><strong>The build events window in Visual Studio</strong></p>
<p><img src="https://i.stack.imgur.com/g2xqP.png" alt="enter image description here"></p>
<p><strong>T... | 1 | 1,518 |
How to send and receiving data from Xcode (objective c) to php | <p>I am trying to send a username and password from xcode to a php file that I have made. As I am new to both xcode and php and for the purposes of the simple application I am making, the username and password is a predefined "123456". I am having a lot of trouble sending the username and password to the php site, and ... | 1 | 5,095 |
Asp.Net Identity - IdentityDbContext<TUser> causing problems for fields added to AspNetRoles table | <h2>IdentityDbContext causing problems for properties/fields added to AspNetRoles</h2>
<p>I believe the problem is here with IdentityDbContext taking an IdentityUser type:</p>
<pre><code>public class MyIdentityDb : IdentityDbContext<ApplicationUser>
{
public IdentityDb()
: base("IdentityDb")
{
... | 1 | 1,409 |
python sockets, trying to make a log in interaction betwen server and client | <p>Hello so i have my server with a database (dictironay) and another passworddatabase</p>
<pre><code>import socket
import sys
from _thread import *
host = ""
port = 8000
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print("Socket Created")
try:
serversocket.bind((host, port))
except socket.erro... | 1 | 1,192 |
how to setMessage dialog with EditText Android | <p>I want to create dialog for looping dialog and view edittext into dialog.</p>
<ol>
<li>when activity start, dialog show to looping dialog no.1</li>
<li>dialog looping = no.1 input user</li>
<li>dialog looping to for show input dialog no.3 </li>
</ol>
<p>My error log :</p>
<pre><code>1-29 14:54:23.314: E/AndroidRu... | 1 | 1,683 |
Show X-Axis Gaps -- Highstocks | <p>I am having an issue with getting my data to show a lapse in data being sent on the X-axis. What should be seen as a gap in the line is just being merged into the same line, for example in this img the data goes from 4am to 9am due to internet being out yet there is no lapse in the line. <img src="https://i.stack.im... | 1 | 1,918 |
Hibernate does not create the table second time and hangs | <p>Hi I am new to Hibernate. I am trying out a sample program,when i execute the code second time hibernate does not create the table and hangs. And when i click on the database table, the database hangs .</p>
<p>I am using postgresql-9.3.3-1 version and hibernate-release-4.3.4.Final.</p>
<p>Following are my code sni... | 1 | 4,229 |
d3js - TypeError: string is undefined | <p>I don't understand this error:</p>
<blockquote>
<p>TypeError: string is undefined
function d3_time_parse(date, template, string, j) {
var c, p, i = 0, n = template.length, m = string.length;
...</p>
</blockquote>
<p>Here my code:</p>
<pre>
var margin = {top: 20, right: 80, bottom: 30, left: 50},
... | 1 | 1,686 |
How to show and hide rows in v-data-table Vue.js + Vuetify | <p>I'm new at Vue developer and I make a V-Data-Table consuming a JSON with vue-resource. That´s done already, but now I want to show/hide child rows based on user selection. </p>
<p>e.g.: click on '+' and the table shows the rows, click on '-'and the table hide the rows.</p>
<pre><code><template>
<v-app&g... | 1 | 1,393 |
Centering a table with text-align center | <p>I want to center a table, but although it's technically centered, the different length of the td's content makes the table have an empty space on the right. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css l... | 1 | 1,047 |
CSS multiple animation keyframes sequence and delay not working | <p>I created 2 keyframes. The 1st keyframe is applied to all elements with class <code>.drop-in</code>. And the 2nd keyframe is specific to an element with class <code>.look-at-me</code>, when the 1st keyframe animation has finished.</p>
<p>The problem is, even though I have added a delay on the 2nd keyframe for the c... | 1 | 2,165 |
Puppeteer Protocol error (Runtime.callFunctionOn): Target closed | <p>I am new to javascript and nodejs</p>
<p>I am trying to generate a PDF table using node.js using google puppeteer.</p>
<p>I followed a youtube tutorial and the code below is the same as used in the tutorial.
Note: I dont take credit for the below code.</p>
<p>I used a sample HTML template which I populate data f... | 1 | 1,334 |
How to read the JSON response content from a XMLHttpRequest? | <p><strong>Note: I'm using the <a href="https://github.com/cefsharp/CefSharp" rel="nofollow noreferrer">CefSharp</a> browser for this.</strong></p>
<h3>Goal</h3>
<p>I'm trying to read every JSON response from a XMLHttpRequest.</p>
<h3>What I've tried</h3>
<pre><code>public class RequestHandler : IRequestHandler
{
p... | 1 | 1,367 |
Applying the same function for multiple dataframes in R | <p>I am a new R user and I meet problems with my code. I have 16 different dataframes and I would like to apply the same function for each dataframe. Then, I want to put all the result in the new dataframe.
I wrote this code and it works well :</p>
<pre><code> df2012<-as.data.frame(cprop(wtd.table(database2012$y... | 1 | 1,391 |
Android - unexplained crash | <p>I am trying to show a bitmap image inside an image view using the following code:</p>
<pre><code>ImageView imageView = (ImageView) findViewById(R.id.item_picture);
byte[] decodedString = Base64.decode(temp, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length); ... | 1 | 3,467 |
pandas data types changed when reading from parquet file? | <p>I am brand new to pandas and the parquet file type. I have a python script that:</p>
<ol>
<li>reads in a hdfs parquet file</li>
<li>converts it to a pandas dataframe</li>
<li>loops through specific columns and changes some values</li>
<li>writes the dataframe back to a parquet file</li>
</ol>
<p>Then the parquet fil... | 1 | 2,312 |
Rewriting Matlab eig(A,B) (Generalized eigenvalues/eigenvectors) to C/C++ | <p>Do anyone have any idea how can I rewrite <code>eig(A,B)</code> from Matlab used to calculate generalized eigenvector/eigenvalues? I've been struggling with this problem lately. So far:</p>
<p>Matlab definition of <code>eig</code> function I need:</p>
<pre><code>[V,D] = eig(A,B) produces a diagonal matrix D of gen... | 1 | 5,540 |
Tensorflow/Keras/BERT MultiClass Text Classification Accuracy | <p>I'm attempting to fine-tune the HuggingFace TFBertModel to be able to classify some text to a single label. I have the model up and running, however the accuracy is extremely low from the start. My expectation is that the accuracy would be high given that it is using the BERT pre-trained weights as a starting point.... | 1 | 2,462 |
SignalR SSE handshake fails | <p>Hosting a ASP.Net Core 2.1 webapi and an Angular 6 webapp on "Windows Server 2008 R2" under the same domain name but different ports (:81 and :80 respectively); not contained within the same folder.</p>
<p>According to <a href="https://kevgriffin.com/signalr-transports-explained/" rel="noreferrer" title="SignalR Tr... | 1 | 1,435 |
Dynamic update of ng-include through controller and directive Angualar-js | <p>Left side of the page sometimes have just info, sometimes it has side menu. When there is side menu, the content of main section depends on the option clicked.</p>
<p>Since the same kind of layout is used in multiple places, I created nested directives for the link/info side menu. </p>
<p>I have problem with the l... | 1 | 1,670 |
Javascript - Array of objects group by year, month and date | <p>I'm trying to sort an array of object by date month and week</p>
<pre><code>myArray : [
{'name' : 'example1', 'date' : '2011-01-01'},
{'name' : 'example1', 'date' : '2011-01-02'},
{'name' : 'example1', 'date' : '2011-02-02'},
{'name' : 'example1', 'date' : '2011-02-15... | 1 | 1,468 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.