title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Error in Paypal authentication in Sandbox mode : Laravel 5.5 | <h1><strong><a href="http://learninglaravel.net/integrate-paypal-sdk-into-laravel-4-laravel-5/link" rel="nofollow noreferrer">Reference</a></strong></h1>
<p><strong>Code</strong></p>
<pre><code>public function ShowPaymentWithPaypal()
{
$payer = new Payer();
$payer->setPaymentMethod('paypal');
$item_1 =... | 3 | 1,377 |
Trouble with SQL query and php | <p>I'm at the stage where I'm just starting to understand PHP and MySQL but I am stuck. I have been studying a tutorial from developphp.com in which Shawn's WI is building a message system</p>
<pre><code>https://www.youtube.com/playlist?list=PLgsYR-L3Uwbps9E-xIQPajQOiZVbOo6lr
</code></pre>
<p>I am trying to redesign ... | 3 | 2,373 |
How to add a scrollbar in the table | <p>I am using a jQuery table to show my data. There I have 2 buttons previous and next for pagination. But I want to add a scroll bar in the bottom of the table. I wrote</p>
<pre><code>overflow:scroll
</code></pre>
<p>in CSS, but it didn't work.</p>
<p>Here is my code:</p>
<pre><code><%@page contentType="text/ht... | 3 | 1,222 |
asp.net C# prevent user from leaving any of the two dropdownlists empty | <p>I am trying to update database table according to two dropdownlists value,</p>
<p>and I want to prevent the user from leaving any of the two dropdownlists empty</p>
<p>but the problem is it only check the first dropdownlist if it was empty</p>
<p>for example if I fill the first dropdownlist and left the second one ... | 3 | 1,331 |
How to apply config for my scully plugin? | <p>I made a plugin on scully,static site generator on angular.
But I cannot spplya my config object for my plugin.</p>
<p>I could:</p>
<ul>
<li>Install markdown support and generate some posts from markdown by scully..</li>
<li>Making a plugin that make routes some routes.</li>
<li>Register the plugin as "route pr... | 3 | 1,504 |
onMenuItemClick switch case selecting multiple cases | <p>for some reason my switch case is selecting multiple cases for some reason.
Lets say I click sort -> by name, it selects sort -> by name, sort -> by points and statistics (Shown below).
It's not the first time it's happening, it happened in another part of the code as well, and I simple switched it to "... | 3 | 1,489 |
Sending emails attachments using smtp | <p>I'm trying to send an Attachment file (image) using smpt (javamail) on zimbra server, but I get error like this: java.io.FileNotFoundException: (No such file or directory). I set the path of file declared variable with image stored on the C: directory , also i try to set the path of sd card but give me same ... | 3 | 4,571 |
Save reference to interface callback in DialogFragment after configurationChange | <p>I have an Activity that host a Fragment. In that Fragment I open a DialogFragment.</p>
<p>In the Fragment I call this function to show the dialog. Note that before showing the dialog I set an Interface defined in the DialogFragment.</p>
<pre><code>private void showRatingDialog(){
if (getActivity() != null... | 3 | 1,192 |
In Jersey REST, how to enter FormParam based on whether another FormParam is empty or not? | <p>I have a JSP through which I am POSTing some form parameters to a REST resource service "HandlerAPI.executeQuery".</p>
<p>The JSP for POST request is as follows:</p>
<pre><code><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3... | 3 | 1,283 |
Issue in table sorting inside expandable table in codeigniter | <p>I want to sort my table data in expandable table view, so I tried the below code: </p>
<p><a href="https://github.com/joequery/Stupid-Table-Plugin" rel="nofollow noreferrer">Code Link</a></p>
<p>and my view is as in the below image
<img src="https://i.stack.imgur.com/0tkNI.png" alt="enter image description here"><... | 3 | 15,587 |
CompassListener In Imageview | <p>I'm creating my own version of the api example (http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Compass.html) to create a compass.
The only difference between my code and the api example is that the sensorEventListener is created in an activity instead of the imageView i... | 3 | 1,033 |
JPanel not showing when added to JFrame | <p>I am creating a GUI in java. Currently i have an empty JFrame and am trying to add a JPanel to it. The JPanel contains buttons, text etc. However none of this is being displayed. My code is as follows:</p>
<pre><code>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class memoDisplayUI {
... | 3 | 1,334 |
DropDownListFor post value NULL to database | <p>I have a Course Table and a Hole Table in SQL. There is a foreign Key in the hole Table that is set to the CourseId.</p>
<p>This is so that when I create a hole I can assign it to the relevant course.</p>
<p>In my View I have a dropdownlistfor that has a list of courses to select from when creating the hole. However... | 3 | 2,222 |
FFMPEG: titlecard for concatentaed video results in slow-mo | <p>I have three clips I have extracted from a longer video. When I concatenate them together everything works fine, as would be expected since they all came from the same source.</p>
<p>Now I want to add a title card to the front of the merged video.</p>
<p>I generated an image in GIMP with the same dimensions as the v... | 3 | 1,261 |
Reorder columns in dynamic SQL PIVOT | <p>I am pivoting rows into columns using Dynamic SQL in order to account for an unknown number of columns.
I am using SQL Server 16</p>
<pre><code>DECLARE @cols AS NVARCHAR(MAX),
@query AS NVARCHAR(MAX)
select @cols = STUFF((SELECT ',' + QUOTENAME(PatientDiagnosis)
from
(
... | 3 | 1,068 |
I cannot receive push notification on my vritual device android | <p>I received it in my vritual device before...but after I uninstall and reinstalled my app from my AVD then I didnt get any messages but in firebase console its showing completed status..plz some one help me</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div clas... | 3 | 1,389 |
how to change this sql query to sub-query | <p>A list showing each product requested on each client stock request. Show client name, product number and quantity requested. Sorted by client name and then product number.</p>
<p>I tried this:</p>
<pre><code>SELECT STOCK_REQUEST.requestNum, STOCK_REQUEST.clientNum, CLIENT.clientName, REQUEST_LIST.productNum, REQUE... | 3 | 1,055 |
jQuery dialog remembers previously typed text in <input> field | <p>I know that there are several questions which are similar, but none have worked for me.</p>
<p>I'll start by explaining how the jQuery Dialog is invoked. I have a page, where there is a button which is used to invoke the dialog:</p>
<pre><code><input type="button" class="..." value="..." onclick="forwardToEmail... | 3 | 1,213 |
How to properly define an object within definition and reference in multiple places for Json Schema | <p>I am trying to create a json schema wherein I have an object within a definition & this definition is called within multiple places.
I see an error saying <code>UnhandledPromiseRejectionWarning: Error: duplicate type name: Location</code></p>
<p>I have the below code.</p>
<pre class="lang-json prettyprint-overri... | 3 | 2,242 |
Has my collegue reproduced the exact behavior of Task.WhenAll<TResult>? | <p>When reviewing work by a contractor, I came upon the following extension method:</p>
<pre class="lang-cs prettyprint-override"><code>public static class TaskExtensions
{
public static async Task<IEnumerable<TResult>> WhenAllSynchronousExecution<TResult>(this IEnumerable<Task<TResult>&g... | 3 | 1,240 |
How to convert PHP Protobuf Object to a JSON string | <p>I want to convert my Protobuf object to a JSON object using PHP so that I can send it back to the browser.</p>
<p>My Protobuf is</p>
<pre><code>syntax = "proto3";
package Protobuf.Gen.ProposalTotalModel;
option php_generic_services = true;
message ProposalTotal {
message Total {
double static = 1;
... | 3 | 1,971 |
Error while using install4j gradle task (Cannot cast Install4jExtension_Decorated) | <p>I have a problem using the install4j gradle task. I'm using the install4j gradle task as follows:</p>
<pre><code>import com.install4j.gradle.Install4jTask
buildscript {
repositories(gradle.artifactRepositories)
dependencies {
classpath 'gradle.plugin.install4j.install4j:gradle_plugin:7.0.12'
}
... | 3 | 2,503 |
Arduino serial data manipulation - Sensors Serial Data, Read and parse to variables | <p>I send 3 set of data from 3 sensors from Arduino 1 (router) to another Arduino(coordinator) to with wireless technology (xbee):
On coordinator, I receive wireless data from this 3 sensors(from the router) perfectly. The data stream is something like this(each sensor data on its line):<br>
<br>22.5624728451
<br>944
<... | 3 | 1,136 |
Can anything else cause a syntax error when injecting code beside a typo? | <p>I inject in html code into a html and although all my other buttons work this pacific button which sends data to a sqlite database gives me the following error.</p>
<p>Uncaught SyntaxError: missing ) after argument list</p>
<p>The problem is I've reviewed the code and tried different approaches and since im injec... | 3 | 1,029 |
Why does adding code break what was working even if it isn't executed? | <p>Function 5:<br>
The Display Sales History Function.. It is just displaying the last entry twice...</p>
<p>Function 1:<br>
The 'Add Book' Feature.. It was actually working alright until I added the 'Edit Book' and 'Add Sales' Features. Now it writes something to the file("Books.txt"); that none of the other function... | 3 | 4,663 |
Titanium Android showCamera error unable to create file for storage | <p>I am trying to use the device camera in my application , but there is an error shows up and the camera is not shown.
The error is </p>
<p><em>unable to create file for local storage</em></p>
<p>My Controller code is</p>
<pre><code> function choosePhotoDialogClicked(e) {
if (Ti.Media.hasCameraPermission... | 3 | 1,369 |
MVC 3 Dropdownlistfor linked modalview list for search is always null on postback | <p>I have a search form with filters. 1 filter is range which is to be a dropdown with numbers. I have a view using a viewmodal with a ienumerable of search range (my db table) and in the controller i populate this and all works as it should... until the form is displayed and the user tries to filter again in which cas... | 3 | 1,633 |
Using Dropdown_button2 package does not work for a card view in Flutter | <p>I want to make an SVG icon I have to show a dropdown on this card.
I am using Dropdown_button2 package. <a href="https://pub.dev/packages/dropdown_button2" rel="nofollow noreferrer">https://pub.dev/packages/dropdown_button2</a></p>
<p>I was able to get the dropdown button working independently.</p>
<p>here is how I ... | 3 | 4,357 |
Accordion save opened card and open it after postback | <p>Well, after whole day of struggling with this, searching for examples how people did this, I could not get it to working state...</p>
<p>I am using ASP.NET (C#) with Bootstrap 4.4 Accordion, which is working fine (showing divs when clicked on card header).</p>
<p>But I could not get to work persistent state of sho... | 3 | 1,718 |
Progess bar not shown on Drawer Layout | <p>I can't find Progress bar in the Drawer layout. Change the position but not visible. I need the layout to be Drawer Layout only and can't be changed.
Help with some changes needed to make the progress bar visible.
The Progress bar must be visible to the user while webview is loading.</p>
<p>Below is my XML file for... | 3 | 1,205 |
AEM servlet not render in publisher instance | <p>I have followed this <a href="https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html" rel="nofollow noreferrer">tutorial</a> to create a form to submit data to SlingAllMethodsServlet . It works fine with the author instance. Once I published the page It shows the blank page in publisher instanc... | 3 | 1,530 |
Weird error when using protractor-headless image | <p>I'm getting this error:</p>
<pre><code>$ docker run -it --privileged --rm --net=host -v /dev/shm:/dev/shm -v $(pwd):/protractor webnicer/protractor-headless src/test/e2e/config/local-config.js
[20:21:32] I/local - Starting selenium standalone server...
[20:21:32] I/launcher - Running 1 instances of WebDriver
[20:21... | 3 | 1,577 |
Excel Pivot Table to show value of sub filter as percentage of parent while parent keep number format? | <p>i wonder is it possible to do this in pivot table?</p>
<p>As the title, i want to do these in the pivot:</p>
<ul>
<li>Show number of value as percentage of parent for the sub filter, while the parent filter still keep number format.</li>
<li>Move the grand total to the first row.</li>
<li>Calculate 2 more metric as ... | 3 | 3,029 |
C-Program - Taking extra entry to end program | <p>Before posting, I've tried just about everything anyone's mentioned on C to fix my problem, and it hasn't worked (i.e: adding fgets&sscanf in place of scanf, adding getchar() at end (not a good practice), etc., but nothing has worked.</p>
<p>This small sample is a section of code I am working on for a larger pr... | 3 | 1,425 |
Permission denied: user=etp8117, access=WRITE, inode="/user/ETP8117@ZGIE.ZTECH/shell.tmp":hdfs:hdfs:drwxr-xr-x | <h2>Short Description:</h2>
<p>I am running a shell script that has hadoop commands. with Oozie.</p>
<p>Below is the shell script I am trying to run:</p>
<pre><code>#!/bin/bash
hdfs dfs -mkdir /user/etp8117/testdir
</code></pre>
<h3>Wokflow.xml:</h3>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone=... | 3 | 5,687 |
Excel VBA Macro - Set Row Variables On Separate Sheets Equal to Each Other | <p>I've found questions and answers very similar to my question, but nothing that addresses the specific question I have. With my macro I want to say: </p>
<p>If Column "M", Row 6 on the Analysis Worksheet is not empty AND Column "B" Row 6 AND Column "C" Row 6 AND Column "D" Row 6 (all on Analysis Worksheet) are empt... | 3 | 2,109 |
how to keep a object in array between other objects in array (canvas slider) | <p>I am making a slider with kineticjs where you can can dynamically add more handles to gain more handles. Important is that the handles may not cross over eachother. Because it is important that the order of rank is still te same.</p>
<p>I have made what checks if the object what is higher in order has a lower x val... | 3 | 1,307 |
Is there a way to change how Parallel.Foreach interlaces an array that its operating on? | <p>I'm using <code>Parallel.Foreach</code> to operate over a large array where each array element corresponds to a line in a bitmap image. However, <code>Parallel.Foreach</code> appears to allocate a fix number of threads, say 6 threads, and gives 1/6 of the array to the first thread, and 1/6 of the array to the next t... | 3 | 1,294 |
UITableView returning nil when reloadData method is called upon it | <p><strong>Project Information:</strong></p>
<p>I have three views: 'Main, AddTask, and TaskTable' and three view controllers: 'MainVC, AddTaskVC, TaskTableVC'.
My 'Main' view has an embedded 'UITableView' which is 'TaskTable'.
My 'Main' view also has a button that presents a modal view which is 'AddTask'.
My 'AddTa... | 3 | 1,408 |
AJAX call is failing with ReferenceError assignment to undeclared variable PostRPC | <p>I'm trying to open a modal using dynamic data from database with AJAX function. But when I click on the button to open modal I get</p>
<blockquote>
<p>ReferenceError: assignment to undeclared variable PostRPC in category.php on line 3 col 2.</p>
</blockquote>
<p>EDIT</p>
<p>Reading <a href="https://developer.mo... | 3 | 1,976 |
Drupal - Importing a taxonomy with migrate module from a table and creating/updating existing terms | <p>I need to import a list of terms into my taxonomy from a source I loaded in the database.
The problem is I allready have this taxonomy on my site (loaded wihtout migrate) with terms that are used by reference in other content, so I got to keep existing term and update them or create the new ones.</p>
<p>To link my ... | 3 | 1,600 |
Issue Retrieving results from SQL query in PHP | <p>My code performs an <code>SQL</code> Query as shown below:</p>
<pre><code>$query = 'SELECT
cl.*,c.id,c.type,c.firstname,c.surname,c.job,c.company,c.directorycompany_id, dc.id, dc.name, es.id, GROUP_CONCAT(dirc.name), GROUP_CONCAT(dirp.name), GROUP_CONCAT(dirs.name)
FROM contactlist_contact cl '.
... | 3 | 1,037 |
nullpointerException on a JTextfield with Text in it | <p>So you guys said you don't have enough information to help me. I'm sorry it's the first time I asked a question in such a forum and I didn't work a long time with Java.</p>
<p>So here's my whole code, there could be a lots of faults but I'm glad if you help me to solve them and say me how to do better Java Program... | 3 | 3,988 |
Failing to display json into html with ajax | <p>I am implementing a 'load more' button for my posts.</p>
<p>With ajax this is what I'm doing to display the loaded posts into my html:</p>
<pre><code>success:function(res){
var _html='';
var json_data=$.parseJSON(res.posts);
$.each(json_data,function(index,data){
... | 3 | 2,662 |
Filtering Java ConcurrentHashMap | <p>I am working on ecom application. My product is defined below:</p>
<pre><code>import java.math.BigDecimal;
import java.util.Objects;
public class Product {
private String productId;
private String brand;
private String description;
private BigDecimal price;
public String getProductId() {
... | 3 | 1,100 |
How to map child entities to same table in EF Core | <p>I am using EF Core and I need to map child entities to the same table, because they are of the same type.</p>
<p>Imagine the following scenario of class hierarchy:</p>
<pre><code>public class Grandpa
{
public Guid Id { get; set; }
public Father Robert { get; set; }
public Father Jack { get; set; }
}
p... | 3 | 1,084 |
Periods of prolonged inactivity and frequent MessageLockLostException in QueueClient | <h2>Background</h2>
<p>We have a data transfer solution with Azure Service Bus as the message broker. We are transferring data from <code>x</code> datasets through <code>x</code> queues - with <code>x</code> dedicated <code>QueueClient</code>s as senders. Some senders publish messages at the rate of one message every t... | 3 | 1,595 |
Quickblox - fetch user friends' avatars and display inside a UITableView | <p>I need to display entire friend list's avatar images inside UITableView.</p>
<p>I could as well ask this into Quickblox forums but seems like their support is less responsive there.</p>
<p>I have read Quickblox documentation but can't find an efficient way of getting user's avatar images. All I see is <code>[QBCon... | 3 | 1,032 |
Swift code to produce a number of possible anagrams from a selected word | <p>I've attempted to research ways to take a given word and calculate the number of possible anagrams a user can make from that word eg an 8 letter word such as snowbanks has 5 eight letter possibilities, 25 seven letter possibilities, etc (those are made up numbers). My initial plan would be to iterate over a dictiona... | 3 | 2,554 |
Edittext with suggested text from corresponding row in database | <p>Okay, this time as in title I need to have text suggestion in edittext BUT the suggestion must be pulled from the corresponding row in database.
I have database set with 48 rows. No rows can be added as I disabled this functionality. Rows can be only updated. User must have an option to retain current content from ... | 3 | 5,541 |
django+nginx+uwsig return 500 | <p>I am using nginx+uwsgi to deploy my django app,everything is ok when I use django's self server,but when I use nginx+uwsgi,it will return 500 or 404 and diplay my custom 500 or 404 page. </p>
<p>I define the "static_root" in django setting and run "python collectstatic", the static file seems work well.</p>
<p>my... | 3 | 4,502 |
Lag when parsing data from a website - Objective-C | <p>I wrote an app that parses data from a website into a tableview.</p>
<p>I also useMBProgressHUD to show feedback for the user when the parsing happens.</p>
<p>I call the loading method from the viewDidLoad:</p>
<pre><code>- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the ... | 3 | 2,537 |
Inconsistent display on IE & Firefox | <p>I'm using <code>Bootstrap</code> on my website project. I'm through with the design but the items are displayed out of place on <strong>IE</strong> & <strong>Firefox</strong>. The same page renders great on <strong>Chrome</strong>. </p>
<p>I used developer tools on the three browsers to make sure there was no d... | 3 | 4,796 |
AWS Lambda Container Image for Ruby Code -- How to test locally with docker run | <p>I am migrating a Ruby 2.7 Lambda from zip file deployment to container image deployment.</p>
<p>When I deploy my container to AWS Lambda, the container behaves as I hope that it would.</p>
<p>When I attempt to test the same image locally using <code>docker run {my-image-name}</code>, I am encountering 2 issues</p>
<... | 3 | 1,882 |
Hi i am getting user is AnonymousUser even i am passing valid token | <p>hi i am using djangorestframework-simplejwt==4.4.0 and creating token using it <a href="https://i.stack.imgur.com/xQ0B0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQ0B0.png" alt="enter image description here" /></a>
but django give me AnonymousUser when i am trying to pass this token in side ... | 3 | 1,242 |
How to center multiple SVG's to the same point? | <p>This is the look I am trying to achieve in my side navigation:
<a href="https://i.stack.imgur.com/yRRt5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yRRt5.png" alt="enter image description here"></a></p>
<p>This is my HTML:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-co... | 3 | 4,859 |
Socket.io chat app not showing messages in the DOM | <p>I'm following the tutorial on socket.io. But I can't print to the dom.</p>
<p>I've tried using vanilla javascript instead of JQuery but it doesn't work either.</p>
<p>Server file</p>
<pre><code>var app = require('express')();
var http = require('http').Server(app);
var PORT = process.env.PORT || 3000;
var io = re... | 3 | 1,263 |
Getting valgrind errors with static char * | <p>I post because i'm really lost.
I've to do a function that reproduce the behavior of <code>getline</code>.</p>
<p>To do that, I have to create a <code>static</code> buffer that save the beginning of the next line for next calls. But making my buffer static generate some errors. I know that I can't <code>malloc</cod... | 3 | 1,287 |
Use a table to display users added and their data | <p>I am new to coding and have been trying to figure out the current problem I have for the last few weeks.</p>
<p>I have posted a bunch asking different variations of the same question and was informed the way I was trying to execute my idea was incorrect.</p>
<p>I am trying to send a collection of data to a list of u... | 3 | 7,152 |
Scaling animation on different screen size | <p>Hey I have the following problem whan I animate my floating buttons - namely they are scaling badly. First of all, fab buttons on the second Image are higher than they should. Event main floating button with "+" is not rotating. I anyone know how to deal with it please answer me.</p>
<p>Image left HTC One MAX, scre... | 3 | 1,913 |
define Picked Files from File picker as Listview datasource in windows 8 | <p>I am trying to Set files picked using filepiker as List view datasource.
In Windows 8 using Javascript.</p>
<p><strong>HTML:</strong></p>
<pre><code><div id="smallListIconTextTemplate" data-win-control="WinJS.Binding.Template">
<div class="smallListIconTextItem">
<img src="#" class="sma... | 3 | 1,028 |
Menus with nested divs | <p>I need to make a mega menu/mashable like menu similar to one as show in image below
<img src="https://i.stack.imgur.com/vES1v.png" alt="enter image description here"></p>
<p>So far i have been able to make it work to some extent example on <a href="http://jsfiddle.net/4RFtc/" rel="nofollow noreferrer">jsFiddle HERE... | 3 | 8,022 |
error: cannot access Nullable class file for javax.annotation.Nullable not found | <p><strong>I am facing this issue since two days and not getting any solution. I am using MVVM Model with Dagger2 using kotlin for an Android app development. If any additional info required, please comment below, I will post them. I started working on kotlin very recently, so any hint/suggestion/solution would be grea... | 3 | 7,319 |
Compiling error in GStreamer with ios 7+ | <p>I am using GStreamer.framework (binary 1.4.5) downloaded <a href="http://gstreamer.freedesktop.org/data/pkg/ios/1.4.5/" rel="nofollow noreferrer">here</a></p>
<p>I can able to run in deployment target iOS 6.0 but when I am trying to run in iOS 7.0, I am getting the linking error.</p>
<p>The following is the errors... | 3 | 3,029 |
Genericizing a class using a TypeVar with a bound from another generic class | <p>If <code>Foo</code> is generic in <code>T</code>, <code>U</code> and <code>Bar</code> is generic in <code>V</code> but stores an instance of <code>Foo</code>, then to avoid writing</p>
<pre><code>class Bar(Generic[T, U, V]):
def __init__(self, foo: Foo[T, U], v: V):
...
</code></pre>
<p>we could define... | 3 | 1,774 |
PHP PDO Multiple Result sets in one query or multiple separate queries | <p>I am just finishing a simple PHP Framework for a University project and I am trying to create a simple Data Access Object per entity which encapsulates all Database interaction and I am not going to use Doctrine or another tool for this, I need to do it myself, It needs to be simple but robust, I will try keep my qu... | 3 | 1,531 |
pandas: Create new column by comparing DataFrame rows with columns of another DataFrame | <p>Assume I have <code>df1</code>:</p>
<pre><code>df1= pd.DataFrame({'alligator_apple': range(1, 11),
'barbadine': range(11, 21),
'capulin_cherry': range(21, 31)})
alligator_apple barbadine capulin_cherry
0 1 11 21
1 2 ... | 3 | 1,345 |
Python ImportError: DLL load failed while importing | <p>On Windows, I have an environment having <code>Python==3.9.6'</code> installed. I have a strange issue. Having two packages <code>rasterio==1.2.6</code> and <code>h5py==3.3.0</code> installed, either of these two packages are imported first, working well, but the second one is having the following error:</p>
<pre c... | 3 | 1,264 |
SDL Image display slower then wanted | <p>I want to use SDL2 to display a list of rgb values I have in memory to the screen. But my issue is that to update the screen for even a modestly sized image it takes a long time to preform.
On my laptop the example code takes 11.8 milliseconds to update the screen. Which would mean if you wanted a 60fps output it wo... | 3 | 1,498 |
Node.js application fails to deploy to Heroku | <p>I trying to deploy application to Heroku. Application successfully deploys only after changing engine versions. If i try to deploy without modify "engines" section, deploy fails with this errors:</p>
<pre><code>remote: ERROR in ./resources/assets/sass/app.scss
remote: Module build failed: ModuleBuildE... | 3 | 1,084 |
UDP packet does not arrive if not pinged beforehand | <p>I have a code to send a UDP datagram packet from a linux equip (server) to another (client). I have an issue when do this secuence:</p>
<ol>
<li>reboot server.</li>
<li>run the program to send the packet and it is not received by the client.</li>
</ol>
<p>if then I do a ping to the client ip, and run again the pro... | 3 | 2,653 |
I need help in understanding the following kernel module written in C | <p>As an assignment I need to complete the following C code in order to produce a kernel module able to act as a memory, but from how it's written I can't understand how it works and why many variables are not used but just declared. I have already tried looking on the teaching material they gave me, and it's even more... | 3 | 1,319 |
PHP contact form isn't working when first installed | <p>I just installed a new PHP contact form but it isn't working. I already tried to fix it but I can't figure out how to fix it. Can somebody take a look at it and give me a fix?
The PHP code: </p>
<pre><code> $to = 'email@hotmail.com';
$subject = 'Contact';
$contact_submitted = 'Your message has bee... | 3 | 1,540 |
Is this implementation thread safe? | <p>I have following classes:</p>
<pre><code>public interface IApplicationEncryptionService
{
string Encrypt(string message);
string Decrypt(string cipher);
}
public class ApplicationEncryptionService : IApplicationEncryptionService
{
private IApplicationEncryptionCacheHelper m_cacheHelper;
public Ap... | 3 | 1,406 |
How to clear history frames after done tracking in life streaming video? | <p>How to clear every frames that have been processed by tracking? because now in my application, it continues to increase the number of frames, consumes a lot of memory and makes my computer freeze.</p>
<p>Thank You.</p>
<p><strong>EDIT</strong></p>
<p>Start tracking with camshift algorithm with 3 method, update hu... | 3 | 1,565 |
Excluding an additional id from Javascript function | <p>Is it possible to add an id to this code, so that it doesn´t trigger when the desired container itself (mobile-navigation) is clicked PLUS an additional id (hamburger-menu-div). I have a button to trigger the navigation (hamburger-menu-div). It toggles a class. So when I click that specific button, this code should ... | 3 | 1,054 |
Should I use == for string comparison? | <p>sorry if this is a weird question.</p>
<p>I was actually curious about timing attacks, so I have done a little research and understood the concept. I understood that, code like:</p>
<pre><code>if token == password:
print('Welcome')
else:
print('Wrong password')
</code></pre>
<p>is equivalent to:</p>
<pre><co... | 3 | 1,210 |
SQlite null database | <p>I am building a simple bank app (no security what so ever) and have a login activity that verifies the input with an SQLite database. My method returns 1 if is a match and 0 if not. The problem is it always returns 0 because the database is null according to debug. I'm not sure why the variable I use in the login me... | 3 | 2,252 |
Two lots of pagination with codeigniter on one page | <p>I have to lots of paginations one lot is for my user's results and the other is for my question results.</p>
<p>When I am on link 3 on my question results it also switches the results on users list pagination.</p>
<blockquote>
<p>Question if I click on the questions pagination links how can I make sure it does n... | 3 | 2,420 |
Inserting multiple values into a database, php , sql | <p>Im having a problem trying to insert multiple values at the same time into the same column in a table, </p>
<p>This code shows a table:
Table Ex:</p>
<pre><code>-----------------------------
Name | Last Name | Points |
-----------------------------
Test | 185 | |
-----------------------------
Test... | 3 | 1,214 |
Re-Assembling a splitted file correctly | <p>Please have a look at the following code</p>
<pre><code>package normal;
import java.io.*;
import java.util.*;
public class ReGenerateFiles
{
private File inputFolder, outputFolder;
private String outputFormat, nameOfTheFile;
private FileInputStream fis;
private FileOutputStream fos;
List <... | 3 | 1,259 |
How to implement strategy design pattern | <p>Can anyone tell how can we implement Strategy design pattern in the following code. I have gone through various links but not fully clear about implementing it.
Question is: Calculate points and display the report in PDF or HTML using Strategy Design Pattern.
Below is the code already available. Customer, Movie and... | 3 | 1,230 |
Problems contact between two SpriteNodes | <p>I have a problem with my <code>func</code> contact because the second contact don't work (contact with Bonus and Vaisseau) but the two others contact don't work.</p>
<p>So this is my code : </p>
<p>The function :</p>
<pre><code>func didBeginContact(contact: SKPhysicsContact) {
let PremierBody : SKPhysics... | 3 | 1,487 |
Click one div in order to open only it's children and not other with same class | <p>So I tried obviously using $('this .classname') but it toggle closes the whole div.
I'm trying to have each div (image is placed) be clicked and only it's ul be opened.</p>
<p>HTML</p>
<pre><code><div class="col-md-12 col-xs-12">
<div class="recipePicContainer">
<div id="checkBoxes">... | 3 | 1,835 |
Split mysql retrieved data into headers and rows | <p>I retrieve data from DB and I need to insert all of them in a table.
I have some constant headers and some that depends on the query results.</p>
<p>Below you can see a table; how i want it to look like:
<img src="https://i.stack.imgur.com/LEpzK.png" alt="enter image description here"></p>
<p>I did prepare the HTM... | 3 | 1,307 |
Problems getting PDO (or mysqli extension) to run queries on database | <p>The main problem is that for the past week I have not been able to get my script to run queries. </p>
<p>I'm running wamp apache 2.4, php 5.5 and mysql 5.6</p>
<pre><code> if ($flag == true) {
//try to connect to db with given parameters
// minimal validation to make sure no input was sent in error so no... | 3 | 2,281 |
How to remove the space under footer? | <p>Please help!</p>
<p>I tried many tricks to remove the white space under my footer but none of them solved my problem. I noticed that the white space is only visible in the pages with <em>text, p and h1</em> tags. Any help is highly appreciated. </p>
<p><strong>HTML:</strong></p>
<pre><code><!DOCTYPE html PUBLI... | 3 | 7,770 |
How to automatically listener function on Socket IO | <p>Hello i want to try change icon notification,
I'm already try chat with other user with socket io success,</p>
<p>But i have a new problem when user want to know get new notification
(in other menu or after login).</p>
<p>when try have new notification, this function not working,
i want when have new notification th... | 3 | 1,278 |
DJANGO: CSS not loading adter trying other threads | <p>I am having major issues with my css not loading in my Django Project.</p>
<p>It is just a simple project for now as I have just started and when I tried to recreate my normal website the css will no load.</p>
<p>I am using render() to load the files in the views.py</p>
<p>Here I have attached some of the files that... | 3 | 6,988 |
Problem running Hyperledger fabric basic-network: error validating ReadSet | <p>I'm trying to run the tutorial on hyperledger fabric <a href="https://hyperledger-fabric.readthedocs.io/en/latest/tutorial/commercial_paper.html" rel="nofollow noreferrer">documents</a> but when I run the <code>./start.sh</code> command I get this error:</p>
<pre><code>docker-compose -f docker-compose.yml down
Remo... | 3 | 1,372 |
No confirmation messages after submit | <p>I'm working in a <code>Rails 4.1.0</code> application in <code>cloud9 IDE</code>. I enter test info in the <code>fields: Name, Email, Comments</code> in the Contact Us form page, clicked submit and the following info displays in the address bar with no 'Message sent' confirmation: </p>
<p><a href="https://manual-co... | 3 | 1,342 |
AS3 Object with Initial Position Entering Elliptical Orbit | <p><br /><br />
So far I am able to make an object called satelite rotate around another object called turret in an elliptical manner. The only thing is that before the satelite starts rotating around the turret it has an initial position <b>(Figure 1)</b>. However after the first frame the satelite is moved from it's ... | 3 | 1,347 |
Create a button to toggle flex-direction between row and column for a style | <p>I am tying to create a button that will toggle a style flex-direction between "row" and "column"</p>
<p>The code I tried was based on some other code that I used for toggling the display between "flex" and "none".</p>
<p>I can't use Id's because there a multiple non contiguous element.</p>
<p><strong>I TRIED THE ... | 3 | 1,098 |
How to access the tr inner table tr | <p>I am having the below table structure</p>
<pre><code><table class="table-striped table-bordered" style="width: 50%; text-indent: 5px" id="table1">
<thead>
<tr>
<th style="text-align: center; background-color: gray; color: white;" rowSpan="1" colspan="3">HELLO</th>
</... | 3 | 1,155 |
Pagination not working properly after adding in button for admin | <p>I have pagination for a table to display data from the database in the table. This was working fine and I tried to add in a button which only admin's can see. If the user is not an admin they will not see this button. This feature works but once I did it, the pagination only shows one row of data compared to the max... | 3 | 1,494 |
Android Relativelayout click background behaviour | <p>So i have a <code>RecyclerView</code> and it is populated by my custom layout (code below). I have made a background drawable and set it on the root of my custom layout so that when user clicks the item, the background colour changes. There is also an options button (3 dots) on every item's layout, which is also cli... | 3 | 1,446 |
Why does an array that I am assigning to the return value of a Javascript fetch contain data that isn't even showing up in the response? | <p>I apologize if a similar issue was asked elsewhere, as I didn't even really know how to ask this question or what to look for since I haven't really come across anything like this before.</p>
<p>So I will try to make this simple, I am making a fetch call (GET) from my frontend ReactJS webapp to my Java Spring API th... | 3 | 2,269 |
Active state for radio button labels with no value | <p>I have a CMS that outputs radio buttons without a value field. I think I could've target each field based on its value with jQuery to assign "active" class but I don't have that option now. Is there a way to assign and style the 'active' item with either CSS or jQuery for this? Please note, the current CSS... | 3 | 1,514 |
how can I chop strings in a consecutive region with various moving window | <p>I have a data like this </p>
<pre><code>df<- structure(list(sname = structure(2:1, .Label = c("Carrot", "Melon"
), class = "factor"), sence = structure(1:2, .Label = c("RSNSNASSAVSTSCVSNRAMKGTTHYDTS",
"TGMRHGGMVSVCMCVVDDNRRRHYNGAYDDHHRGGVCTS"), class = "factor")), class = "data.frame", row.names = c(NA,
-2L))
... | 3 | 2,032 |
object reference not set to an instance of an object asp.net, | <p>I have two problems:</p>
<ol>
<li>how can i use textbox in other way so it wont throw any error?</li>
<li>i got an error :
<br>
<blockquote>
<p>"object reference not set to an instance of an object.</p>
</blockquote></li>
</ol>
<p>and i dont know how to fix it.
please can someone take a look?</p>
<pre><code>pr... | 3 | 1,089 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.