title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to tailor the x-axis of a ggplot to include dates | <p>How to insert dates in the x axis of a ggplot as this:</p>
<p><a href="https://i.stack.imgur.com/uzJ68.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uzJ68.png" alt="enter image description here" /></a></p>
<p>Thanks to the help from SO, I managed to have a tailored x-axis in the basic plotting f... | 3 | 2,509 |
I am using viewpager2 inside a recyclerview but the images are not outputting. Why? | <p>No matter what I do the pictures are not showing up.</p>
<p>Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the morning, if I find it, I will relax very well :D</p>
<p>This is my adapter for viewpager 2 :</p>
<pre><code> class ViewPagerAdapter ( private val ... | 3 | 2,987 |
Error from main arraylist GUI program. Not Sure how to fix it | <p>I'm working on an assignment for my java class. We were given two main programs to test our programs on. The main GUI is getting an error i'm not sure how fix.
I'm not allowed to make any changes to the two main programs at all. Note: I had this exact same error on my previous assignment for that assignments mainGUI... | 3 | 11,098 |
Why does my tab container box exceed my main div? | <p>I really need your help with this. I have been at this for a few hours to no avail. So I am taking to the interwebs of gurus and experts.</p>
<p>Why does my .tab_container div exceed my main div on the right? How do you remedy this problem?</p>
<p>Here's a picture of the problem:
<a href="https://i.stack.imgur.com... | 3 | 1,274 |
How do I get my xhtml datatable to display the values, rather than the expression? | <p>I'm trying to move some spreadsheets online, so I created a Java EE application, and I've been trying to play with <code><h:datatable></code> to post my tables onto the webpage. When this all is published to the server (<code>JBoss EAP 6.4</code>), I get the following output:</p>
<pre><code>Title Header
Name... | 3 | 1,157 |
JAVA 11 - elliptic curve private key - Caused by: java.security.InvalidKeyException: IOException : version mismatch: (supported: 00, parsed: 01 | <p>Small question regarding getting an elliptic curve private key with Java please.</p>
<p>I run this command in my terminal:</p>
<p><code>openssl ecparam -name secp256k1 -genkey -noout -out ec-secp256k1-dummy-priv-key.pem</code></p>
<p>This commands is working fine, generating the file fine, I can even <code>cat</code... | 3 | 1,108 |
Trying to create a smooth scroll-based sticky video | <p>I'm trying to make a video animation that runs based on the scroll position within a sticky container. So far, I am able to get the mechanicals of the scrolling and video advancing working, but when scrolling down through the video, the frames advance very chooppily. Here's a codepen example illustrating the exact s... | 3 | 2,157 |
Fetch line starting with a specific string in powershell | <p>I am executing a command for which I am getting output like below</p>
<pre><code>Identifier: 3 SFP
Connector: 7 LC
Transceiver: 7004404000000000 4,8,16_Gbps M5 sw Short_dist
Encoding: 6 64B66B
Baud Rate: 140 (units 100 megabaud)
Length 9u: 0 (units km)
Length 9u: 0 (units 100 meters)
Len... | 3 | 1,340 |
How To Find A Specific Text in an HTML formatted file | <p>So I am working with this URL (<a href="http://www.ancient-hebrew.org/m/dictionary/1000.html" rel="nofollow noreferrer">http://www.ancient-hebrew.org/m/dictionary/1000.html</a>). </p>
<p>Below is my code.</p>
<pre><code>from bs4 import BeautifulSoup
import re
raw_html = open('/Users/gansaikhanshur/TESTING/webScra... | 3 | 1,342 |
Unable to get json data from curl graph api using c# | <p>I'm executing curl graph api using c#.</p>
<p>I took my curl query used this website and convert it into c#.
<a href="https://curl.olsh.me/" rel="nofollow noreferrer">https://curl.olsh.me/</a></p>
<p>Api is able to give 200 ok status code and but output is below-</p>
<pre><code>{
"extensions" : {
"requestId... | 3 | 1,039 |
How to know that how many Dynamically HTML controls created in from? | <p>I have a form where my system create 3 new HTML controls when user input anydata in textfield and hit enter-key. but now problem is how php will know that how many HTML controls are created dynamically? </p>
<p>HTML Code: </p>
<pre><code><div class="col-lg-4">
<div class="row">
<... | 3 | 1,132 |
Creating a Training Job using sagemaker estimator gives me "error: unrecognized arguments: train" | <p>I am using a docker image which have all required files and then push it to aws ecr where i can use that image to pass to estimator. I have added the train.py file as entrypoint in dockerfile.</p>
<pre><code>ENTRYPOINT ["python3", "-m","train"]
</code></pre>
<p>This works as required in... | 3 | 1,151 |
REFUND MySQL query | <p>I currently have 5 tables in my DB</p>
<p>branch, customers, orderline, orders, products</p>
<p>I want to be able to refund an order through its orderid
refund meaning:
setting the orders total price back to 0.00,
each orderlines total price to 0.00,
adding the quantitys back from the orderline to the products,
... | 3 | 1,642 |
Vuejs sorting a list | <p>Do someone know how to sort this data? <br /></p>
<p>I want to sort using 2 options! <br /> <br />
Type to be: select input <br />
Priority to be: 3 check radio like( 0 = Normal, 1 = Important, 2 = Urgent)</p>
<p>For example when i select from type input value 2 and from priority check radio 1 then all list from typ... | 3 | 1,948 |
javascript function not taking form value? | <p>I am trying to create a really simple radio button quiz with javascript and an html form. When I try to take the form question values and put them into variables, they're not being taken. When I console.log q1 I just get undefined. </p>
<p>I've tried giving the radio buttons id's with getElementById, doesn't work. ... | 3 | 1,046 |
display result along with user info in shell script | <p>I written a script which reads 2 files in a for loop and calls utility script. At the end, script will call the consolidated report function to display the output in tabular format.</p>
<p>my problem is am not able to figure out how to display the results along with the user details one after the another. Any help... | 3 | 1,418 |
nested properties error on string with string | <p>I have 2 questions</p>
<ol>
<li><p>Is there a way to initialize a class and all subclasses so all elements of the new item in the code are null? </p></li>
<li><p>How do I handle a list of type Items. EmbeddedGenerator and stop the error</p>
<pre><code> Object reference not set to an instance of an object.
at C... | 3 | 2,238 |
Excel VBA code to send emails from a specific shared email Account from Outlook not working (.sentonbehalfof) | <p>I have the below code that works perfectly well sending emails from my excel file. However I do not know where to add the .sentonbehalf of line to send from a specific shared email that I have the access to send from. Any help is greatly appreciated.</p>
<pre><code>Sub send_email()
Dim sh As Worksheet
Set sh... | 3 | 1,055 |
How can I get the output which displying at spyder terminal to my Interface, which is also is in "data" variable? | <p>The list which is generating via is in "data" which I am printing, but I want that list or 'data' on my interface "label" with scrollbar. How can I do it?</p>
<p>I have tried all the ways that <code>get()</code>, <code>relief</code>, etc</p>
<pre><code>import tkinter as tk
from tkinter import ttk
from tkinter i... | 3 | 1,213 |
Footer at the bottom, visible only when scrolling down past body element / past 100% of height of window? | <p>I want the <code>body element</code> to be in focus when opening the website and the <code>footer element</code> to be on the bottom of the body. So the <code>footer element</code> has to be after the <code>body element</code>. I don't want them to overlap. I want to have to scroll down to reach <code>footer element... | 3 | 2,127 |
Not getting mail in Inbox | <p>My Code</p>
<pre><code>class AsyncCalls extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... params) {
try {
EmailSendActivity sender = new EmailSendActivity("abc@gmail.com", "abc@123");
sender.sendMail("This is Subject",
... | 3 | 2,860 |
Tesseract based OCR app shows failed to read bitmap error | <p>I am developing an Android Application in which i would like to capture a image and extract text from that .I used tessaract library. I put a image in drawable folder and checked it works fine but when it comes to scanning a captured image an application closing.Here is my code</p>
<pre><code> public class Main... | 3 | 2,725 |
Android custom component works fine at runtime, but doesn't work at design time | <p>I am doing my first steps in Android development.
In the meantime I am trying to create a custom component (for testing purposes) that will later be used on an Activity.</p>
<p>Here's the code for ClearableEditText.java:</p>
<pre><code>import android.content.Context;
import android.util.AttributeSet;
import andro... | 3 | 1,790 |
Error when Posting Data with Axios - MERN Stack | <p>I'm trying to test validation for my model, specifically if a <code>name</code> variable is of a certain length. I have a front-end setup at <code>http://localhost:3000/</code> with <code>React</code> + <code>axios</code> and a backend setup with <code>express</code> + <code>node</code>.</p>
<p>I've set a proxy in m... | 3 | 1,507 |
Failed to dispatch transfer event 'PUT PROGRESSED https://<>.d.codeartifact.<>.amazonaws.com/session-0.0.1.pom <> session\pom.xml' | <p>I am using maven 3.8.4 and trying to upload maven jar to aws codeartifact. Getting below error</p>
<p>[DEBUG] Failed to dispatch transfer event 'PUT PROGRESSED <a href="https://wolken-artifact-256162449727.d.codeartifact.us-west-2.amazonaws.com/maven/maven-repo/com/wolken/session/0.0.1/session-0.0.1.pom" rel="nofoll... | 3 | 1,151 |
Building a deep Nested array of objects in PHP using Recursion | <p>Basically, this is what I want to achieve</p>
<pre><code>Jason
->Ronda
->Cat
->Abraham
->Jacob
->Joseph
->Brock
->Dustin
</code></pre>
<p>In JSON Format, this is what I would like to achieve</p>
<pre><code>{
id: 1,
u... | 3 | 3,216 |
How do I monitor changes in a database from unity without flooding the NIC | <p>I have a web server which contains a sql database. There are two "users" to this server/database. One is the actual user where they will submit changes through a UnityWebRequest using HTTP:Post. This will make changes to the database.</p>
<p>I have another system that is also in Unity, that needs to be notified, or... | 3 | 1,118 |
Spark / Python : cannot pickle '_thread.RLock' object when passing multiple columns to UDF | <p>Using jupyter notebook, I have 2 dataframes :</p>
<p>ApplePrices :</p>
<pre><code>+--------------------+-------+---------+--------+
| Model_name| Price| Country|Currency|
+--------------------+-------+---------+--------+
| 24-inch iMac|1919.01|Australia| AUD|
| AirPods Max| 908.47|Austr... | 3 | 1,818 |
Need Help Solving a Memory Leak | <p>I am writing an inventory management system using dynamic arrays using objects. The strategy for this is NOT to use vectors, but allocate a dynamic array that 1 increment by 1 every time the client needs to add to the inventory. I am getting a "segmentation fault" error so I believe it is a memory leak. </p>
<p>I h... | 3 | 1,141 |
SpringCloudStream - AggregateApplicationBuilder Expects Broker | <p>I am playing with Cloud Stream described in the section 3.1.6 at <a href="http://docs.spring.io/spring-cloud-stream/docs/Brooklyn.BUILD-SNAPSHOT/reference/htmlsingle/" rel="nofollow">AggregateApplicationBuilder</a>. I followed the sections and ran the application to get the below error, which expects a broker config... | 3 | 2,850 |
setOnItemClickListener not working inspite of removing focus on every view | <p>Yes i know this has been asked many times. I tried every solution provided but ain't working for me. So i am again asking the same question again.</p>
<p>This is my layout file </p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
and... | 3 | 1,649 |
Comments not showing in ListView inside Asynctask - android | <p>I have an <code>AsyncTask</code> that uses a JSON function to get comments in the <code>doInBackground</code> method. It then sends the array of comments to <code>onPostExecute</code> where it places the <code>JSONArray</code> into a <code>String[]</code> then is places the string into <code>setListAdapter</code>. T... | 3 | 1,586 |
How to find Profit for Category | <p>My project is about a jewelery store and i try to find the profit of each product-category.
Let me be more specific</p>
<p>I have 3 tables which gives me the info: </p>
<p>SALES(salesid,productid,quantity,price)</p>
<pre><code>salesid productid Quantity Price
11001 13001 4 5
11002 13002 ... | 3 | 1,322 |
Why is JavaScript RegExp not working in Firefox? | <p>Could someone tell me why my code is not working in Firefox? It's fine in other browsers, but if I type in 1000 in the Cash at Bank cell, it's marking it as an incorrect answer (highlighting in red and displaying the incorrect feedback). The other validation / testing of other cell entries doesn't work either.</p>
... | 3 | 2,303 |
Alternative for removed impl_isTreeVisible() | <p>We are reliant on Node.impl_isTreeVisible() because isVisible does not work properly (or at least the way we want it to).</p>
<pre><code>/**
* @treatAsPrivate implementation detail
* @deprecated This is an internal API that is not intended for use and will be removed in the next version
*/
@Deprecated
public fin... | 3 | 2,354 |
Failed to instantiate module pageslide-directive with multiple pages in angular js | <p>I am learning angularjs and i have created 2 pages namely welcome.html and queryboard.html. I was trying to implement side out panel, with help of this link
<a href="http://dpiccone.github.io/ng-pageslide/examples/" rel="nofollow">http://dpiccone.github.io/ng-pageslide/examples/</a> . </p>
<p>On my welcome page i w... | 3 | 3,454 |
python: Remove reentrance file lock upon keyboard interrupt / Ctrl-C | <h2>Goal</h2>
<p>I wrote a simple file-locking to avoid reentrance error while a script is running.</p>
<p>Then I'd love the lock file to be automatically removed if user press Ctrl-C on both Windows and macOS.</p>
<h2>Code</h2>
<p>To lock a process, I use a decorator on the main function of the script.</p>
<pre class=... | 3 | 2,324 |
How to lift a REACT state? | <p>all.</p>
<p>I'm learning REACT and came upon a problem.</p>
<p>Basically, I want to move an "handle state" function to the parent component (App), and call it inside the Child component (MenuItem).</p>
<p>In the App Component I create a function "handleClickFavorite" that handles the state of the... | 3 | 1,600 |
Rxjava2 - multi retrofit request and handle all exception | <p>I am new to Rxjava. It is so complex......</p>
<p>I need to handle a complex scenario, I want to know how to make it using Rxjava.</p>
<p>It's a logic about app start:</p>
<ol>
<li>app start and <code>splash</code> page open</li>
<li>make http reqesut <code>check_update</code> to check if app need update.</li>
<l... | 3 | 1,510 |
Overriden templates aren't rendered in production | <p>I've overriden <strong>Django-allauth</strong> templates in my <strong>Django</strong> project just creating a new folder "account" in templates folder. This works during deployment on Windows but when I moved the project to <strong>DigitalOcean VPS</strong>, it is looking for old templates (in allauth app) so I see... | 3 | 1,073 |
Scaling Canvas InkStrokes | <p>I am taking a photo with the camera, using it as the background for an InkCanvas, and letting the user draw overtop. </p>
<p>When the user saves their drawing, I am scaling the drawing to match the size of the image in the background. I can not resize the original image. </p>
<p>However, while the length and posit... | 3 | 1,972 |
C# Cursor Position on Matrix Transformed Image | <p>I need help on Finding the Position on the Image that the user Double Clicked on.</p>
<p>I can get the Position on the Control from the MouseEventArgs but need to Convert it to the Image dimensions. The Images has been Zoomed and Panned using a new custom control.</p>
<p>The Zoom and Pan Works Likes a Charm (Based o... | 3 | 1,961 |
Can't change tableview frame | <p>I just want to change tableview frame in viewwillappear with <a href="https://github.com/nakiostudio/EasyPeasy/" rel="nofollow">easyPeasy</a> for autolayout.</p>
<p>I have collectionview and tableview in one viewcontroller.I'm using both of them.But in the first open I'm hiding collectionview and trying to move tab... | 3 | 2,943 |
How can I expand a container iside a column in flutter without overflowing? | <p>I'm trying to expand a container inside of a column, but when I try to use the expanded widget, it overflows the screen. How can I expand the middle container without overflowing the screen?</p>
<pre><code>Column(
// mainAxisSize: MainAxisSize.,
// padding: EdgeInsets.all(10),
// shrin... | 3 | 2,835 |
I want to make the height of this section increase with its content | <p>I tried this</p>
<pre><code><section class="unique">
<div class="this d-flex pt-5">
<div class="leftside2 w-50 h-100">
<img src="images/twowomen.jpg" alt="twowomen" class="img-fluid">
</div>
... | 3 | 2,029 |
Istio: Unable to set up mutual TLS origination with an egress gateway, custom CA certificates | <p>I am having problem with configuration of mutual TLS origination with an egress gateway. I am using the configuration provided in the documentation: <a href="https://istio.io/latest/docs/tasks/traffic-management/egress/egress-gateway-tls-origination-sds/#perform-mutual-tls-origination-with-an-egress-gateway" rel="no... | 3 | 2,073 |
Python 3: Rank dataframe using multiple columns | <p>I have a dataframe "df_orders_raw" like this:</p>
<pre><code>ORD_KEY ORD_DT_KEY ORD_TM_KEY SKU_KEY QTY
933915294 7598 13 401550750 1
933915294 7598 13 409868344 1
933915294 7598 13 428852481 1
933919765 7598 13 432771563 2
933892844 ... | 3 | 1,278 |
exec.Cmd is driving me insane | <p>The story is this: I have a program named coletorbeat that needs a large argument to run. This argument is built on a few parameters. I built a second program called bootstrapper that takes these parameters, builds the long argument required by coletorbeat and should then run coletorbeat, feeding it the long argumen... | 3 | 1,096 |
Problems in the AndroidManifest.xml after compiling APK with Buildozer (Signing apk in androidstudio) | <p>I'm having some trouble signing my APK (in android studio) that I made with buildozer. The app works perfectly in the 2 devices y tested. The problem is that Android Studio show the androidmanifest.xlm with the following problems:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ma... | 3 | 2,146 |
How to use multi selection in ASP.NET MVC application? | <p>Two days already I am trying to figure out and learn how to build multi-selection dropdown list in ASP.NET Core, that is seeded from db context, and results are used further in the constructor, so I decided to ask this question. I did not find anywhere how to use data from posted form, so maybe you will be able to h... | 3 | 1,399 |
C++- How can I convert a column in Excel to a vector in C++ in the following algorithm? | <p>In the following code I want to validate some data. However, I have no clue how to do this with a csv file comma delimiter. If I wanted to replace the vectors vector submitted{5,0,3,4,6,1} and vector expected{0,0,33,50,0,0} with a vector from a csv file with two columns like this:</p>
<p>........submitted....expect... | 3 | 1,050 |
AngularJS: server call on tab/browser close | <p>I have a section in my application where I establish a communication between the server and the client that loops forever until the user leaves this screen. When the user leaves the screen, I detect this issue with <code>$rootScope.$on('$stateChangeStart')</code> and send a $http call to stop the process in the serv... | 3 | 1,418 |
Tide with terrain in OpenSim | <p>I want to recreate Atlantis' disappearance in OpenSim for school. So far I only managed to get the water to rise. I now want the terrain to go down every time Atlantis gets put under water. This is what I have so far: what have I done wrong with my code?</p>
<pre><code>// Place your methods here
private void Interf... | 3 | 9,779 |
difficaulty with preventDefault and submitting form | <p>I am working with a dynamical form. When i enter my name in the first textfield, and press enter, the next textfield pops up, requesting my email. however, i can click enter many times and the next textfield keeps popping up, which i only want to pop up once. The other problem, is that my next textfield, which reque... | 3 | 1,799 |
Ignoring characters in the input | <p>Input: </p>
<blockquote>
<p>3</p>
<p>23 + 47 = machula</p>
<p>3247 + 5machula2 = 3749</p>
<p>machula13 + 75425 = 77038</p>
</blockquote>
<p>I was solving a question in spoj where the input was in the form "string + string = string". I had to store the first, second and the third numbers in strin... | 3 | 1,102 |
Eclipse Jtable doesn't displays errors but doesn't displays data as well | <p>I am new in Java and I was trying to do this exercise; but I just stuck at this new issue. I googled about this error all day long- Java.lang.NullPointerException -and I tried to solve it but I can't find it; anyone please? </p>
<p>** I have a BankDB_Final.db file; and it have a table called: Bank_001
** I have in... | 3 | 2,911 |
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver - Not Working | <p>I'm trying to run this program</p>
<pre><code>import java.sql.*;
import java.io.*;
public class FirstExample
{
// JDBC driver name and database URL
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://localhost/EMP";
// Database credentials
... | 3 | 2,118 |
ValueError: None is only supported in the 1st dimension. Tensor 'input_tensor' has invalid shape '[1, None, None, 3]' | <p>I trained a custom MobileNetV2 SSD model for object detection. I saved the .pb file and now I want to convert it into a .tflite-file in order to use it with Coral edge-tpu.</p>
<p>I use Tensorflow 2.2 on Windows 10 on CPU.</p>
<p>The code I'm using:</p>
<pre><code>import tensorflow as tf
saved_model_dir = r"C:... | 3 | 1,993 |
how to implement from php rawurlencode to java | <p>i have question</p>
<p>i have php code like this :</p>
<pre><code> $auth_header = "OAuth "
. 'oauth_signature="' . rawurlencode($signature) . '", '
. 'oauth_version="' . rawurlencode($oauth_version) . '", '
. 'oauth_nonce="' . rawurlencode($oauth_nonce) . '&... | 3 | 1,139 |
iPhone Page Control only shows on the first page of a UIScrollView | <p>My page control only shows on the first page of the UIScrollView. Once I scroll to the next page it disappears. </p>
<p>Could you tell me what I'm doing wrong? Because I'm curious as to whether I need to add a subview of the page control each time I add a subview to my UIScrollView.</p>
<p>My relevant pieces of co... | 3 | 1,084 |
How to convert json to Dictionary | <p>I have to convert the JSON string to Dictionary< string, object >. For that, I am following something here <a href="https://www.programming-books.io/essential/csharp/collect-all-fields-of-json-object-5293c4c9342c403bb40dd9232692a7bc" rel="nofollow noreferrer">https://www.programming-books.io/essential/csharp/coll... | 3 | 1,072 |
Pact not working for SOAP messages | <p>I am working on passing a SOAP envelop for the pact. As per my understanding PACT supports XML so I wanted to give a try with SOAP message.I have created a sample change student CXF service in Java. Following is my pact test</p>
<p>public PactFragment createFragment(PactDslWithProvider builder) { </p>
<pre><code>... | 3 | 1,702 |
Validation not happening for custom login page in Spring security | <p>I am trying execute sample example for spring security using custom login page.The application is not throwing any error.From home.jsp, it is navigating into custom login page but even after entering correct user id and password it is going back to home.jsp instead of hello.jsp without showing any error.Requesting y... | 3 | 3,979 |
JQuerymobile on an iPad: vclick triggers a scroll to the top of the page, then executes the vclick | <p>SUPER SHORT VERSION:
Elements on a jQuerymobile-based html5 webapp don't respond directly to vclicks on an iPad. Instead, they silently scroll to the top of the page and trigger a vclick on whatever's under the same region of the screen.</p>
<p>LONG VERSION WITH PICTURES AND CODE:
I'm using JQuerymobile and I'm h... | 3 | 1,160 |
Cannot modify header information - headers already sent (Confused) | <p>I'm making a script that will integrate with phpVMS's login system.</p>
<p>I've got it working, if someone goes to the page logged in it will show. How can I make it so that when someone opens the webpage, not logged in, it sends them to the login page?</p>
<p>Currently, I get the error:</p>
<blockquote>
<p>Can... | 3 | 1,300 |
How do I avoid "Exception handling request to" javax.servlet.ServletException when redirecting? | <p>I have logic in my backing bean that redirects if there is a session timeout.</p>
<pre><code> FacesContext.getCurrentInstance().getExternalContext().setResponseStatus(responseCode);
FacesContext.getCurrentInstance().getExternalContext().setResponseHeader("Location", redirectURL);
... | 3 | 1,269 |
Kotlin - java.lang.IllegalStateExpection: Expected BEGIN_ARRAY but was STRING | <p>I faced with this problem. I've searched in the internet but answers was for Java, not Kotlin. How do i solve this ? If you need anything else please let me know. I'm trying to get closest restaurants for user location. Currently I'm using static variables because I couldn't get Zomato APi yet. How can i manage to d... | 3 | 6,756 |
How to convert my data into a format suitable for d3.js sunburst? | <p>I have a data like this: <a href="https://jsfiddle.net/L79wjn0x/" rel="nofollow noreferrer">https://jsfiddle.net/L79wjn0x/</a>, and I would like to convert it in this format <a href="https://jsfiddle.net/49n1jmL5/" rel="nofollow noreferrer">https://jsfiddle.net/49n1jmL5/</a>. I am trying to make use of <code>d3.nest... | 3 | 1,332 |
R fitting equation (Nikolsky-Eisenman equation) to data | <p>I used to use <em>SigmaPlot</em> to fit a modified version of the Nikolsky-Eisenman equation of the form</p>
<pre><code>y = P1 + P2 * log(10^(-x) + P3)
</code></pre>
<p>using the global curve fit function. Details of parameters can be found in the Sigmaplot report below. I want to do this now in R.</p>
<p>Some da... | 3 | 1,213 |
.NET 4.0 System.Timers.Timer seems to not execute the elapsed event after some time | <p>I have a class that needs to run 24x7. It uses a Timers.Timer to execute an elapsed event in a calculated interval. After some time, 3-5 days, the timer just stops executing the elapsed event. This does not happen in all of the users, some 4 or 5 reports this. </p>
<pre><code>public class MyClass : IMyClass
{
p... | 3 | 2,701 |
Array Adapter, getView error | <p>Im working on a browser and am looking into making a history section. I have set up a <code>listview</code> that will display all the urls that have been loaded. The only issue is that when I try to set the <code>textview</code> text in the <code>getView()</code> of the adapter it crashes that app. theres no signs o... | 3 | 1,945 |
totaling hours by month for split weeks using linq | <p>I am trying to total hours for an entire year by month.
However, I have come accross an issue for months that end and start in the middle of the week.
Here is my solution however, i had to hardcode the linq to work for this particular week date.
In this example the</p>
<pre><code> WeekStart is Febuary 26 2012 - SUN... | 3 | 1,141 |
How to center the black box vertically and horizontally? | <p>I am trying to center the blackbox vertically and horizontally! For horizontal centering, I have tried <code>margin: auto</code> but it's not working on high resolutions. </p>
<p>I am trying to make my hero area responsive. As I reduce the width of the window, the black box gets centered but at a high width it stay... | 3 | 1,160 |
ffmpeg webcam stream on windows to sdl | <p>Hi I am trying to display webcam stream on windows.</p>
<p>I can use "ffplay" but I want to use "ffmpeg" command.</p>
<pre><code>c:\>ffmpeg -f dshow -i video="USB2.0 VGA UVC WebCam" -f sdl test
ffmpeg version 2020-12-27-git-bff6fbead8-full_build-www.gyan.dev Copyright (c) 2000-2020 t... | 3 | 1,225 |
AWS EKS configure HTTPS listener | <p>I want to secure my web service running on Kubernetes (EKS). It is running on port 80 .I want to run this on port 443.</p>
<p>When I apply the YAML file (for service and ingress), on AWS console I still have it listening on port 80 (and not on 443):
<a href="https://i.stack.imgur.com/sRhnC.png" rel="nofollow norefer... | 3 | 1,060 |
Code First Entity Framework creates List<> property wrong | <p>So, I have a code first model which looks like this:</p>
<pre><code>public class SeciovniContext : DbContext
{
public DbSet<User> Users { get; set; }
public DbSet<Permission> Permissions { get; set; }
}
</code></pre>
<hr>
<pre><code>public class User
{
[Key]
[DatabaseGenerated(Database... | 3 | 1,119 |
If the moving tab (active tab) exceeds the scrollbar width,the non active tabs are fluctuating in JQuery? | <p>If i am move the active tab with mousedown and mousedown event to right or left side,if the tab exceeds the scroll width ,the nonactive tabs are get fluctuations.all tabs are assigned as class.the active tab consider as current class. How do i resolve this issue and move the scrollbar smoothly based on tab movement... | 3 | 4,309 |
Android MediaPlayer : IllegalStateException when app closes/press back button | <p>Im streaming an mp3 audio from a url by using mediaplayer, Now im able to play music , But when <strong>i press back button or close the app, it crashes.</strong>
can anyone pls help me to find my mistake.
thank you.</p>
<p><em>My code is :</em></p>
<pre><code> private ImageView play, forward, backward;
... | 3 | 3,458 |
Limit wordpress gallery to post only | <p>I've got a front-end uploader that allows users to upload images to a post. When they click the upload button that opens up the gallery they are able to see every image in the galllery, not just the ones tied to that specific post. I'd like to change that. I'd like when a user is in a post trying to upload an image,... | 3 | 1,045 |
highfrequency package (R) issue with timezone in stock quotes data clean-up | <p>This to me looks very suspicious I have debugged through it and I am still not sure it is a bug or not.</p>
<p>I have prepared sample data to replicate this issue, the file is not small (25MB, real-life quotes data for a typical trading day). The download <a href="https://transfer.pcloud.com/download.html?code=5ZbH8... | 3 | 3,276 |
Spring boot get application properties per request mapping | <p>I try to get per request some parameters from my application properties.</p>
<p>My ApplicationConfig-Class:</p>
<pre><code>@Configuration
@ConfigurationProperties("org.a.b")
public class ApplicationConfig implements Serializable {
private String name;
private String ip;
// GETTER AND SETTER
</code></pre>
... | 3 | 1,551 |
Error when freezing h5py 2.4 with cx_freeze 4.3.1 | <p>I am trying to freeze a Python script with cx_Freeze. The script makes use of h5py v2.4.0b1. When I run the executable created by cx_Freeze, I get the following Traceback:</p>
<pre><code>Traceback (most recent call last):
File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <modul... | 3 | 1,589 |
Trouble getting login page to redirect to secure page | <p>I have a login page I created using php, and I'm having an issue getting it to take me to the admin page after I've logged in correctly. I know the login I'm using is correct, since I just created it, and if it's wrong, it's supposed to tell me. However, once I login, the whole page just goes blank and the web addre... | 3 | 1,211 |
Flutter Json with array of strings into Futurebuilder | <p>So I have a JSON with an array of Strings. Can someone please tell me how to display the username of every object in a future builder with a listview.builder. </p>
<p>I have looked everywhere and can't seem to find any good solutions.</p>
<p>This is the JSON Tree:</p>
<pre><code>{
"id": 81,
"users": [
... | 3 | 1,237 |
Looping a Json object in map.arc() | <p>i am using <a href="http://jsbin.com/nutawiboci/1/edit?html,output" rel="nofollow">http://jsbin.com/nutawiboci/1/edit?html,output</a> to show the location of the origin and destination coordinate and draw an arc between them. so i modified the map.arc() to loop through a given origin and destination coordinate:</p>
... | 3 | 1,066 |
on keyup, update meta description | <p>The below working code fetch all meta tags from head and displays the text inside a div on a web page. On keyup, i would like to copy input text val and replace head meta description and also update div so I can see that the text has been entered correctly from the front-end.</p>
<p><a href="http://jsfiddle.net/mic... | 3 | 1,376 |
Advanced Wildcard Actions stripping commas from URLs? | <p>I have the following struts2.xml</p>
<pre class="lang-xml prettyprint-override"><code><struts>
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.patternMatcher" value="r... | 3 | 1,210 |
How to render a modal with map() from arraylist in react | <p>I have 9 buttons that I want to open a modal with that contain the data for each modal. For example, the Burgers button is clicked => burgers modal appears with the data from my arraylist, desserts button is clicked => desserts modal appears with the data from arraylist on desserts. The code I have is below bu... | 3 | 2,484 |
How to pass server data/context to a webpack generated Vue SSR application using vue-ssr-renderer? | <p>Following various tutorials and guides, I was able to get basic SSR Vue working with Webpack, the problem is I can't seem to be able to pass server data/context to the app. I'm using <a href="https://ssr.vuejs.org/guide/bundle-renderer.html#problems-with-basic-ssr" rel="nofollow noreferrer">Vue SSR Renderer</a>'s bu... | 3 | 1,118 |
How to convert a png to a csv file in Java | <p>I have built a neural network that recognizes handwritten digits in java. After training the network using the mnist dataset of handwritten digits (in csv format) I have a method which querys the network for a csv file and outputs the result. I have made some custom images in microsoft paint that are saved as png fi... | 3 | 1,762 |
Why did laravel wrap my sidebar in an em tag? | <p>**Using Laravel 5.8.31 & Bootstrap 4. Browser: Chrome v. 76.0.3 and Opera 62.0.33 **</p>
<p>I was testing my CRUD functions by deleting a post. After deletion, the controller redirects back to my post index page. When the page loaded, the bootstrap side bar wrapped down below the other posts, rather than being ... | 3 | 3,065 |
Error location.createComponent is not a function since Angular2 beta 17 | <p>I've upgraded to Angular2 beta17, and since this version I have the following error: <code>location.createComponent is not a function</code> error. This SO question "<a href="https://stackoverflow.com/questions/36861628/location-and-hashlocationstrategy-stopped-working-in-beta-16">Location and HashLocationStrategy s... | 3 | 1,954 |
How to find a free VPC CIDR block with Ansible? | <p>I've got an existing set of VPC's in AWS, each with their own CIDR blocks:</p>
<p>vpc1: 20.0.0.0/16
vpc2: 20.10.0.0/16</p>
<p>Now, I'm trying to write a playbook, which pulls in the existing list of VPC's and then finds an available CIDR (e.g. in the above example, the next available one would be 20.20.0.0/16, tho... | 3 | 1,181 |
Objective-C graphics drawing speed | <p>I'm looking to draw to the screen, pixel by pixel. I've got this code working but its slow... I find this very very odd as the same kind of code written in javascript is super fast. fast enough that I has to slow down my interval that calling this...</p>
<p>What do I need to do to be able to speed this up by at lea... | 3 | 1,638 |
High difference in predictions on different train test split sizes | <p>I am unable to figure out the reason behind the contrasting difference in predictions on different test train splits while training the linear model using LinearRegression.
This is the my initial try on the data:</p>
<pre><code>x_train,x_test,y_train,true_p=train_test_split(train,y,random_state=121,test_size=0.2,shu... | 3 | 1,031 |
How to remove bottom default padding from List view in SwiftUI | <p>I'm trying to remove the bottom padding on a List view when another view is being defined after it so that the List view is sitting on top of the other one. Not overlaying. There seems to be some extra space created from the List and I'm not sure how to remove that to achieve what I want. Here's what I have.</p>
<pr... | 3 | 1,300 |
SODA API - Unexpected character encountered while parsing value: <. Path '', line 0, position 0 | <p>I am using below code snippet trying to access below dataset using SODA API.</p>
<pre><code> **var client = new SodaClient("https://data.medicare.gov", "token code","username","password");
var metadata = client.GetMetadata("mj5m-pzi6");**
</code></pre>
<p>I am getting the below exception message. Any pointe... | 3 | 1,155 |
Spring Boot (v2.3.1): Spring Batch Partition w/JdbcPagingItemReader using SimplePartitioner Helper Class | <p>I would like to gain some clarity on exactly how a Partitioner is supposed to work. I implemented the <code>SimplePartitioner</code> (helper class provided by Spring) into a <code>JdbcPagingItemReader</code>, it working for the most part but the issue is that I see duplicate data/records come through the <code>ItemW... | 3 | 1,048 |
Unable to modify array element value | <p>I have some code that loops through an array, and, if an element of it has a qty of more than 1, copies that element out into as many elements as the qty and then sets the qty of all of them to 1 (and makes a few other changes.)</p>
<p>I've been staring at this for a long time, and I'm sure I must be missing someth... | 3 | 1,463 |
what's wrong with this database query? | <p>Here is a little piece of code in PHP.</p>
<pre><code><?php include_once("includes/connection.php"); ?>
<?php include_once("includes/functions.php"); ?>
<?php
if(!isset($_POST['menu_name']) or !isset($_POST['position']) or !isset($_POST['visible'])){
ec... | 3 | 1,449 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.