title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
User class threw exception: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JsonMappingException | <p>I get the following error when I run my Spark Scala program:</p>
<blockquote>
<p>User class threw exception: java.lang.NoSuchMethodError:
com.fasterxml.jackson.databind.JsonMappingException.(Ljava/io/Closeable;Ljava/lang/String;)V</p>
</blockquote>
<p>The particular line which throws the error is <code>val con... | 3 | 2,683 |
"Two-way proxied" download with PHP? (one server serves file, and pings another server with client data) | <p>Sorry about the "two-way proxied download" terminology - am not sure how this would be otherwise called (correct terminology is much appreciated). Anyways: </p>
<p>Let's assume I have a PDF file of an article, <code>test.pdf</code> (see below for Latex example) of which I am an author, which is hosted on a conferen... | 3 | 1,542 |
How to prevent my jQuery slider to get “overClicks” using .stop() {or anything else you will suggest to use) | <p>I have a jQuery slider on my WP website. </p>
<p>When clicking repetitively (without waiting between the clicks) on the arrows to move slides it continues to slide more slides + I have an "addClass" and "removeClass" that makes the image in the centre grow bigger and smaller </p>
<p><img src="https://i.stack.imgur... | 3 | 1,262 |
How to change value of element if I only know aria-desribedby? | <p>I have a grid in my code and I am trying to change the values it displays( it displays true or false), but I only know the grid's cell's aria-describedby is "GridMaksajumi_BezApmaksas"
My grid looks like this:</p>
<pre><code><table id="GridMaksajumi" tabindex="0" cellspacing="0&... | 3 | 2,210 |
iPhone +NSCoding/NSKeyedArchiver | <p>I Have a small problem with NSCoding and NSKeyedArchiver when persisting my App Settings class and was hoping someone could spot an issue if it's my code, I am relatively new to Obj-C but have plenty of coding experience in numerous languages so the code seems ok to me but...</p>
<p>I have an instance class to hold... | 3 | 1,179 |
AppUpdateManager doesn't install app when completeUpdate() is called | <p>I am trying to implement Android In App Update API using AppUpdateManager. I first tried following the documentation, which if you are here, then you know that doesn't work.</p>
<p>So then I've read about a dozen tutorials and blog articles on how to get this to work. I'm about 90% there. For me after the user a... | 3 | 2,457 |
Not able to execute embedded Saltstack state using gitfs | <p>I am working with the "<strong>gitfs</strong>" feature of SaltStack in order to execute a state file.
The state file uses the "include" feature to embed other two state files from the repository.</p>
<p>My repository has the following hierarchy:</p>
<pre><code>salt
- dir1
- dir3 / init.sls
... | 3 | 1,188 |
Parsing Simplexml children of children | <p>I've been trying to parse this data for a while now, but I don't really understand simpleXML and how it stores/retrieves. I have the following xml: </p>
<pre class="lang-xml prettyprint-override"><code> <ListOrderItemsResult>
<OrderItems>
<OrderItem>
<QuantityOrdered>1&l... | 3 | 1,226 |
Resource dependency issues in nested cloudformation stack | <p>I am receiving an error when I try to update my root stack with a new nested stack.</p>
<p>Error: "Template format error: Unresolved resource dependencies [ProjectsusgetFinancialsLF] in the Resources block of the template".</p>
<p>Here is how I am passing my values to from my main stack to the nested stack:</p>
... | 3 | 3,087 |
My release apk has no classes.dex or libraries. why? | <p>I'm not very experienced with Android Studio. I'm in final phases of my app and I tried to build a release apk. But the file size is significantly lower than debug apk, which it should be. But then I analyzed my release apk and found out that it doesn't include any of my classes or libraries except resources.</p>
<... | 3 | 3,031 |
NSRANGE Exception | <p>So I'm following <a href="https://www.tensorflow.org/tutorials/generative/dcgan#train_the_model" rel="nofollow noreferrer">this</a> guide on my M1. Everything is the same except for a few tweaks of the model and my train function looks like</p>
<pre><code>def train(EPOCHS,BATCH_SIZE,DATASET):
for epoch in range(E... | 3 | 1,496 |
Cluster scaling group instantly desires 2 instances without any task running on the specified capacity provider | <p>I have ECS cluster, which already uses fargate as capacity provider. With fargate everything works fine. However, now I want to add an ASG as an additional capacity provider. As instances I want to use p2.xlarge and my tasks run very infrequent, thus I want to scale the instances to 0, when no task is placed (This s... | 3 | 1,237 |
Google Analytics OAuth2 Client ID Localhost | <p>I am trying out this Embed API tutorial which doesn't seem to be working for me:
<a href="https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started" rel="nofollow noreferrer">https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started</a></p>
<p>This is my code fol... | 3 | 1,356 |
Symfony 2.7 custom exception handler | <p>I'm trying to use a custom controller for exception handling in my Symfony 2.7 project, but I'getting this error: <code>Type error: Too few arguments to function Symfony\Bundle\TwigBundle\Controller\ExceptionController::__construct()</code></p>
<p>I have set the exception class like this:</p>
<pre><code>twig:
... | 3 | 1,110 |
Differentiate between touch count SKSpriteNode | <p>Below, I have implemented test to understand touch count behaviour of touchable sprite (<code>sprite.isUserInteractionEnabled = true</code>)</p>
<p>When I check in: </p>
<pre><code>override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
for touch: AnyObject in touches {
print(... | 3 | 1,038 |
How to make statement work only for the selected level in Sprite Kit | <p>So Here I have this code </p>
<pre><code> if collision == PhysicsCategory.Cat | PhysicsCategory.Bed {
print("SUCCESS")
win()
if currentLevel < 10 {
currentLevel += 1
}
</code></pre>
<p>And basically this statement works for every single level that ... | 3 | 1,945 |
Finding pixels containing 0 | <p>I'm trying to calculate the pixels within a range. I calculated the range, but I can't count the pixels containing 0.</p>
<p>My code:</p>
<pre><code>first_value_of_i = zeros(M,1);
first_value_of_j = zeros(N,1);
second_value_of_i = zeros(M,1);
second_value_of_j =zeros(N,1);
for i = 2:M-1
for j = 2:N-... | 3 | 1,110 |
Create dynamic gridview and automatically refresh all items in html page using java script | <p>I am trying to build a blog website using html and javascript where I add blogs contains titles, paragraphs & pictures using the form submit button.
Here listofobject I take it as a list and depends on number of items of the list gridview automatically generate using javascript code:-</p>
<p><div class="snippet"... | 3 | 1,830 |
Sendto: invalid argument error | <p>I'm creating a concurrent UDP socket for a university project. The client waits for a <code>stdin</code> command, then creates a new process and a new socket with the function child_job. The server receives the command from the client, creates a new process that initializes a new socket and then tries to send a stri... | 3 | 2,682 |
Get geom_contour / geom_tile to work with my data | <p>I would like to plot the following data with ggplot2:</p>
<pre><code>res = structure(list(x = c(0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0.301029995663981, 0.301029995663981, 0.301029995663981,
0.301029995663981, 0.301029995663981, 0.301029995663981, 0.477121254719662,
0.477121254719662, 0.477121254719662, 0.477121254719662... | 3 | 5,783 |
Heroku maven spring boot Build success Run Failed | <p>I wanted to deploy a spring boot project in heroku. The deployment is a success as its build triggered and build succeeded. Then i added procfile to run it.here's my procfile : </p>
<pre><code>web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar
</code></pre>
<p>and my pom.xml is: </p>
<pre><code> <p... | 3 | 1,299 |
selectpicker - error only with more options in the select | <p>This script shows a year-month dropdown.</p>
<p>When clicking on it to change its value, this error occurs in the Firefox console, without showing the options in the select:</p>
<blockquote>
<pre><code>Uncaught TypeError: A.selectpicker.current.data[(v + A.selectpicker.view.position0)] is undefined
i bootstrap-s... | 3 | 3,712 |
run javascript code in node js using array of inputs | <p>This below code is used to scrape <code>long tail keywords</code> from google using node.js.
the code is from <a href="https://github.com/datagrab/keyword-scraper" rel="nofollow noreferrer">https://github.com/datagrab/keyword-scraper</a></p>
<p>it scrape one keyword at a time by running the code on terminal and save... | 3 | 1,589 |
Modelling a composite Time Series ID | <p>I have deployed the <a href="https://github.com/Azure/Industrial-IoT" rel="nofollow noreferrer">Azure Industrial IoT Platform</a> to my Azure subscription. When it provisions Time Series Insights it uses a composite key for the Time Series Id.</p>
<p>I am having a hard time determining the format of the "Time ... | 3 | 1,082 |
Cannot pass textarea input in modal window to a PHP variable | <p>To begin, I'm working with 3 languages. HTML, Javascript and PHP. I'm unable to pass user inputted textarea text to a PHP variable which would be used as a message in an email that would be sent out. What I believe to be the problem is that my textarea is actually in a modal window and for some reason I think that i... | 3 | 1,438 |
How to fix content overlaps on transition between scenes and all pinned section also randomly loading on top of each other when using scrolltrigger? | <p>When I create scroll animations using GSAP and Scrolltrigger with multiple scenes I face two issues. One is that when transitioning between two pinned sections the previous or next section tends to overlap. Another issue is suddenly from time to time (random) all the pinned sections overlap on top of each other maki... | 3 | 3,880 |
With Ansible, how do I write a private key to a text file without losing the left padding? | <p>In other words, I want the content from an Ansible variable to be written to a particular "column" in a config file, and I don't want that content to be wrapped.</p>
<p><strong>The task:</strong></p>
<pre class="lang-yaml prettyprint-override"><code>- name: build cloud-init file
local_action:
module:... | 3 | 1,508 |
request.getResponse() is getting error | <p>This is my code which is returning the expected output on my friend's PC, but not on mine.</p>
<p>We are both working with Visual Studio 2017 Community:</p>
<p><a href="https://i.stack.imgur.com/KwlYT.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>This is the code that will return latitude... | 3 | 3,667 |
How to calculate recency in R | <p>I have the following data: </p>
<pre><code>set.seed(20)
round<-rep(1:10,2)
part<-rep(1:2, c(10,10))
game<-rep(rep(1:2,c(5,5)),2)
pay1<-sample(1:10,20,replace=TRUE)
pay2<-sample(1:10,20,replace=TRUE)
pay3<-sample(1:10,20,replace=TRUE)
decs<-sample(1:3,20,replace=TRUE)
previous_max<-c(0,1,0,0,... | 3 | 1,470 |
Possible Object Deallocation Error, Background App Crash block_invoke_5 | <p>I am having an unexpected issue with a crash on my app which I am specifically struggling to debug because it occurs in background at a time determined by the iOS system. I have some capitalised comments to the code which show where the issue is being back traced to. I hope this is clear.</p>
<p>I believe it has to... | 3 | 2,532 |
I want to create a "See all your funds" button on dropdown list | <p>I'm quite new to JS/JQuery web dev in general. </p>
<p>For a work task I've been asked to come up with a solution where the first 3 funds in a list are shown and if they are invested in more than 3 then there will be a show all your funds button and once clicked it will toggle the rest of the funds.`</p>
<pre><cod... | 3 | 6,336 |
Collision Detection with rotated sprites SharpDX | <p>I am writing a SharpDx.Toolkit(XNA) Game. I searched in the internet how to program a collision detection, and I've found this:</p>
<pre><code>static bool perPixel(Rectangle rectangleA, Color[] dataA, Rectangle rectangleB, Color[] dataB)
{
// Find the bounds of the rectangle intersection
... | 3 | 1,108 |
Find all numbers adding up to given number and range to use | <p>This is not homework, but a real world application I'm getting stumped on.</p>
<p>The best way I can explain my problem is as follows:</p>
<p>Imagine you have 3 pig pens <code>A</code>, <code>B</code>, and <code>C</code> and 10 pigs to be kept.
The pens have restrictions in that each pen must contain at least 1 pig ... | 3 | 1,168 |
Why my emails keep going to spam with PHPMailer? | <p>I'm using SMTP authentication, i follow the rules so it doesn't gets flagged as spam, i already looked into cname.</p>
<p>I'm hosting my webserver in Hostinger, but I also have some websites in Hostgator and the same occurs, i already asked for their support to activate everything so my email doesn't get flagged as ... | 3 | 1,822 |
ML on apache logs | <p>I am trying to visualize and predict application logs (I am using category model), my label category is on response time, my sample log is on below format</p>
<pre><code>172.17.0.1 , [03/Apr/2022:18:15:37 +0000] , GET / HTTP/1.1 , 200
172.17.0.1 , [03/Apr/2022:18:15:37 +0000] , GET / HTTP/1.1 , 200
172.17.0.1 , [0... | 3 | 1,055 |
Insert into database using excel from database start from col 2 | <p>I`m trying to insert data into a database, from an excel file but starting from column 2 because the first column is being used for the name of the row in the table.</p>
<p>This is my form to input the file, this code reads from the first column, I want to start reading from column 2.</p>
<pre><code><h2>Impo... | 3 | 3,888 |
Illegal Argument Exception in Email column doesn't exist | <p>I am fetching Contact Name, Contact Number, Contact Email from device phone book. Till now I was fetching contact name and number and it was working fine. Now I am trying to add even email to name and number. But I am getting illegal arguments exception. please let me know what am I doing wrong here. Below is my que... | 3 | 3,461 |
Foreach loop displaying values in a certain format | <p>I have two foreach loops in which are fetching results from mysql database table. The values are displaying correctly but I am trying to compress the results so it doesn’t repeat values. For example there are two <code>courses</code> and two <code>instructors</code> in the table. That means when I run the loop I exp... | 3 | 1,200 |
How to use cellWillDisplay/scrollViewDidScroll to update API fetch data? Swift | <p>I'm new to Swift development,
I want to fetch data from API, and found some problems,
I want to fetch 20 data only in my table view, and when I scroll to the bottom I can fetch another 20 data so on...</p>
<p><a href="https://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=f18de02f-b6c9-47c0-8cd... | 3 | 1,097 |
Download And Save File From URL in Swift | <p>I'm trying to...</p>
<ul>
<li><p>download a file (an MLModel) from a server</p></li>
<li><p>save that file to the device </p></li>
<li><p>re-launch the app</p></li>
<li><p>use the URL (path) that the file was saved to, to access the downloaded file.. so I don't have to re-download it every time the app launches</p>... | 3 | 1,585 |
C# TPL Task propagate exceptions - Multi-level task | <p>The <code>Run()</code> method (first block of code) makes a call to <code>GetImpairedNodesFromCASpectrumAsync()</code>, which in turn makes a call to <code>GetRoutersOn3GBackupNodeStatusesAsync()</code>.</p>
<p>Currently, if any of the tasks in <code>GetRoutersOn3GBackupNodeStatusesAsync()</code> fail (due to an ex... | 3 | 1,728 |
Why wont my modal work after returning to the website? | <p>For some reason I cannot reuse my modal once I leave the site. In order to make it work you need to clear the cache.</p>
<p>Here is the code for my modal:</p>
<pre><code> <div class="col-md-4 col-lg-offset-0 col-lg-4">
<div class="card">
<img class="card-img-top" src=... | 3 | 1,129 |
How I can compare and move data from A to B in Powershell older than x Days? | <p>I have a Problem with my Powershell Script. ;(
I want to <strong>delete/ move/ compare</strong> with Powershell. </p>
<p><strong>Here my Idea:</strong> </p>
<p>If I start the Script I remove all empty folder from A. After that I want Move all Data from A to B that x Days older. (Here is my first problem) </p>
<p... | 3 | 1,061 |
How to HTTPPut in android | <p>Im trying to do a HTTPPut but seems that I cannot instantiate the HTTPPut object. Im refering to this question as a source code, but seems to create a HTTPPut object I need a URI not a URL? Can someone tell me how can I instantiate the HTTPPut object?</p>
<p>Source:</p>
<pre><code>URL url;
... | 3 | 1,253 |
Joining a 3rd MySQL table (redone) | <p>Okay so I will try to re-explain this question as nobody seemed to understand my aim for this. It's 3am so that's probably where I am slacking a bit... But I'll try my best here. </p>
<p>I am currently working on a Posts & Comments section, users can post on their own or other users walls and as such, other use... | 3 | 5,053 |
Backbonejs collection not populated, but fetch works | <p>Heres what I've been working on: <a href="http://jsfiddle.net/leapin_leprechaun/29aysou5/3/" rel="nofollow">http://jsfiddle.net/leapin_leprechaun/29aysou5/3/</a></p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Results App Train... | 3 | 2,499 |
Contact CRUD Function using SQLiteDataBase | <p>I am new to android development, i tried contact crud function which throwing NullPointer Exception error in onItemClick, Please help me..
here is the code i tried,
Workflow,
1. Add New contact will save data in DB and list only FirstName in main Activity
2. Select FirstName in list should goto Edit Activity and... | 3 | 5,794 |
Lining Up Bezier curves taken from SVG files | <p>So I am currently working on a subclass of UIView which uses <a href="https://github.com/71squared/TBXML/" rel="nofollow">TBXML</a> to parse a SVG XML files and strip the 'g' path instructions out. Then it passes these sets of instructions to <a href="http://ponderwell.net/2011/05/converting-svg-paths-to-objective-c... | 3 | 1,592 |
laravel 9 css not display properly | <p>I have create a new laravel 9 project and I have encounter an css and js assets connection problem</p>
<p>At first, I have run</p>
<pre><code>php artisan serve
</code></pre>
<p>to see if my project is working , and seems like everything is fine .
<a href="https://i.stack.imgur.com/nJrI7.png" rel="nofollow noreferr... | 3 | 1,463 |
Unable to retrieve map of key value pairs as value in map | <p>I am struggling with a simple problem(I think).
The issue is this.</p>
<pre><code>this.keyss = new Map();
this.summonerHistoryService.getimage().subscribe(champsinfo => {
for(let c of Object.values(champsinfo.data))
{
let values = new Map();
values.set("frequency", 0);
values.set(... | 3 | 1,128 |
Bad FPS in a simple Three.js scene in Safari MacOS | <p>I have a simple demo that works fine in Chrome and Firefox. But Safari is lag like hell. If I disable antialising, it increases the FPS but not that much. How can i optimize my code ? Maybe use some caching? I'm new to three.js </p>
<p>It will be nice if it will work in iOs safari too.</p>
<p>Here's the demo: </p>... | 3 | 1,318 |
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, string given | <p>When I click on search button without entering any text in textbox it gives me "Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, string given" this error, how can I sort out this issue,here is my code any help will be appreciated</p>
<pre><code><?php
$title ="Manage Page";
include "includes... | 3 | 2,905 |
How to iterate XQuery Path? | <pre><code><Response xmlns="https://**********/token">
<rows>
<e>
<e>1,4507</e>
<e>1</e>
<e>2017-02-28T05:10:32.0606654Z</e>
<e>2017-02-28T05:10:32.2267838Z</e>
<e>Depart</e>
<... | 3 | 1,134 |
Is it Better practice to Declare individual objects or loop Anonymous objects into ArrayList? | <p>I am learning programming with Java through a textbook. A programming exercise asks you to:</p>
<p>(Swing common features) Display a frame that contains six labels. Set the background
of the labels to white. Set the foreground of the labels to black, blue, cyan,
green, magenta, and orange, respectively, as shown i... | 3 | 2,214 |
Swipe gesture detected but no image is displayed (UISwipeGestureRecognizer, UIImageView and NSArray) | <p>I am trying to swipe between 2 images. The gesture is recognized but no image is displayed.</p>
<p>I am attempting to do it programmatically. At first I am creating an UIImageView that I have declared in the .h file. That image view is called imageView.</p>
<p>In the .m file I am implementing that view. I have als... | 3 | 1,073 |
Deadlock while closing Netty channel | <p>I'm working on an application that uses Netty to send/receive RTP traffic. During a load test, we noticed that our single work thread ran into a deadlock while attempting to wait for Netty to close a channel.</p>
<p>Context:</p>
<ul>
<li>There is a shared <code>NioEventLoopGroup</code> among all RTP Endpoints (=>... | 3 | 1,335 |
How to insert python lists in HTML table? | <p>I have the following output list from python list. </p>
<p><code>['N3132-a', '172.20.138.18', '192.168.193.15/24', 'N3132-a.td.com ', 'N3K-C3132Q-40GX', 'FOC2116XCFV', 'NXOS: version 7.0(3)I4(6)']</code></p>
<p><code>['N56k-a', '10.249.98.11', '192.168.173.16/24', 'N56k-a.td.com ', 'N5K-C56128P', 'FOC2187FGHJ', 'k... | 3 | 1,492 |
Type 'SVGPathSeg' is not assignable to type 'EnterElement'. Property 'ownerDocument' is missing in type 'SVGPathSeg' | <p>I'm trying to reproduce this <a href="https://bl.ocks.org/mbostock/4063550" rel="nofollow noreferrer">example</a> using <a href="https://github.com/tomwanzek/d3-ng2-service" rel="nofollow noreferrer">d3-ng2-service</a> service on Angular 5.</p>
<p>Component:</p>
<p>ngOnInit code:</p>
<pre><code>let d3 = this.d3;
... | 3 | 4,089 |
Android How to change ListView adapter | <p>I have an <strong>Activity</strong> with a <strong>TextBox</strong>, a <strong>ListView</strong> with some options that can be placed if I push on it and a <strong>button</strong> to validate data on the textbox.</p>
<p>It works fine. My problem arrives when I want to change the ListView adapter to modify the eleme... | 3 | 2,661 |
Unit testing in java | <p>I have to add tests for this java program. But, i don't understand for what could i use tests in such a program. I don't really see any benefits of using tests because it is not a program like finding if a number is or isn't prime.</p>
<pre><code>package utcn;
import javax.swing.*;
import java.sql.*;
import java.a... | 3 | 1,228 |
Dynamically allocated doubly linked circular list class instances segfault C++ | <p>Using this template class works perfectly fine when main operates with <em>constructed</em> variables of type dlring, yet my goal is to allow <em>dynamic allocation</em>, so I can handle a non-predefined number of doubly linked circular lists to allow usage of such functions as:</p>
<ul>
<li>Splitting a list into t... | 3 | 1,809 |
Regression lines in ggplot | <p>I have a 2 x 2 <a href="/questions/tagged/ancova" class="post-tag" title="show questions tagged 'ancova'" rel="tag">ancova</a> with the resulting plot showing 4 regression lines and 4 groups in various colours on the plot. I wish to retain the 4 colours in the plot but only show 2 <a href="/questions/tagged/... | 3 | 1,284 |
INNER JOIN change SUM result | <pre><code>CREATE TABLE beauty.customer_payments
(
customer_id integer,
date date,
amount numeric(10,2),
CONSTRAINT customer_payments_customer_id_fkey FOREIGN KEY (customer_id)
REFERENCES beauty.customers (customer_id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
)
</code></pre>
<pre><code>CREAT... | 3 | 3,021 |
Gspread app works on laptop but crashes on android? | <p>I'm using google sheets on my kivy app. When i test it on my laptop it works fine but on phone loading screen flashes briefly and then the app crashes. Anyone know if and how you can use gspread on android? I've located the problem to gspread by making a hello world app and importing libraries there one by one. Gspr... | 3 | 3,061 |
Angular2 Template Parse Errors EOF | <p>In Angular2 (beta 13) I am attempting to display a list of data items retrieved from a database. This part is working fine.</p>
<p>However, when I attempt to display these items (application names) in a html table, it does not work. Strangely it does works when displaying this within a list.</p>
<p><strong>Error... | 3 | 1,431 |
data management in "Skate Warehouse" (HTML5/JS DevExtreme) | <p>I'm testing the Demo sample "Skate Warehouse" (HTML5/JS DevExtreme).
Where does the app get the data for Products.js ?
Can I instead read the information from a text file and display it in products?</p>
<p>Products.js:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal... | 3 | 1,273 |
Simple UITableViewCell casting fails intermittently | <p>I have a UITableView that registers a <code>PaymentAddressTableViewCell</code> which has a method on it called <code>validate</code> which looks at the <code>cellType</code> enum and applies a specific validation to the text field in the cell. </p>
<pre><code>let tableView = UITableView()
tableView.register(Payment... | 3 | 1,281 |
Spring ContextLoadListener error | <p>I had a functioning Spring MVC app that I wanted to add a form to. However, once I added the form to the jsp using tag, I started getting a <em>No WebApplicationContext found: no ContextLoaderListener registered?</em> error.</p>
<p>I did some searching on here, and I didn't have an listener inside of my web.xml ... | 3 | 3,695 |
Rails 7 and Turbo | <pre class="lang-ruby prettyprint-override"><code> # GET /rides or /rides.json
def index
@location = current_user.currently_at
@location ||= 'Georgetown'
@pagy, @rides = pagy(Ride.where(from: @location)
.where(status: 'open')
.where.not(id: current_user.driver.offers.select(:ride_id)).order(create... | 3 | 1,836 |
Break an array of saved list from droppable area | <p>I have a loop of droppable objects. I want to save and print list of objects for each row in the loop. I have a <a href="https://jsfiddle.net/montel388/ny1n9gm0/" rel="nofollow">fiddle</a> here with two rows. So what i want is two different lines of saved objects, for each row.
Here is code with loop: </p>
<pre><co... | 3 | 1,975 |
Creating a Conversation between 3 users in a rails chat app | <p><strong>Currently</strong>, it requires <code>recipient_id</code> and <code>sender_id</code> to start a Conversation between 2 users. </p>
<p>How would the associations work if I wanted to allow a 3rd user to join a Conversation?</p>
<p>When a user starts a conversation, the <code>conversation.id</code> belongs to... | 3 | 1,273 |
Change Material of a Sphere on Focus for VR 360 Degree Image App in Unity3d | <p>I am creating an app for google-cardboard, App like 360 degree image.
I created a sphere and I made 62 material with different 360 degree image.
I created 2 button, next and previous, when i focus on next button its changing to next material as i want. but when i focus on previous button, its changing to last materi... | 3 | 1,088 |
Problems with Bundler when trying to upgrade rails 3.0 site from ruby 1.8.7 to 1.9.3 | <p>I'm trying to upgrade all my apps from ruby 1.8.7 to 1.9.3.</p>
<p>Some apps are working fine. However, I have a rails 3.0.x site that keeps throwing an error about the wrong bundler version when I run it or use bundle install.</p>
<pre><code>Bundler could not find compatible versions for gem "bundler":
In Gemfi... | 3 | 1,413 |
how to display loading indicator in AVAudioPlayer if user clicks the play button | <p>I am working in AVAudioplayer in iOS. I am displaying an activity indicator for loading time if a user clicks the play button. My problem is that when I click the play button the loading time activity indicator is not displayed.</p>
<pre><code>-(void)loadData
{
url=[NSURL URLWithString:@"http://www.urls.com"];
N... | 3 | 1,926 |
Wordpress Visual Composer Sidebar | <p>I have some problems. We must work on a page from another agency. They write something to show a Sidebar. The site uses Visual Composer. </p>
<p>I must add menu-item classes to the <li> Tag (for example menu-item-112 and so on). </p>
<p>Here is the following code: </p>
<pre><code><?php
function sidenavi_func( ... | 3 | 1,278 |
Importing Facebook API data as JSON Object into Google Sheets results in mismatched Dates value | <p><strong>Goal:</strong> Import client data from Facebook Graph API into a Google Sheet to create a dynamic Facebook Ads Dashboard</p>
<p><strong>What I've tried:</strong></p>
<ol>
<li><p>Downloaded Google Sheet script that includes an ImportJSON function which is meant to import a JSON feed and flatten it into a two-... | 3 | 2,405 |
Thread While True: Loop Keeps the Code From Iterating | <p>I have a thread running as a daemon.</p>
<p>In this thread I wish to continously update some variables, that are dependent on reading rows from a MySQL database.</p>
<p>Problem is, that the program doesn't want to iterate past the While True:-loop, although it is inside of a thread. Isn't that the whole point with a... | 3 | 2,296 |
Spring Boot, upload any amount of files in REST controller | <p>I'd like to create an endpoint which accepts any amount od different files from user.</p>
<p>For example:</p>
<p><a href="https://i.stack.imgur.com/STpF4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/STpF4.png" alt="enter image description here" /></a></p>
<p>Then, I'd like to receive it in my c... | 3 | 1,131 |
Search button not displaying specific data on the table | <p>I have 4 rows of data in the table. I managed to display all the data using PDO select query. I also have a search button for displaying specific data from my database. It's working but instead of filtering and displaying the specific data I have searched, it just added on the table.
Here is my code for search butto... | 3 | 1,703 |
Xamarin.iOS Cannot display photo in Push Notification | <p>I have a Notification Service Extension and an AppGroup. I save a photo from camera in the PCL project and copy it to the App Group Container (shared folder). </p>
<p>In the Notification Service Extension I try to download the photo from the App Group container and attach it to the notification but it just does not... | 3 | 4,217 |
function call on child object in adobe flex | <p>i have generated parent(label) object and it's child object(button) pragmatically with function named "addButton()" in adobe flex. now i want to call a function named "lable()" on parent object and want to call function named "btn()" on child object. but on every click my script call same function "lable()". </p>
... | 3 | 1,278 |
result not coming with d3js? | <p>After lot of help from stackoverflow folks,finally resolved my json and now its looking good.</p>
<p>luck.json---></p>
<pre><code> {
"PERFECT_JSON_object":
{
"51b59c1bbae1c":
[
{ "id": "parties", "float_1": "0.006" , "float_2": "0.9"},
... | 3 | 1,060 |
Processing a bitmap in a restful api c# | <p>i have a bitmap in which my bellow code returns the positions/coordinates of the dots in the image as follows:</p>
<pre><code>public static void Main()
{
var resource = Assembly.GetExecutingAssembly().GetManifestResourceStream("test.png");
byte[] buffer = new byte[resource.Length];
reso... | 3 | 1,701 |
I want my button not in the same row as my choose buttons in my gui? How will I do that? | <p>How do I add a break to put my "Make pokemon" buttons and textarea not in the same row as my "Pokemon choice." I'm trying to put an empty JLabel, but I don't think it works.</p>
<pre><code>public class PokemonPanel extends JPanel {
private JLabel lTitle = new JLabel("Pokemon");
priva... | 3 | 1,328 |
Gelocation not working in Android - PhoneGap Build | <p>I am making an simple PhoneGap app which gets the users location.</p>
<p>the code used for my build is from examples of the maps <a href="https://developers.google.com/maps/documentation/javascript/examples/map-geolocation" rel="nofollow noreferrer">documentation</a></p>
<p><strong>Following is my xml code:</stron... | 3 | 2,196 |
Split value from a data.frame and create additional row to store its component | <p>In R, I have a data frame called <strong>df</strong> such as the following:</p>
<p><strong>A</strong> <strong>B</strong> <strong>C</strong> <strong>D</strong> <br>
a1 b1 c1  ... | 3 | 1,342 |
How go get address of slice as u64? | <p>I transfered this C struct:</p>
<pre><code> 85 struct spi_ioc_transfer {
86 __u64 tx_buf;
87 __u64 rx_buf;
88
89 __u32 len;
90 __u32 speed_hz;
91
92 __u16 delay_usecs;
93 __u8 bits_per_word;
94 __u8 cs_change;
95... | 3 | 1,172 |
Precise framerate in gstreamer while grabbing YUY2 frames from usb camera | <p>I have a ELP USB 3.0 camera. The output of C:\msys64\mingw64\bin\gst-device-monitor-1.0 is:</p>
<pre><code> name : 3.0 USB Camera
class : Video/Source
caps : image/jpeg, width=1920, height=1080, framerate=60/1, pixel-aspect-ratio=1/1
image/jpeg, width=1280, height=720, framerate=60/1, pixel-... | 3 | 1,125 |
How to get a string from an XSL 3.0 Map | <p>I have an XSL Map</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE stylesheet>
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:functx="h... | 3 | 1,102 |
Docker container on Fedora 28 KDE have no internet connection | <p>since a couple of weeks I'm trying to fix an issue on my new laptop with fedora 28 KDE desktop!</p>
<p>I have two issues :</p>
<ol>
<li>The container can't connect to the internet</li>
<li>The container doesn't see my hosts in /etc/hosts</li>
</ol>
<p>I tried many solutions, disable firewalld, flusing iptables, a... | 3 | 1,049 |
Custom post type with category results in error | <p>I don't know what I'm doing wrong. I have a custom post type called <code>models</code>. Within this custom post type I register also a custom taxonomy. This custom taxonomy is used for categories. But I getting every time a 404 error.</p>
<p><strong>This is how I create my custom post type:</strong></p>
<pre><cod... | 3 | 1,824 |
ruby on rails record not being updated | <p>I'm using devise on my project, i want to update others profile from my admin panel, so only users with admin role can access it, since this behavior is very different to the default devise, i decided to create a separated controller, so i can manipulate users as normal records, but for some reason when i update use... | 3 | 4,717 |
VTK: display subdivided polygon | <p>I have created an icosahedron and subdivided it, I am not trying to display it but it seems to be displaying it un-subdivided. Here is my code:</p>
<pre><code>vtkSmartPointer<vtkPlatonicSolidSource> icosahedron = vtkSmartPointer<vtkPlatonicSolidSource>::New();
icosahedron->SetSolidTypeToIcosahed... | 3 | 1,158 |
Read file into Buffer Chunks of 32 bytes | <p>I have a requirement to do the following after opening a txt file using JFileChooser</p>
<ul>
<li>Buffer chunks of 32 bytes; each row saves id (in column 1, succession number starting from 1) and the 32 bytes. The buffer size of the last row may be less than 32 byes, in which case pad it with ‘*’.</li>
<li>Display ... | 3 | 1,084 |
How to properly decrypt passwords stored in SQL Server database in C# | <p>I'm a fairly new developer so bear with me, this has given me a headache.</p>
<p>I have been trying to store the passwords for a Winforms application I'm developing in an encrypted format in the database. There is a login and registration interface when the application is first opened.</p>
<p>I have managed to encry... | 3 | 1,834 |
How to seperate CSV values with in a cell in pyspark dataframe to new columns and their values respectively | <p>The current spark data frame has CSV values in cell level of one column, I trying to explode it to new columns. The example dataframe</p>
<pre><code> a_id features
1 2020 "a","b","c","d","constant1","1","0.1&... | 3 | 1,273 |
In Pandas, how to return 2 data using resample('D').first()? | <h2> Questions </h2>
<ul>
<li>Q1. Why does the <code>float</code> data changes to <code>string</code> data when it gets put into a <code>pd.dataframe</code>? Is there any way to keep it float, rather than changing it to float afterwards with <code>.astype(float)</code>?</li>
<li>Q2. How to get 2 data using <code>resam... | 3 | 1,238 |
How to use the function glmrob on a binary logistic regression? | <p>I am currently running a regression that explains the probability of only one company bidding in a tender by several corruption indicators. My current regression is:</p>
<pre><code>glm(Single_Bid ~ Announcement_NoCall + Country_NL + Extr_Adv + Extr_Dec + Legal_NoCall + Procedure_Open + Type_Regionaal + Year2012 + Y... | 3 | 1,453 |
I'm trying to extend a Java program given to us at Uni, and I can't get the program to use the methods in the new class | <p>So, firstly I'm a pretty amateur Java programmer and it's just one module and then it's over.</p>
<p>The criteria is to override the predefined 'about()' command in our TurtleGraphics program.</p>
<p>I can get it to work if I put the override in the GUI class with everything else, but when I try to create an 'Exte... | 3 | 6,056 |
Gitolite doesn't respect rules when accessed through httpd | <p>I convinced the office that we should move to Git. Because we're just starting, I set up a git server using plain git and https in front of it using nginx. We <em>don't</em> use gitlab or something like that - for now.</p>
<p>One of the questions I got is whether it would be possible to restrict access to specific ... | 3 | 1,826 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.