title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Laravel backpack dropdown menu issue | <p>I have created a drop down menu with some links. It works correctly on desktop but on mobile there is a strange issue. When I expand the menu, it doesn't push down the other menu below it. However if I reload the page once it does! In other words when I open a page once it doesn't push it down and when I refresh it ... | 2 | 2,401 |
Set default values for jQuery UI Autocomplete with multi selection | <p>I am trying to use the jQuery UI Autocomplete multiselect to edit a category (one of 200 categories to be accurate).
The high number of possible categories is why I would like to use the autoselect feature of the jQuery UI. However, I could not figure out how to set the predefined categories.</p>
<p>Look at the Aut... | 2 | 5,778 |
Data of json request with strange characters in volley request | <p>I am making a Json request and I get the data and place it in a list view but some of the strings i get have accents or 'ç' and it doesn't appear correctly.
For example, the string is 'Bragança' and i receive 'Bragança' or 'à' and get 'Ã'. If i do the request in the browser, all works properly.
My request.</p>
<pr... | 2 | 1,161 |
How to loop objects inside of list in ListView.Builder | <p>I am doing looping over the list items in ListView.builder</p>
<pre><code>List _rBoxes = new List();//declare
</code></pre>
<p>the data i want to loop is seems like this:</p>
<pre><code>{
"box_content": {
"box_1": [
{
"id": "9",
... | 2 | 1,356 |
Parcel.readException for Android 6.0-7.1 | <p>Since December 12th, I've been having a ridiculous number of these errors. I don't believe I've changed anything significant, and I may attribute this to a potential update in AppCompat libraries. The following is one of the logs:</p>
<pre><code> java.lang.IllegalArgumentException:
at android.os.Parcel.readExcep... | 2 | 1,444 |
Create vista glass effect on wpf with custom color | <p>There are a lot of tutorials that show you how to use vista glass effect in wpf application like <a href="https://i.stack.imgur.com/HSNoE.png" rel="nofollow noreferrer">this one</a>. </p>
<p>I don't want to use the default color theme that the user selects. In other words if I apply the vista glass efect to my wpf ... | 2 | 1,199 |
ViewPager wrong page | <p>I'm making an app with horizontal pages using ViewPager class. Currently, having problems with displaying pages correctly. This code mostly comes from example, with few modifications. I'm not sure how the fragment "switch" should happen, but I got it semi-working at onCreateView. Now when I start app, I get welcome ... | 2 | 1,695 |
Cannot automount NFS share on Centos 7 | <p>I have a fresh install of Centos 7. I cannot seem to auto mount an NFS share located on <code>192.168.254.105:/srv/nfsshare</code> from the Centos client. </p>
<p>Mounting the share manually however, works perfectly.</p>
<p><strong>/etc/auto.master</strong> has been commented out completely to simplify the problem... | 2 | 1,705 |
SBT how to use classes from Build.sbt inside plugin Task execution | <p>Any classes defined in <code>project/*.scala</code> files are made available for use by SBT inside the build definition code.</p>
<p>I would like those classes to be available during the execution of an SBT plugin task, but they do not appear to be available.</p>
<p>Why is that, and how can I fix it?</p>
<p>The s... | 2 | 1,236 |
Flutter bottomSheet to change main app State | <p>My <code>main.dart</code> has become quite lengthy, so I'm splitting it up into various other <code>.dart</code> files for maintainability. </p>
<p>My main app uses a Google Map object and I place various red location markers on it. Now, I have various <code>FloatingActionButton()</code> along the bottom - each one... | 2 | 3,945 |
Issue launching Spring webapp on JBoss | <p>When i trying to deploy my project, this presents a problem with the bean, i have not been able to solve it, i attach the error and the class that generates it. I need help to solve this please.
I thank you in advance.</p>
<hr>
<p>APPLICATION FAILED TO START</p>
<hr>
<p>Description:</p>
<blockquote>
<p>Field ... | 2 | 1,934 |
JanusGraph fails to create and open graph using ConfiguredGraphFactory() and HBase as storage backend | <p>I am using JanusGraph to create multiple graphs and store in HBase. The intention is to have different sets of graphs for different projects. Eg. Project1 has [proj1_graph1... proj1_graphN] and project 2 has [proj2_graph1...proj2_graphM]. </p>
<p>Referring to the steps in (a) <a href="https://docs.janusgraph.org/la... | 2 | 8,463 |
Controller in DGS Netflix Graphql | <p>We are developing a project Using Spring boot with DGS Netflix graphql. We are created all the schemas and datafethers which is working absolutely fine with a default endpoint "/graphql". we would like to expose this app with custom endpoing so we are trying to add a controller with a custom endpoint as b... | 2 | 1,221 |
Creating a Tab Delimited Text File Manually in vba | <p>I am trying to create tab delimited text file using vba in Access. This file is essentially reading data from tables and has a few bits of strings of text at the start of the file. The purpose of this is to create a Shared Parameter text file that can be read in another software (Autodesk Revit)</p>
<p>The problem ... | 2 | 1,095 |
HttpUrlConnection redirection to other servlet is not happening | <p>I have the following code which will call the server through <code>HttpUrlConnection</code>.</p>
<pre><code>String response = HttpUtil.submitRequest(json.toJSONString(), "http://ipaddr:port/SessionMgr/validateSession?sessionId=_78998348uthjae3a&showLoginPage=true");
</code></pre>
<p>The above lines will call t... | 2 | 1,214 |
Encoder Debounce VHDL | <p>For practice, I attempted to make a VHDL code to run Rotary encoder hardware. It was full with debounce, quadrature decoder and an up/down counter codes. </p>
<p>Unfortunately, when running simulation with a testbench, my results were disappointing so I decided that each block needs to be analysed separately. For t... | 2 | 2,742 |
Showing a 2D array in a JTable in Java | <p>I have 2 classes, WordSearch.java is where all the main code is held and WordSearchSwing.java is where I wish to create a JTable to display the 2D array "letters". The JTable doesn't display any content (just 12 blank cells) when the following code is run. I cannot figure out why it will not work, any help would be... | 2 | 3,702 |
How do I Sign In using OWIN with SAML ticket returned from ADFS using ASP.NET MVC? | <p>I have a website that has it's own login screen, where the user types in their username and password. Upon hitting the login button, the user should be authenticated through ADFS, and I should get a SAML token back. This works. At this point though, I am unsure of what I need to do to login the user.The reason I am ... | 2 | 1,691 |
INFO mapreduce.Job: Task Id : attempt_*, Status : FAILED | <p>I am trying to implement mutual friends code. After successfully running mapper of this code after entering into reducer its throws errors and cannot produce desired output.</p>
<p><strong>I have driver class as follow:</strong></p>
<pre><code>public class MutualFriends {
public static void main(String args[]) thr... | 2 | 2,202 |
`undefined method `[]' for nil:NilClass` in Rails 4.0.1 and HAML | <p><strong>EDIT #2:</strong> I just downgraded back to Rails 4.0.0 from 4.0.1 and it solved the problem... if anyone knows what was causing it and how I can safely upgrade to 4.0.1, please let me know. Or maybe this is an issue with 4.0.1 or HAML that should be reported? I don't know where to report it to...</p>
<hr>
... | 2 | 9,553 |
C - Why is the dynamic array not initializing properly? | <p>I have made this sample program that represents exactly my problem.
I am trying to make a list of string, since the total amount of strings that will be stored in the list is unknown at compile time I'm using calloc/realloc
to allocate size on the heap at runtime.
The reason why I am using functions to initialize, m... | 2 | 3,268 |
Consul on Kubernetes: Consul pods are running but not ready | <p>I am creating a 3-node cluster inside an Ubuntu VM running on my Mac using <a href="https://kind.sigs.k8s.io/docs/user/quick-start/" rel="nofollow noreferrer">Kind</a>. They work as they should:</p>
<pre><code>NAME STATUS ROLES AGE VERSION
kind-control-plane Ready master 20h v1.17.0
... | 2 | 11,063 |
Mail Function - Fatal error: Function name must be a string | <p>Need some help here - I have a table which presents a User with data: the User has the option to update the table. If the table is updated I want to generate an email with that (updated) data enclosed. Clear so far?</p>
<p>When I run the code it does update the database but sends the following error -</p>
<pre><co... | 2 | 1,510 |
Calling spi_write periodically in a linux driver | <p>I am writing a driver for an LCD display. According to the application note, I need to write a dummy SPI write to the command periodically to maximize its contrast. To accomplish this, I set up a timer and attempt to write the contrast-maximizing 2-byte dummy command from the timer handler.</p>
<p>However, somethin... | 2 | 1,913 |
Nullable types to not nullable | <p>I've got the task convert variable of nullable type to not nullable if it's nullable and redefine default values for types, if it's required. I wrote generic static class for it, but, unfortunately, it works to slow. This class will be used in reading data from database to model, so performance is very important. He... | 2 | 1,385 |
flex and bison:C++ class | <p>When I embed a list* pointer into the bison parser, the compiler reports a error that 'list' does not name a type. Here is some necessary pieces; if you need, I can post all code. I am using the latest version of bison and flex. </p>
<pre><code>parser.l
%{
#include <stdlib.h>
#include <string.h>
#includ... | 2 | 1,252 |
Asp .net core httpsys exception - Access Denied | <p>I'am having trouble to find the right permission to give to a domain service account to be able to run my api (as a Windows Service).</p>
<p>I'm propbably missing something, so any help would appreciated :)</p>
<p>I registered the proper url with netsh.
I can run the service with my user account (which is admin li... | 2 | 1,136 |
Nested Control Accordion < Accordion < ListView ItemEditing Issue | <p>Got a question, and I'm quite baffled as to why it is not working. I have a ListView control nested within an AJAX Accordion, which is nested inside another AJAX Accordion.</p>
<p>i.e. Accordion1 < Accordion2 < ListView</p>
<p>All of these controls are databound in code-behind.</p>
<p>I've currently implemente... | 2 | 8,517 |
Can't validate phone number | <p>I'm trying to validate a phone number without success. When I submit the form for the following model, it always accepts the phone number I put in, whether it's valid or not. Why is this happening?</p>
<pre><code>class Client < ActiveRecord::Base
belongs_to :salon
belongs_to :address
accepts_nested_attribu... | 2 | 1,219 |
php get variables | <p>I'm new to php and need some help with "GET" variables.</p>
<p>Here an extraction of my Code for index.php:</p>
<pre><code>$array = array("section","view","sub","cat","point");
$i = 0;
$check = true;
foreach ($_GET as $position => $wert) {
if ($position != $array[$i]) {
//if GET doesnt exist in the array... | 2 | 1,302 |
Gridster.js removing a widget | <p>i'm using the Gridster.js in a web page and i'm trying to remove a widget with a button that appears on hover of the image.To do i use the function <code>gridster.remove_widget()</code> that i found in the documentation in the web site of the plugin here <a href="http://gridster.net/" rel="nofollow">http://gridster... | 2 | 1,659 |
Download a remote file and rename the file- & filetype on client-side | <p>I am working on a project where on the client-side it should start a download from a remote URL.</p>
<p>I currently got it to work with cURL, but the problem is that it downloads to the server, and not on the client's browser (asking where to save it).</p>
<p>The URL looks like this:</p>
<pre><code>http://r13---s... | 2 | 1,040 |
CommandButton Onclick inside tab always takes me to first tab Primefaces | <p>Below is my code. Here the CommandButton action is not working and always moving the first
tab.</p>
<pre><code><h:head>
<title>Alert Input</title>
</h:head>
<h:body>
<h1 style="margin: auto;text-align: center">Fraud Alert Admin Page</h1>
<p:separator style="h... | 2 | 3,217 |
How to fix this loss is NaN problem in PyTorch of this RNN with GRU? | <p>I'm completely new to PyTorch and tried out some models. I wanted to make an easy prediction rnn of stock market prices and found the following code:</p>
<p>I load the data set with pandas then split it into training and test data and load it into a pytorch DataLoader for later usage in training process. The model i... | 2 | 1,525 |
Making my checkout cart a floating menu that appears when scrolling? | <p>How can I make my already existing checkout cart float/follow as i scroll (having the table minimized to save screen space and maximize when clicked if possible would be amazing)</p>
<p>Also, if you could help me with making it magically appear at a certain point in the page, that would definitely be appreciated.</... | 2 | 1,080 |
why is dropdown not working in ejs file in node Project? | <p>I have included both javascript and bootstrap in my .ejs file in a nodejs project. The bootstrap css works on buttons(example btn btn-primary works) but the dropdown is not working.<br>
//my index.ejs file </p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Home automation syst... | 2 | 1,106 |
Decoding Barcode using Zxing library works on 1 tablet but does not work on another tablet | <p>I have written a windows store app in XAML & C# to read image from tablet's webcam and decode the barcode using Zxing's lbrary. The code is working fine on a given tablet having an i5 processor while it fails to run on an actual tablet with 2MP camera and "Intel Baytrail Quad-Core" processor.</p>
<p>Any ideas o... | 2 | 1,356 |
Can't get List of followers in Twitter using Fabric | <p>I am using <a href="https://docs.fabric.io/android/twitter/twitter.html" rel="nofollow">Fabric sdk for Twitter</a>. In this I am able to make login request as it's described in its document. Now I wan't to get list of follower of logged in user and show in <code>RecycleView</code> with follower name and profile imag... | 2 | 1,887 |
C# Serialization Remove attribute name from result | <p>I'm not able to remove the name of the Attribute <strong>Values</strong> in <strong>clsProduct</strong> from my xml. I tried using <code>[XmlElement(ElementName = "Values", Type = typeof(clsValues)]</code> for my <code>List<clsValues></code> but it didn't give me the result I need.</p>
<p>You can see the resu... | 2 | 1,591 |
System.Text.Json Deserialize Error System.MemoryExtensions Cannot Load System.Runtime.CompilerServices.Unsafe | <p>Similar to <a href="https://stackoverflow.com/questions/68398579/conflict-of-version-between-system-text-json-and-system-runtime-compilerservices">another question</a>, but with different symptoms and I didn't want to ask a question within a question.</p>
<p>Using VS2017 with all projects targeting .NET Framework 4.... | 2 | 1,654 |
CalendarFX in combination with JavaFX: Module javafx.controls not found | <p>I am trying to use <a href="https://github.com/dlsc-software-consulting-gmbh/CalendarFX" rel="nofollow noreferrer">CalendarFX</a> as a gradle dependency in my JavaFX project with the <a href="https://github.com/openjfx/javafx-gradle-plugin" rel="nofollow noreferrer">gradle javafx plugin</a>, but I get the error that... | 2 | 1,569 |
Simple Android Design Flow Inquiry for Login Activity and Main Activity | <p>I am wondering about a design question about android. I often have two activities to separate my login and my main activity (side note: main activity is usually a navigation drawer). I flow is usually like this:</p>
<p>I was thinking of changing this to:</p>
<p>What do people think?
My issues:</p>
<ol>
<li>Which ... | 2 | 1,250 |
Base64 String Image not properly showing up | <p>I'm trying to display an image from a base64 string but it keeps showing up like this:</p>
<p><a href="https://i.stack.imgur.com/2cAqD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2cAqD.png" alt="img"></a></p>
<p>I've tried printing the img and I get something like this: <code>data:image/jpeg... | 2 | 1,931 |
VB.Net process exits as soon as I attempt to read standard output or error | <h2>Initial Problem</h2>
<p>I apologize if this issue has been raised and addressed elsewhere; I searched this site, and Google at large without any luck.</p>
<p>I'm trying to write a simple VB.Net Windows Forms Application to allow a user to run the Windows File Compare program (fc.exe) with a very simple GUI ("brow... | 2 | 1,442 |
Sequelize many-to-many association - Method not found | <p>I have two n:m sequelize models as shown below</p>
<pre><code>// Organization Model
module.exports = {
attributes: {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
name: {
type: Sequelize.STRING,
requi... | 2 | 1,037 |
jquery.fullPage.js how to enable hide your header on scroll | <p>My question involves fullpage.js responding to (window).scroll events.
I need hide the header on scroll down and show on scroll up. The header cannot worked well once I apply jquery.fullPage.min.js. </p>
<blockquote>
<p>Coding for Hide header on scroll down, show on scroll up</p>
</blockquote>
<pre><code><scr... | 2 | 1,097 |
No row can be added to a DataGridView control that does not have columns. Columns must be added first.' | <p>So, I'm creating a program to check names of a client. But I get this error.
"No row can be added to a DataGridView control that does not have columns. Columns must be added first.'"
I'm unsure of what to do at this point, as it's all coded correctly. and I just, I don't understand why it's not working. A friend of ... | 2 | 2,481 |
Javascript small game | <p>Right now I am learning some Javascript but got many problems right now since my skills are low. I need some help with several problems in this code.</p>
<p>I am trying to write a game called "hit the fish". It has a timer, score and onclick.
Onlclick the fish should disappear and 1 point will be added in the score... | 2 | 6,323 |
Bootstrap card whose image image is top/left, depending on column breakpoint? | <p>Most Bootstrap 4 <code>card</code>s with images have either a <code>.card-img-top</code> or an image that goes somewhere else, like left, using additional/custom code.</p>
<p>Is there such thing as code for a single card whose image may be either at top of body or at left of body, depending on width?</p>
<p>See be... | 2 | 7,134 |
Jquery filter is hiding the div that is inside div | <p>I have 2 filters for filering some divs. but when a filter button is pressend the div content is hidden. For a better example i have build a JSFiddle</p>
<p><a href="http://jsfiddle.net/8vwbpLtv/17/" rel="nofollow">JSFiddle</a></p>
<p>Html is :</p>
<pre><code><!-- Rating Filter Menu -->
<h4><a hre... | 2 | 1,776 |
Handling 401 status w/ RxSwift & URLSession | <p>I currently have a network client that looks like the below:</p>
<pre><code>class Client<R: ResourceType> {
let engine: ClientEngineType
var session: URLSession
init(engine: ClientEngineType = ClientEngine()) {
self.engine = engine
self.session = URLSession.shared
}
func... | 2 | 1,219 |
Does fullscreen event trigger resize in as3? | <p>I'm trying to set up a fullscreen toggle and implement elements of fluidity however am uncertain if I have to include a dispatch event in the toggle for screen resize or will this be something that will be detected by the previous eventListener when the fullscreen toggle is activated?</p>
<p>Furthermore having look... | 2 | 1,164 |
Redirecting http traffic to https in Apache without using mod_rewrite | <p>I am trying a pretty simple thing that I would normally do using a RewriteRule (and which works perfectly when I do).</p>
<p><strong>My goal:</strong>
Force certain (not all) URLs to use the <code>https</code> protocol.</p>
<p><strong>Caveats:</strong></p>
<ul>
<li>Apache is behind a crypto-offloader. We would li... | 2 | 1,530 |
Clear: both overrides margin: 0 auto? | <p>I'm having a positioning problem I need to deal with. In the container div I have two divs, which both should be horizontally centered under each other. However, I'm having problems with the positioning of the second div.</p>
<p>If I add clear:both div 2 gets on a new line, which is desired. However, if using clear... | 2 | 1,596 |
How to customize the Data of FullCalenderBundle [Symfony4] | <p>I have added a select form above the calendar to select an user and show his events(entity booking for example)on the Fullcalendar</p>
<p>so my question is, how the data of FullCalenderBundle change by the user selected in the form?</p>
<p>this is some of files,</p>
<p>FullCalenderListener.php</p>
<pre><code><... | 2 | 2,919 |
React - Add Active class to list item react-router | <p>Im learning now the <strong>ReactJS</strong> and I read a lot of topics about this article, but I can't find a right solution for my problem. </p>
<p>I want to add a <code>active</code> class to <code>li</code> item not <code>a</code>, like</p>
<pre><code><li class="active"><a href="">Item</a><... | 2 | 1,099 |
ng-table header not showing in IE 9 | <p>I use angularjs and the ng-table directive (<a href="http://bazalt-cms.com/ng-table/" rel="nofollow noreferrer">http://bazalt-cms.com/ng-table/</a>) to build a web application. While the table control implemented in the ng-table directive works fine in Chrome and Firefox, the table header is not showing up in Intern... | 2 | 1,263 |
Scanning card with card.io | <p>I have a project in which you want to scan the card. For this task I use the library <a href="https://github.com/card-io/card.io-Android-SDK" rel="nofollow noreferrer">card.io</a>. Recently I updated library to the latest version (5.4.0) And now, instead of scanning the card are changed to enter it manually. What di... | 2 | 1,590 |
Android - update folder display after capture image | <p>I'm new to android. Now, i'm doing image capturing function using:</p>
<pre><code>Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
</code></pre>
<p>The problem is after I capture my photo, the new captured photo does not display on the image display page.</p>
<p>Does anyone here know... | 2 | 1,104 |
How to use OpenCV Videocapture With Saved Keras Model? | <p>I made a simple cat vs dog detector using Keras and Tensorflow. Then I saved the model in .h5 format and the training in checkpoints. Now, I want to load the training and saved model and run it live with OpenCV Videocapture using a camera. How can I do this?</p>
<p>Here is the code I used for training:</p>
<pre><cod... | 2 | 1,813 |
How to lay a QQuickWidget (with transparency) on top of a QWidget | <p>I'm trying to use a <strong>QQuickWidget</strong> as an overlay over a <strong>QWidget</strong>. The <strong>QQuickWidget</strong> contains some buttons and a couple other widgets laid out along the bottom.</p>
<p>I've found that I can get the <strong>QQuickWidget</strong> to properly overlay the <strong>QWidget</... | 2 | 2,028 |
Java Web Start security warning despite using all-permissions and privileged action | <p>I have set up JMS connections between my JBoss (4.2.2.GA) server and our J2SE client. The client runs via Java Web Start, and in the JNLP, I have the following:</p>
<pre><code><jnlp version="1.5+" codebase="$$codebase" href="start.jnlp">
<!-- Information -->
<security>
<all-perm... | 2 | 2,082 |
Chrome, Opera, Mozilla Content decoding failed | <p>I have a function in php, which lists followers of a user in twitter. When I use chrome to navigate to the page which holds the function, It works, sometimes it doesn't. </p>
<p>Chrome works 3 out of 5 times before it gives "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error"</p>
<p>Mozilla works 4 out of... | 2 | 1,187 |
Is it possible to run Sonar on 64-bit system, CentOS? | <p>I just installed Sonar 3.2 on CentOS (uname -a = Linux mydomain.com 3.2.20-1.29.6.amzn1.x86_64). I'm using a 64-bit version version of Java … </p>
<pre><code>$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (amazon-52.1.11.3.45.amzn1-x86_64)
</code></pre>
<p>I want to insta... | 2 | 2,018 |
Problem with multiple input file in *ngFor loop | <p>I'm having trouble targeting the correct input when it's in a *ngFor loop. When I add an image with the first input (Certificat dimmatriculation), I show a placeholder image and a delete button to reset the input (which works) but it shows under both div.</p>
<p>I want to target only the input where I added the act... | 2 | 1,106 |
Nonrecursive quicksort with stack | <p>i am trying to implement quicksort with stack here is code</p>
<pre><code>#include <iostream>
#include <cstdlib>
using namespace std;
template<class Item>
class STACK{
private:
Item *a;int n;
public:
STACK(int maxN){
a=new Item[maxN];n=0;
}
int empty()const {
retu... | 2 | 1,904 |
React Native app getting stuck on white screen | <p>I have a react native app that's running on React Native 0.51.0, Xcode 9.2, exclusively on iOS 11.X (mostly 11.2.5/6) iPad Pros.</p>
<p>After upgrading from 0.38.X to 0.49.X, I started noticing a white screen on loading, like the app wasn't starting to load the React Native bundle. I have since upgraded React Nati... | 2 | 1,151 |
Why does Spark fail with "No File System for scheme: local"? | <p>I am trying to submit Spark job onto the Spark Cluster which is setup on AWS EKS as</p>
<pre><code>NAME READY STATUS RESTARTS AGE
spark-master-5f98d5-5kdfd 1/1 Running 0 22h
spark-worker-878598b54-jmdcv 1/1 Running 2 ... | 2 | 2,997 |
Multiple Reports with ReportViewer and SSRS 2008 in Silverlight | <p>There is a lot of information out there about using the ReportViewer control in Silverlight to display multiple reports but I can't get any of them to work for me in my situation because the way I have everything set up is a little different. We had to be able to send post data to the page the ReportViewer is on so... | 2 | 1,605 |
How to store data obtained with retrofit into database | <p>I have an android app and I'm getting data from web api with retrofit. </p>
<p>Now I need to save this data into my table. I'm using active android. </p>
<p>My table model "Partners", the data which I'm retrieving from web api and needs to be saved into this table Partners.</p>
<pre><code>@Table(name = "Partners"... | 2 | 1,798 |
Using memoizing selectors with Hooks in React Native | <p>One of the components in my react native app is re-rendering several times causing problems with my derived data.
I'm using <strong>Redux</strong> to store my state and <strong>useSelector</strong> hook to retrieve the state and use it during rendering. I've read quite a bit about the use of Reselect library to avoi... | 2 | 1,753 |
background-color not working in Chrome mobile browser | <p>Guys I have this pen which works fine in desktop, but when I load the page in mobile the background-color:rgb(255,255,255,0.8) of with class='content' is not working.
I use chrome 63 mobile version.
Here is the pen: <a href="https://codepen.io/abhiramsanthosh/pen/yEKNOx" rel="nofollow noreferrer">https://codepen.io/... | 2 | 1,896 |
Graphviz: Changing node spacing within a subgraph cluster | <p>Experienced but no expert in Graphviz.</p>
<p>The example code and image that I am sharing is part of a larger graph, I pulled this out to make the question and example clearer.</p>
<p>The graph is rank separated and is flowing from left to right. In the image example you see three of the ranks and nodes space nicel... | 2 | 1,848 |
Master and Detail must be set before adding MasterDetailPage to a container error in Xamarin forms | <p>I have a xamarin forms application. The layout is created by using custom rootpage.cs file. it has the navigation menu for navigating the pages. In the App.cs file redirect to root page by </p>
<p><code>MainPage = new RootPage();</code></p>
<p>Inside the rootPage class file</p>
<pre><code>Dictionary<MenuType, ... | 2 | 1,275 |
Changing the pattern-matching call depending on value of radio button in Dash | <p>I am creating a Dash app that allows the user to either enter URLS to be screenshot and then analyzed or the user can upload their own images. I am trying to get the main app.py file right so the inputs can be sent to one of three different functions (one that only takes screenshots of the websites they listed, one ... | 2 | 1,931 |
WPF Navigate from frame in window to Usercontrol and pass parameters to it | <p>I have a modern window in WPF/C# application, in which I added a modern frame:</p>
<pre><code><mui:ModernWindow x:Class="MyApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mui="http://firstfloorsoftware.com/... | 2 | 1,736 |
Angular 7 and Data sources a field is not iterable inside a loop but can be found if the whole array is consoled | <p>I have the following method which return a number, and if this number is bigger than 0, it will forbid a specific action:</p>
<pre><code>checkAdded(name, forType, type) {
name = this.pipe.transform(name);
let count = 0;
if (type == "situation") {
Object.keys(this.dataSource3).forEach((key, index) => {
... | 2 | 1,679 |
Unable to resolve dependency for generic repository using autofac | <p>I am working with .net core API and resolving my dependency using autofac. However somehow I am not able to resolve dependency for my Generic Repository. </p>
<p>Can someone guide what I have done wrong. </p>
<p><strong>startup.cs</strong></p>
<pre><code>var builder = new ContainerBuilder();
builder.RegisterType... | 2 | 3,600 |
Composer install cannot resolve dependencies for ZF2 project anymore | <p>Since Zend has been constantly publishing ZF3 versions of its core packages, I have problems getting my old ZF2 application to work.</p>
<p>If I run <code>composer install</code> with a valid composer.lock in place I get the follwing warnings with most ZF dependencies:</p>
<pre><code>- Installing zendframework/zen... | 2 | 2,057 |
C#: WebService won't work in external .NET-DLL | <p><strong>EDIT: I cleaned a little up to make more clear, what's my problem. Sorry, it's less than it may look like. The whole xml is blowing up this post pretty much</strong></p>
<p>I have a web service running on a remote server - a Linux device where some hardware is attached. This hardware, usually controlled by ... | 2 | 2,065 |
How to make CSS drop down menu appear/change on click | <p>I have a web page, 1000px by 1000px for the main div. Inside the main div, at the top, there is a horizontal bar with four sections, each taking up 1/4 of the space. Each section has some text [wrapped in h2 tag], horizontally/vertically centered in the middle of the 1/4 section and each section must generate a drop... | 2 | 1,062 |
Paging for Gridview doesn't work correct | <p>I have a search page. In list the search results are displayed.</p>
<p>When I select another page from page numbers, the search result is disappeared and show the list like the page is refreshed. What should I do? I tried OnSelectedIndexChanged and OnSelectedIndexChanging. And didn't work. Thank you.</p>
<pre><c... | 2 | 3,349 |
Secure signin with unique token | <p>My user authorization process looks like that.</p>
<p>During signin process function fires following code.</p>
<pre><code> $token = sha1(microtime(true) . mt_rand(10000, 90000));
setcookie('auth', $token, $timeout);
</code></pre>
<p>Then adds generated <code>token</code> into database table right after user id colu... | 2 | 1,680 |
ASP.Net 3.5 password recovery SMTP settings | <p>Within ASP.Net - I'm using the built in password recovery wizard.</p>
<p>Is there any way of adding SMTP authentication to the Mail Authentication wizard - without having to add it to the web.config? Or can it be injected somewhere in the code-behind?</p>
<p>My aspx code is below - there is currently no code-behi... | 2 | 1,797 |
using java script to select Google chart data to change the data's series | <p>I've spent a good amount of time looking to see how I can use java script to modify the series of specific data that is fed into my Google charts line chart, the data i'm trying to modify is fetched from a MySQL table via PHP, then turned into Json to feed it into the java script for the chart.</p>
<p>the data is a... | 2 | 1,310 |
AttributeError: 'module' object has no attribute '_fix_up_module' | <p>I maked <code>py</code> script executable by <code>cx_freeze</code>. But while running, it has failed.</p>
<pre><code>Traceback (most recent call last):
File "C:\Python\32-bit\3.4\lib\site-packages\cx_Freeze|initscripts\Console.py", line 27, in <module>
exec(code, m.__dict__)
File "yukle.py", ... | 2 | 1,273 |
The new child element contains the parent JS error | <p>I encountered a little problem. I have:</p>
<p><code>html</code>:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="chart.css">
<script type="text/javascript" src="chart.js"></script>
<title>Chart<... | 2 | 2,120 |
NetBeans Glassfish hangs at "In-place deployment at..." | <p>I've been working quiet some time on this project without any issues.
Recently, i tried to start the application but nothing happened.</p>
<p>Litteraly, nothing happened.</p>
<p>NetBeans starts the glassfish server, and starts deploying the application. But that's it. It just hangs there, deploying the project unt... | 2 | 7,989 |
POST request through AJAX results in error 404 in Firefox only | <p>In my Flask-app I try to implement POST request through AJAX call when user clicks on the link.
It works like a charm in Chromium. I have no problems when requesting my view function through <code>httpie</code> either:</p>
<pre><code>$ http --json POST http://127.0.0.1:5000/ctrl/remove-category id=1 csrf=1
(venv) ... | 2 | 2,318 |
Hive Runtime Error while processing row in Hive [ClassCastException] | <p>trying to run hive query, getting hive exception. pasted the query below. I think this problem due to dirty data(column of dim_id) or formatted of data, I am new to Hive and I don't how to deal this!
I need your help!</p>
<p>this is fdm.fdm_szad_t_exp_dim_day schema:</p>
<pre><code>CREATE EXTERNAL TABLE `fdm.fdm_... | 2 | 3,348 |
appwidget not updating itself | <p>I am working on android appwidget , There are issues updating appwidget periodically . Changed updating period to more than 30 minutes . Still not updating the widget </p>
<pre><code>public class MyWidgetProvider extends AppWidgetProvider {
final static String ITEM_CLICK_ACTION = "ItemClick";
public static final ... | 2 | 1,494 |
Make the width of an asp listbox the same the tablecell's | <p>I have a table with 2 rows and 4 cells. The 1st and second cells are 30% width of table and the 3rd and forth sit top of each other again 30% width making total of 90%.</p>
<p>Iv tried putting listbox cells into panels and setting their width to 30%, putting cell width to 30% and a few other things but width still... | 2 | 1,065 |
How use CASE syntac in Stored Procedure on Netezza | <p>i just a newbie in netezza (Running version netezza Release 7.1.0.1-P1 [Build 37788]), i have created query to load data from another database, this is my query :</p>
<pre><code>CASE INSTR(B.WIFI.WIFI_DETAIL.LOCATION, ';') WHEN 0 THEN B.WIFI.WIFI_DETAIL.LOCATION ELSE BTRIM(SUBSTR(B.WIFI.WIFI_DETAIL.LOCATION, 1, INS... | 2 | 1,132 |
materializecss and angular app | <p>I'm trying to build an app in <code>angularJS</code> and <code>materializeCSS</code>. The page loads, but I have a button that should open a pop-up form and although I tried several times, I can't figure out the problem :(</p>
<p>I've tried with <code><a href></code> but it's the same problem, I can't see any... | 2 | 3,836 |
Why does require('react') cause "Import declaration conflicts" with typescript? | <p>I am trying to use Typescript with <a href="https://github.com/DefinitelyTyped/tsd" rel="nofollow"><code>tsd</code></a> (haven't upgraded to <a href="https://github.com/typings/typings" rel="nofollow"><code>typings</code></a> yet), React, and JSX together... oh my! Talk about build system intricacies...</p>
<p>My <... | 2 | 1,080 |
http 400 bad request when using date - Spring MVC, pickadate.js | <p>I have a simple form with 3 fields, one containing a pickadate(), the other a pickatime() and the last a simple number.</p>
<p>When I try to post my form, I get a bad request error.</p>
<p><strong>Request dedails</strong></p>
<pre><code>Request URL:http://localhost:8080/CapTheater/admin/addProjection
Request Meth... | 2 | 1,261 |
getting values of second select from db based of first select box selection in codeigniter | <p>I Need help on how can i get values of second select box based on first select box</p>
<p>This is view:</p>
<pre><code>$(document).ready(function() {
$('#state').change(function() {
// Get an instance of the select, and it's value.
var state = $(this),
stateID = state.val();
// Add if statement to check i... | 2 | 1,441 |
Texas Hold'em poker recognizing full house | <p>I'm creating a console texas hold'em poker. I'm already done making this game, everything works as supposed, expect for a full house for which I became undecided for a best way to write a code.</p>
<p>This is how I present cards: "D5", "S2", "SA"... I know it is a bad idea of representing cards, but I'm currently n... | 2 | 1,927 |
PGP Encrypt using BouncyCastle in Java | <p>I was given a task to build a java method to encrypt data (String or InputStream) using PGP. I have generated a test public key, private key with passphrase following the guide <a href="https://edoceo.com/sys/gpg" rel="nofollow noreferrer">here</a>. I then exported the public key using the command below and copy and... | 2 | 6,615 |
Asp.net LINQ groupby and orderBy on dates does not retrieve the expected output | <p>I am working on an asp.net mvc3 application with linq2sql.</p>
<p>I have a List of SiteLog object type containing also for each object: A string named CLRExceptionType and a date named EntryDate. This List is included in a Dictionary:</p>
<pre><code>private Dictionary<string, List<SiteLog>> dataBaseLis... | 2 | 2,073 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.