title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to use logger with Koin? | <p>Koin version: 2.1.5</p>
<p>Instructions are missing from documentation <a href="https://start.insert-koin.io/#/getting-started/starting-koin?id=starting-for-android" rel="nofollow noreferrer">here</a>.</p>
<p>This is what I have:</p>
<pre><code>class MyApp : Application() {
override fun onCreate() {
s... | 2 | 1,508 |
how can keep index after normalization on columns in pandas dataframe between different range | <p>I applied normalization on multiple columns in Pandas dataframe by using for-loop under the condition of below:</p>
<p>Normalization for A , B columns between : <strong>[-1 , +1]</strong></p>
<p>Normalization for C column between : <strong>[-40 , +150]</strong></p>
<p>and replace results in alternative data... | 2 | 1,577 |
How to clone a Box<CustomStruct> when I keep getting "no method named clone"? | <p>I want to clone <code>head</code> which is a <code>Box<Node<T>></code>:</p>
<pre class="lang-rust prettyprint-override"><code>let mut node = Some((*head).clone());
</code></pre>
<p>Here is the full code (<a href="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b6d137... | 2 | 1,304 |
How to write code results (that are within a void function) to a text file in C++ | <p>I am trying to create a program that loads a "grades.txt" file that contains 20 numbers and calculates the standard deviation and outputs the results both on the screen as well as in a separate text file titled "results.txt"</p>
<p>The programs works great and outputs the results I am looking for. the only thing is... | 2 | 1,093 |
Why doesn't this Web Api route work? | <p>I declared these routes and controllers:</p>
<pre><code>public class RouteConfig
{
public static readonly string MVC_ROUTING = "Default";
public static readonly string WEB_API_ROUTING = "Api";
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*p... | 2 | 1,044 |
React Mock Testing useNavigate | <p>I have looked at the following posts and am still running into an issue with following redirects with useNavigate in React.</p>
<p><a href="https://stackoverflow.com/questions/66284286/react-jest-mock-usenavigate">react jest mock useNavigate()</a></p>
<p><a href="https://github.com/remix-run/react-router/issues/7811... | 2 | 1,395 |
Postgresql Select view too slow with where clause | <p>The problem is different between view and table execution time.</p>
<p>Why there are so many differences between the two queries ?</p>
<p>The Query 2 query is getting faster with the "LIMIT" Clause but it is very slow now.(Like a Select * From ... limit 1000)</p>
<p>Note: the functions I use in the VIEW does not... | 2 | 1,515 |
WEBRTC remote video stops streaming after 2 seconds | <p>I am facing a very weird behavior with this WEBRTC peer to peer app. the app would stream audio form one peer to the other, but when it comes to stream video, it actually stream video but just for the first 2 seconds, then it would stop streaming video, but the audio continues to stream. Here is some of the code tha... | 2 | 2,935 |
Hooking with MS Detours crash when hook function is called C++ | <p>I wrote a simple program that does 3 things:<br></p>
<p>It calls MessageBoxA (MBA) with the text "NOT HOOKED"<br></p>
<p>Then it loads a dll file that I've created that hooks the MBA function and recalls MBA with the text "HOOKED".<br></p>
<p>After that, it calls MBA again with the same text ("NOT HOOKED").
Of co... | 2 | 1,379 |
Get XML Node Data | <p>I am new to XML and am trying to get some of the information from this XML document:
<a href="http://pastebin.com/S7eUNmL2" rel="nofollow">http://pastebin.com/S7eUNmL2</a></p>
<p>Using this code:</p>
<pre><code> Dim Document As New XmlDocument
Document.LoadXml(xml)
Dim DocumentElement As XmlElement = Do... | 2 | 2,476 |
Telerik radgridview merge/group | <p>I'm working on an small C# (WPF + SQLite) application where I'm implementing <code>RadGridView</code> from Telerik.
I want to merge all columns where is the same ID like in the table. Right now my data looks like this (this is my view).</p>
<pre><code>╔════╤═══════╤══════════╤══════╗
║ id │ ime │ surname │ year ║... | 2 | 1,035 |
Incorrect data redirects user to a blank page from a Servlet Login page | <p>In my project a user logs in by providing his/her <code>emailid</code> and <code>password</code>. If both match, one can successfully log-in. If not he will be redirected to <code>UserHome.jsp</code> page. Here is my code:</p>
<pre><code>import getset.Getset;
import java.io.IOException;
import java.io.PrintWriter;... | 2 | 1,855 |
Styling an element based on range slider thumb hover | <p>I am trying to create a hover effect for a range slider thumb as well as some text that is always positioned to be on top of it.</p>
<p>I have the following code and I am not sure what set of CSS selectors I should be using in order to create the correct hover. I have tried <code>+ ~</code> but neither seem to work,... | 2 | 1,915 |
Window Loaded event handler: "Ensure Event Failed" | <p>I'm trying to do the simple task of adding an event handler for the window loading. I'm using visual studio 2017. When I type <code>Loaded=""</code> and use IntelliSense to add a new event handler, I get the error message "Ensure Event Failed" and no other information. What is wrong?</p>
<p>XAML:</p>
<pre><code>&l... | 2 | 1,255 |
Cannot resolve symbol 'Value' in Android Studio 3.0 Canary 8 | <p>I'm new to android, currently facing a handful of errors. One of which is</p>
<p>Cannot resolve symbol 'Value'</p>
<p><a href="https://i.stack.imgur.com/2ZAB5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2ZAB5.png" alt="enter image description here"></a></p>
<p>'Value' is highlighted in red,... | 2 | 1,421 |
Select multiple items from listview | <p>In my Xaml view I have a button that displays a list of users in a list:</p>
<pre><code><Button Grid.Row="0" Content="Button" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0,-5,-1,0">
<Button.Flyout>
<Flyout>
... | 2 | 1,389 |
ClassNotFoundException on Spring JavaMailSenderImpl in JUnit test with Spring Boot | <p>I've only just started a new project with Spring Boot, which I'm trying to get to grips with. I'm using Spring Tool Suite which has created a Spring Boot project for me and loaded some dependencies which I know I'll need further down the line (specifically Spring Batch and Spring Data)</p>
<p>This is my pom.xml:</... | 2 | 1,213 |
IndexedDB main thread & WebWorker eventlisteners | <p>Hello I'm building an application in which I use indexeDB. Based on app config I' m able to choose if I should use indexeDB from WebWorker or from the main UI thread. A connection from the main UI thread is always being made regardless of the config. However based on the config the heavy lifting is being done from t... | 2 | 2,260 |
matlab error, attempt to reference field of non structure array | <p>All the references to this error I could find searching online were completely inapplicable to my situation, they were dealing with some kind of variables involving dots, like <code>a.b</code> (structures in other words), whereas I am strictly using arrays. Nothing involves a dot, nor does my code ask about it.</p>
... | 2 | 1,656 |
How to use openXML() for Complex XMLs in SQL Server 2005 | <p>I have the following complex XML</p>
<pre><code><Collection>
<VOUCHER>
<DATE TYPE="Date">20110401</DATE>
<NARRATION TYPE="String">MUNNA CONVENT ROAD</NARRATION>
<VOUCHERTYPENAME>RETAIL</VOUCHERTYPENAME>
<VOUCHERNUMBER>R-2-I2-9-6-27751<... | 2 | 1,494 |
SSO with signing and signature validation doesn't work | <p>I have succesfully configured <em>SSO</em> using <em>WSO2IS 4.6.0</em> and <em>spring saml</em> grails plugin, but when I enable signing and signature validation like this: <a href="https://i.stack.imgur.com/1Oopl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1Oopl.png" alt="enter image descript... | 2 | 2,314 |
How to create a single object JSON array in SQL? | <p>I am trying to convert a row of data into a JSON array containing a single object. One column contains XML, which outlines another single object that is converted to an array.</p>
<p>My query:</p>
<pre><code>WITH r AS (
SELECT TOP 1 * FROM Table1
ORDER BY RecordID ASC)
SELECT
NEWID() AS 'Report.ReportUUID',
Val... | 2 | 1,043 |
Rails 3.2 rake compilation issues | <p>Suddenly can't push to Heroku! the error message says:</p>
<blockquote>
<p>uninitialized constant Haml::Util::Sass</p>
</blockquote>
<p>(Same exact code and libraries that worked fine until 2 days ago!)</p>
<p>Compilation apparently failing on this line of application.rb:</p>
<pre><code>Bundler.require(*Rails.... | 2 | 3,515 |
Gmaps is not defined in production on Heroku Cedar | <p>I'm new to RoR so there are many concepts that I don't understand well yet. </p>
<p>As my first project on rails I coded a site base on the tutorial by Michael Hartl.
My site is done in rails 3.1.0 and it works fine in dev on my ubuntu station.
Within that site I have gmaps4rails which is loaded in gemfile that wa... | 2 | 2,700 |
focus next input field in functional component react native | <p>I've created a login page where it has 2 input fields (username, password). To generate those input fields i am using "Input" component from nativebase. Now i want to focus password field from username input field when user press next from keyboard. But i am having a hard time finding this solution, can an... | 2 | 1,722 |
OpenMP is leaving a lot of cores idle | <p>I'm trying to use OMP to parallelize some code, and on my regular workstation, I got it working with 4 cores (the max that I had).
All of my cores where at 100% during the processing, and it worked fast.
However, now I'm moved my code to a server to process larger amount of data, and I updated the number of cores to... | 2 | 2,053 |
Python Pyplot word occurrence frequency | <p>I have to plot the occurrence of each frequency of word in a txt file. So far I have the dictionary that contains each word and the frequency that it appears in the txt file. In order to plot, I have to convert that dictionary into a new dictionary (I'm assuming) that counts the number words at each frequency. For i... | 2 | 2,248 |
Flash mode selected but camera2 wont capture image with those flash modes | <p>I am working on an application that involves a manual camera in which it has its own flash button it rotates through from OFF to ON to AUTO. I am calling a switch statement with an onClickListener to do this.</p>
<pre><code> private void setFlash() {
switch (mFlashMode) {
case CONTROL_AE_MODE_OFF:
... | 2 | 3,099 |
unable to hook up opentelemetry collector with grafana tempo | <p>I am unable to get otel collector to work, I'm new to opentelemetry, so it feels I'm making a stupid error in congiration somewhere</p>
<p>this is my python sample script that is supposed to create a sample trace that should be exported, picked up by opentelemetry-collector and pushed into grafana tempo backend</p>
... | 2 | 3,403 |
Create Docker Image of .NET Core 3.1 app on Windows 10 Pro and pull it to Windows Server 2016 | <p>I have successfully created Docker images that contain .NET Core 3.1 projects and am running them in Windows Containers on my local Windows 10 Pro machine. I am using Windows Containers, not Linux.</p>
<p>I want to be able to pull them to a Windows 2016 Server machine (not a VM). I have Docker EE installed on the Wi... | 2 | 1,901 |
Blazor - Reload Grid component | <p>I created the razor page with add and display values in grid in same page. While adding the records, it is saving in database but after saving the records grid is not refreshed. I need to reload the grid component only since i need to display success message in same page.</p>
<p>Here is my code:</p>
<p>Grid.razor:</... | 2 | 3,733 |
Difference render html between IE and Chrome | <p>i have a problem with difference in render html between IE9 and Chrome.
I reviewed all urls of .js and .css and are fine. All files were downloaded from the official website.</p>
<p>This pic is from IE9
<img src="https://i.stack.imgur.com/a3lCb.jpg" alt="IE9"></p>
<p>This pic is from Chrome
<img src="https://i.sta... | 2 | 2,774 |
Populate SELECT with OPTGROUP and OPTION values using AJAX | <p>I have got a simple bit of PHP / Ajax / jQuery working so that the contents of a 2nd SELECT are changed when I choose a value in the first SELECT.</p>
<p><strong>HTML</strong></p>
<pre><code><select class='form-control' id='cat_parent' name='cat_parent'>
<option value=''>Select Parent</option>... | 2 | 3,224 |
Finding and Displaying Extension Properties in MS Graph | <p>This AAD powershell easily lists out the extension Properties for a user:</p>
<pre><code>PS C:\WINDOWS\system32> Get-AzureADUser -ObjectId 50413382@wingtiptoys.com |select -ExpandProperty ExtensionProperty
Key Value
--- ... | 2 | 1,339 |
Run a python script in Command Line and send argument to it | <p>I used following python script to create a custom topology in mininet using <strong>sudo Python My_topology.py</strong> :</p>
<pre><code>from mininet.topo import Topo
from mininet.node import Node
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.node import RemoteController
import os
import ... | 2 | 1,073 |
SQL - SHOW ALL DATES between two dates | <p>I have following data saved as dates in my <code>[OccuredAtUtc]</code> that look like this:</p>
<p>-- <em>Spoiler ALERT: "2017-04-26" and "2017-04-29" are missing.</em></p>
<blockquote>
<p>Original dates in <code>[OccuredAtUtc]</code>:</p>
</blockquote>
<pre><code>2017-04-24 12:16:58.5080000
2017-04-24 18:11:5... | 2 | 1,445 |
Hibernate 5: Mapping by annotation doesn't work and throws MappingException (unknown entity) | <p>I have already checked solutions for the problem, but it did not help. </p>
<p>I am practicing Spring+Hibernate. Previously I have mapped entities by .xml file. But now I tried to do it by annotations cause it looks more comfortable. But unfortunately, I got </p>
<pre><code>Unknown entity: milkiv.easyword.models.U... | 2 | 7,921 |
How to make a C++ class iterable from Python using SWIG? | <p>I have a C++ class <code>Collection</code> that manages a <code>std::vector<Element></code> (a private member of the class).</p>
<p>From C++ I can iterate through the vector using the <code>begin()</code> and <code>end()</code> iterators (which are just typedefs for the <code>vector</code>'s iterators) like:... | 2 | 1,084 |
Font extensions maven project does not work for JasperReports | <p>Don't mark duplicate with this question: <a href="https://stackoverflow.com/questions/28274197/font-extensions-does-not-work-for-jasperreports">Font extensions does not work for JasperReports</a>. It's a different case, I'm using a maven project apart.</p>
<p>I am trying to add Open Sans font to jasper report in my... | 2 | 1,066 |
Azure ad b2c authentication challenge loses session object | <p>I am using the github example active-directory-b2c-dotnet-webapp-and-webapi.</p>
<p>I configured my own b2c tenant and got the MVC sample to work successfully.</p>
<p>However, I need this to work with a WebForms app. I created a new Webforms app, checked that the references were pointing to the same versions of th... | 2 | 1,461 |
load large data from firestore to table view Swift | <p>firestore to store about more than 500 information and I want to display it to table view. Basically, I have successfully display all the data in my cell, but the problem is, it takes more than 1 minute to load all data. While the data loaded, I cannot scroll the table view, unless all data finish load. How to enabl... | 2 | 1,951 |
Slow query with distinct/group by on varchar column with Postgres | <p>I have a <code>company</code> table and an <code>industry</code> table, with a many-to-many relation table linking the two, named <code>company_industry</code>. The <code>company</code> table currently has approximately 750.000 rows.</p>
<p><img src="https://i.stack.imgur.com/vILDl.png" alt="Database schema"></p>
... | 2 | 1,882 |
Ajax POST FormData throw exception in Spring MVC | <p>Yesterday I had a similar problem where Ajax POST method returned 405 error which was caused by csrf token. Someone helped mi with this, but now I'm powerless what is happening. </p>
<p>I have an Ajax POST request:</p>
<pre><code>$(document).ready(function(){
var mic, recorder, soundFile;
setup();
})
fun... | 2 | 1,956 |
MVC 4 C# How to create a method that returns a list<object> | <p>I am using EF and seeding our DB with some product data. The data with which I'm seeding has a part which will be repeated about 100 times. Rather than copy and paste my code I would rather populate my list with a method but as I am a newbie, I cannot seem to make this work properly:</p>
<p>Here is the code in cont... | 2 | 2,286 |
Pentaho 6 Quartz DB error after switching to postgres | <p>I am moving our Pentaho 4 installation to new server and also updating it to pentaho 6 with postgresSQL databases instead of hypersql.</p>
<p>I have been following this guide: <a href="http://helicaltech.com/steps-migrate-oracle-pentaho/" rel="nofollow">http://helicaltech.com/steps-migrate-oracle-pentaho/</a>
even ... | 2 | 4,065 |
Making a conditional statement to send email alert | <p>I'm trying to make a conditional statement to stop an email alert when the fail.php is called. Right now I'm getting an email alert for both good and fail results.</p>
<p>I do not want to receive an email if the the result failed. Should I make two scripts or is there a way t make this work together?</p>
<p>Than... | 2 | 1,083 |
Remove "checked" from radio when a checkbox is unchecked | <p>I have a checkbox (<code>#FBmngCH</code>) that reveals a set of radio buttons (<code>name=adManage</code>) when clicked. When the checkbox is unclicked, the radio button that was previously selected still remains checked. I would like to have the checked status of the radio button removed once the checkbox is unche... | 2 | 1,350 |
want to remove libboost1.65 in ubuntu 18.04 | <p>the result of</p>
<p>sudo apt install libboost1.65-dev
==></p>
<pre><code>sudo apt install libboost1.65-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cmake-data libcurl4 librhash0... | 2 | 2,450 |
How to make tree structure of directory in tkinter | <p>I am making a script which will copy directory or files to other directory.I used list directory <code>os.listdir()</code> to list all the files of directory and made all files checkbutton but i want to use <code>Tree Structure</code> instead of <code>os.listdir()</code>.I did some research about it on google but di... | 2 | 1,973 |
react native navigator view does not render | <p>I am making an simple iOS app using react-native and having some problems with navigator I delcared two views but got nothing rendered but a blank page
The followed is my code:</p>
<pre><code>'use strict';
var Dimensions = require('Dimensions');
import React, {
Component,
StyleSheet,
MapView,
Text,
View,... | 2 | 1,879 |
pynestkernel ImportError: libmpi_cxx.so.20: cannot open shared object file: No such file or directory | <p>When installing NEST 2.18 with:</p>
<pre><code>cmake \
-Dwith-mpi=/usr/lib/x86_64-linux-gnu/openmpi \
-Dwith-python=3 \
-DPYTHON_EXECUTABLE=/home/robin/.pyenv/versions/3.8.6/bin/python \
-DPYTHON_LIBRARY=/home/robin/.pyenv/versions/3.8.6/lib/libpython3.8.so \
-DPYTHON_INCLUDE_DIR=/home/robin/.pyenv/version... | 2 | 3,128 |
mongoDB - how to remove a member from a replicaset, and then start a new one? | <p>I had a prototype where I created a replica set with 3 members. Now I want to remove 2 of the secondaries from the replicaset, and create new replicas on each of the secondaries. </p>
<p>From the primary, I did the following: </p>
<pre><code>rs.remove("mongohost2.domain.org:27017")
rs.remove("mongohost3.domain.or... | 2 | 1,104 |
Fatal Error Encountered During command execution in remote Mysql connection | <p>When I connect to my remote server from C# application getting an error like </p>
<pre><code>MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution.
</code></pre>
<p>My connection string is </p>
<pre><code>connectionString = "Server=xxx.xxx.xx.xx;" + "Database=testdb... | 2 | 1,305 |
I was having an Internal server error 500 on sending a SOAP request | <p>I am getting this error "POST :
<a href="http://www.thomas-bayer.com/axis2/services/BLZService?wsdl" rel="nofollow noreferrer">http://www.thomas-bayer.com/axis2/services/BLZService?wsdl</a>
500 (Internal Server Error)" on attempting to send a SOAP request using Java script and HTML5. I'm seeing this error in the co... | 2 | 1,534 |
Yii2 get data from many to many relation in gridview and apply filter | <p>i'm developing a web application with Yii2 framework, and i'm facing a problem right now. I want to display the data from a many-to-many relation in a gridview and be able to filter from those fields later on.</p>
<p>I've read the official documentation <strong><a href="http://www.yiiframework.com/doc-2.0/yii-db-ba... | 2 | 1,199 |
Conversion to Dalvik format failed with error Apache poi in Android | <p>I am getting below error when trying to run my Android project with Apache poi. Actually I am getting the error when I am adding a specific poi library(poi-ooxml-schemas-3.9-20121203.jar). If I remove this library the project compiles, but with this following stacktrace occurs.</p>
<pre><code>trouble writing output... | 2 | 1,045 |
Facebook Login not going back to App when migrated to Swift 3 | <p>I have created a sample app where User logs in using Facebook Login button.</p>
<p>Once logged in I display User's Name and Email on Login screen.
It was working with Swift 2.3.
Once I migrated to Swift 3, it stopped working.</p>
<ul>
<li>Step1: Login with Facebook Login Button </li>
<li>Step2: Allow permissions f... | 2 | 4,588 |
Adding protobuf-net to my WCF Rest service | <p>Is there any canonical straight way of enabling protobuf-net serialization on .NET 4 WCF? I tried to simplify code to the point where it can be easy to build on:</p>
<p>Here is my service code:</p>
<pre><code>[ServiceContract]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
[AspNetCompatibilit... | 2 | 1,229 |
Unity container, resolve to an abstract class level and not top Interface | <p>I have the following code defined in terms of hierarchy - </p>
<pre><code>public interface ISomeInterface
{
bool DoSomething();
}
public abstract class AbsActualWorker : ISomeInterface
{
public bool DoSomething()
{
Console.WriteLine("DoSomething");
th... | 2 | 1,111 |
Creating Stacked Column Chart with Arrays in VBA | <p>I am currently trying to created a stacked column chart in Excel, using arrays that I have pre-built. The arrays do not reference any ranges on a sheet, but rather represent calculations of that data. </p>
<p>The issue I am having is when creating the stacked column chart, the data is not vertically stacked on the ... | 2 | 1,075 |
AlertDialog setMessage cut off | <p>I'm currently looking over some app demos given from a book and this particular app which utilizes AlertDialog is acting very strange in that it overlaps the layout with the message and its only happening when it uses this particular layout. I've tried running the app on both an emulator and real device with the sam... | 2 | 2,375 |
multiple assertions in a single statement in cypress | <p>I am trying to assert visibility of the child elements in a parent element.</p>
<p>i am checking weather the divs inside c-cost-with label are visible.</p>
<p>Here is the HTML for it:</p>
<p><a href="https://i.stack.imgur.com/PEAkM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PEAkM.png" alt=... | 2 | 1,118 |
Django - How do I delete single database entries on button click? | <p>I'm trying to set up a user profile where you can enter skills. Entering the skills and save them in the databse already works. Now I want to give the user the opportunity to delete every single one of them with a button click. I tried posting the ID of each skill on button click in the URL and read it out in my vie... | 2 | 1,203 |
Azure AD graph api working on local but fails when deployed | <p>I tried graphapi code from <a href="https://github.com/Azure-Samples/active-directory-dotnet-graphapi-console/tree/master/GraphConsoleAppV3" rel="nofollow noreferrer">https://github.com/Azure-Samples/active-directory-dotnet-graphapi-console/tree/master/GraphConsoleAppV3</a>. It worked on my local system. On local ma... | 2 | 1,298 |
CMake finds boost but nmake fails to link | <p>I am having a issue where nmake is not linking the boost library cmake is providing. I am not exactly sure why it is doing this.</p>
<pre><code>
cmake_minimum_required(VERSION 2.8)
project(BoostLibTest)
set(Boost_USE_STATIC_LIBS TRUE)
set(Boost_MULTITHREADED TRUE)
set(Boost_DEBUG TRUE)
find_package(Boost COMPONENT... | 2 | 3,993 |
nginx / sails.js: incomplete file upload | <p>We are developing an app using sails.js.
In this app we have an upload controller:<br>
<a href="https://github.com/makinacorpus/mnhn_bai/blob/master/api/controllers/Object3DController.js" rel="nofollow">https://github.com/makinacorpus/mnhn_bai/blob/master/api/controllers/Object3DController.js</a></p>
<p>This contro... | 2 | 4,048 |
Put the Floating action button on Top always | <p>I have Mainactivity, one Fragment and BlogRecycleadapter to populate the Fragment with Blog post.</p>
<p>Inside Mainactivity, I have Floating action Button. But When I run the app It hides beneath the items of blogRecycleadapter.</p>
<p>How can I make Floating action button always on Top??</p>
<p><a href="https:/... | 2 | 4,438 |
Getters returning null values when called in another class file | <p>My 'driver' program will not return anything except null for the values I have put into the constructors. The other values work fine, but name, major, id, and studentType do not work, and only null is returned.</p>
<p>Here is the Student file:</p>
<pre><code>public class Student
{
private String name; //nam... | 2 | 1,845 |
Edit user profiles form without using django admin | <p>I am developing a simple LMS system where I have 3 stakeholders Administrator, Faculty Members and Students. Administrator can create, edit, delete, block and list user accounts, with my developement so far I am able to create and list all users.</p>
<p>Now I am stuck at editing user profile, my requirement is when... | 2 | 1,862 |
Visual Studio 2013.3 publish to azure website via web deploy validate connection fails with no error code | <p>In Visual Studio 2013.3 I have created a test .Net 4.5 C# MVC 5 project to run in an Azure Website. I created a new Azure a/c and logged into it in VS. When I try and publish the project (running VS as Administator) the Validate Connection fails with no error code. I have re-downloaded the Publish settings from Azu... | 2 | 1,179 |
How can I find the indices of the quantiles of an array? | <p>I have a numpy array <code>df</code> for which I calculate 10 quantiles using this:</p>
<p><code>np.quantile(df, np.arange(0.1, 1.1, 0.1))</code></p>
<p>which gives:</p>
<p><code>array([0.73518751, 0.73774966, 0.7415471 , 0.74462405, 0.74640229,
0.74952848, 0.7522163 , 0.75820953, 0.76289489, 0.76954299])<... | 2 | 1,064 |
how to exchange messages between two java applications via Spring JMS? | <p>I have two simple Spring applications acting as sender and receiver (code below). Although following <a href="http://spring.io/guides/gs/messaging-jms/" rel="nofollow">this guide</a> I can send and receive the messages within the same application I could not find how to make it work between two separate applications... | 2 | 1,048 |
iframe height to fit content | <p>I found about 5 methods in the internet by Google searching but none of them seems to work... I see people thanking and saying that it works and I'm just getting frustrated by the fact that it doesn't work for me and I have no idea why.</p>
<p>I have two files, <strong>test.html</strong> which contains the iframe a... | 2 | 1,271 |
fix height of column in stacked percentage column highcharts | <p>I have a stacked percent column chart in this example. <a href="http://jsfiddle.net/sqgq88rd/5/" rel="nofollow">http://jsfiddle.net/sqgq88rd/5/</a>. I don't want when I click on legend it the column always becomes 100% so I used stacking : 'stacked' and I want column "Total" always becomes 100%, column "part1" and c... | 2 | 1,954 |
not able to check the radio button selected value in controller | <p>I have got 4 radio buttons in view that i am binding these from model like this below</p>
<pre><code>@model MVC.Models.DeleteModel
@using (@Html.BeginForm("Submit", "Delete"))
{
<div class=".editor-field">
@Html.Label("Delete");
</div>
<div class =".editor-field">
@Html.Radio... | 2 | 1,186 |
Execution Time Slower with each Iteration of the same SPROC | <p>Running the <strong>same</strong> Stored Procedure from C# .Net application <strong>over a network</strong> gets progressively slower with each subsequent execution. It appears to take <strong>twice</strong> the amount of time as the previous execution (up to a max value; read on). The execution time becomes progres... | 2 | 1,296 |
C# screenshot bug? | <p>I use the following code to take a screenshot:</p>
<pre><code>var rc = SystemInformation.VirtualScreen;
Bitmap bmp = new Bitmap(rc.Width, rc.Height);
Graphics g = Graphics.FromImage(bmp);
g.CopyFromScreen(rc.Left, rc.Top, 0, 0, bmp.Size, CopyPixelOperation.SourceCopy);
</code></pre>
<p>Now this works wonderfully a... | 2 | 2,054 |
Golang and SPI - trying to init RF522 drive | <p>I have a simple Python code that does initalize <a href="https://www.nxp.com/docs/en/data-sheet/MFRC522.pdf" rel="nofollow noreferrer">MFRC522</a> device properly:</p>
<pre><code> import spidev
mode_reset = 0x0F
def spi_transfer(data):
r = spi.xfer2(data)
return r
def dev_write(add... | 2 | 1,055 |
i am having problems bootstrap popup or iframe pdf | <p><strong>As you can see in internet explorer bootstrap popup is not working fine.</strong></p>
<p>Check ie screenshot example, please.</p>
<p><strong>index.html:</strong></p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta ch... | 2 | 1,255 |
Encrypting Eureka Server Password | <p>Is there a way to encrypt the password. I tried below code but it doesn't work (not using spring-cloud-config).</p>
<pre><code>StandardPasswordEncoder encoder = new StandardPasswordEncoder("eurekaserverpassword");
String encryptedValue = encoder.encode("password");
</code></pre>
<p>The generated password is placed... | 2 | 2,008 |
MapFragment become not responsive after rotate | <p>My probleme is simple, I add 4 FrameLayout to my XML and add 4 MapFragment by code in those containers.</p>
<p>like this : </p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/map_container"
android:la... | 2 | 3,604 |
How can I get google play services working? It is just not working | <p>I have tried to integrate google play services into my app for several days now and I am completely frustrated. I could not integrate it to eclipse, so I decided to work with Android Studio from now on, so things there are new to me as well.
I cannot get the samples from google to work (some dependency errors I gue... | 2 | 1,126 |
NullPointerException at sessionFactory using spring | <p>I am facing this problem for several days now and tried - in my opinion - everything to find a solution to this. I am completely out of ideas...</p>
<p>Desciption of what the program should do: It should, after entering a username and password, connect to a database and check if the entered username/password is in ... | 2 | 4,308 |
QueryFailedError: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use | <p>I am modifying a TypeOrm entity, and I broke the code somehow, but it's very difficult to get what's wrong.</p>
<p>All I have as a error message is :</p>
<blockquote>
<p>[Nest] 31328 - 21/12/2021, 15:15:05 [TypeOrmModule] Unable to connect to the database. Retrying (1)... +269ms</p>
<p>QueryFailedError: You have... | 2 | 1,202 |
'locationManager(_:didRangeBeacons:inRegion:)' conflicts with optional requirement method 'locationManager(_:didRangeBeacons:inRegion:)' in protocol | <p>This is the full error message:</p>
<pre><code>Objective-C method 'locationManager:didRangeBeacons:inRegion:' provided by method 'locationManager(_:didRangeBeacons:inRegion:)' conflicts with optional requirement method 'locationManager(_:didRangeBeacons:inRegion:)' in protocol 'CLLocationManagerDelegate'
</code></p... | 2 | 1,821 |
Flex items not wrapping in column-direction flexbox | <p>I have an <code>outerWrapper</code>, <code>innerWrapper</code>, and children. <code>outerWrapper</code> has a height of <code>300px</code>, and is <code>display: flex</code>. <code>innerWrapper</code> is also <code>display: flex</code>, and is <code>flex-direction: column</code>.</p>
<p>When I add <code>align-items... | 2 | 1,706 |
Compressing HDF5 files with H5Py | <p>I'm passing thousands of .csv containing <code>time</code> and <code>amplitude</code> to a .hdf5 file. To give an example I used a small amount of .csv files which correspond to a total of ~11MB.</p>
<p>After passing all the .csv to hdf5, the latter has a size of ~36MB (without using <code>compression="gzip"</code>... | 2 | 1,173 |
Make ball stop moving when no key is being pressed? | <p>Here is my code:</p>
<pre><code>public class Main extends Applet implements Runnable, KeyListener,
java.awt.event.MouseListener {
int x_pos = 300;
int y_pos = 200;
int radius = 20;
int appletsize_x = 600;
int appletsize_y = 400;
double x_speed = 0;
double y_speed = 0;
private Image dbImage;
private Graphics db... | 2 | 2,221 |
Sending Accelerometer to C/C++ | <p>I got the following code inside my templateApp.java:</p>
<pre><code> package com.android.templateApp;
import android.app.Activity;
import android.os.Bundle;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.ha... | 2 | 1,203 |
Find a TextView from a View that has been Inflated | <p>In Xamarin, if I <code>Inflate</code> a <code>View</code>, how can I set the text of a <code>TextView</code> in the <code>View</code>?</p>
<p>I am wanting to code an application where I can call methods in different fragments to pass values between fragments and display these values.</p>
<p>Here is my <code>MainAc... | 2 | 1,064 |
Loading multiple FXML-files fails when controllers are defined | <p>I know this question is asked many times, but I can't find a solution, that works for me (actually I can't even see what I am doing wrong).</p>
<p>The basic idea is to load GUI-components when needed. So I structured the GUI in various FXML-Files and implemented controller-classes. Both - FXML-files and classes - a... | 2 | 3,155 |
Two-way binding between controller and directive with $watch in controller not working | <p>I've come across a quite a few similar questions and tried them all with no success. I'm not sure if I'm doing this the "Angular way" so I might need to change my approach. In short I'm initialising a scoped variable from within a controller, the variable is then shared with the directive's scope. However when this ... | 2 | 2,558 |
Crash on WatchKit Extension | <p>I made an application for the Apple Watch, which I have published. Today, I received a crash log from Apple. According to them, my app crashes when using voice input on the Apple Watch. Here is my crash log. Does anybody have advice? I cannot find the reason why my app would crash, since it works totally fine when t... | 2 | 2,759 |
How to link kernel32.lib and user32.lib using a combination of `nasm` and `alink`? | <p>How to link kernel32.lib and user32.lib using a combination of <code>nasm</code> and <code>alink</code>?</p>
<p>I'm following some tutorials on assembly programming and the guide wants me to execute the following commands: </p>
<pre><code>nasm -fobj hello.asm
alink -oPE hello \... | 2 | 1,465 |
SQLite "SQL Error or missing database" Objective-C | <p>I'm currently getting an error when trying to insert data into my database. </p>
<pre><code>#import "ReminderDB.h"
@implementation ReminderDB
@synthesize db = _db;
-(id)init{
_db = [self openDB];
[self createTable:@"Reminders" withField1:@"Title" withField2:@"Who" withField3:@"Quantity"];
return self... | 2 | 1,476 |
How to reduce ipa size Xamarin.ios | <p>I am trying to reduce my ipa size, but cant succeed. I tried with linking SDK assemblies only but when the app is archived it shows 189 MB of the app store and 75mb for ipa. I tried different options but it never worked. </p>
<p>Then I looked into my bin folder and I found out that Xamarin.swift4 is taking about 80... | 2 | 3,195 |
How to serve a mobile version of website to phones | <p>I have searched but don't find what I am looking for here on the forum. I have a standard HTML (not wordpress) website. It displays great on desktop and ipad. I built a mobile version that is very scaled down with just basic information using jquery mobile.<br>
The question is, how do I serve the mobile files to ... | 2 | 1,506 |
NullPointerException: Timertask Cancel and Object Disposing | <p>This is my first time here. Please, excuse my bad English.</p>
<p>I am writing here to ask a question about <code>TimerTask</code> and collateral effects of object disposing.</p>
<p>Here is a simple example. This example shows a <code>JFrame</code> with a big button which starts a <code>TimerTask</code>. This task... | 2 | 1,085 |
grpc asynchronous bi-directional server (Java/Python) | <p>Here is my scenario.
The grpc server is an asynchronous sever which subscribes data from other source.
Also it provides a subscribe function to its client, thus it could push the data to the grpc client once it receives data from other source. The server is implemented in Java.</p>
<pre><code>@Override
public Strea... | 2 | 1,056 |
React-Native Warning: Overwriting font Family style attribute preprocessor | <p>I'm getting the following warning:</p>
<p>"<em><strong>Overwriting font Family style attribute preprocessor</strong></em>" coming out from <code>StyleSheet.js</code> when running the app on iOS simulator. I haven't tested on Android yet though.</p>
<p>App.tsx</p>
<p><div class="snippet" data-lang="js" data... | 2 | 1,208 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.