title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
OPEN XML SDK Infinite Loop | <p>I have written some code based on some tutorials to update an existing word document with data from my database tables.</p>
<p>I keep getting the program crashing and advising that I may have an infinite loop, however I am using a for each statement and when I debug it tells me i only have one record. Cannot under... | 3 | 2,756 |
Error loading cl-unicode | <p>I assume I must be missing something, rather new to this. Quicklisp update-dist and update-client say I have the latest, loaded cl-ppcre just before and it worked fine. SBCL version is 1.3.8 and I'm on Windows 7, if this is relevant. Any pointers appreciated.</p>
<pre><code>* (ql:quickload :cl-unicode)
To load "cl-... | 3 | 6,798 |
Joining 2 MySQL Queries | <p>I finally got all of my queries written (thanks to all who have helped me).</p>
<p><strong>The First One:</strong></p>
<pre><code>SELECT
cards.card_id,
concat(cards.title, ' By Amy') AS TitleConcat,
cards.meta_description,
cards.description,
'' as Bob,
'' as Weight,
'' as UPC,
cards.seo_keyword... | 3 | 1,436 |
Android Google Analytics - 6 GET requests dispatched for single trackPageView | <p>I have a fairly complex project that has many types of classes that I'm trying to track (fragments, activities, list fragments, mapactivites) etc. and I am trying to avoid using the easy tracker because I can't simply subclass that one class.</p>
<p>I have disabled all my tracking code in my various activities to a... | 3 | 2,101 |
Why does firebase return null when using admin | <p>I am using the firebase admin sdk with bubble as a nodejs project</p>
<p>here is the code i am trying. THIS doesn't work. I have included updated code at the bottom but will leave this for now hoping others can learn from my errors.</p>
<pre><code>function(properties, context) {
console.log('trying')
var li... | 3 | 2,075 |
Using rxjs forkjoin and angular 10 http interceptor, how do I exchange only 1 refresh token with multiple http calls? | <p>I was researching how to do multiple http calls in Angular 10 that didn't require you to write a bunch of calls and subscribes that makes the code unnecessarily long. Stumbled across the rxjs forkjoin. Code is simple, just 4 https calls that I do stuff with when they return</p>
<pre><code>const observableCall$ = thi... | 3 | 2,260 |
Objects aren't selectable on Fabric js chrome extenstion | <p>So I'm using the Fabric.js library on my chrome extension and I finally got it working by adding the CDN of the library and calling it in content_scripts.
Now the only problem is that whenever I add an object(rectangle, circle, text...etc) onto the canvas I'm not able to click and interact with it and I have no idea... | 3 | 6,505 |
Unable to unsort the table by clicking the column - Vue.js | <p>As I shifted from Laravel Livewire to Laravel Vue, I am unable to recreate the logic required for sorting in Vue. I am successfully able to sort the table by clicking the table header. Now, what I need here is, as when the <code>sortDirection</code> is 'desc', the click after that should unsort the column just like ... | 3 | 2,233 |
how to use np.where, where column data is not replaced | <p>I'm trying to use np.where to create new column based on ifs.</p>
<pre><code>import pandas as pd
import numpy as np
>>>d
Match X Y end_X end_Y xG player team action half
0 Motherwell 31.1 5.5 23.9 15.3 0 6. P.McGinn Hibernian Passes accurate 1st half
1 Motherwell 33.1 12.7... | 3 | 1,814 |
Cocoapods .podspec cannot find include headers | <p>I have a Objective-C iOS library that uses and ships a third party static C lib. One of my Objective-C source file imports that library using</p>
<pre><code>#import <teamspeak/public_errors.h>
</code></pre>
<p>but the generated xcode target by Cocoapods cannot find that header.</p>
<p>This is the simplified st... | 3 | 1,114 |
Responsive iFrame height across all screen sizes | <p>In my code, I have two iFrames both with responsive widths. How can I get both iFrames to have set heights like I have in my code but for the height to adjust accordingly to the screen size. For example, the heights now fit perfectly to a 12" MacBook. I would like the iFrames to adjust the height across all screen r... | 3 | 3,074 |
Use React App (with NodeJS Backend) in own network | <p>I've got a react app (latest React version) with a NodeJS backend.
That runs so far locally. But now I want to use this React App (together with its NodeJS backend) with other devices in my home network.</p>
<p>How to do that?</p>
<p>That is my package.json of the React App:</p>
<pre><code> {
"name": "dionysisc... | 3 | 3,379 |
Toggle a js and css file in each click with Jquery on the same link | <p>"Kundan Singh Chouhan" helped me to solve this problem a few weeks ago:
<a href="https://stackoverflow.com/questions/12768255/call-a-css-file-by-jquery-append-and-delete-this-by-second-click-on-the-same/12768326">Call a CSS file by Jquery .append(), and delete this by second click on the same element</a></p>
<p>But... | 3 | 1,033 |
Cocos2d collision works but cannot be detected by b2contactListener | <p>i've got a problem about b2contactListener.</p>
<p>i have these two classes:</p>
<pre><code>class Terrain
class Hero
</code></pre>
<p>Each class got a method called:
<code>getHeroBody</code> -> returns the <code>b2body</code> of the hero.
<code>getTerrainBody</code> -> returns the <code>b2body</code> of the Terra... | 3 | 1,171 |
OKTA Self service registration with Nextjs REACT | <p>I have been trying to allow users to sign up for my app with the Okta SSR feature however I keep getting this error that says:</p>
<pre><code>{"errorCode":"E0000060","errorSummary":"Unsupported operation.","errorLink":"E0000060","errorId":"oa... | 3 | 1,508 |
How to get value of toggle type checkbox | <p>I am using a toggle switch checkbox. I want to get the value of this switch when its state is changed using javascript or jQuery.</p>
<p>According to that value I want to highlight the text of <code>label</code> i.e. <code>option1</code> or <code>option2</code> used with the toggle switch.</p>
<p>Can someone help me... | 3 | 1,131 |
Cannot use object of type stdClass as array using laravel | <p><a href="https://i.stack.imgur.com/HUNiS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HUNiS.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/ouTbI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ouTbI.png" alt="enter image description here"></a>I... | 3 | 1,794 |
C# ODBC Insert BLOB | <p>The code below works fine when connecting to a SQL Server, however it throws an exception when I try pointing it to an Oracle database. The exception returns a empty error message, so I'm not really sure what I should look at next. Any help would greatly appreciated. I did search before making this post and all the ... | 3 | 1,131 |
django templatetags for jquery to get item from html templatetag | <p>I have photo album for this site I'm working on and am using jquery to filter by country/city. If I hardcode in each country into the jquery I get my desired results. I obviously do not want to do this. Below is what I mean by that.</p>
<pre><code><div class="container">
<div class="photo-title">
... | 3 | 3,342 |
Is it possible to recompile jar targeting different version? | <p>I want to use a jar in my Android application which is compiled with <strong>Maven</strong>.
The problem is that the jar is compiled targeting 1.8 Java, when Android needs 1.7 or lower.</p>
<p>I have the jar file along with source files. Below you can see the directory of the source files of the library:</p>
<pre>... | 3 | 1,335 |
how can i get a shoucast stream to start playing almost instantly | <p>I am still fixing my radio app and it is going well and you guys have been great at helping as a resource!!</p>
<p>One thing that I (and my end client) have been worried about is that the stream takes 30 seconds to 45 seconds (wifi vs cell networks vs location mobile user is at) for the stream to start playing.</p>... | 3 | 5,097 |
Saving Java program to a runnable format | <p>I have finished making my Java program with a Swing GUI in NetBeans and have built, cleaned and run it error free. However, now I am looking to save it as a runnable format, I seem to be missing the trick. I have spent hours searching and have tried the following aside from all of the dead ends or years old question... | 3 | 1,848 |
Updating header with authorization credentials without browser popup (Dropwizard 2.0.x) | <p>I try to create a small website with just a few pages using dropwizard. Everyone should be able to access all those pages, but I want to give the possibility to login and a logged in user should have extra possibilities (later on that should be role based). Since it is just a small website I think I want to manage t... | 3 | 1,300 |
An issue with getting user roles in a Spring Rest application | <p>I have a RestController class with the following :</p>
<pre><code>@RestController
public class UserRestController
{
@Autowired
UserService userService;
@Autowired
private SecurityService securityService;
@Autowired
private UserValidator userValidator;
// Get a Single User
@GetMapping("/api/users/{id}")
public U... | 3 | 2,081 |
How do I overlap my view | <p>I am new to android and I need to overlap a circle kind of image on head of box . How do i do it .</p>
<p>Below is my code .</p>
<pre><code><RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_... | 3 | 1,809 |
android: How to change ListViewItem Background on runtime? (Not for selection) | <p>In my android app, I need to change the Background color of each Item of my ListView seperately.<br>
I found no examples or helpful documentation. The background should change if the value of a double is 0. I set the ListView Property: <code>android:drawSelectorOnTop="true"</code> and used following code:<br>
(A... | 3 | 1,698 |
Cast from super class with dynamic class load JAR | <p>I have some classes with this organisation</p>
<pre><code>--> : Inherit
TwittEntititesNetwork --> TwitterGephiStreamer
TwittGrapher --> TwitterGephiStreamer
TwitterGephiStreamer is Abstract
TwitterGephiStreamer have a method : myMethod()
Directory
./myApp.jar
./NetworkLogicDirectory/... | 3 | 1,068 |
Excel VBA Listbox displays more times than expected | <p>My macro goes through all data rows on a specific sheet. Currently there are 6 rows. The first row is a negative number and the 2nd row is a positive number (debit and credit).</p>
<p>The macro reviews each row and displays a list box for the user to make a selection. Then it goes through the next row and does th... | 3 | 1,953 |
Finding the most frequent character of an input text file | <p>I am trying to read an input txt file from command line and find the most frequent character in that file for a school project. I can open the txt file and print it without an issue with the following code. Also the funcion below freqcount(), works perfectly when I give it a string from the command line. But I can't... | 3 | 1,055 |
encoding error while using np.matrix and np.chararray | <p>I am building a Flask website in Spanish for people to send via mail encoded messages. Basically, you paste your text in a textfield and it returns its encoded version. The functions encode() and decode() below function OK until it deals with accentuated and other non-standard characters. My default system encoding ... | 3 | 1,685 |
How can I parse a value (Stepper) from UITableViewCell to main View controller? | <p>I have a <code>UITableViewCell</code> and a <code>UIViewController</code>. In the <code>UITableViewCell</code> I have a stepper. How can I make it when user clicked the stepper to send the value to main view controller and receive it in my table view cell?</p>
<p>I tried to get the value from stepper in the cell, b... | 3 | 1,162 |
How to load already built in Magento project to localhost with database? | <p>I have to customize some of the things in already built in magento project. I copied the source file and pasted in htdocs folder and loaded the sql file in database. Modified host,username,password,dbname in the xml file which is situated in app/etc/local.xml folder. Which is as follows</p>
<pre><code><config>... | 3 | 1,172 |
Processing - Flock Boids avoid draggable objects | <p>I'm working on a boids flocking project.
My goal is to have several draggable objects which have to be avoided by the boids.
There are several different flocks with a different starting position. </p>
<p>I managed to get the boids to avoid one draggable object. But I can't seem to make them avoid all. (using a fo... | 3 | 3,971 |
Populate Backbone Collection to table | <p>I already fetch JSON data but I have a difficulties on populating it on the table. Any help? </p>
<p>I have already response json data:</p>
<pre><code>data Object { 4c064462f170f63d57f55ab55e6b36f1={...}, b4f68bc5c045d2e88840995a47f7ddf5={...}}
4c064462f170f63d57f55ab55e6b36f... | 3 | 1,415 |
Objects are not being persisted while using Hibernate(3.2.5) with PostgreSQL(8.2) | <p>I am using PostgreSQL(8.2) with Hibernate(3.2.5). Despite of proper annotations when I try to run my snippet at the back end, primary keys are not generated so it ends up with no record being inserted in the table.</p>
<p>I am trying to establish One-To-Many mapping between the tables Classroom (One side) and Stude... | 3 | 1,310 |
How to use timer in Android | <p>In my application i have <strong>timer</strong> for some works.<br>
When my application running after some time my application <strong>freeze</strong> and not work any View !
<br>
In this timer every <strong>500ms</strong> i <code>emit</code> <strong>socket.io</strong></p>
<p>My Codes:</p>
<pre><code> AsyncTask.... | 3 | 1,406 |
Targetting specific appended divs using jQuery | <p>I have set up a page which lets you enter information about your child. You can add another form and take away another form for the amount of children you wish to enter information about.</p>
<p>However my problem is that I have a button which you can tick and it will hide certain forms and change certain labels. I... | 3 | 2,283 |
vector iterator incompatible c++ | <p>I've searched all over stackoverflow but just can't seem to find what i'm looking for, so here goes..
I have 2 custom classes one being used in the second and when i'm trying to sort the second class.. which is essentially a vector of the first class it throws the error : - message 0x010c3e18 "vector iterator... | 3 | 2,483 |
infinite loop when trying to restart after try catch | <p>[SOLVED] By adding console.next(); to my catch statement.</p>
<pre><code>catch(InputMismatchException fe) {
System.out.println("You didnt enter an integer. Try again");
restart = 'y';
console.next();
}}
while(restart=='y');
}}
</code></pre>
<p>[Solution]^^^^^^</p>
<pre><code>static public char restar... | 3 | 1,732 |
Odd occurence in Plist load | <p>I am loading a Plist from my documents folder, I have 7 records ... check below: but my Master View table is only showing 5, and this is confirmed with my "numberOfRowsInSection : return [accounts count] ... the code is below, am i missing something somewhere... is there a setting: Note: Data is ficticious</p>
<pre... | 3 | 1,397 |
Sudden error with Django 'python manage.py runserver' | <p>Recently I started a Django project, created a model, then registered it in <code>admin.py</code> in the same app file. I then got this strange error:</p>
<pre><code>(djangoEnv) C:\Users\*****\sample_project>python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-th... | 3 | 1,509 |
How to copy all the paragraphs and styles within a heading to another MS Word file | <p>I am using <code>Python docx</code> library and try to copy paragraphs under a few headings in many .docx files to a single new word document.</p>
<p>In those original .docx files, there are some custom styles created when I copy/paste the text from website, and I also manually adjusted some styles (e.g., I adjuste... | 3 | 1,167 |
Assigning a value to a nested xml when using the SOAP npm library | <p>I have been able to successfully invoke a web service call using in the soap npm library (<a href="https://www.npmjs.com/package/soap" rel="nofollow noreferrer">https://www.npmjs.com/package/soap</a>)</p>
<p>What I want is to be able to assign values as I have been doing and then call the web service but I think th... | 3 | 6,353 |
How to activate fullscreen on custom video player | <p>I have got a basic video player, but when you toggle fullscreen then it goes into full screen, but it doesn't fill the screen.</p>
<p>I have googled for a solution but nothing has helped. I have even tried <code>.fullscreen{width:100%}</code>, but nothing has changed.</p>
<p>html</p>
<pre><code><div class='pla... | 3 | 6,584 |
Bootstrap menu fully shows when viewing in mobile. | <p>Many thanks in advance! I am a graphic designer working with a SIMA bootstrapped template. I was unsuccessful at contacting the author of the template. All is kosher except for when you view the site on mobile, the navigation menu is fully displayed. The user has to manually click the nav tab to hide the menu (poor ... | 3 | 2,550 |
Why are my side by side scrolling divs on different levels? | <p>I've set up a system of side by side scrolling divs (code below). However, whenever there is a different amount of content in them, they appear on different levels (as seen in the below picture). I'm not quite sure what's going on and I have a feeling it has something to do with the CSS <code>display</code> attribut... | 3 | 2,904 |
Unit-testing methods secured with Securesocial annotation | <p>I'm trying to make some functional tests for my webapplication that is using Play 2.1.4 and Socialsecure. Before using securesocial the tests where pretty straight forward but now im having troubles figuering out how i can make tests on the secured actions.</p>
<pre><code>@Test
public void createNewNote() {
Res... | 3 | 3,480 |
R: How do I replace NAs in a dataframe column with values from conditions leveraging other multiple columns? | <p>Using R, I am trying to fill NAs in a column with values leveraging conditions of other columns. The data frame has 4columns. The 4 columns are described below.</p>
<p>"Water_Level": Has some values which also include NAs. This is the column I want to replace the NAs. Take this column as the amount of water in lite... | 3 | 2,908 |
C# check images are equal with tolerance | <p>I have this code where I send images from a thermal camera. <code>getImage()</code> returns the actual image that is provided by the camera. There is no possibility to check directly if the camera can provide a 'new' image, so I did this method to compare two images: </p>
<pre><code>class ImageCompare
{
... | 3 | 1,712 |
Python - Console closes after the code has been frozen | <p>I wrote an app in Python 2.7 that retrieves the length of media files using moviepy. If I run it from the command line, everything works fine; but after freezing the code, when I run it the console window closes immediately. I've tried cx_freeze, pyinstaller and py2exe, all with the same results. Is there somethin... | 3 | 1,065 |
Saving a fetched result back into the database | <p>i want know how I can save a result i fetched from my database back into the database. </p>
<p>I selected and fetched a row from a table in my database, there is a column from the row i want to insert in another table in the same database. I tried to turn the $row['example']; to a variable but it wont work, i echo... | 3 | 2,281 |
Image shows up twice in internet explorer 9 while it shows it perfectly in firefox or chrome | <p>Like the title says, in IE an image shows up twice but it shows up perfectly in other browsers.. Now the weird thing is it shows up wrong on 2 of my 5 pages. While the code is the same for all.</p>
<p>The thing is the html code for both navigation parts are exactly the same and they get the image from the same css ... | 3 | 1,148 |
Missing property on MongoDB document after initialising and saving with Mongoose | <p>I've encountered a problem trying to initialise and then save several properties to a new MongoDB document using the Mongoose constructor. The problem is that one of the properties I'm trying to save does not persist to the database, despite being in my schema.</p>
<p><strong>Schema:</strong></p>
<pre><code>const us... | 3 | 1,053 |
Send one SMS to Multiple phone numbers | <p>I have an <code>arraylist</code> of <strong>phone numbers</strong>. When I send a message it only sends to the last number on the list. Here is my code.</p>
<pre><code>public void onActivityResult(int requestCode,int resultCode,Intent data){
super.onActivityResult(requestCode, resultCode, data);
if(request... | 3 | 1,127 |
How to get location fast and only once using fused location provider client in 2021 | <p>I am developing a app which has to get the location information (latitude and longitude) of the device only once but as fast as possible. My code is taking too much time. It is taking around 2-3 minutes to fetch location. Especially for those devices if location button is initially off. I happened to see a relatab... | 3 | 4,819 |
I tried using Populate in mongoose but it didn't work | <p>Hello everyone i am in a problem, may be you can help me.
So basically i have created <strong>two collection</strong> in mongoose, <strong>one for user details</strong> when they sign Up or login and <strong>other for Recipe they post.</strong>
I also want to save the each recipe a user post in the user collection (... | 3 | 3,021 |
smaller string gives bigger file size | <p>I am having a bit of a conundrum here... basically I am performing some very very basic file compression steps as follows:</p>
<ol>
<li>open file and read as string/into a string</li>
<li>parse through the string, and replace repeating patterns with smaller size of text that represents the pattern (ex: aaaaaaaaaaa ... | 3 | 6,278 |
Select seperate objects in R and bind them to one dataframe | <p>I was wondering how to select multiple objects in R and save them to a dataframe.
So let's say <code>ls()</code>gives me following objects:</p>
<pre><code>ls()
[1] "[.avector" "a-32" "a-33"
[4] "a_32" "a_33&... | 3 | 1,178 |
String formatting Custom Objects | <p>I have a basic shopping cart that works. I am trying to learn string formatting -- Custom Object: <a href="https://pyformat.info/#custom_1" rel="nofollow noreferrer">https://pyformat.info/#custom_1</a></p>
<p>What I want to do is this:</p>
<pre><code>print("Your cart contains: {0:short}".format(cart))
</code></p... | 3 | 1,151 |
Interpret Some Functions in C | <p>I was wondering if anyone can explain to me what is happening in the following chunks of code. The code is being used to creates random connections between 7 rooms, ensuring that each room has a minimum of 3 connections. </p>
<pre><code>void bitcodeToEdge(int bitcode, int *edge)
{
int i = 0;
int j = 0;
... | 3 | 1,244 |
can someone tell me what the error in this page? | <p>i get this error line on this php file . can someone locate where is the error ?</p>
<p>-------------You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1----------</p>
<p>i have this page for votes to users but if i vote ... | 3 | 1,213 |
How can I check if login is successful, then display the protected routes in react hooks | <p>After successful login how can I see/access <code>Dashboard, CreatedLink</code> components mentioned inside the protected route. Could someone please advise how do I check
<code>loginEmail</code> is available in localStorage then display the above components else display login. Do I need another component for naviga... | 3 | 2,089 |
Multiple levels of "has many" relationship | <p>I want to achieve a structure where e.g. an Organisation has many Departments, and where Departments has many Persons.</p>
<p>I've set up my model structure like this:</p>
<p><strong>Organisations</strong></p>
<pre><code><?php
class Organisation extends AppModel {
public $hasMany = array(
'De... | 3 | 1,061 |
IllegalStateException: attempt to re-open an already-closed object | <p>I'm using <code>Cursor</code> inside a retained <code>DialogFragment</code>. The <code>Cursor</code> is loaded by <code>AsyncTask</code> after the <code>DialogFragment</code>'s view is created and is closed when <code>DialogFragment</code> gets destroyed. Then the <code>Cursor</code> will be handed to a <code>Simple... | 3 | 2,688 |
cuda-memcheck fails to detect memory leak in an R package | <p>I'm building CUDA-accelerated R packages, and I want to debug with <code>cuda-memcheck</code>. So in <a href="https://github.com/wlandau/rcppcuda/tree/deliberate_memory_leak" rel="nofollow">this minimal example</a> (in the <code>deliberate_memory_leak</code> GitHub branch), I create a memory leak in <code>someCUDAco... | 3 | 1,291 |
Vertical wind visualization in vector form | <p>I have vertical wind data in masked array format, which I want to plot it into vector form.</p>
<pre><code>masked_array(
data=[[-4.06932000e-04, -4.06932000e-04, -5.70601827e-04, ...,
-2.43262173e-04, -2.43262173e-04, -4.06932000e-04],
[-1.38895096e-03, -8.97941481e-04, -5.70601827e-04, ...,
... | 3 | 1,032 |
script to parse a text file | <p>Any help is greatly appreciated. I have a Cisco voice gateway that I connect to with SSH and can send a command to get all the current calls on the gateway. I'm trying to automate this so that I can pull out this information and display it on a big screen TV in an area that needs to see the current active calls at... | 3 | 1,154 |
Simple Android app - SQLite - SQL has stopped | <p>I was writing an app using Android Studio. It's simple app for exercises.
I was sure it will work, but no. Something is wrong.
I will paste my code here:</p>
<pre><code>package programowanie.android.sql;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import and... | 3 | 4,464 |
Dividing v-card into 3 part with different percentages | <p>I've been trying to divide v-card into 3 part. </p>
<p>Item's image on left one, title and details on center of card.</p>
<p>And price must be right side of card</p>
<p>Furthermore, it should be same if item's detail too long or too short.</p>
<p><a href="https://i.stack.imgur.com/dItiG.png" rel="nofollow norefe... | 3 | 2,455 |
Combine unique rows from multiple data.tables and add attribute details | <p>I have two data.tables in this format (the actual tables have about a million rows in each):</p>
<pre><code>library(data.table)
dt1 <- data.table(
code=c("A001", "A002","A003","A004","A005"),
x=c(65,92,25,450,12),
y=c(98,506,72,76,15),
no1=c(010101, 010156, 028756, 372576,367383),
no2=c(876362,"",682... | 3 | 1,432 |
Why subsequent tests for ngmocke2e failed to call mock backend. Only the first test would pass. Second test would call the real backend | <p>Why subsequent tests for ngmocke2e failed to call mock backend? Only the first test would pass. Second test would call the real backend.</p>
<p>Here is my sample code: The first test would call the mock. The second will call the real backend. </p>
<pre class="lang-js prettyprint-override"><code>var LoginPage = req... | 3 | 1,302 |
Best way to parallelize computation over dask blocks that do not return np arrays? | <p>I'd like to return a dask dataframe from an overlapping dask array computation, where each block's computation returns a pandas dataframe. The example below shows one way to do this, simplified for demonstration purposes. I've found a combination of <code>da.overlap.overlap</code> and <code>to_delayed().ravel()</c... | 3 | 1,918 |
VBA throws an error when a string is changed to a variable with exact string | <p>This is my vba code for powerquery function</p>
<pre><code>ActiveWorkbook.Queries.Add Name:="Or ORder", Formula:= _
"let" & Chr(13) & "" & Chr(10) & " Source = Excel.Workbook(File.Contents(""C:\Users\DDK\Downloads\excel.xlsx""), null, ... | 3 | 1,815 |
Sending "complex" model data over UnityWebRequest | <p>I am trying to consume some simple .NET API's in my Unity project. I have been able to populate models (classes) on the API server by specifying manually the name of each field. The issue is the content of these models are mainly primitive data types, mainly ints and strings. My model structures are going to require... | 3 | 1,270 |
Rearrange image grid upon browser resize? | <p>I have this pure css image grid that I wish to improve to make it more responsive to the browser window size. The columns and rows are currently fixed, which means that when you narrow the browser window the columns will get squashed, and the ideal thing in that scenario would be to switch over to fewer columns and ... | 3 | 1,962 |
ASP MVC Radiobutton from model in list | <p>I want to show a list of radiobuttons from a model using Entity Framework and MVC 5.
The list is displayed with the radiobuttons, but the value of the radiobuttons is always te same for al rows and I can't find a fault in the code.
Perhaps someone here have an idea?</p>
<p>Code:</p>
<p>Model:</p>
<pre><code>pub... | 3 | 2,132 |
Mysterious constraint violation in c# db-related code | <p>I use stored procs to get data from db (ms sql 2008 r2 express). Two fields in source table may contain NULL values so when i add data source to my project in VS in database designer i set nullable fields' AllowDBNull property to True and NullValue property to (Empty) (both are string fields).</p>
<p>Despite all th... | 3 | 1,183 |
How to push open a page from a notification flutter | <p>I have my method that loads firebase cloud messaging and listens for incoming messages as follows.</p>
<pre><code>void loadFCM() async {
if (!kIsWeb) {
channel = const AndroidNotificationChannel(
'high_importance_channel', // id
'High Importance Notifications', // title
importance: ... | 3 | 1,392 |
How to set custom layout grid position to StatusBarItem programmatically? | <p>I want a dynamic status bar in my project</p>
<p>So I set the ItemSource to Binding</p>
<pre><code><StatusBar ItemsSource="{Binding StatusBarItemsSource}" DockPanel.Dock="Bottom" >
</code></pre>
<p>And created a BindingList in my main view model</p>
<pre><code>public static BindingList<StatusBarItem>... | 3 | 1,261 |
"JNDI already in use" during redeployment on WebLogic 12c | <p>We are facing a strange behavior from weblogic 12c during re-deployments.</p>
<p>During a first deployment of a specific war, the process runs smoothly but during the second deployment, (if the war is already deployed on WL) we got the following error</p>
<p>We are a team of 10 developers. This error only happens ... | 3 | 1,074 |
Gridview - Pop-up Image in another box when clicked on | <p>I am using Visual Studio 2017 with vb.net. I have a gridview in which one column is an image. I would like to click on the image and have the image pop-up in another box displaying the picture larger with a close button. I haven't programmed in forever, I'm relearning vb.net, and, of course, my boss needed this y... | 3 | 1,230 |
C# HtmlAgilityPack to get the values in Report | <p>I want to get the two values in the battery report html</p>
<p>Because I tried to make a tool to turn off the monitor without hibernating, developed with .Net 4.5</p>
<p><a href="https://i.stack.imgur.com/0MBTT.png" rel="nofollow noreferrer">Microsoft Battery Report</a></p>
<p><a href="https://i.stack.imgur.com/MZV... | 3 | 1,164 |
The checkbox's do not hold all value when I select more then one checked | <p>I want insert employee attendance. when I checked more then one checkbox it take two checkbox value 1 and other checkbox value 0 .so how can i solve this please help me. this is my form code</p>
<pre><code><form action="coll.php" method="post" name="create_grading" id="create_grading">
<table wid... | 3 | 1,066 |
How to define different limits and breaks for each facet of a plot made with ggplot2? | <p>I am making a plot divided into facets, one for each group. The X-axis is the same for all, but the Y-axis has distant values between each group, so I would like to define limits and breaks for each facet. I have made some attempts by creating functions for both the limits and the breaks, but the problem is here. Wh... | 3 | 1,482 |
Collapsing Top Bar in SwiftUI | <p>I have spent that past few days looking for a collapsing top bar in SwiftUI. I currently have a solution that I made from <a href="https://martinmitrevski.com/2020/04/17/collapsing-top-bar-animation-with-swiftui/" rel="nofollow noreferrer">this article</a>. I have adjusted the original code slightly, but I still enc... | 3 | 2,512 |
Try until no exception, leaving behind the remaining tries | <p>So I am trying to deal with an encoding/decoding error that I get sometimes. Usually it is fixed by encoding in mbcs, but I wanted to also give other situations to try for the same exception. However, I only want it to keep trying in error handling until it hits a situation without an exception.</p>
<p>My problem is... | 3 | 1,341 |
opengl : glGetTexImage for 2d textures and 1d texture array confusion | <p>For texture2D i extract the texture for an mipmap as follows</p>
<pre><code>pixels=ByteBuffer.allocateDirect(4*width*height);
GL11.glGetTexImage(
GL11.GL_TEXTURE_2D,mipMap
,GL11.GL_RGB,GL11.GL_UNSIGNED_BYTE
,pixels
);
</code></pre>
<p>A... | 3 | 1,441 |
PHP Show Real Time Shell Output within HTML | <p>I have a shell file shell.sh that echo hi every 1 second. I would like to display the real time output of my shell script on my website in a box.</p>
<p>However, the problem is that, my code doesn't show the output in a box. And when I click on it, everything disappears and I just see a white page.</p>
<p>The foll... | 3 | 1,265 |
Counting islands over multiple partitions | <p>I am trying to count the number of trips (where a car is ON and moved a bit) of multiple cars over some fixed period. There is a signal, which when jumps from a value to another two possible values, it signifies that the car is ON, and when drops from those two possible values, signifies that the car is OFF, combine... | 3 | 3,319 |
match json data to class properties | <p>I have used one webapi method where [FromBody] i used my class object.
like below: </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> public HttpResponseMessage ProcessR... | 3 | 1,176 |
Debug assertion fail when using grayscale | <p>I am trying to make a hand recognition system but when i used grayscale for cvtColor, i get debug assertion fail but when i use HSV the code works fine. Can you resolve this ? I am a newbie in opencv.</p>
<pre><code>#include "stdafx.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#i... | 3 | 1,761 |
Going crazy; how to setOnclickListener from within adapter? | <p>So I used to have setOnItemClickListener in my main activity like this:</p>
<pre><code>overviewEventListPending.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id){
final OverviewEvent clickedOverviewEvent ... | 3 | 1,270 |
I can't delete a row from MS access database from VB.net | <p>I'm trying to delete a row from MS database by following a <a href="https://www.youtube.com/watch?v=nse-xeFp0Og" rel="nofollow noreferrer">YT tutorial</a> but I got 2 kinds of errors. When I try this:</p>
<pre><code> Dim provider As String
Dim dataFile As String
Dim connString As String
Dim myConnecti... | 3 | 1,272 |
ngOnInit is not called and Component won't load unless route clicked twice | <p>My Home component won't load unless I click on it's routerLink but it should load on application start.</p>
<p>I have properties on my components that are nested in side of it and which get fed data on load of the Home component.</p>
<pre><code>export class HomeComponent implements OnInit, OnDestroy {
public su... | 3 | 1,080 |
Nuget cli with Nexus 3 OSS always getting 404 | <p>I am trying to download Nuget packages through Nexus 3 OSS Nuget proxy repository that I just created.<br />
Nexus: OSS 3.30.1-01<br />
NuGet Version: 5.8.1.7021<br />
I created Nuget proxy repository:
<a href="http://127.0.0.1:8081/repository/nuget-prx/" rel="nofollow noreferrer">http://127.0.0.1:8081/repository/nu... | 3 | 1,052 |
Vue add movies to favourites | <p>I have a home page where I have 3 movies(passed from store) each of these movies has an add to fav page button. So what I want to do is when I click on the add movie to fav button and I go to my fav page the movie should be there. I am new to Vue so sorry if my code is not the best. even document recommendations wou... | 3 | 3,012 |
/proc/interrupts - Read in c shows no IPIs | <p>When I <code>cat /proc/interrupts</code>, I can also see system internal interrupts (as described in the <a href="https://man7.org/linux/man-pages/man5/proc.5.htm" rel="nofollow noreferrer">doc</a>), e.g. all the IPIs occurring on the cores.</p>
<p>However, when I read the content of /proc/interrupts in C, these add... | 3 | 6,288 |
"Converting circular structure to JSON" error despite functions being executed properly | <p>I'm getting the following error:</p>
<blockquote>
<p>TypeError: Converting circular structure to JSON</p>
<pre><code> at JSON.stringify (<anonymous>)
at stringify (/usr/local/lib/node_modules/firebase-tools/node_modules/express/lib/response.js:1123:12)
at ServerResponse.json (/usr/local/lib/node_modules/fire... | 3 | 1,750 |
nameservers update differently with openconnect and openconnect-gnome in ubuntu 18.04 | <p>This seems to be a new issue with <code>network-manager-openconect-gnome</code> in Ubuntu 18.04+</p>
<p>I install <code>sudo apt install network-manager-openconnect-gnome</code> to get gnome integration with opeconnect and <em>Cisco AnyConnect Compatible VPN (openconnect)</em></p>
<p>As an aside (which may <em>act... | 3 | 1,122 |
Android: RuntimeException, unable to start activity ComponentInfo, toolbar error | <p>I've got this error:</p>
<blockquote>
<p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kkk.findyourbook/com.kkk.findyourbook.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v7.widget.Toolbar.findViewById(int)' o... | 3 | 2,179 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.