title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Why css z-index property is not working even z-index value of one component is greater than other target component? | <p>The product component z-index value is greater than home-image z-index value but still home-image overshadows the product component.
Given product, z-index: 1, home-image, z-index:-1;
Its working in the tutorial but not here.
<a href="https://i.stack.imgur.com/gXEYx.png" rel="nofollow noreferrer"><img src="https://i... | 3 | 1,258 |
Resize child content based on container size | <p>I have a simple prototype of a progress bar here.</p>
<p><a href="https://codepen.io/pixy-dixy/pen/mdPOgEL" rel="nofollow noreferrer">Here is the CodePen...</a></p>
<p>And here is the code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">... | 3 | 1,266 |
Why can't I use ParticleSystem.Emit() outside of Start() method? | <p>I am trying to use <code>ParticleSystem.Emit()</code> to dynamically emit particles, and am unable to get <code>Emit()</code> to work outside of the <code>Start()</code> method.</p>
<p>I am able to emit particles in the <code>Start()</code> method, either directly or with a separate method. When attempting to do th... | 3 | 1,146 |
Given a linked list, i & j, swap the nodes that are present at i & j position in the LL. You need to swap the entire nodes, not just the data | <p>I am getting this error: </p>
<pre><code>Compilation Failed
./Solution.java:33: error: cannot find symbol
while (node1 != null && node1.val != i) {
^
symbol: variable val
location: variable node1 of type LinkedListNode
./Solution.java:40: error: cannot find... | 3 | 1,156 |
Invalid user input asks for input again without switch case/if-else/loops in main() | <blockquote>
<p>This is for basic coding practice.Experience level is beginner.</p>
</blockquote>
<p><em>desired output</em>:</p>
<p>Enter 1-option A Enter 2-option B Enter 3-option C</p>
<p>*user i/p</p>
<p>*i/p specific implementation</p>
<p><em>if any other i/p is received then</em></p>
<p>Invalid option</p>
<p>Ente... | 3 | 1,073 |
Elements moves on resize | <p>Okey so when I shrink my chrome window the Nav and the Header moves with the rezising. I don´t want that. The Mainbox however stays in position? No idea why but great! I can´t really find the difference between the Nav class and the Mainbox one except the overflow: auto which didn´t help on the nav nor the header.</... | 3 | 1,078 |
Paramiko ignores python script exception | <p>I have python code on my laptop using paramiko to send command through ssh on a remote RPi. I want to run 2 python scripts:</p>
<ul>
<li>create.py : to create a little json conf file on the RPi</li>
<li>set.py : to update this conf file</li>
</ul>
<p>the paramiko code:</p>
<pre><code>import paramiko
server = "... | 3 | 1,041 |
Pandas ignores dtype in function to_sql, giving TypeError: expecting string or bytes object | <p>I'm processing data from an Excel spreadsheet and uploading it to Oracle. Pandas fails on the command to_sql with a certain edge case. I have a particular column COMMENTS which usually contains strings, however in one row a user typed a number (i.e. 500). </p>
<p>I am forcing it to read as a number using the dtype ... | 3 | 2,501 |
How do I prevent the android keyboard push my container up? | <p>So I'm doing a website with a <a href="https://www.youtube.com/watch?v=gLWIYk0Sd38&" rel="nofollow noreferrer">"Modal Popup"</a> login form responsive to mobile first and I have a footer to the end of the modal container. The problem is when I want to write something in both inputs, the keyboard appear... | 3 | 1,383 |
How to apply datatables using Vuejs with Laravel | <p>I am populating table but now I want to apply pagination, searching, filter criteria. I am new to Vue, how I can apply into my code?</p>
<p>Below is my Vue file:</p>
<pre><code><template>
<div>
<!-- Content Header (Page header) -->
<div class="content-header">
... | 3 | 3,763 |
Django- How to use two UserPassesTestMixin | <p><strong>Using Multiple UserPassesTestMixin Works for other views but not for the <code>ProfileCreateView</code></strong></p>
<p>There seems to be a logic error which i am not able to figure out!</p>
<p>views.py</p>
<pre><code>class CurrentUser(UserPassesTestMixin):
def test_func(self):
x = self.reques... | 3 | 1,106 |
Android Studio linker command failed while including Boost libraries | <p>To be frank I'm at my wit's end and I really need a place to crash. While compiling I am keeping getting a </p>
<blockquote>
<p>error: linker command failed with exit code 1 (use -v to see invocation)</p>
</blockquote>
<p>I presume it is due to incompability or simply different compiler versions between the pro... | 3 | 1,793 |
emails from gmail but response is gmail.readonly | <p>I am trying to get the emails from gmail using <code>https://www.googleapis.com/auth/gmail.readonly/?access_token='fdrt654vfdgfe6545</code>But in response I am getting <code>gmail.readonly</code>But the <code>System.HttpResponse[Status=OK, StatusCode=200]</code> is fine. Can any guide me is there anything I am missi... | 3 | 1,380 |
html5 horizontal submenu alignment | <p>I have a question about how to align the horizontal submenu correctly on the webpage. I got up to the point where I have a header with a logo on the left and menu on the right. I got my submenu to show up shen I hover over the main menu. However, I have trouble getting the submenu to align right side of the page and... | 3 | 1,376 |
Difficulties in merging two array in PHP | <p>I have two arrays, I want to merge these two arrays into single array. Please view the detail below:</p>
<p>First Array:</p>
<pre><code>Array
(
[0] => Array
(
[a] => 1
[b] => 2
[c] => 3
)
[1] => Array
(
[a] => 4
... | 3 | 1,383 |
control size of saved image using PHP and HTML | <p>in my web app im using the following piece of code to snap image from webcam and save it on the server :</p>
<p>JS:</p>
<pre><code>window.addEventListener("DOMContentLoaded", function() {
// Grab elements, create settings, etc.
var canvas = document.getElementById("canvas"),
context = canvas.getContext("2d... | 3 | 1,541 |
AJAX return jquery loop html div | <p>i have HTML below being returned from Ajax success i am have been trying to do so far without success is to loop over the divs get the div id and then create a button for each on the jquery dialog box once the user clicks the button the HTML from within the div will be applied to a form.</p>
<p>the code below works... | 3 | 2,431 |
Is there a way to insert Checkbox and Combobox in Sidebar in SAPUI5? | <p>I have created a tnt Sidebar and want to insert Checkboxes and Combobox in it.</p>
<p>This should be the result:</p>
<p><a href="https://i.stack.imgur.com/eCCYt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eCCYt.png" alt="enter image description here" /></a></p>
<p>Currently it looks like this:... | 3 | 1,255 |
Issue with Geocoding in Google Maps API | <p>Im trying out the Google Maps API Geocoding feature.The map loads fine, but im facing an issue with geocoding.I have a text box on the page where i enter the location, and on clicking the submit button, i would like to pinpoint the entered location on the map.</p>
<p>The setCenter method correctly marks the locatio... | 3 | 2,030 |
how to add subquery into specification in Java | <p>I wish to have subquery, which provides me filtering actors by name. </p>
<p>I have a rest controller's method, which returns list of actors as JSON from movie base on movieId. I try to add filters as specification, but I have no idea how to write proper query. Base on "<a href="https://stackoverflow.com/questions/... | 3 | 1,498 |
When I try to enable multidex gradle indicates version conflict for support library | <p>I tried to enable multidex in gradle file, But I faced the following error:</p>
<p><a href="https://i.stack.imgur.com/XVCfw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XVCfw.png" alt="enter image description here"></a></p>
<p><strong><em>I NEVER EVER have used something with version 25.2.0 !... | 3 | 1,056 |
Restkit Authorization Header disappears | <p>I already searched everywhere and this issue that should have been trivial is taking longer than I wanted therefore I am reaching you for help.</p>
<p>I am using swift and integrated restkit using cocoapods.</p>
<p>Despite, as you can see the screenshots/log, the header is fine however the outgoing http packet is ... | 3 | 1,186 |
enum value as index of gsl::multi_span | <p>I'd like to use an <code>enum</code> to access elements in a <code>gsl::multi_span</code>. It works fine with <code>int</code>, so I thought it'd work with <code>enum</code> values as the underlying type is <code>int</code> too:</p>
<pre><code>#include <gsl/multi_span>
#include <iostream>
int main(int ... | 3 | 1,129 |
buttons and label does not resize when going to full screen in pyqt5 | <p>I have created a GUI that has three buttons and a label. But when I go full screen the buttons and the label does not go to full screen even if i am using show full screen. Here is my code.</p>
<pre><code>class App(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialo... | 3 | 1,148 |
How do you use methods from sub classes in the main class in Java? | <p>I am working on an assignment and I can not figure out what to do. I have three different Java classes. And I am trying to use the methods in one class to do something in a different class. I am making a very primitive playlist program. I have to check to see if the playlist is full, if its not i have to ask the tit... | 3 | 1,024 |
Rails 4.2 : Form with multiple models - param is missing or the value | <p>I'm having trouble with Rails 4.2 to create a form with multiple models.
I'm creating a form to allow a user to order a gift card with a custom stripe payment form all in one.
I tried different ways using form_tag instead of simple_form_for and simple_fields_for and I tried all the solution provided on this website ... | 3 | 2,661 |
ASP.net update panel with java script | <p>I am aware that this question has been asked before however all of the solutions I have tried don't seem to work. It could be my lack of knowledge on how Java script actually functions. After hours scouring the web and watching youtube videos I haven't been able to come up with a solution. I can get the java scri... | 3 | 1,676 |
Restore Document with multiple Window Controllers | <p>So i have a Document that's tab based (think of it like the xcode tabs) using and sharing one API-Core object between them. If i've closed it with 2 Windows, one with tab "A" and one with tab "B" and reopen it should create 2 Window Controllers and restore them with their own values. How can I do this?
Until now I t... | 3 | 1,377 |
Router with remote actors in akka.net | <p>I'm trying to create sample router with two remote actors.
Here's my code</p>
<pre><code>class Program
{
public const string AkkaConfig = @"{
akka {
actor {
provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote""
deployment {
/r... | 3 | 1,354 |
WPF Why my scrollview with panning mode is blocking button.touchdown inside it? | <p>The problem i'm investigating is about Button.Touchdown/up triggers on a Button with a style. OK this buttons are inside a ScrollViewer, this one has a panning-mode property and it's enabled. The situation is when i test my aplication with a TouchScreen and i try to drag with my finger the panel, it moves and then ... | 3 | 4,410 |
Two Button named add1 and add2 don't work | <p>I'm a new programmer so sorry for any blunders. I'm creating the screens for an Italian quiz game. In LA COPERTINA screen, the buttons that should be used to increase or decrease the amount of money by 500 euros do not work and also 500 euros already appear while the tot1s variable is set to 0. What could be the err... | 3 | 3,571 |
Why the state of a useState snaps back to false if I go back and forth on the Screen? | <p>I've been trying to toggle favorite products and store their <code>id</code> and an <code>isFav</code> prop on a Firebase database. Then I use them to show the favorites on the <code>FavoritesScreen</code>. </p>
<p>If I go to the <code>ProductDetailsScreen</code> (where I toggle the favorite) I toggle it true/false... | 3 | 7,240 |
How to use arc land with a git-svn repository? | <p>There is a svn repository located in <code>https://host:port/codebase/project</code>, without <code>tags</code> or <code>branches</code> subdirectories. Normally using with SVN, people <code>svn checkout https://host:port/codebase/project</code> to get working copy, and using <code>arc diff</code> and <code>arc comm... | 3 | 1,923 |
How to fix ajax request to the form handler file from the WordPress plugin. (I am developing a plugin myself) | <p>everyone!I'm creating WordPress plugin. The main goal of this plugin is creating form, and after user will fill out this form data from the form will be written to the database. I made the part of the plugin that is responsible for creating the database and displaying the form using a shortcode. But faced with a pro... | 3 | 1,196 |
Trouble Banning users and adding them to table | <p>I Have a function that is intended to ban a user and then add them to the <code>Banned_User</code> table.So that I may then send the user an email with the details of their ban.But I can't seem to get the function to ban and save</p>
<p><strong><em>Current traceback error: Exception Type: TypeError at /admin/api/pr... | 3 | 1,168 |
addOnSuccesListener execution order problem, firebase storage | <p>I have a StorageReference element which stores a folder's reference from firebase and I loop through its elements in order to get every download link, but I don't understand why it's executed in this order. I've done something similar previously and it worked, but now for some reason, I don't understand why, it's no... | 3 | 1,449 |
Browse nodes in differents levels with XSLT 1.0 | <p>I'm on a problem that is starting to get very boring. Indeed, here is the case on which I block:
Here is my example of my XML:</p>
<pre><code><Classification>
<data>
<value>String1</value>
<value>String2</value>
<value>content1</value>
... | 3 | 2,091 |
Making a roulette game, keep getting error in python | <p>I'm fairly new to python, so sorry if this is a bit basic.
I have undertaken making a roulette game to improve my programming skills and have come across a very strange error. At first, when I wanted to print the player's balance at the end of the roll and once the results were checked, it printed out the array that... | 3 | 1,140 |
WebRTC: Consent refresh timed out, Consent refresh failed, setting pair to state CANCELLED | <p>First of all, this is probably not going to be a great question, since I don't have much understanding of WebRTC. The problem is tho that we have been having problems with our videochat app based on WebRTC for months and our developers can't seem to fix it.</p>
<p>So, we use adapter.js to set everything up, but the... | 3 | 1,844 |
php redirect after mail sent header error | <p>I have a form I got working fine but when I try and redirect after a form submission to a thank you page but get and error of " Cannot modify header information - headers already sent by ". I understand the headers are being modified in the <code>mail()</code> part but how do you do this without an error?</p>
<p>Co... | 3 | 2,672 |
Can't run the command -- rake:install | <p>When I run the command <code>rake:install</code>, I get this error message:</p>
<pre><code>WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
Successfully built RubyGem
... | 3 | 1,169 |
Star rating by Rogie | <p>I decided to use those very nice rating stars which I found on this page:
<a href="http://rog.ie/blog/css-star-rater" rel="nofollow">http://rog.ie/blog/css-star-rater</a></p>
<p>html</p>
<pre><code><span class="star-rating">
<input type="radio" name="rating" value="1"><i></i>
<input ... | 3 | 1,598 |
How to store Cookies in flutter and use it to authenticate if user is logged in or not | <p>I'm trying to create a platform, once I log in it, creates a token and store it in the cookie. I have successfully been able to create a route that stores the cookie using node js(I could see it saved in postman). But once I try to use the route in my flutter app, it seems the the token doesn't save anywhere.</p>
<p... | 3 | 1,676 |
RHF not resetting values in an MUI checkbox group | <p>I am trying to reset my form with the <code>reset()</code> method and, it is working partially. All of the form's fields get reset, except for the checkboxes group.</p>
<p>I have tried three different ways of implementing an MUI <code>CheckboxesGroup</code> but, I always get the same result.</p>
<p>You can see a wor... | 3 | 1,740 |
Core Data - relationship goes nil unexpectedly | <p>I am struggling with some bizarre behavior in Core Data. I have a fairly standard set-up, using the CoreDataBook example: I have a RootView which is using a NSFetchedResultsController to display list of Items. Item has a few attributes and relationships to other entities. I have a DetailView which I use to create a ... | 3 | 1,320 |
How to get an url attribute from a namespaced XML source with Vue? | <p>I am trying to show a Rss feed in Nuxt with Axios.</p>
<p>I can get:</p>
<ul>
<li>title</li>
<li>link</li>
<li>description</li>
</ul>
<p>It is working but for the images which are in:</p>
<blockquote>
<p><media:content url="https://uploads-ssl.webflow.com/60f1911b212fd90baa99ee92/00e5cfa7_mv2.jpg" mediu... | 3 | 1,080 |
Dependent QComboBoxes in a QTableWidget | <p>I am trying to link 3 different comboboxes in Pyqt5 inside a qtablewidget. the first 2 are linked in one slot and the third one is linked to the second combobox using a different slot in a separate definition. On the change of the first combobox, the 2nd combobox changes which makes the 3rd one change (similar to ca... | 3 | 2,446 |
Angular js $http example Web API | <p>Here is my API controller method</p>
<pre><code> [HttpPut]
public List<Employee> PutEmployee(int EmpID, Employee empl)
{
empl.EmpID = EmpID;
int index = emp.GetEmployees().FindIndex(i => i.EmpID == empl.EmpID);
emp.GetEmployees().RemoveAt(index);
... | 3 | 1,104 |
when trying to open an activity from gridview facing error | <p>When trying to open an activity its showing error that activity cannot be instantiated.I had a gridview which has to open different activities, when the gridview is in mainactivity, no problem but when the grid view is in another activity, problem araises</p>
<p>package com.guru.finalpro1;</p>
<p>public class Leve... | 3 | 1,816 |
How do I keep a controller spec and its mocks DRY? | <p>I'm told this is the correct way to write a controller it block:</p>
<pre><code>describe UsersController do
let(:user){ mock_model(User, id: 2, name: "Jimbo", email: 'jimbo@email.com', password: 'passwordhuzzah', password_confirmation: 'passwordhuzzah') }
describe 'PATCH #update' do
it "should fail in this... | 3 | 1,146 |
Cleaning up duplicate controller code | <h3>The Dillema:</h3>
<p>I am in a situation where I need to show a User's activity across multiple views and controllers. The code is starting to <em>smell</em> a little bit, so I'd really appreciate some guidance in cleaning it up.</p>
<p>I have a User controller has a "show" (/user_id/) view that renders recent ac... | 3 | 1,046 |
Stuck with "Practical Django Projects" | <p>Got another error with this tutorial. Should I give up and move on to another? …
Anyway.. here it goes:</p>
<pre><code>Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.2.5
Python Version: 2.5.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes... | 3 | 2,389 |
Why does i get only the last row from the database? | <p>I use Netbeans 8.2. I'm trying to get data from the database and display it in a jTable.
But, when I run the program, I get the last row only.</p>
<p>Can anyone help me solve it?</p>
<pre><code>public class MultiSpanCellTableExample extends JFrame {
Statement st;
ResultSet rs;
Object [][]row;
Objec... | 3 | 1,180 |
Getting image from ciimage bounds through cidetector | <p>I am using CIDetector to recognize rectangles. I have gotten as far as having the camera, and a colored overlay that shows the recognized rectangle. However, I want to be able to take the space from that overlay (not the overlay itself), and be able to create an image view with only the image from that rectangle are... | 3 | 1,805 |
Android ExpandableListView not expanding in Linearlayout | <p>I'm working on a layout but i have problems with two <code>ExpandableListView</code>. I've developed my layout using a lot of LinearLayout, it works but the lists doesn't expand because they doesn't heve the space.Now the lists height is to "fill parent" but if i change it to a number like "200dp" they have the spac... | 3 | 5,010 |
Yii2 user identity gets null after login | <p>I have a Yii2 application in which I am authenticating user from third party API and once user is authenticated then I login the user and set identity and everything works fine. But as I navigate to any other page user identity gets null and user becomes Guest user.</p>
<p>Here is my login form:</p>
<pre><code><?... | 3 | 2,164 |
How to read a CSV from an HTTP Request using Django | <p>I am trying to use an HTTP Request to accept a CSV and then I am trying to get the data from each column in the CSV into a list. The problem is that whenever I try to get the data from the CSV it constantly returns as a blank list on my command line.</p>
<p>I have tried using IO:</p>
<pre><code>csv_file = request.... | 3 | 1,418 |
cakephp: Call to a member function save() on a non-object and two table insertion | <p>I want to make an insertion at the same time.</p>
<p>Models:</p>
<p>Empresa:</p>
<pre><code> <?php
App::uses('AppModel', 'Model');
class Empresa extends AppModel {
var $name = 'Empresa';
public $belongsTo = array(
'UsuariosA' => array(
'className' => 'Usuario',
'foreignKey' => ... | 3 | 1,959 |
C program to extract TLS record layer | <p>I am trying to parse a pcap to get the packet bytes of only the TLS Record Layer in the payload.
In my following code I have managed to get only the tcp protocol bytes from the payload which contains the TLS Record Layer. I want to further extract only the TLS Record Layer bytes from this.
Could you tell me how I ca... | 3 | 2,516 |
Two of my functions don't work correctly, IDE doesn't show errors or crashes | <p>The deposit function and the withdraw function doesn't work. After populating the accounts, I can select D or W menu options and input any number without causing the program to crash or causing an error. The program seems it is working correctly but when you check the balances using the S option, they are not updat... | 3 | 1,045 |
Include GCM Push Notification into my app | <p>I want to send a notification to the user when a task is assigned (i.e on a button click). When a task is assigned to the user I change some values in my server(i.e i'm performing a post method) I would like to know how to achieve this.
I have reached till registering the user when he logs in to my app & i'm sto... | 3 | 4,613 |
refresh the recyclerview after add and delete using asynctask in fragment | <p>I have implemented a fragment that have a recyclerview. After initialize the recyclerview and its adapter in fragments' <strong>OnCreateView</strong>, I update the recyclerview as below scenarios:</p>
<p><strong>Adding item:</strong> First I call a custom <strong>AlertView</strong> that send a request to save an <s... | 3 | 12,253 |
Working with dynamic MVC Controls | <p>I am trying to develop a view using razor. In this view, i need to add dropdownlist. But the challenge is that there is no specific property for this dropdownlist in my viewmodel. Based on a value(eg:fieldType) from DB in viewmodel, i decide the type of control. Below is the block of code i am using for that.</p>
<... | 3 | 1,048 |
escape special characters while retrieving audio list from external storage | <p>I am trying for music player app. I'm able to retrieve all the songs including artists, song name, album name, album cover pictures. But my problem is, after downloading the audio zip files from the website, extracting, the folder name will be automatically saved. Sample file name <em>ROBO_2(2018)[djmaza.info]</em>.... | 3 | 1,099 |
How to change text and button color of a ActionBar from a DrawerLayout (AppCompatActivity) | <p>I have an AppCompatActivity which has this layout:</p>
<pre><code><android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:... | 3 | 1,828 |
How to re-build Page A when a button is pressed in Page B? | <p>I'm working with IndexedStack in order not to rebuild each page while using <code>BottomNavigationBar</code></p>
<pre class="lang-dart prettyprint-override"><code>// MAIN.DART
class LoggedHandle extends StatefulWidget {
const LoggedHandle({Key? key}) : super(key: key);
@override
State<LoggedHandle> crea... | 3 | 3,159 |
Spring Boot REST CustomException using ControllerAdvice Not Showing in logs or stdout | <p>In a project which uses Java 1.8, lombok and Spring Boot 2.1.5.RELEASE, created a custom exception which is not showing up anywhere in my logs files or stdout.</p>
<hr>
<p>pom.xml:</p>
<pre><code><parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-p... | 3 | 1,290 |
Selenium: stop loop once element is class is disabled | <p>Currently trying to loop through all the pages on this website:</p>
<ul>
<li><a href="https://ephisahs.microsoftcrmportals.com/disclaimer/restaurantinspections/south-facilities/" rel="nofollow noreferrer">https://ephisahs.microsoftcrmportals.com/disclaimer/restaurantinspections/south-facilities/</a></li>
</ul>
<p>Wh... | 3 | 1,064 |
connecting javascript secure websocket client to python websocket asyncio server | <p>I'm having trouble establishing connection between javascript websocket client and python server (with the asyncio and websocket module). When i used the simple websocket (unsecure) the connection is working fine but when i'm trying to use the secure websocket (wss) i get an error:</p>
<pre><code> WebSocket conne... | 3 | 1,395 |
Stacking a modal over another modal using angularJS on clicking the backdrop | <p>I am trying to make a modal appear on top of another modal (like a stack of modals) automatically when the user clicks on the backdrop of a modal or presses the escape button (in this case a dialog box to ask whether you want to progress further).</p>
<p>The problem is that I am not able to figure out how I can cal... | 3 | 1,779 |
Android scaling down image from gallery with Uri and Bitmap | <p>I am receiving a FileNotFound exception when trying to turn an image into a Bitmap to scale the image down significantly.</p>
<p>I am retrieving an image the user selects from the gallery like so</p>
<pre><code>public static void GET_PICTURE_FROM_GALLERY (Activity activity)
{
Intent getIntent = new Intent(Inte... | 3 | 1,487 |
Can't Use CookieContainer on my request, only hand made cookie works :\ | <p>I'm working on another project where i use http web requests.
Currently i'm using cookie containers on some requests, but i found that it doesn't work on this specific request.
I'm making a site change it's page by an http request for each page it finds and download info I want from it, but since the page url is hid... | 3 | 2,599 |
Django/Js: how to post a form without reloading whole page | <p>My application currently flows through 3 pages:</p>
<ol>
<li>User selects question in index page</li>
<li>User submits answer in answer page</li>
<li>User is presented with result in results page.</li>
</ol>
<p>I want to compress that down to a single page where the user submits an answer to the question and result ... | 3 | 1,656 |
Google drive chunked uploads in python using rest api | <p>I'm trying to upload files > 5mb to google drive with python over the rest api, so i'm using the chunked upload method.
When the file is small enough to fit in one request everything is fine, but when i have a larger file it fails at the last request with</p>
<pre><code>header i sended: "{'Content-Length': '... | 3 | 1,786 |
Show error message on the same pop up window where form is created | <p>I have made a form that is displaying in pop up window now I want to validate that form in such a way that error message should display on the same pop up where form is created and also I want to stop the submit event if <strong>Error Array contain some errors</strong> this is the code I have used so far.</p>
<pre>... | 3 | 4,908 |
Android Beginner // Why are my Variables all 0 after i should have filled them? | <p>I just edited this post from my original one, because i could narrow the Problem down, but didn´t want to open an extra post for it.</p>
<p><strong>What i Want</strong>
I have an Activity in which i generate Data from Houses into an Array. Then on opening another Activity the Data should be used for displaying it.<... | 3 | 2,478 |
ArcGIS Hub - JSON Stacked Bar Chart | <p>I am brand new to JSON so I may be missing something super simple here. I am struggling with my code that is supposed to generate a stacked bar chart with three different data sources. I want the x-axis to show the dates and the y-axis to show the count for each date (I have excluded the url and renamed the datasets... | 3 | 1,026 |
oracle GTT Vs IN clause literals | <p>Have a one query , where GTT(few 100 Recs) inner joined with main table. </p>
<pre><code>ex :
insert into table1 select col2,col3 from gtt,maintable where gtt.id=maintable.id .. few other joins
</code></pre>
<p>The query takes around 15-20min to load to table1, but when i pass those GTT tables value hardcode i... | 3 | 1,133 |
I am working on checkbox filter ,i am not getting to handle multiple values of checkbox in query where cause | <p>I am setting checked values in array and passing that array to model function, I am not getting how to handle checkbox values in where clause of query</p>
<p>my view page:</p>
<pre><code><form id="filterform" method="post" action="<?php echo base_url(); ?>index.php/welcome/forFilter?id=<?php echo $_GE... | 3 | 1,863 |
Search 2 values in Oracle DB Dynamically | <p>Good day folks,</p>
<p>Trying to wrap my head around this and manage to get it working to some extent - but still struggling a bit.</p>
<p>I want to find two values in two columns for this example:
VARCHAR and DATE
JOHN 1984-01-01</p>
<p>Let's say this is John's birth date.</p>
<p>I want to be able to find the v... | 3 | 1,306 |
Chart data label hell | <p>I'm running into a rather aggravating issue with a macro that scales the font size in charts. The way the larger tool works is, our company has two different 16x9 templates -- one using 10x5.62 dimensions and one using 13.33x7.5 dimensions. When slides from these two templates are combined, PowerPoint does a lousy j... | 3 | 1,112 |
Volley RequestQueue is not working (Kotlin) | <p>I have a <code>LoginActivity</code> that has a very simple layout with 2 <code>EditText</code>'s (username and password) and 1 <code>Button</code> (login button).</p>
<p>I want to perform a POST request to a server when the login button is pressed.
I am using Volley.</p>
<p>Here's the code</p>
<pre class="lang-kotli... | 3 | 1,052 |
How can I pass any DataGridTextColumn to a single Command which will toggle the Visibility of the DataGridTextColumn? | <p>I have a DataGrid and would like to toggle Visibility of individual DataGridTextColumns with Commands sent from a ContextMenu. I need some way to associate a particular DataGridTextColumn, or its Visibility parameter with a ContextMenu MenuItem Command. I can set an individual Visibility variables in my ViewModel an... | 3 | 1,747 |
AWK - how to find unique vaulues and print first and last occurance | <p>I have a large text file which has multiple lines of data relating to one item, an item can have upto 15 different lines but all linked by a field called "itemId" i.e. itemId=<12560317> each line has a timestamp at the beginning i.e. 170209 035711 0792.</p>
<pre><code>170209 035711 0638 DE(N) ItemHandler.ItemLog... | 3 | 2,640 |
Cannot edit the form in this jquery code lines when display on browser | <p>Note that this isnt my code, so i dont understand that much. So,this the html that used to trigger the divedit-member, as you can see below</p>
<pre><code><div class="right-sidebar divedit-member">
<div class="container-fluid">
<br>
<br>
<div class="member-form... | 3 | 3,530 |
Get global array of arrays from Jquery $.getJSON method to REUSE array | <p>Okay so after searching Stack Overflow for answers I found two threads and tried them both but they did not work for me. </p>
<p><a href="https://stackoverflow.com/questions/3442487/assign-data-from-jquery-getjson-to-array">Assign data from jQuery getJSON to array</a></p>
<p><a href="https://stackoverflow.com/que... | 3 | 1,403 |
Run while in PHP | <p>Im not a PHP programmer but for me to get the job done, I did a few researches and I was able to achieve my goal... well partially</p>
<p>What the program does is:
It reads a txt file that has a content like this:</p>
<p>Dishwasher is finished and ready. Jun 22, 2016 - 9:15 PM</p>
<p>Front door is been opened. J... | 3 | 1,077 |
The method 'placemarkFromCoordinates' isn't defined for the type 'Geolocator'. Try correcting the name to the name of an existing method | <p>I am getting the following errors:</p>
<p>Static method 'getPositionStream' can't be accessed through an instance.
Try using the class 'Geolocator' to access the method.dart(instance_access_to_static_member</p>
<p>And</p>
<p>The method 'placemarkFromCoordinates' isn't defined for the type 'Geolocator'.
Try correctin... | 3 | 2,066 |
How to create a simple CRUD application using Spring Data JPA and MYSQas DB using SpringBoot? | <p>I'm trying to create a simple dummy application using Spring Boot Version 1.4.4.
Here is how my <code>pom.xml</code> looks like :</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLoc... | 3 | 1,837 |
Using Checkboxes in Dialog Sheet to Specify Sheets to Perform Actions | <p>I'm currently using the following code to reset an event/inventory/sales workbook. However, I was hoping to find a way to have the user select (via dialog sheet or userform with checkboxes) which sheets need to be reset. As it is right now, when the "Create New Event" button is clicked, every sheet in the sNames a... | 3 | 1,792 |
Recursive Knockout list - setting selected value without jQuery | <p>I tend to regret using jQuery within a Knockout Viewmodel if I'm trying to change the style or visibility of an element. So I'm guessing there's a better way of doing this:</p>
<p>I have some recursive Knockout View Models to display a tree structure of Companies, the managers in those companies and any companies u... | 3 | 1,922 |
OnScrollListener not working when used via databinding | <p>I am trying to use onScrollListener to hide BottomNavigationView and other UI elements of mainActivity. while my recyclerview is located in the fragment inside the mainActivity and I am using custom binding adapter to inflate the recyclerview. I am currently using databinding.</p>
<p>My code</p>
<pre><code>class Hom... | 3 | 1,252 |
How to get an array all permutation in Actionscript 3.0? | <p>Suppose I have an array A = [0,1,2]. How do I get the 2 dimensional array perm_A = [[0,1,2],[0,2,1][1,0,2][1,2,0][2,1,0],[2,0,1]? The order of which the permutation appper in perm_A does not matter. </p>
<p>I used the code in <a href="https://en.wikipedia.org/wiki/Heap%27s_algorithm" rel="nofollow noreferrer">Heap'... | 3 | 1,385 |
Stop page scrolling to the top jQuery | <p>I have created a demo on CodePen. where you click on a box then the content for the box shows up and the window scrolls down to it. Then you can close it by clicking a box in the bottom corner. The problem is that when I click the main box a second time the window scrolls to the top of the page. Why is this happenin... | 3 | 6,863 |
email form gives strange error | <p>The email form I'm trying to fix gives me an error saying:</p>
<p>This can not be accessed this way, you need to have an input field named 'sendtoemail'</p>
<p>Which is strange because i have that input field. Here's the code:</p>
<pre><code><h2>Contact AirKrete</h2>
<form action="http://www.ho... | 3 | 2,040 |
Why is it items added in a @Html.DropDownListFor with jQuery do not appear? | <p>I am trying to add items in a <code>@Html.DropDownListFor</code> with jQuery but after adding them they don't appear. Looking at the inspector of Chrome to debug code all items are being added, but in page they don't appear. I tried to update the select after to add the items but it still doesn't work.</p>
<p>How co... | 3 | 1,577 |
BeautifulSoup: Why .select method returned an empty list? | <p>I want to simulate the 'click' action with the BeautifulSoup so that I can scrape the page returned. I tried selenium webdriver and BeautifulSoup, but I got an empty list every time. In the following code I copied the selector -- my last attempt, but it still doesn't work.</p>
<pre><code># Scraping top products sale... | 3 | 1,542 |
Key press recognition within while loops. Python | <p>I am attempting to program a simple dialogue box in a game. I am using a while loop for the overall game loop. and a while loop within this loop activated by the player pressing space. I want the player to press space(speech() function) to enter the second while loop and press A (speech_end()) to exit this loop. How... | 3 | 1,883 |
jQuery Ajax guess-type/predict issue | <p>I am having to use jQuery I did not write, it was included in a template.</p>
<p>There is a function that does a 'guess type,' and uses the main navigation as the data to search against. As you type, pages within the site come up in the dropdown.</p>
<p>I need customer names from a database to dropdown, but I can'... | 3 | 1,579 |
object detection tensorflow lite android studio | <p>I'm currently making object detection app with android studio for mobile device.. I am currently stuck with how to show only the confidence instead of showing the names of the classes too.. I hope someone can enlighten me what to do.</p>
<p>Here's the code.</p>
<pre><code> **public void classifyImage(Bitmap image... | 3 | 1,046 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.