title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Passing a pointer from c# to c++ ends with unexpected results | <p>im trying to pass a pointer from c# to c++, this ends with unexpected result in the c++ side when i always receive the same address even when i send a NULL pointer from the c#.</p>
<p>some details.</p>
<p>note: <strong>this is a different kind of question.</strong></p>
<p>c++:</p>
<pre><code>#pragma pack(push, 4... | 3 | 1,079 |
Why does nose ignore certain files on coverage report? | <p>I am running tests on a project I've been assigned to. Everything is triggered by calling tox.
Default tests run with nose, which adds a coverage report, this is the command that tox calls:</p>
<pre><code>django-admin test -s
</code></pre>
<p>and settings file has this configuration for nose:</p>
<pre><code>NOSE_ARG... | 3 | 4,906 |
Form in works with select multiple | <p>I developed a website where you will have a form where you will receive an email within this form exite 2 inputs select but the user will be able to select more than one option so I added the multiple tag so he can select more than one field when sending the form it works normally But he does not receive the other o... | 3 | 4,842 |
Why does my fflush not work? Skips asking for string in loop | <p>I am trying to code a lab for class but in the output when I run it it only asks for the string once, and when it loops it skips letting me input it and goes to the next function. I put a <code>fflush</code> in there but it does not work. I am using visual studio 2015</p>
<pre><code>#define _CRT_SECURE_NO_WARNINGS
... | 3 | 1,137 |
Displaying char/number from hex | <p>Basically, I need my program to display something like this: <a href="http://i.imgur.com/ZOfnEJm.png" rel="nofollow">http://i.imgur.com/ZOfnEJm.png</a></p>
<p>I feel like for the most part, I have the code down. However, I'm having trouble displaying anything between the <code>||</code> portion of my code. When I c... | 3 | 1,415 |
Linux epoll syscall, waiting though data available | <p>Testing Linux syscall <strong>epoll</strong> using a simple parent-child program.</p>
<p><strong>Expected behaviour</strong></p>
<p>As the child writes a no every second, the parent should read it from the pipe and write a no every second to stdout.</p>
<p><strong>Actual behaviour</strong></p>
<p>The parent wait... | 3 | 2,114 |
Parsing error while building images for Raspberry pi 3 using yocto | <p>I am trying to build images for Raspberry pi 3 using yocto by referring <a href="http://kernelhacks.com/raspberry-pi-3-with-yocto/" rel="nofollow noreferrer">this</a>, while running bitbake command I am getting following error. </p>
<p>In the error log, it says error while executing a python function, but no detail... | 3 | 2,889 |
Batch reading file info | <p>so i need to write a batch, that reads a .log file and does certain tasks with it.<br>
1. Count the number of logins<br>
2. Show ip address and file of successful login cases and at the end count how many of them took place (error code 200)
3. Show ip address and file of unsuccessful login cases and at the end coun... | 3 | 1,525 |
Python : File with one JSON obj on each line | <p>Greetings from tokyo. </p>
<p>Let me explain you what i'm trying to achieve with python 2.7 :</p>
<p>I have a file with a <strong>JSON Dict</strong> on each line, here is a capture :</p>
<pre><code>1 {"res":0, "res_message":"OK", "debug_info":{"id-info":"9089"}, "visits":[{"id":"237000080507750613","siteId":15516... | 3 | 1,574 |
Django filter() returning object instead of contents | <p>Brand new to Django so excuse the newbie question. I cannot for the life of me get a Google search to return what I need.</p>
<p>First, I imported these using inspectdb.</p>
<p>Second, before providing the:</p>
<pre><code> def __unicode__(self):
return u'%s %s' % (self.id, self.cuisine)
</code></pre>
<... | 3 | 1,288 |
Read data from file C++ | <p>I would like to extract the max values for each node but my program prints me just the max for node number 1 eight times:</p>
<p><strong>223
223
223
223
223
223
223
223</strong></p>
<p>Given the input data I expect to see:</p>
<p><strong>223
736
898
543
367
726
568
563</strong></p>
<p><a href="http://i.stack.img... | 3 | 1,177 |
Why I can't launch the container with the image nginxphp in local | <p>I try to create an image from the image <code>jelastic/nginxphp:1.18.0-php-7.4.10</code> to set up my existing Laravel project (to then put on Jelastic cloud). However, when I try to access localhost I get a <code>ERR_EMPTY_RESPONSE</code> error.
I also tried to create a container from the <code>jelastic/nginxphp:1.... | 3 | 6,717 |
How to parse a given .sql file in c#? | <p>I have a .sql file that contains definition of the schema</p>
<pre><code>`USE [master]
GO
/****** Object: Database [Phone] Script Date: 18-05-2020 12:15:46 ******/
CREATE DATABASE [Phone]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'Phone', FILENAME = N'H:\SQL SERVER\MSSQL15.MSSQLSERVER\MSSQL\DATA\Phone.mdf' , ... | 3 | 1,539 |
How to automatically drop the dropdown menu if my cursor pointed to the navlinks | <p>I have question regarding on customizing the dropdown menu of bootstrap 4, I have module where I need to show the content of dropdown menu If the user hover the different navlinks. Is there way to show the content on the dropdown. If I hover it.? I found some answer related on my question but it's not working on my ... | 3 | 10,962 |
CAS [v5.3.6] / Problem with setting the appropriate language | <p>I currently working with cas v5.3.6, after migration from v5.0.4 i have a problem, with setting te proper language.</p>
<p>Setting the language in cookie and read by CookieLocaleResolver works very well, only one view doesn't work as expected / oauthConfirmView.</p>
<ul>
<li>system locale is set as PL,</li>
<li>ca... | 3 | 1,064 |
How to read image bytes in java? | <p>I am trying to display image in jsp page for that i am using bellow code.Everything was fine but some error was displayed and i don't know how to fix this can any one help me to fix this.</p>
<p><strong>code:</strong></p>
<pre><code> <%@page import="java.awt.image.BufferedImage"%>
<%@page import="javax.i... | 3 | 1,820 |
cities.statename.data generate error Cannot read property 'data' of undefined at Object.city | <blockquote>
<p>Cannot read property 'data' of undefined at Object.city</p>
</blockquote>
<p>Problem is I am calling state with dynamically ,when I wrote cities.UP.data it display correct result and when I add cities.statename.data here state name generate dynamically when I select any states. </p>
<p><code>person.... | 3 | 1,335 |
visual studio 2015 .net core publish not using `ExcludeFoldersFromDeployment` | <p>In VS 2015, on a web project, I have this as my <code>*.pubxml</code> file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more abo... | 3 | 1,171 |
How to stop "if(isset($_POST['form-submit']))" from redirecting after clicking Submit? | <p>I have a serious problem about <strong>Password Recovery Program</strong> these days. While I was programing an <code>if(isset($_POST['pass-submit']))</code> on <code>reset.php?recoverykey=6602f445b4736ef3363a31e05750022d</code>. When someone clicks Submit button of the form, it should stay at the same page for pro... | 3 | 3,542 |
Updating temp table with loop | <p>I'm attempting to create an automated way to find the Min-Max range of certain data points. The problem is that when arranging the HUB data points (SLICs) in sequential order, many of the HUBs SLIC flows are interrupted by the SLICs of other HUBs. This provides a problem because the ranges overlap for many HUBs. Thu... | 3 | 1,543 |
text size and div size is not adjusting in android phone by using jQuerymobile ...any suggestions? | <p>i'm using jquery mobile ,here i'm using collapsible-set and there is two sub contents in my data-role="content" . In primary-content i have collapsible div's, and this primary content is taking 29% of the total width of the screen .But the problem is the size of the font and div size is not adjustable on android pho... | 3 | 1,867 |
repeat checking of form data without submit (JavaScript, HTML, JQuery) | <p>I'm trying to submit a HTML form, only when all the fields do not return false in the Javascript code.</p>
<p>My HTML looks like this, for simplicity I have just kept the name and email</p>
<pre><code> <form method="post" action="RegistrationServlet" class="iform"
onsubmit="return sendForm();">... | 3 | 1,509 |
I'm currently writing a black jack game and I am having problems with passing my code onto the "calculating_scores" function | <p>Can anyone help me fix my issue with getting my code to pass onto the calculating_scores function without my coding wanting to loop back up every time I enter something into the <code>another_card = input("Type 'y' if you'd like another card:\n")</code></p>
<pre><code> def play():
global game_conti... | 3 | 1,034 |
Use data.table instead of pivot_longer | <p>I would like some help to adjust the output called <code>adjusted</code> that I generate. My idea is to optimize somehow to generate faster. Notice that I'm using <code>pivot_longer</code>, which takes longer. One idea would be to continue using <code>data.table</code> as I did to generate <code>SPV</code>. However,... | 3 | 1,925 |
Flexbox table layout with custom scroll | <p>I am struggling to get my flexbox layout to scroll as I need. My requirements are:</p>
<ol>
<li>Fixed size container</li>
<li>Fixed header and footer</li>
<li>Table to scroll horizontally</li>
<li>Table body to scroll vertically</li>
</ol>
<p>I am hoping to do the above with only defining the sizes of:</p>
<ol>
<li>... | 3 | 2,021 |
CMake undefined reference with statically linked libraries | <p>I am kinda new to CMake and trying to learn it. Im trying to compile an example project from an IDE with CMake. A problem arises when i try to link some of the vendor supplied static libraries.</p>
<p>The Project is basically:</p>
<pre><code>PROJECT_DIR
source
main.c
include
main.h
device
familyfol... | 3 | 8,623 |
Error: Entities passed to the choice field must be managed in a multistep form | <p>I have 2 Entities: Campaignstreams & Materialstreams.
They are linked to eachother in a ManyToMany relationship.</p>
<p><strong>Campaignstream</strong></p>
<pre><code>class campaignstream
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO"... | 3 | 1,467 |
Rails 5: edit user role on index with AJAX | <p>I'm trying to create view where User can be selected from dropdown and then below Role partial for particular User Role edit is loaded.</p>
<p>This is what I have in <em>/roles/index.html.erb</em></p>
<pre><code><div class="form-group">
<label class="col-sm-2 control-label">User name</label>
... | 3 | 2,228 |
iOS How to make a text view which is in an inputaccessoryview a first responder? | <p>I want a textview in accessory view but the accessory view should be visible only when I press a button in a scroll view and the keyboard should close interactively with the text view on swipe. What is the solution?</p>
<p>Facebook messenger & WhatsApp does the same thing, but they have the accessory view visib... | 3 | 1,606 |
Android Retrofit2: How to read and set EditText values when fragment is created? | <p>I'm trying to read meteorological values like temperature, pressure... and I have some EditText in the main fragment layout, that opens immediatly when the application is opened.</p>
<p>The point is that I wanna call using Retrofit2 my API developed with Slim PHP, to read these values and then set the EditText text... | 3 | 1,145 |
Mysql query is too slow when order by datetime | <p>I have a table with about 10k rows. I run below sql but it's take too much time (~4 seconds):</p>
<pre><code>SELECT
ID, post_date, post_title, post_name, pc.post_view,
t.name AS post_category,
pm2.meta_value AS post_image
FROM wp_posts p
INNER JOIN wp_term_relationships tr ON p.ID... | 3 | 1,294 |
PHP Soap request named parameters are sent as one parameter | <p>Firstly I would like to apologise if this issue has come up already in Stack Overflow but my googling did not manage to find it.</p>
<p>I'm running on PHP 7.2 and have created a SoapClient to send RPC encoded requests to a Web Service.</p>
<pre><code>$this->client = new \SoapClient('https://tsp.demo.sk.ee/dds.w... | 3 | 1,238 |
Cannot display value in UITableView | <p>I am getting an error saying "NSString does not have member 'subscript'" on the following line.</p>
<pre><code>cell.textLabel?.text = objname[indexPath.row]
</code></pre>
<p>Here is the code (error line is at the bottom).</p>
<pre><code> func makeGetRequest(){
var url : String = "http://apiairline.yome.v... | 3 | 1,383 |
Why does a GDB watchpoint stop on an irrelevant line when swapping binary tree nodes? | <p>I am trying to swap two nodes <code>A</code> and <code>B</code> in a binary tree so that the places they are actually stored in memory change but the tree topology is not changed. I added special handling for swapping a node with its parent, but it still seems that it doesn't work. I'm using Valgrind with vgdb so ... | 3 | 2,241 |
How to Import ParseLoginUI on Android? | <p>I am following the guide here: <a href="https://www.parse.com/docs/android_guide#ui-login" rel="nofollow">https://www.parse.com/docs/android_guide#ui-login</a></p>
<p>I have downloaded the ParseLoginUI library here: <a href="https://github.com/ParsePlatform/ParseUI-Android" rel="nofollow">https://github.com/ParsePl... | 3 | 1,683 |
Pass several variable to a function Jquery | <p>Noob question incoming: Im using the jquery function loadNewPicture() to load picture (obviously) and the function progress() to see the achievement in percent of the upload.</p>
<p>Everything is working fine.</p>
<p>My question concerns only the variables that I can pass to the function "progress()." This... | 3 | 2,469 |
Handle drag shape that be overlap | <p>i 'm doing a program that user could drag this shape.
The shape is:
<a href="https://i.stack.imgur.com/uyxFr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uyxFr.png" alt="IF shape"></a>
<a href="https://i.stack.imgur.com/j1eqa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j... | 3 | 1,715 |
Refresh jquery Data table | <p>I am trying to refresh the create data table without reloading the whole page. So, everytime I try to search for a result, it will refresh the data table and give a new result and not add a new row instead. If i remove the <code>$('#investmentTable').empty();</code>. It gives me the all the result but it does not re... | 3 | 1,414 |
My Cuda script array output is wrong | <p>This weekend I am trying to learn Cuda.</p>
<p>What I want to do is c=a+b. Each of variable (a, b, and c) is an array with 5 elements.</p>
<hr>
<p>I have problem with the result.
This is my desired result:</p>
<pre><code>{a1, a2, a3, a4, a5} = {11.000000, 21.000000, 31.000000, 41.000000, 51.000000}
{b1, b2, b3, ... | 3 | 2,746 |
Scribe Tumblr Response body is incorrect. Can't extract token and secret from this: 'Missing or invalid oauth_verifier.' | <p>I'm having problems with authenticating Tumblr using Scribe. I've followed an example that I found here on SO but I keep getting "org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Missing or invalid oauth_verifier.'"</p>
<p>Any ideas? Help would be GREATLY ... | 3 | 1,628 |
drag and drop using javascript and jquery | <p>I am trying to capture the coordinates of list items on their current position and also after they have been dragged and dropped to some place.
I am able to capture the cooedinates before thr drag and drop. I am not able figure out what to do after the drag and drop. please help.</p>
<p>the html:</p>
<pre><code>&l... | 3 | 1,100 |
autocomplete specify more parameters? | <p><strong>I'm using jquery UI autocomplete</strong></p>
<p>If I do this in jquery / asp.net:</p>
<pre><code> $("#<%= txtName.ClientID %>").livequery(function () {
$(this).autocomplete('LoadNames.ashx')
.result(function (event, data, formatted) { // data[0] : Name, data[1] :AddressI... | 3 | 2,268 |
How can an individual in a OWL ontology be classified as an instance of A, if A is mutually exclusive to B and the individual is not in B? | <p>Here is my ontology created with Protege.</p>
<pre><code>Prefix(:=<http://www.semanticweb.org/kolam/ontologies/2020/9/exInference#>)
Prefix(owl:=<http://www.w3.org/2002/07/owl#>)
Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)
Pre... | 3 | 1,025 |
Is there any way to know the amount of bytes send from the client to the server and process the recv() in networks | <p>I am trying to build a chat application between the server and the client. My doubt is for sending information from the client or from the server I was able to handle the partial send with the help of the loop, but I am unable to find out the length of the send data bytes from the client to the server or from the se... | 3 | 1,104 |
Php Timestamp showing negative values when month change | <p>In Php Controller code 'date_added' is already there and i created 'date_sla' for current date. In my out put individually both are working fine but when i use to calculate the difference result is fine for within the month. when month changes it showing negative numbers like (3-1-2017) - (31-12-2016) = -28 days</p>... | 3 | 1,061 |
Getting wrong result in SQL Server | <p>I have two tables:</p>
<p><strong>Fee_Payable_to_Students</strong>:</p>
<pre><code>f_co |S_Adm_No | apr | may | june | jul | aug | sep | oct | nov | dec | jan | feb | mar
1 |s_1 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5
2 |s_1 | 5 | 5 | 5 | 5 | 5 | 5 | 5 ... | 3 | 1,708 |
Design of RESTful endpoint for querying based on aggregate data | <p>Let's say we have two resources: Person, Movie.</p>
<pre><code>persons/123
{id: 123, firstName: "John", lastName:"Travolta"}
persons/124
{id: 124, firstName: "Uma", lastName: "Thurman"}
persons/125
{id: 125, firstName: "Bob", lastName: "Saget"}
persons/126
{id: 126, firstName: "Christopher", lastName: "Walken"}
... | 3 | 1,075 |
flot how to use threshold and have curvy lines? | <p>How can I use <a href="http://www.flotcharts.org/flot/examples/threshold/" rel="nofollow">threshold</a> plugin and have curvy lines on a time graph? This <a href="http://jsfiddle.net/mihaisdm/a3ccU/" rel="nofollow">online fiddle</a> I found, not sure how it is made</p>
<p><div class="snippet" data-lang="js" data-hi... | 3 | 1,733 |
How do I improve performance when iterating through multiple conditions in R? | <p>Let's assume that I have a dataset with the following structure:</p>
<ul>
<li>I have N products</li>
<li>I'm operating in N countries</li>
<li>I have N payment partner</li>
<li>May dataset contains of N days</li>
<li>I have N different prices that customers can choose from</li>
</ul>
<p>For example:</p>
<pre><cod... | 3 | 1,092 |
How Row into dynamic number of columns MySQL with saldo? | <p>I need select wich show rows to clumn to dynamic..
I have 4 table </p>
<pre><code>1)sizes (1,40 2,50 3,60)
2)goods (id,parentId,model)
3)property_goods(id,id_size,id_goods)
4)moves (with action income,outcome,return,moving,selling)..
</code></pre>
<p>First time I enter category goods and name goods with unique... | 3 | 1,186 |
Is there a way in Kotlin to combine an inline function and a when expression with an extension function? | <p>I would like to reduce the size of an if-elseif-else ladder but can't use just <code>when</code> because the smartcast doesn't catch the cases I'm dealing with. I'm wondering if I can combine something like a <code>let</code> or an <code>also</code> and a <code>when</code> into a single inline function to solve this... | 3 | 1,101 |
How can I add child nodes to a treeview with deciding the depth level? | <pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Treeview_Test
{
public partial class Form1 : Form
{
int numberofroo... | 3 | 1,096 |
Removing a field from jSon String | <p>I am storing jSon string as hexa-decimal or some characters string, its all working fine whan I retrieving as json string in my code, but there is one field I want to remove from the jSob object after I retrieved.</p>
<pre><code> var t = StoredProcedures.SP_GlobalSearch.Execute(new SP_GlobalSearch_Params
... | 3 | 4,379 |
Button not calling function correctly | <p>I am trying to call a function on a button click, but for some reason the button will not call the function. Dreamweaver does not show any syntax errors. Can anyone tell me why the button is not working? </p>
<pre><code> <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta ch... | 3 | 1,106 |
Send parameters to php with ajax call | <p>I have a html select list that I want to use to filter data in an li list. When user selects a list option the li list gets filtered based on the selection. all this data is stored in database. What I am trying to do is on change event in jquery check the value of selected option and then send that data to the serve... | 3 | 1,546 |
Windows DLL function behaviour is different if DLL is moved to different location | <p>I'm attempting to debug some very opaque issues with DLLs in Unreal on a CI machine (see <a href="https://stackoverflow.com/questions/68258600/unreal-diagnosing-why-windows-cannot-load-a-dll">Unreal: Diagnosing why Windows cannot load a DLL</a> for more information). <code>glu32.dll</code> seems to be the DLL at whi... | 3 | 1,482 |
Vue.js issue with access to properties of dynamically generated (based on Vuex data) table cells | <p><a href="https://i.stack.imgur.com/CaTz4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CaTz4.png" alt="Gantt Table"></a></p>
<p>And after adding the hint header<br>
<code><h4>Click to change the Table's Mode and to wait for 2 second</h4></code><br>
I see different unexpected results... | 3 | 3,160 |
can't use galmorous package in react-native | <p>I tried to use glamorous package in react-native.
So I used command as following.</p>
<pre><code>npm install --save glamorous-native
</code></pre>
<p>But I encountered error</p>
<pre><code>npm ERR! path E:\Project\IOS\react-Native\Log_IN_DEMO\node_modules\glamorous-native
npm ERR! code ENOENT
npm ERR! errno -4058... | 3 | 1,322 |
PETSC time stepping under mpirun mode | <hr>
<p>Dear all,
I'm a freshman in learning PETSC. I wrote a very simple 1D diffusion problem code based on PETSC library(Just simple FDM code). I want to use PETSC's parallel solver in each time step. Here is the pseudo code:</p>
<pre><code>Initial(C0);
for(timestep=0;timestep<MaxTimeStep;timestep++)
{
Assem... | 3 | 2,182 |
D3.js v7 - How to make Y axis labels always show on screen for a scrollable chart | <p>I have a chart that uses set widths for each x axis item, and because of this the chart is scrollable when lots of dates get added.</p>
<p>What I want to do is have both Y axis labels always be on screen (I can't do <code>position: fixed</code> with CSS because the axis's are <code><g></code> elements.)</p>
<p... | 3 | 5,231 |
Cypher join informations from different tables into a single one | <p>I'm new in cypher and I'm struggling with this problem:</p>
<p>I have these two queries</p>
<pre><code>MATCH (u:UserNode)-[:PROMOTER_OF*1..]->(c:UserNode)
WHERE u.promoterActualRole IN ["GOLD","RUBY","SAPPHIRE","BRONZE","EMERALD", "DIAMOND"]
AND date... | 3 | 1,134 |
How do I mock my repository and apiClient from inside my viewModel | <p>I have a <strong>MainViewModel</strong>:</p>
<pre><code> class MainViewModel @Inject constructor(val mainRepository: MainRepository) : ViewModel() {
.....
val source: LiveData<GenericApiResponse<GitResult>> = mainRepository.fetchApiresultFromClient(str_query)
}
</code></pre>
<p><strong>Mainrepository... | 3 | 1,101 |
UWP get data usage | <p>I love programming for UWP and I start new program with C# and UWP. I want to get network usage for each connection in the target system. I read document in MSDN and I write this code for my app: </p>
<pre><code>public async static Task<List<ConnectionReport>> GetNetworkUsageAsync(string ConnectionName... | 3 | 1,033 |
Cast double to int inside Smarty | <p><br><br>
I am trying to display <code>double</code> variable inside an Smarty environment converting it into <code>int</code>.</p>
<p>The File configuring the variables has the following code.
The Variable PRODUCTS_Quantity_x is the viewed Variable which I added. It is giving me a comma separated value with 3 fract... | 3 | 2,707 |
WPF Get the associated ListView in a GridView | <p>I'm trying to implement a custom <code>GridView</code> for the <code>ListView</code>, but I need to find a way to get the <code>ListView</code> that is associated with the <code>GridView</code>, since I need to access some of the <code>ListView</code> properties (<code>Width</code>, <code>Items</code>, <code>Templat... | 3 | 1,062 |
Database data displaying on html (rails) | <p>I am making a rails app that users can use to shop for products. Everything was working fine, then I adjusted the <code>products#index</code> page, and now the data from the database is displaying on the html under the <code><div></code> of the page like so;</p>
<pre><code>[#&lt;Product id: 1, name: &... | 3 | 1,430 |
How to resolve errors resulting from Volley post method that does not complete? | <p>My mainactivity class is</p>
<pre><code>public class MainActivity extends Activity {
private ProgressDialog pDialog;
private static final String TAG = MainActivity.class.getSimpleName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.lay... | 3 | 1,287 |
How to display custom cells that have been defined in interface builder? | <p>I am trying to embed custom designed TableView Cells (in interface builder). For starters I am trying to add a few text fields in its own section. I am able to show the custom designed tableview however I am doing something incorrect as it looks all messed up. Also not super clear on how to add additional sections. ... | 3 | 1,931 |
BottomNavigationView doest not shown currectly | <p>I'm adding a <code>BottomNavigationView</code> to My <code>MainActivity</code>
at first show nothing wrong but after click on other items, <code>BottomNavigationView</code> strangely moving up and down. In other projects, I had never this problem and I don't know why I am getting this:</p>
<p>p.s: In default fragme... | 3 | 7,356 |
unable to Hit that Action in MVC, once we add [Authorize] Key word on top of controller | <p>Soon after we add the <code>[Authorize]</code> key word on top of that Action of that action is not been called.</p>
<p>Here is the MVC code:
</p>
<pre class="lang-cs prettyprint-override"><code>[HttpGet]
[Authorize]
//[ActionName("GetCoolingScheduleData")]
public MillSchedule GetMillScheduleData(int id)
{
cmd... | 3 | 1,292 |
Espresso - Custom find view got uncaught NoMatchingViewException - without IdlingResource | <p>Here, I want a custom find view function: if with a given Matcher can NOT found the view in 10 seconds, return a boolean false, otherwise return the view. Note, I dont want use IdlingResource. My code is as below:</p>
<p><strong>AiFinder.java</strong></p>
<pre><code>package BaseOpration;
import android.support.tes... | 3 | 2,202 |
I am writing a code based on some formulas;but my if statement does not seem to work(line 33) | <pre><code>W = int(input('Enter weight:'))
b = [1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0]
AR = [1, 2, 3, 4, 5]
T = [50.99238, 50.05062, 49.07943, 48.05919, 47.00952, 45.92061, 44.79246, 43.62507, 42.42825, 41.18238, 39.90708, 38.60235, 37.24857, 35.86536, 34.4331, 32.97141, 31.48029, 29.94012, 28.37052, 26.76... | 3 | 1,057 |
Javascript groupby week/month/year | <p>I have a json array with data in it. i'd like to group the data in it by week, month & year.</p>
<p>I tried following the discussion <a href="https://stackoverflow.com/questions/16700678/javascript-object-group-by-day-month-year">Javascript groupby</a></p>
<p>How can I get the sum of values grouped by month &a... | 3 | 3,652 |
Bind Dropdownlist in Partial View | <p>I need to create a View where I can add additional forms for user input. The form has several dropdownlists. I'm trying to add another form when the user clicks "Add New" button, but I am unable to figure out how to do it as well as how to bind the dropdownlists in the partial view.</p>
<p>Below is the code in th... | 3 | 5,351 |
Set a data inside onDataChange method, and use it outside | <p>I'm trying to get name data from Firebase using uid from another collection with an interface, set that data into a variable, and do some task. Then let's say I want to show a Toast if the task is done or not.</p>
<p>This is the method</p>
<pre><code>public void createExcel(final String grade) {
Boolean taskSucc... | 3 | 1,049 |
Why is my accordion not showing the sub tabs when it is clicked on? | <p>I am trying to create a FAQ accordion but unfortunately when one of the tabs open there is just a space, and nothing shows up. Here is my html, CSS, and JavaScript that I am working with. Any help would be greatly appreciated. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-ba... | 3 | 1,193 |
How to convert docker compose yaml file to Kubernetes yaml file for Deployment? | <p>I would like to know how can I write this docker compose yml file of Grimoirelab into a Kubernetes yml file which can be deployed into the remote cluster.</p>
<p>Link to the docker compose file:</p>
<p><a href="https://github.com/chaoss/grimoirelab/blob/master/docker-compose/docker-compose.yml" rel="nofollow norefer... | 3 | 1,263 |
Basic C++ programming question | <p>I am in process of learning c++. I am working on creating a linkedlist data structure. One of the functions that displays the values of nodes in the structure does not work. For some reason the while loop that traverses through nodes doesn't work in the display function, hence I can't see the values in those nodes. ... | 3 | 1,084 |
JTextField getText() is stuck after init() | <p>This used to be homework but now it's personal as the term is over and I'm still working on learning Swing components. This program is my attempt to lift a procedural console TicTacToe implementation into an applet in the simplest (looking) way possible, eschewing the traditional button grid for a single JTextField ... | 3 | 11,900 |
Match multiple patterns in xml file, copy and change the matched lines with awk, sed | <p>I want to match multiple patterns in xml files, copy and modify the matched lines.
The xml format is in a multi-line pattern,</p>
<pre><code><security-role-assignment>
...
</security-role-assignment>
</code></pre>
<p>which are on separate lines (not on the same line).
I want to duplicate the block that c... | 3 | 1,436 |
NSView based NSTableView – strange bouncing rows for Drag and Drop with NSTableViewDraggingDestinationFeedbackStyleGap | <p>I have a view-based instance of <code>NSTableView</code> for which I’ve been changing the <code>draggingDestinationFeedbackStyle</code>, as most <code>NSTableView</code> Drag and Drop questions have been updated with reference to this method of drag animation introduced in macOS 10.9.</p>
<p>All works ok until I us... | 3 | 1,233 |
What is wrong with this <%= stylesheet_tag %>? | <p>This is what I have:</p>
<pre><code> <%= stylesheet_link_tag "application", "skeleton-v1.1", "flexslider-v1.8", "main-r7", "media-queries-r6", "sprites-r7", "theme-default-r6", font_path("http://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic"), :media => "all" %>
</code></pre>
<p>I am trying ... | 3 | 1,196 |
Image with 2 color channels? | <p>I have a dataset with over 12,000 images and while evaluating some of them visually they have an image shape which looks normal as I would expect with 3 color channels RGB</p>
<pre><code>['10371.jpg']
image shape: (375, 500, 3)
array([[[128, 129, 134],
[129, 130, 134],
[130, 131, 135],
...,... | 3 | 1,692 |
How to save the state of dialog box after it has been dismissed | <p>I have Dialog box to enter pin. if user enters the invalid pin it starts the timer.
When i dismiss the dialog box on back button and then again opens the dialog box on item click it resets it states and timer is gone.Its a pin dialog box . when user enters the wrong pin a timer starts under pin layout such that he c... | 3 | 3,172 |
TypeError when running pyTMX in pycharm (pygame) | <p>I am trying to use pyGame and pyTMX in pyCharm; however, I am getting an annoying error message whenever I try to run the program.
The following code was</p>
<pre><code>def get_tile_properties(self, x, y, layer):
""" Return the tile image GID for this location
:param x: x coordinate
:param y: y coordina... | 3 | 1,036 |
callback functions based on modal popup data not working (dash) | <p>I am new to dash and am having trouble with writing a more complex callback function. The steps to my app are:</p>
<ol>
<li>press a button to open a modal popup.</li>
<li>select options from a drop-down on the popup, which changes input options.</li>
<li>choose the desired input options</li>
<li>click a "submit... | 3 | 3,917 |
Parsing string into list of outputs | <p>I'm working with a text file, which consists of many similar reports of the following structure:</p>
<pre><code>['NetNGlyc-1.0 Server Output - DTU Health Tech\n',
' Asn-Xaa-Ser/Thr sequons in the sequence output below are highlighted in blue.\n',
' Asparagines predicted to be N-glycosylated are highli... | 3 | 2,742 |
Why are my linked lists values from another linked list getting deleted when I delete the node from the other linked list? | <p>I have a linked list that represents a deck of cards and when I go to give a card to a player and the computer(one to each at a time) I copy the values from the top card, give its values to the card in the hand but when I go to delete the node from the deck, its deletion messes with the values of the card in the han... | 3 | 3,899 |
How to open different Activities with my listView items? | <p>I have a String-Array with 9 different strings, and created a listView with this Strings; Now I would like to open a different Activity when I click on each Element of my listView. I already tried </p>
<pre><code>row.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
... | 3 | 2,406 |
install on windows 7 troubleshoot compatibility PCA - "This program might not have installed correctly” | <p>Well, I'm using Visual C++ 2010 Express and ResEdit
for my midi sequencer's SETUP app.</p>
<p>Win32 API, no MFC, some custom window and control classes and such.</p>
<p>Now that I got Windows 7, my dang SETUP program is broke.</p>
<p>Windows gives me the ole "Did this app install correctly??" thingy.
Which implie... | 3 | 1,236 |
How to convert hex_dump of packets, which were captured in kernel module, to pcap file? | <p>I am writing a kernel module on Linux (Xubuntu x64). The version of the kernel is 5.4.0-52-generic. My kernel module is capturing traffic from an interface and printing it in hex:</p>
<pre><code>Nov 10 14:04:34 ubuntu kernel: [404009.566887] Packet hex dump:
Nov 10 14:04:34 ubuntu kernel: [404009.566889] 000000 00... | 3 | 2,696 |
how to export jstree desired json formatted from controller laravel | <p>I am using jstree jQuery plugin to display Categories as tree view.</p>
<p>the data array from controller :</p>
<pre><code>array:10 [
0 => array:13 [
"id" => 1
"name" => "Request 1"
"content" => "Request content 1"
"type" => 1
"priority... | 3 | 14,520 |
Deploy lambda function on aws-pulumi | <p>I'm trying to deploy a lambda Function on my AWS account, that zips a file that is uploaded into "lambda-bucket-in" onto a bucket "lambda-bucket-out". The example I'm trying to follow is <a href="https://www.pulumi.com/blog/easy-serverless-apps-and-infrastructure-real-events-real-code/" rel="nore... | 3 | 4,074 |
boost::serialization with immutable abstract base and virtual inheritance | <p>The code below is my current thinking to permit <code>boost::serialization</code> of an immutable abstract base with virtual inheritance. I hope I missed something and there is a simpler solution...?</p>
<p>As it stands, it raises a few questions:</p>
<ol>
<li>Is the comment in <code>IObject::serialize</code> vali... | 3 | 3,478 |
How to get data from mysql database? | <p>I am having problem in getting values from db. Iam new in php</p>
<p>I am using checkboxes to get values from database. Only checked values should be printed.</p>
<pre><code><form method="POST" action="gradoviexport.php" id="searchform">
<div id="GRADOVI BIH">
<h3>GRADOVI BOSNE I HERCEGOVINE<... | 3 | 1,197 |
Date function isn't working as expected | <p>I'm trying to insert the current year into a copyright statement and it's not working - likely because of something really basic. Any help? Thanks. :)</p>
<p>ps If there are any other stylistic issues, I welcome all comments.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
... | 3 | 1,339 |
How to run tests in parallel using C# Specflow, MsTest Appium with selenium grid | <p>I am unable to run tests parallel in two iOS devices (have different udids) I can see both tests are trying to run on one device only instead of running in parallel mode. One test always fails and other passes for some reason but both passes if I run independently.</p>
<p>I ran out my google search options and posti... | 3 | 3,139 |
Correct way to handle and redraw a layered window with a bitmap | <p>I am making a script that displays an image in a fully transparent window, so it is just the image itself on the screen, and you can move it around. Here is the result:</p>
<p><a href="https://i.stack.imgur.com/337Ho.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/337Ho.png" alt="example" /></a></... | 3 | 5,253 |
Python Twitter - Tweepy to post unique content using data from txt or JSON files | <p>I have developed a very basic Twitter bot using Python & Tweepy. It is successfully posting a tweet to twitter and I can modify the text in this line of code: <code>response = client.create_tweet( text='Testing' ) </code>to make different tweets</p>
<p>The full code I am using for this is:</p>
<pre><code>import ... | 3 | 1,166 |
Responsive Outlook mail footer with CSS | <p>To create a <em><strong>responsive</strong></em> html signature, I tried the infamous <code><style scoped></code> tag. As far as I understood there's a conflict with @media queries. Is there a better way to achieve this in a way I can use it in MS Outlook client, preferably both on PC and smartphone?</p>
<p>He... | 3 | 1,076 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.