title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Why is my logo not showing up on my navbar, but other logo yes? | <p>I've been trying to create a navbar, but when I load my website in localhost, I can't seem to see my logo on the navbar. So I went searching on the web to get an example to see if my logo was the problem. In this first example ( took from the web I can see their logo loading)</p>
<p><div class="snippet" data-lang="... | 3 | 1,259 |
Get a line based on user input in python | <p>I am very new to Python and really struggling to understand the language as I am not a programmer but trying to learn.</p>
<p>I am trying to create a simple program that takes a users input and returns specific data from the line.</p>
<p>The user would enter a userid and a pin#, and press login button. Two text bo... | 3 | 2,235 |
No FileSystem for scheme: hdfs when building fat jar in Spark; works fine in Eclipse mars | <p>I get that error when I do a fat jar with my spark program and then I launch it using:</p>
<pre><code>java -jar -myApp.jar [args]
</code></pre>
<p>When I run my app in Eclipse, it works perfectly well. Here is my POM: </p>
<pre><code> <properties>
<project.build.sourceEncoding>UTF-8</project.b... | 3 | 2,486 |
in a callBack function if Statement is not working; | <p>Here This part of my code is not working i don't know what is the problem, and why it is not working. plese help me. this is the part where my code is not working, i tried ths similar code inside code , not exactly this one but almost similar one it worked perfectly, by this is not working.</p>
<pre><code>function t... | 3 | 2,664 |
Why Export to CSV Data only showing in one column | <p>We have many dynamic tables being generated in the process of our application. so we are trying to export the data from those dynamically generated table column data to .csv file.</p>
<pre><code>$secondsql = "SELECT * FROM ".$reslt->dname." WHERE userid=:userid AND eventid=:eventid";
$que... | 3 | 3,174 |
Error: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse | <p>I try to upload a file to sharepoint using HttpWebRequest post method. But I get the error like the title show above. I have go through some similer questions but the solutions do not solve my problem.</p>
<p><a href="https://stackoverflow.com/questions/18596788/you-must-write-contentlength-bytes-to-the-request-stre... | 3 | 1,340 |
How do I animate div with background image along curved path but stop at X percentage | <p>I have been able to animate a div with a background image as well as resize it along the path. However, I am trying to get this CSS-based animation to stop at a certain percentage of the progress. </p>
<p>The premise is to visually show a student her/his progress of completing a varying number of tasks (8 of 12 c... | 3 | 1,215 |
Python & SnakeSQL - raise lock.LockError('Lock no longer valid.') ERROR | <p>I am trying to run a python script (createdb.py) which has DB operations from my main python script (app.py) but having the below error.</p>
<pre><code>Traceback (most recent call last):
File "C:\Python27\lib\site-packages\web\application.py", line 236, in process
return self.handle()
File "C:\Python27\lib\... | 3 | 1,143 |
Reactjs + Webpack 2.x + react-router 4.x after bundled without error, use html src bundle.js, css recognised., but no components rendered out | <p>As the title says, I'm using webpack 2.x, react-router v4, bundling successful, no errors, yet open index.html, not showing exactly like the website. Just when bundling separately not working. Been scratching my head for a week. No Errors were produced no clue whats the problem.. hoping someone can help.. Thanks in ... | 3 | 3,004 |
PHP comparing values received from java | <p>so I'm working on this 2 PHP Files, <code>login.php</code> and <code>DB_Functions.php</code></p>
<p>there is a specific script in there that is receiving a password and email from the application finding that specific user using the given email and store all the user details in a <code>$user</code> array and pass i... | 3 | 1,757 |
need help on debugging my c++ programming (text ascii manupulation) | <p>I recently made a C++ program which encrypts texts based-on the vigenere cipher technique. </p>
<p>The encryption part works fine I think, but the decryption function doesn't seem to output the correct answer in some cases. I was hoping if anyone could have a look at code and tell me what's wrong with it.</p>
<p><... | 3 | 2,357 |
boost deadline_timer compile issue | <p>The following source will not compile using MSVC 12.</p>
<p>IMCThreadMngr.cpp</p>
<pre><code>#include "IMCThreadMngr.h"
CIMCThreadMngr::CIMCThreadMngr() : mService(),
mWork(mService)
{}
CIMCThreadMngr::~CIMCThreadMngr() {};
void CIMCThreadMngr::StopManager()
{
std::cout << "Manager ceasing" <<... | 3 | 2,471 |
Using SELECT subquery in a CASE statement and handling NULLS | <p>I have 2 SQL tables one holding stock information then a style table which details how the stock is used. For some jobs the information is contained with a print file so the value in the stock table would be BIN, if not it would contain a template name which would cause a query to a <code>Styles</code> table which t... | 3 | 1,205 |
Chocolatey Cannot uninstall a non-existent package | <p>A few days ago I installed vivaldi on my windows machine using chocolatey installing a package named vivaldi.install using <code>choco install vivaldi.install</code> because there wasn't any <code>choco install vivaldi</code> in the chocolatey webpage.<br>
I made a test installing and uninstalling Krita and installi... | 3 | 3,037 |
NextJs & Mongoose putting a jwt in database | <p>I tryed myself on a little NextJS App with Mongoose and JWT (json web token).
Everything works and I can put user into my database and other stuff. Just when I create a JWT I can't put it into my database. Here is my code, grateful for every help :D</p>
<p>First my schema for mongoose:</p>
<pre><code>const mongoose ... | 3 | 1,107 |
Implementing thread-safe HashMaps of very large size | <p>I'm coding a voxel game currently and have stumbled across following problem: While reading my quads from a large (and also volatile!) <code>ConcurrentHashMap</code> I get a flickering effect on my screen and on rare occasions my getter function just returns <code>null</code>. This <code>HashMap</code> uses integers... | 3 | 6,444 |
Implementation of Incremental counter in R without using for loop | <p>I have a data frame with 2 variables populated with approx.100K values.
I need to implement an <code>incremental counter</code> as the third column in the dataframe.<br>
Below is data frame, </p>
<pre><code> **A** **B**
1 2
4 3 ... | 3 | 1,651 |
Issues aligning links that appear on hover | <p>I am trying to design a tumblr theme. I've set up a div with four buttons at the bottom of each post. One of these buttons is a share button. You hover over the share button and a div appears with links (you click and a new window opens and the post gets shared where ever you selected it to be shared).</p>
<p>In th... | 3 | 1,106 |
authenticate() not working properly for django | <p>Basically what I have done so far is create a registration page where the user makes their username and password, then that password is stored in as a hashed password (md5 hasher). The problem I am having is logging in. The user inputs their username and password then the password is authenticated by using authentic... | 3 | 2,124 |
What is wrong with my scrollable listview? | <p>New to flutter, trying to make a scrollable page that contain a long listview. I tried a few different things that I've read on different SO pages, so my code may look bloated. I am not sure why even though the page showed up fine, and the last ListTile's image showed up, I can't scroll down the screen to see the re... | 3 | 1,338 |
Unable to reinitialize and return error Response from my catch statement | <p>In my lambda node code, I am trying to make a call to my SQL DB and retrieve my data.</p>
<p>I am using promises and am able to get the data successfully. However, I am not able to implement error handling as per the requirements.</p>
<p>My requirements are that -</p>
<ol>
<li>At 'function' level, I return response ... | 3 | 2,648 |
side fixed menu overlaps below div | <p>Here is the code below.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-w... | 3 | 2,514 |
Elasticsearch nested significant terms aggregation with background filter | <p>I am having hard times applying a background filter to a nested significant terms aggregation , the <code>bg_count</code> is always 0.</p>
<p>I'm indexing article views that have ids and timestamps, and have multiple applications on a single index. I want the foreground and background set to relate to the same appl... | 3 | 1,349 |
Parse.com / Backbone.js how do I retrieve / list other users' public display names using JavaScript | <p>I am trying to use Parse.com and Backbone.js to list users names with comments they have made and make them visible to other users. E.g:</p>
<p>Post 1:
Display name: "Joe Bloggs"
Comment: "lorem ipsum 1..."</p>
<p>Post 2:
Display name: "Jim Doodah"
Comment: "lorem ipsum 2..."</p>
<p>As it is prudent to set the AC... | 3 | 1,115 |
Why does my ViewPager crash? | <p>I have 25 pictures in my project and I have a <code>Button</code> in my first <code>Activity</code>. When click this <code>Button</code> I want my app show the first pic of 25, then I want to swipe to change my pics.</p>
<p>This is my <code>PagerAdapter</code>:</p>
<pre><code>public class ImageAdapter extends Page... | 3 | 1,071 |
Ajax request with list of javascript objects failing | <p>This question is asked a lot, but none of the answers worked for me. I'm trying to send a list of objects to a controller in ASP MVC 5. I'm <code>JOSN.stringify</code>'ing the list, and trying to receive it into a list.</p>
<p>I sure hope it's not some stupid typo I'm missing...</p>
<p><em>Well</em> I did just fin... | 3 | 1,308 |
jquery ajax return data not working | <p>I have a form with two text boxes and two buttons (one submit button, one button). when I call click the button, it has to make an ajax call with data "CheckRegistration". Finally, it will call ViewRegisteredStudents() function. I am expecting the "resultVal" stirng to be returned to ajax call but it is returning th... | 3 | 1,218 |
shiny app download button and future_promise: Error in enc2utf8: argument is not a character vector | <p>I am trying to create a download handler in shiny, but using future_promise() because it is possible that writing the file could take some time. Here is a working example of what I'd like to do, but without using the async framework:</p>
<p>A working .Rmd shiny app: when you click on the button, it writes 10 random ... | 3 | 1,386 |
Fast Powershell Filewatcher | <p>Good morning everyone,</p>
<p>I have a test environment where I install and uninstall a lot of applications and I want to monitor (with Powershell) what these installations do (change, copy, create, delete files).<br />
For this I found the "System.IO.FileSystemWatcher" Example on this page <a href="https:... | 3 | 1,651 |
How can i impelement SMOTE inside a columnTransformer? | <p>I'm trying to implement SMOTENC inside a column transformer. However I'm getting error. The code and the error is provided below.</p>
<pre><code>#Create a mask for categorical features
categorical_feature_mask = X_train.dtypes == object
categorical_columns = X_train.columns[categorical_feature_mask].tolist()
print(c... | 3 | 1,764 |
on submit form span message changes position why? | <p>I'm trying to understand why the message generated by jquery it's changing position everytime a field gets empty!</p>
<p>So, if the message is generated by the feedback of ajax it's placed in the proper place which is right beneath the login box. If the field (input box) is empty on submit the ajax script is not ca... | 3 | 2,307 |
AnyCable request.params is empty in production | <p>I have a Docker setup with Rails and Anycable. Only in <strong>production</strong> does request.params return nothing. In development this is not an issue.</p>
<p>If I try to make a connection to <code>wss://api.test.to:8443/live?uid=yyy&token=xxx</code></p>
<p>The connection attempt is made but in my <code>conn... | 3 | 2,423 |
Javascript loadImage not loading image | <p>I'm forking Louis Hoebregts's brilliant <a href="https://codepen.io/Mamboleoo/pen/GRJKoBw" rel="nofollow noreferrer">Flowing Image on code pen</a>, & attempting to get to modify it for my own art.</p>
<p>UPDATE: as suggested by commentators, I looked at the Chrome Dev console, it complains:</p>
<pre><code>Fetch ... | 3 | 2,240 |
Tensorflow Lite - Input shape must be 5 dimensional error | <p>I am trying to port a tensorflow model to tensorflow lite to use it in an android application. The conversion is successful and everything runs except for <code>Internal error: Failed to run on the given Interpreter: input must be 5-dimensional</code>. The input in the original model was <code>input_shape=(20, 320, ... | 3 | 1,282 |
split string into an array and use each item of the array in a query string | <p>I've searched through all the topics dealing with splitting strings into an array. But I have not actually come across what concerns my needs.</p>
<p>On the searchbox, a user types any string of any length (I cannot tell the length of words). On submit, the php script collects the value as $q.</p>
<p>Example:</p>
... | 3 | 1,421 |
BizTalk 2010 WCF SQL adapter compatibility with SQL Server 2014 | <p>I am getting the error below whilst updating a port which uses a WCF SQL adapter that has always worked fine with SQL 2008 to a SQL 2014 DB with exactly the same (very simple) table schema.</p>
<blockquote>
<p>The adapter failed to transmit message going to send port "WcfSendPort_SqlAdapterBinding_TableOp_dbo_XXX... | 3 | 1,871 |
Auto close navbar after click on link responsive mode | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>I add also my CSS code of navbar, all is working well, only I need is auto close when click on link
/* navbar */
nav{
height: ... | 3 | 2,309 |
Display different sidebar for each navbar item in React | <p>Using gatsby, I want to have different sidebars for each section of the navbar just like in documentation sites like <a href="https://reactjs.org/docs/getting-started.html" rel="nofollow noreferrer">react</a> and <a href="https://docusaurus.io/docs" rel="nofollow noreferrer">docusaurus</a>.</p>
<p>My MD files are st... | 3 | 2,188 |
Two useState in an one function and called the function in useEffect | <p>I need to show monthly data in a Table.</p>
<p><strong>Expected Logic</strong></p>
<p>User can change the month, then data should be fetched from server.</p>
<p><strong>Problem</strong>
I have a handleCalendar function to increase month or decrease month.
then it use useState to set a month and year.
after setCalend... | 3 | 1,327 |
where should the delay call be placed inside a gekko code? | <p>I am trying to use GEKKO MPC to control the level of a tank while manipulating the inlet flow. I want to model the GEKKO controller as a FOPDT. I got all the parameters I need, but I want to account for the time delay using the delay function. I am not sure of the exact position of this function since it is giving m... | 3 | 1,315 |
Unexpected value 'LoginRoutingModule' imported by the module 'LoginModule' | <p>Hello as part of Angular 2 learning project I am creating a test app.</p>
<p>I am trying to eagerly load one of the Module called LoginModule however I get following error
Unexpected value 'LoginRoutingModule' imported by the module 'LoginModule'</p>
<p>I tried to refer other questions where error message is simi... | 3 | 1,291 |
Jquery show div if query returns data | <p>I am working with a script that needs to show a DIV which contains a small FORM. I need the FORM to be displayed only when a query to a database returns a result of 1 or more.</p>
<p>I have the MySQL query that looks for data and it is working and populates a var named $alerts, I then echo the content of the var $a... | 3 | 1,370 |
When reading in file, and use nextLine() to move to the next line, it causes the read in to skip every other line | <pre><code>try {
FileReader in = new FileReader("generibrand.txt");
input = new Scanner(in).useDelimiter(":");
} catch (FileNotFoundException fileNotFound) {
JOptionPane.showMessageDialog(null, "No File Found!");
}
try {
while (input.hasNextLine()) {
String drugCl... | 3 | 1,480 |
Issue with file transfer using Java sockets and DataStreams | <p>I've been working on a chat client for myself and some friends, and decided to attempt to add functionality to allow file transfers between clients. I am able to send a file, but it arrives in a different state than the file sent. As an example, here is a link comparing the before and after of an image sent:</p>
<p... | 3 | 2,655 |
ERR_CONNECTION_TIMED_OUT when calling backend NodeJS server behind VPN | <p>I just created a website in reactJS (create-react-app) with a login possibility.
I configured autosigned SSL certificates with letsencrypt, added some DNS entries for HSTS and everything that make my website properly traffic-encrypted. My website is running on port 3001 (front-end) and my nodeJs backend is up on por... | 3 | 2,320 |
FBXLoader: I can't load more than one object | <p>I am just trying to follow examples and get myself putting my own models into a scene. However, when using the FBXLoader, I'm not sure what if what I'm doing is right. I can only get one FBX to load at a time. I'm not a coder first, so sorry if my code looks sloppy:</p>
<p>I have an object called range_burners.fbx.... | 3 | 4,244 |
how to get table rows select option value using checkbox | <p>I have the following html table with select option in one of the columns. I want to display the values of the rows that are checked but don't know how to work with the select option value. Can someone help me modify the code? If not using DOM, can we just use PHP to get all checked values and store in $ variable? Fi... | 3 | 1,630 |
Find patterns across multiple log files? | <p>I have eight log files in the following format: </p>
<p>log01:</p>
<pre><code>[Tue Feb 24 07:39:37 2015] *** MARK ***
[Tue Feb 24 07:40:38 2015] *** MARK ***
[Wed Feb 25 17:13:33 2015] *** MARK ***
[Wed Feb 25 17:14:09 2015] *** MARK ***
[Wed Feb 25 17:16:46 2015] *** MARK ***
[Wed Feb 25 17:17:48 2015] *** MARK *... | 3 | 1,196 |
Cocos2d: Can't seem to create child sprites correctly using class or instance method | <p>I made a similar thread yesterday, but received barely any responses probably because of the lack of detail. I'm going to be a lot more thorough. </p>
<p>So I've been cleaning up my class (JoinedMapsLayer) that has my tmx map added to it and running update, draw, etc. There are some methods that I've tried adding t... | 3 | 1,665 |
does this need to be done with eventlistener instead? | <p>I am trying to append my selections to an array when I click my submit button. I am assuming I need to be using eventlistener onclick function for this instead.</p>
<p>With my current method it is throwing the following error...</p>
<p><strong>EDITED</strong>
<em><strong>Cannot read properties of null (reading 'leng... | 3 | 1,643 |
How to iterate over each individual column values in multiple column dataframe? | <p>I have multiple column data frame with columns <strong>['Country', 'Energy Supply', 'Energy Supply per Capita', '% Renewable']</strong>.</p>
<p>In the energy supply column, I want to convert the unit of the column to Peta from Giga. But in the process
<code>energy['Energy Supply']*= energy['Energy Supply']</code>, ... | 3 | 1,414 |
need help making website responsive | <p>everyone! I'm currently doing some free work for a friend of mine to contribute to my portfolio and keep me on my feet learning.</p>
<p>Everything is going great and looking great, but unfortunately, I'm having a lot of trouble trying to make some of the content responsive. I'm using the Bootstrap grid framework.</... | 3 | 1,339 |
AJAX request not working properly | <p>Hey guys and gals,</p>
<p>I have a form that I would like to use AJAX to submit. For the callback function basically what I want to happen is, the form elements disappear (.hide) and are replaced by a div element (which will ready success or something of that nature). I then want the function to pause for 5 seconds... | 3 | 1,210 |
Phonebook program doesn't work in Java | <p>I'm creating a program that acts like a Phonebook. I have my Contacts written in a text file. My program should read the contacts in the text file, and also also allow the user to add a contact and remove a contact. By doing this it should also update the text file.
So here's my code:</p>
<pre><code>import java.io.... | 3 | 1,086 |
Could not resolve dependencies for project - richfaces | <p>Yesterday,I checkout my project in a company which I work. We use Maven, Java EE, JSF, Richfaces etc. When I build the project in NetBeans 8, i got the following error:</p>
<blockquote>
<p>Plugin org.richfaces.cdk:maven-cdk-plugin:4.3.1.Final or one of its dependencies could not be resolved: Failed to read artifa... | 3 | 2,115 |
Can't figure out how to implement fourier series in python | <p>I have resently stumbled uppon this Video <a href="https://www.youtube.com/watch?v=r6sGWTCMz2k" rel="nofollow noreferrer">https://www.youtube.com/watch?v=r6sGWTCMz2k</a> by 3Blue1Brown explaining what a fourier series is.
I was amazed by this mathematical pattern which seems like sorcery and wanted to implement it f... | 3 | 1,773 |
React: function return before fetch finish | <p>When i call the function ShowUserPanel() i also call the getUsers function that gives me the data that i have to insert in the var rows that is necessary to populate the table. The problem is that the ShowUserPanel function return the empty table without the data, but if i go to another page and comeback the table i... | 3 | 2,461 |
Aggregating (group) time by 15 seconds intervals // Microsoft SQL Server 2019 | <p>I'm new to Microsoft SQL Server 2019. Currently I'm trying to aggregate <code>Timestamp</code> (type <code>datetime</code>) by 15 second intervals.</p>
<p>Desired result:</p>
<pre><code>Timestamp Timestamp2
2019-01-01 04:00:00.487 2019-01-01 04:00:15.000
2019-01-01 04:00:01.487 2019-01-01 04:00:15.00... | 3 | 1,637 |
$routeProvider in AngularJs is not Working | <p>I'm using angularJs and new to it. I'm facing problem in $routeProvider.</p>
<p>Thanks in advance if someone may help me :)</p>
<p>when i see in firebug it show reference not set for $routeProvider. </p>
<p>here is my code..</p>
<h2>main.html.</h2>
<pre><code><!DOCTYPE html>
<html xmlns="http://www.w3.... | 3 | 1,244 |
BroadCast Services and Notification's in Status Bar | <p>Edit : I am going to ask my question in a different way again since i recieved any reply.</p>
<p>I think two problems caused by puting alarm manager ,which the broadcast receiver is called by its pendingIntent, in Mainactivity . first whenever the app open it will be called then the notification shows up .
seco... | 3 | 1,532 |
XML is blank after applying XLST transformation to it? | <p>Not sure if I'm missing something here since this is my first time doing this. Both files are in the same folder if that matters (xml and xsl).</p>
<p>Example of the xml:</p>
<pre><code><?xml-stylesheet type="text/xsl" href="cd_catalog.xsl"?>
<CATALOG>
<CD>
<TITLE... | 3 | 1,341 |
HTML Sending send different language characters in get request | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><!DOCTYPE html>
<html>
<form action="https://translate.google.com/" method="get" onSubmit="return validateFo... | 3 | 2,059 |
Entity Framework In Memory Database provider weird behavior | <pre><code>[HttpGet]
public JsonResult GetTodoItems()
{
return new JsonResult(_context.TodoItems.ToList());
}
[HttpPost]
public JsonResult PostTodoItem(TodoItem item)
{
_context.TodoItems.Add(item);
_context.SaveChanges();
return new JsonResult("Added successfully!");
}
[HttpDelete("{id... | 3 | 1,063 |
How to override build_query method in role_adapter rolify? | <p>I am using rolify gem for authorization. When i create a new user dynamically through UI, my users_roles (in my case role_user_map) table insert is not happening. Is there a way to override build_query method? Please, guide me with this. Thank You. `
users_controller.rb</p>
<pre><code>def index
store_list = @q... | 3 | 1,355 |
How to GET variables from an Array from external API? | <p>I'm starting with Apollo GraphQL (Using Axios), and i'm facing a problem when an external API send an ARRAY.
I can't get the variables inside the objects.
I've already tried in several ways, and can't find help anywhere.</p>
<pre><code>const axios = require ('axios');
const {GraphQLObjectType, GraphQLSchema, Grap... | 3 | 1,484 |
Error in loading physi.js and ammo.js | <p>I'm trying to develop a project with physijs. I have encountered this type of error (from mozilla firefox console):</p>
<ul>
<li>NetworkError: Failed to load worker script at "js/libs/ammo.js"</li>
</ul>
<p><a href="https://i.stack.imgur.com/C41T8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | 3 | 1,216 |
Margin of optimisation in C++ armadillo code | <p>I am trying to migrate a quite complex matlab funciton in c++ using the library <code>armadillo</code> but I have serious problems in terms of performance (my c++ version is much slower than the matlab one which is a bit odd). I was wondering whether any of you can spot a point where I can improve my code and possib... | 3 | 1,632 |
How do I correlate two identically coded variables sent in the response from a Worklight server response string in LoadRunner 12.02? | <p>I am trying to create a load test versus one of our apps that is used on web and mobile. I am trying to access this app from the web. I login to the website. Using this login, I click on the web version of the app. The below response is returned here.</p>
<p>This app is using SiteMinder and Worklight to negotiat... | 3 | 3,138 |
Network on main thread exception even on new thread | <p>I am getting this network on main thread exception, even though I am running a new thread. Any idea what's going wrong here ?</p>
<pre><code>public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layou... | 3 | 1,177 |
React show toggle showing all children | <p>Im using react.js and im trying to have a <code><ul></code> with each <code><li></code> having a child <code><ul></code>. When an icon in the <code><li></code> is clicked Im trying to show its child <code><ul></code>. The current way I have it its showing ALL the <code><li></code>... | 3 | 1,663 |
adding rows for missing intervals between existing intervals in R | <p><strong>Problem</strong>:
I have a data set that contains interval data with start and end dates and my goal is it to add rows to that data set that reflect the potential gaps between these intervals (per group). The complexity is that the already existing intervals may overlap and there might be an arbitrary number... | 3 | 2,531 |
How to make calculations using Redux toolkit? | <p>I've camed accross the question of calculations in redux using redux-toolkit. In my concrete example I'm trying to calculate a few things:</p>
<ol>
<li>The price of unit costs * unit;</li>
<li>To add every multiplied price;</li>
<li>After making Sub-total I want to calculate from it the % of tax(Total Vat);</li>
<li... | 3 | 1,084 |
I want to Add Property Type and Sub Types in RadioButton using MVC | <p>I have Property Types and sub types that are stored in db, and i want to display these types and sub type in radiobutton.</p>
<p>I m sharing some details.</p>
<p><a href="https://i.stack.imgur.com/RDSAL.png" rel="nofollow noreferrer">DB Tables Image</a></p>
<p>Here is ModelVM class</p>
<pre><code> public clas... | 3 | 1,175 |
How to keep index straight when ajax request are async and not finishing in order | <p>I am interacting with the Vimeo oembed api getting videos. My context is that I have multiple events each with a set of videos. I am keeping page load times down by simply getting the first set of videos rather than loading all of them.</p>
<p>This function takes 4 parameters and then gets the video, returning th... | 3 | 1,081 |
VB.net - Dynamic database connection combobox | <p>I have some code which populates a combobox with database names. I then have a button which saves the name back to My.Settings and creates the connection string. </p>
<p>This is working for the most part. If i select a database it will display the correct information for that database in my form, then if i go back ... | 3 | 1,315 |
JavaScript Calculator problems | <p>I am messing a bit with JavaScript and decided to make a calculator. For now all I want it to do is to input what button was pressed into Answer box, but I can't make it to work, I think something is wrong with my functions, but I can't figure out what, please help...</p>
<p><div class="snippet" data-lang="js" data... | 3 | 2,242 |
cUrl login is not working | <p>I'm trying to login to one of my sites using curl to pull information off the page. It does not seem to be working. Here's the code I'm trying. If it helps I can create a user/pass for just this scenario.</p>
<pre><code><?php
$username = 'xxx';
$password = 'xxx';
$loginUrl = 'http://gwintersdev.com/user';
$f... | 3 | 1,400 |
Using GetX Bind Stream with Firebase Firestore | <p>I'm working with Streams, Firebase Firestore and GetX. I want to Stream data from the database without having to use Stream Builder.. because, I will be needing multiple Streams</p>
<p>So. here's my controller</p>
<pre><code>RxList<PostModel> viewPost = RxList<PostModel>([]);
@override
void onInit()... | 3 | 1,584 |
trying to publish blazor wasm app but mono runtime and class libs out of sync | <h3>Describe the bug</h3>
<p>I'm trying to publish blazor wasm app to GitHub Pages and aliyun oss using GitHub Actions.
Deploy success,but get error on browser,see <a href="https://gohopo.github.io/" rel="nofollow noreferrer">console log</a>.
What I do wrong?</p>
<p>My web.yml</p>
<pre><code>name: deploy to web
on:
... | 3 | 1,224 |
Android studio - can't manage to detect faces using OpenCV from pictures from my gallery | <p>I'm trying to use opencv to detect faces in static pictures from my gallery but i can't manage to detect them (or draw rectangles on the picture). I have tried a lot of things, none of which worked for me. Help would be appreciated.</p>
<p>I have tried changing approaches to detecting the faces, none of which worke... | 3 | 2,237 |
Get total count of last seven days for top 5 countries of all time | <p>I have a table called <code>events</code> which looks like this:</p>
<pre><code> id | date | country | event | count
---------------------------------------------
1 | 2018-03-16 | RS | views | 33577
2 | 2018-03-21 | US | plays | 232712
3 | 2018-03-14 | AR | clicks | 469159
4 | 2018-... | 3 | 1,261 |
How can I pull only specific columns \ cells from csv in <pre> tag, into highcharts pie chart | <p>I am new to Stack and jquery, highcharts, and a javascript novice.
I am trying to create a highcharts pie chart like this - <a href="http://jsfiddle.net/dsbvpkt0/7/" rel="nofollow noreferrer">http://jsfiddle.net/dsbvpkt0/7/</a>
I need to however, pull the data from a csv file and only want the specific columns,</p>
... | 3 | 1,513 |
Outlook meeting schedules in UTC not EST | <p>I am successfully sending an email meeting request to the user I need. The meeting times are from 8:30am to 9:00am. When the user receives the email and invitation it is in UTC time. Meaning that the meeting is from 4:30am to 5:00am. This is not and Outlook timezone issues as mine is set to EST. I have tried to spec... | 3 | 1,453 |
Magento in Thumbnail Category custom theme | <p>I am working with the 1.9.2.0 version of Magento in a custom theme, it is running smoothly, what I want and as is the name of the main category rather than the category name.Already I tested several tips right here, and several tutorials on the net. But I can not do it, could guide me where I am going wrong?</p>
<p... | 3 | 1,974 |
Multiple Wordpress custom queries behaving oddly | <p>First off, here's the code :</p>
<pre><code> <?php
$categories = get_categories();
foreach ($categories as $cat) { if ($cat->count >= 4) { ?>
<section class="home-section row">
<div class="large-12 columns">
<h3 class="ug-home-title"><span><... | 3 | 2,708 |
How can I change the language of the AlertDialog | <p>I'm changing the language of everything and, I did end up stuck on the part that I need to change the AlertDialog.</p>
<p>And I think the thing that I'm getting wrong on it, is the ID stuff, I'm a bit lost on that part</p>
<p>Same on the other languages, but different languages</p>
<p>This is the string.xml and Aler... | 3 | 2,078 |
How to decode Token Address from a given Pair Address in web3 | <p>What I am trying to accomplish is to get the Contract Address <code>0x1ada8bb610c59aae25d8dd8f354282f5693cefb1</code> given the LP Pair address <code>0x0D0b63b32595957ae58D4dD60aa5409E79A5Aa96</code> in (Token/BNB) pair. My Current Code is getting me nowhere. Ideas will be very helpful.</p>
<p>Current Code:</p>
<pr... | 3 | 3,098 |
Is it possible to create a folder on the Alfresco site by using OpenCMIS API? | <p>I have the <a href="http://docs.alfresco.com/5.2/concepts/ws-types-presentation.html" rel="nofollow noreferrer">Presentation Web Script</a> (<code>script A</code>) and the <a href="http://docs.alfresco.com/5.2/concepts/ws-types-data.html" rel="nofollow noreferrer">Data Web Script</a> (<code>script B</code>).</p>
<p... | 3 | 2,195 |
Alternating Color Rows - Not working for both sidebars | <p>I have 2 sidebars. One sidebar gives sorted results from a mysql query and the other sidebar gives directions to and from a location. I am trying to alternate the row colors of the mysql results and the row colors of the directions. It's working for the directions using this code but not for the mysql results. Anyo... | 3 | 4,119 |
Multiple directives in a controller, only one can display at any time | <p>I have a controller here and two directives:</p>
<pre><code>app.controller('ListCtrl', function($scope){
$scope.audioOptions = {
audio: [{
file : "sound/world.mp3",
type: "mp3"
},
{
... | 3 | 1,473 |
What will adapter.getItem() return? | <p>I have created a custom array adapter for my custom ListView, which has TextViews and a Checkbox. In my customadapter I created a method called isChecked() -</p>
<pre><code> static class personHolder
{
TextView txtName;
TextView txtNumber;
CheckBox checkbox;
public boolean isC... | 3 | 1,703 |
Tensorflow 1.14.0 error in importing the module | <p>ImportError Traceback (most recent call last)
c:\users\sanjay\anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import ... | 3 | 1,524 |
how to join three tables with one output | <p>i have the sql statement below of which i wanted 3 tables to be joined and have 1 output. The thing is, there is no error but it did not show my desired output.</p>
<pre><code>$sql = "select distinct(sales_table.sales_id), trades_table.t_symbol, round(sum(trades_table.t_volume),2) as totalvol from trades_table ... | 3 | 1,138 |
How to connect sybase with laravel 8.0? | <p>I want to install sybase with laravel version 8.0. I used below command for installing,</p>
<pre><code>composer require uepg/laravel-sybase
</code></pre>
<p>this gives below error. I dont know what’s this mean.
Can anyone explain me what does this mean and how can I resolve this type of error.</p>
<blockquote>
<p>Pr... | 3 | 2,131 |
JBoss Developer Studio 11.0.0GA Date Transform Problems | <p>I'm trying to create a simple Fuse Integration Project which should transform input message message in XML format to output message in XML format.</p>
<p>For developing i'm using Jboss Fuse Developer Studio 11.0.0GA with integration-stack. </p>
<p>I'm using to XSD schemas and Date Transform node for it.</p>
<p... | 3 | 5,760 |
Matching enum with combo box list doesn't seem to work | <p>[UPDATE: Added <code>Form1()</code> constructor]</p>
<p>I am trying to match some data from certain clases into combo box values in windows form application.</p>
<p>What I've done until now looks like this:</p>
<p>(This class has some <code>region[]</code> values that I want to store in a combobox, depending on <... | 3 | 1,247 |
ASP.net MVC pass some data from view to controler | <p>In view I have ListBox so user can select some data. I also have MultiSelectList for same reason.
User can choose some date from MultiSelectList or he doesn't have to (he can leave that field blank). And that worked fine.
I've decided to add TextBox so user can enter data if he wants. Now when user enters data to ... | 3 | 1,074 |
flutter) If click on the text field, it will be rebuild | <p>I'm using Stream(Firestore) and I'm trying to output several text field widgets and edit them individually. (Like creating and editing a text box in PPT)</p>
<p>However, if click after creating a text field, the app will rebuild and cannot input it in the text field.</p>
<p>The following is part of my code.</p>
<pr... | 3 | 1,216 |
File corruption/encoding issue after download and saving via ajax function | <p>I have a Rails 6 controller function that generates a Excel file. This is a GET request/form submit of 3 criteria, 2 dates and a mode variable. Nothing fancy at all. This works with small amounts of data in the returned Excel file, but when larger volumes are required it takes ages and the browser times out. I've mo... | 3 | 2,106 |
Android removes previous tab icon, when I create new one dynamically | <p>I create <code>TabItems</code> dynamically, and I assign the new tab created an icon, but the problem is: when I create another tab 'again' dynamically, the previous <code>TabItem</code> icons just disappears! Why?</p>
<p>Here is the picture when I haven't created a new tab dynamically:</p>
<p><a href="https://drive... | 3 | 1,349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.