title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do I preserve logical groupings while sorting in SQL? | <p>I have two tables which are related in a parent-child relationship</p>
<pre><code>Sale
sale_id | customer_name
SaleItem
item_id | sale_id | item_type
</code></pre>
<p>Each Sale record has one or more corresponding SaleItem records. My goal is to create a list of Sales with their corresponding SaleItems shown as c... | 3 | 1,193 |
How to set the height of the body equals to the length of an array in Angular | <p>I have this user list, which can grow dynamically if you add a new user. Now I want my whole body to be the length of the user list.</p>
<p>In my factory I determine the length of the array and now I need to know how to access/translate this to the view in angular. Something like this:</p>
<pre><code><div class... | 3 | 1,227 |
GStreamer rtspsrc stops working once 32 streams have been created | <p>I have a device running embedded linux that can show RTSP streams from a camera. The user can change the stream from a windowed stream to a full screen stream, and vice versa. If the stream is changed 32 times, the stream stops working. I have narrowed down the problem to the rtspsrc itself.</p>
<p>My question is, h... | 3 | 2,090 |
intent in fragment keeps crashing problem with the manifest, android studio | <p>I'm getting the error </p>
<blockquote>
<p>android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.tulio.appkolev/com.example.tulio.appkolev.fragments.registerFragment}; have you declared this activity in your AndroidManifest.xml?</p>
</blockquote>
<p>After looking online a... | 3 | 3,459 |
Instruction accesses in Gem5 for ARM processor | <p>I used Gem5 to obtain instruction accesses for ARM processor. I used -marm option to generate code. </p>
<pre><code>arm-linux-gnueabihf-gcc -static -marm fibcall.c
</code></pre>
<p>I believe that only 32-bit ARM instructions are generated using this option. But the result is shown below:</p>
<pre><code>command li... | 3 | 1,148 |
How do I make three cascading comboBoxes in a DataGridView? | <p>I am a beginner programmer developing a C# WinForms / SQL solution in VS 2015 Professional.</p>
<p>Can anybody please help me with the code below? I am trying to implement cascading comboBoxes inside a <code>DataGridView</code> to do the following:</p>
<p>ComboBox1 lists courses the school has;
ComboBox 2 lists t... | 3 | 1,491 |
how to create view with variables inside? | <p>i have some code here but first i want to explane my question.</p>
<p>i want to create a view but thats not possible in a view because my <code>SELECT</code> statement hase some <code>variables</code> in it i have seen some answers with <code>function</code> but i dont know how the parameters works.</p>
<p>here is... | 3 | 1,129 |
How to install qt6 with Homerew on macOS High Sierra 10.13.6? | <p>Although High Sierra is no longer supported by Homebrew, but I need to install qt@6 formula as a dependency for other formulas. So I tried to install it this way:</p>
<pre><code>$ brew install qt
</code></pre>
<p>An error is occurred after a long time of compilation. I also found these errors in <strong>~/Library/Lo... | 3 | 2,063 |
Images from api trouble rendering in react | <p>I am using this API to do react rendering but I'm having trouble rendering images with it. Other data from the api can be rendered except for images. Can anyone can help me with this?</p>
<p>Here is my shortened code (I removed all unnecessary stuff):</p>
<pre><code><strike>
<div>
{
post!==n... | 3 | 1,355 |
Numpy shape mismatch | <p>Good day,</p>
<p>Sorry for the long detail!!!
I have 258 input files which includes 15 years of data. The purpose of this script is extract a particular column assigned as a variable within a user entered start and end year. The script was originally structured to extract the whole column in that time period, but no... | 3 | 5,480 |
Unexpected behavior when using the same component twice in React | <p>I have two objects <code>incs</code> and <code>exps</code> each has the properties: <code>desc</code>, <code>amount</code> and <code>id</code>. I would like to display the details of each object in a container as a list, and the two containers are side-by-side. I did it like this</p>
<pre><code>const Details = prop... | 3 | 1,075 |
Did Firebase authentication change over night? | <p>I am using Firebase email authentication. It worked pretty well yesterday, but for some reason, it suddenly stopped working this morning, and I have not touched the authentication part in the code at all. I am wondering if there is any changes in Firebase that i am not aware? or I did something may affect it?</p>
<... | 3 | 1,468 |
How to keep memory empty? Android | <p>My app has two 'heavy' fragments. When i move between them everytime allocate memory ~ 40mb. Meanwhile they haven't large bitmaps or something like that. And every time garbage collector free a little part of allocated memory ~10mb . My question what have i do to prevent allocate memory or free it? </p>
<pre><code>... | 3 | 1,388 |
Access controls inside listbox c# (windows Phone 8) | <pre><code> my xaml code..
<phone:PhoneApplicationPage.Resources>
<DataTemplate x:Key="DataTemplate1" >
<Border BorderBrush="LightGray" BorderThickness="1" Height="150" Width="500" >
<Grid Width="500" Height="150" Background="White" >
... | 3 | 1,168 |
OpenGL (LWJGL+Slick-Util) - Text doesn't display properly | <p>I'm trying to develop a game using OpenGL through LWJGL and Slick-Util (still not fully sure how they all relate to each other). I've figured out how to get the TrueTypeFonts to work . The problem is, that as soon as I got the fonts to work, the other aspects of my game (loading bar and map) don't display now at al... | 3 | 4,989 |
How to change image based on who logged in | <p>I need help on how to make image change after a user logged in. 'coz i'm creating a online radio station and i want my listeners to see who's DJ is currently on-air based on that image. that image is stored in a php page(djonair.php), the image inside that page(djonair.php) will change after the user logged in. then... | 3 | 1,390 |
force close error occurs in my java class when I want to display it in XML Layout | <p>I've no idea why there's a force close error occurs.</p>
<p>I would like to display the code in my XML Layout.
However, there's an force close error occurs.
I'm not sure what's the problem with it.</p>
<p>Here is my logcat error.</p>
<pre><code>07-27 15:44:51.030: E/AndroidRuntime(6171): FATAL EXCEPTION: main
07-... | 3 | 10,383 |
Assembly input error | <p>I'm trying to read a number from input and then calculate it's factors(don't know if they are factors, for example 10's factors are 1,2,5,10). I believe that my calculation part is correct because when I calculate factors of value that was preset in the code it works. But when I try to input the value, I get wrong r... | 3 | 1,805 |
Node.js 401 Error on nginx authentication | <p>Since few days I try to make work my angular application with an elasticsearch db behind an nginx authentication.
If I remove the authentication my angular front works well but when I enable authentication I've 401 error. It's like application doesn't even send credentials. I've tested manually the credentials and i... | 3 | 2,813 |
Make a 1 to 1 multi-field SQL join where only some of the values match | <p>I am trying to build a table that will be used as a conversion chart. I aim to make a simple join with this conversion table on multiple fields (8 in my case), and get a result. I will try to simplify the examples as much as I can because the original chart is a 40x10 matrix.</p>
<p>Let's say that I have these two (... | 3 | 1,061 |
Adafactor from transformers hugging face only works with Transfromers - does it not work with Resnets and MAML with higher? | <h2>To reproduce</h2>
<p>I am running the MAML (with higher) meta-learning algorithm with a resnet. I see this gives issues in my script (error message pasted bellow).
Is Adafactor not suppose to work with Resnets or other models?</p>
<p>Steps to reproduce the behavior:</p>
<ol>
<li>run this code: <a href="https://gith... | 3 | 7,006 |
Does not print out the last number for array using for loops | <p>The result gives me this but does not print out the last int (200). I add some random numbers in the main method and the by using the for loops it puts them in order. However, it completely ignores the last (greatest) integer, which is 200. How can I fix this?</p>
<pre><code>0: 13
1: 21
2: 25
3: 44
4: 50
5: 63
6: 88... | 3 | 1,765 |
A form on Chrome work only when I add the value="" attribute in the input | <p>I have an issue and I can't find any solution since 3 hours now,</p>
<p>I have a simple html login form that leads to a php script that checks if the account exists.</p>
<p>Everything works perfectly when on my "Username" and "Password" fields I indicate data in the "value" attribute, b... | 3 | 1,365 |
Show (Kendo) dialog on MVC page with multiple submit buttons | <p>I have a complex view with multiple submit buttons. I implemented Multiple submit behavior through this attribute:</p>
<pre><code>[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class MultipleButtonAttribute : ActionNameSelectorAttribute
{
public string Name { get; set;... | 3 | 1,615 |
How to unlock my phone using my voice? | <p>i want my app to unlock my phone using my voice i already implemented a method that converts speech to text and i made a broadcast reciever to listen for "screen on event" to call my recognize method in main activity but when i say the password nothing happens. </p>
<p><strong>this is my mainactivity class:-</stron... | 3 | 2,131 |
How to I identify the row the user selects in my table? | <p>I am producing a set of users from my <code>DB</code> in an <code>HTML table</code> using a <code>while loop</code>. The idea is that the user will select the 'add user' button and the a <code>query</code> is run to add that row to the relevant project. However I cannot work out how to tell the query which row of da... | 3 | 1,564 |
nativescript-angular: UI won't update after using router navigation | <p>I'm having an issue after I navigate out of the initial view and then back using routes to this component:</p>
<p><em>map.component.ts</em></p>
<pre><code>import {Component, OnInit, ViewChild } from "@angular/core";
import {RadSideDrawerComponent, SideDrawerType} from "nativescript-telerik-ui-pro/sidedrawer/angula... | 3 | 2,804 |
Dockerized DCTM 7.3 and Dockerized DCTM REST 7.3 not able to retrieve global registry or its documents | <p>My setup consists of </p>
<ul>
<li>Documentum Content Server 7.3 (dctm-cs) running in a docker container (from EMC)</li>
<li>Documentum REST Services 7.3 (dctm-rest) running in a docker container (from EMC)</li>
</ul>
<p>I am definitively able to get information from within dctm by running queries against it with ... | 3 | 1,129 |
Security concern over method of removing tags from html | <p>I am using <a href="https://github.com/padolsey/findAndReplaceDOMText" rel="nofollow noreferrer">findAndReplaceDOMText</a>, a library that lets you wrap text that spans multiple tags.</p>
<p>Consider wrapping <code>o b</code> in <code><em></code> tags in the following html:</p>
<pre><code><p>foo <sp... | 3 | 1,411 |
Grab value based on column value | <p>this is my table:</p>
<pre><code> idMission Event Timestamp
1 detectedBubbleOut 2018-05-26T12:53:43.000Z
1 arrived 2018-05-26T13:58:57.000Z
1 detectedInBuilding 2018-05-26T12:42:20.000Z
1 detectedBubbleIn 2018-05-26T12:37:36.000Z
... | 3 | 1,181 |
Browser does not redirects me to Twitter for authorization | <p>My problem is that my view does not redirect me to the <code>Twitter</code> authentication page.</p>
<p>I am doing this tutorial: <a href="https://spring.io/guides/gs/accessing-twitter/" rel="nofollow noreferrer">https://spring.io/guides/gs/accessing-twitter/</a></p>
<p>When I run <code>localhost:8080/connect/twit... | 3 | 1,170 |
OpenCV camera calibration fails on simulated data | <p>If I </p>
<ol>
<li>define an intrinsic camera matrix <code>A</code> and poses <code>[rvec, ...], [tvec, ...]</code>, </li>
<li>use them as parameters in <code>cv2.projectPoints</code> to generate the the images that would be generated by a camera when it views a grid of circles,</li>
<li>Detect the features (<code... | 3 | 5,279 |
how do you get follower ID's of people who are not following you Twitter API | <p>I have a list of tweets with information about the user who tweeted them that I am using for an undergrad research project. To build a social network graph of these tweets I need to grab their friend and follower lists. I have tried using the GET Follower IDs call through the twitter4j platform. My authentication is... | 3 | 1,024 |
Pandas: Create Origin-Destination matrix, keeping destination-of-destination on same row | <p>I am trying to create a Origin-Destination matrix that takes into account destination-of-destination in one row.</p>
<p>The dataset I have is similar to the following (<strong>edited</strong> both given_dataset and expected_result based on @mozway comment):</p>
<div class="s-table-container">
<table class="s-table">... | 3 | 2,070 |
How can I make an event listener fire only once? | <p>I am building a very simple memory matching game with 6 cards. Each card is in a <code>div</code> with the class of <code>.card</code> that contains two more <code>div</code> elements - front face of the card (just a simple green background img) and a back face of the card (a random image i've picked).</p>
<p>Backfa... | 3 | 2,454 |
Error on importing pypgx on jupyter notebook | <p>We are trying to import pypgx on a jupyter notebook. The default version of Java is 8. However we are changing the version to 11 with the following code snippet</p>
<pre><code>import os
os.environ['JAVA_HOME'] = '/data/jdk'
os.environ['PATH'] = '/data/jdk/bin:' + os.environ['PATH']
os.environ['CLASSPATH'] = '/home/o... | 3 | 1,231 |
Memory growth react native | <p>My app includes only one home screen, and it should run for a long period of time(In kiosk mode, for weeks).</p>
<p>After a while, I have noticed that it is crashing due to memory growth(it became something like 500,000K).
I started to investigate this bug, and created a simplified version of this app: one componen... | 3 | 1,043 |
Kendo UI Color picker crashes on close when data-bind attribute added | <p>I'm trying to use Kendo UI Color Picker with Kendo binding and run into problem.</p>
<p>Kendo UI Color picker crashes when you click apply button on popup when data-bind attribute added. </p>
<p>When I click on apply button it throws an error:</p>
<pre><code>Uncaught TypeError: Cannot read property 'attr' of null... | 3 | 1,041 |
Creating a chart in angular2 to show the median value of given data | <p>I'm creating a chart in Angular 2 which shows the median value for given data, and depicts the value for the given name. How can I plot both? I'm trying with plotLines and bands, but I'm still not able to do it. Here is my code.</p>
<p>I'm trying to achieve a result like this.</p>
<p><a href="https://i.stack.imgur... | 3 | 2,190 |
jQuery - Search Mysql for results, then display within table, but also have a click link for each record | <p>Ive spent several hours trying to resolve an issue with very limited experience with jQuery which is not helping me.</p>
<p>I am wanting to search a database for a list of results using a few input fields and then a submit button, when you click submit the values are passed to a .php script which returns the result... | 3 | 1,369 |
Polymorphism with generics on the repository pattern | <p>I have a problem using the Repository pattern in C# especially when I try to implement a Façade pattern too. My concept follows: </p>
<p>When I first started the generic repository, I began with one which has all the CRUD operations in a single file (and their related interfaces in a separate single file). But beca... | 3 | 1,189 |
how to run a UI created with QTdesigner in python? | <p>I am using pyqt5 designer to generate a simple gui and now i have no idea how to run that gui from python program</p>
<p>this is the python code that was generated using the pyqt5 designer :</p>
<pre><code># -*- coding: utf-8 -*-
################################################################################
## Fo... | 3 | 1,090 |
How to skim itertools permutations? | <p>Initial code:</p>
<pre class="lang-py prettyprint-override"><code>from itertools import permutations
ListX = ["A","B","C","(",")","#"]
perm_iterator = list(permutations(ListX))
print(list(perm_iterator))
</code></pre>
<p>Result:</p>
<pre class="lang-py pret... | 3 | 9,380 |
OpenGLES2.0 How to track down "Texture is a uniform color" bug - need ideas. | <p>I have this problem with the display of my textured VBOs on OpenGLES20 (testing on an android motorola Xoom), where textures would appear as if they were taken from a single dot of the texture instead of the whole thing: some will appear solid gray (this texture of a wall that I use) while others will appear solid w... | 3 | 1,671 |
Find Deadlock in Graph | <p>In a multithreaded environment, it's possible that different processes will need to use the same resource. A <em>wait-for</em> graph represents the different processes as nodes in a directed graph, where an edge from node <code>i</code> to node <code>j</code> means that the node <code>j</code> is using a resource th... | 3 | 1,749 |
Java BMI program | <p>The first part of the code is working, the program takes inputs as height and weight as displays an output message. When I press n I can go to the second part and take inputs for height in inches and the weight in pounds. As soon as I take them the program outputs the resulting bmi is: Nan. and the variable bmi migh... | 3 | 1,809 |
Show status before refresh the page | <p>When i select <strong>checkbox</strong> and click on "<strong>Show Status</strong>" button , its displaying <strong>Status</strong> value only after i refresh the page, but i need to show <strong>before refresh</strong> the page.</p>
<p><a href="https://i.stack.imgur.com/OzFa0.png" rel="nofollow noreferrer... | 3 | 2,064 |
Wordpress login works partially | <p>I try to login the user in wordpress, but it works only for users registered in UI, not for the ones added by program.
The Login is done as a response to Ajax login request:</p>
<pre><code>//wp_clear_auth_cookie();
$usr = wp_set_current_user ( $user->ID, $user->user_login);
wp_set_auth_cookie ( $user->ID ... | 3 | 1,357 |
Creating hashmap from json data | <p>I am working on a very simple application for a website, just a basic desktop application.</p>
<p>So I've figured out how to grab all of the JSON Data I need, and if possible, I am trying to avoid the use of external libraries to parse the JSON. </p>
<p>Here is what I am doing right now:</p>
<pre><code>package me... | 3 | 1,426 |
Dockerfile build image unable to find yum downloads | <p>In my dockerfile I am downloading JDK17, and copying to another directory to build my image. It downloads fine, and when I do an ls, I do see the files. But when I later do an ADD from this location to another location in my container, it does not find the file.</p>
<p>Here is my dockerfile:</p>
<pre><code>FROM orac... | 3 | 1,285 |
popup refresh main div main page | <p>I begin in php, ajax, javascript. I try to do a formulaire that when i click on a button, it open a popup windows. This popup windows content a new formulaire and when i submit this new formulaire i want that a div in the parent web page get the result of the popup submitting.
I had the first script : test.php</p>
<... | 3 | 1,388 |
Re run function if error node.js | <p>I have a function that reads in multiple JSON files in a loop. Problem is, they are being updated every fraction of a second via a websocket. so every so often this error (im guessing because its trying to read the file whilst its being updated) appears: </p>
<pre><code>QSPBTC rsi 48.09
BTSBTC rsi 40.36
undefined... | 3 | 1,033 |
predict sentiment of the text | <p>I have trained subset of Yelp data using keras 1.0.0 I got 399850by50reviews_words_index.pkl, review_sents_1859888.pkl how can I use these files for predicting my own text and Here my code is shown below
train cnn mode for sentiment classification on yelp data set
author: hao peng</p>
<pre><code>import pickle
impor... | 3 | 1,765 |
php socket occasionally unresponsive and no errors thrown | <p>I've written a database application using <code>MySQL</code> and <code>PHP</code> on the server side, and <code>Flex</code> on the client side. I use a php socket to have it automatically update all clients whenever changes are made to the database.</p>
<p>The whole system works swimmingly, but every now and then t... | 3 | 1,909 |
Some items not filtering from ListView using getFilter | <p>I have an activity with a ListView which is to be filtered by a Spinner containing country names. On selecting some country names, the ListView is filtered but on some names it doesn't show anything at all.</p>
<p>Code:</p>
<pre><code>public class Destination extends Activity {
ArrayAdapter<String> aa1,aa2;... | 3 | 5,803 |
Android : ListView cell seems to draw incorrectly | <p>I am sure that I am doing something stupid but I'm really confused over this….</p>
<p>Most of this code is taken from some great answers on StackOverflow….</p>
<p>In the code below - I get the trouble string shown on top of the alarm string but the
cell definition puts the alarm string on top.</p>
<p>My cell is ... | 3 | 8,587 |
Hi, I am Using Expando Object to List two different model data on a View in Asp.net core Mvc, But I also want link a model named comments to sameView | <p><strong>Error:</strong>
<em><strong>InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Dynamic.ExpandoObject', but this ViewDataDictionary instance requires a model item of type 'MyProject.Models.Comments'.</strong></em></p>
<p>This is My ViewResult:</p>
<pre><code>
p... | 3 | 1,564 |
How to fix django admin "add" button | <p>I'm new to web development, and i'm building a blog web app in Django.
I'm having problems adding new posts through django-admin. Clicking the "add" button gives me an <code>"Error during template rendering - 'str' object has no attribute 'utcoffset'"</code> error message.</p>
<p>models.py</p>
<pre><code>
from dja... | 3 | 1,254 |
How to connect pictureboxes with connecting line | <p>first sorry for my English. I am programming application in windows forms. It is something like Packet Tracer. I have four buttons. When I click on them, they dynamicaly create pictureboxes with picture of Router or Switch,.... Each time I click on the button, new picture box(Switch or Router,...), is created. I can... | 3 | 2,452 |
total and subtotal on the same row | <p>I have a table where I store some items. These items can be of four types (1,2,3,4) and each item can be open (status=1 or 2) or closed (status=3).</p>
<p>I want to build a dataset where I have for each type the count of how many items are in status 3 and the total amount of items for that type. I have no problems t... | 3 | 1,064 |
Express.json() Not Working in version 4.17.1 | <p>I'm trying to learn the MEAN stack I just want to perform the CURD operation. But when I send data in the request body from angular to server I received an empty request body. I don't have any idea where I'm going wrong.</p>
<p>Here is my code</p>
<p><strong>Route</strong></p>
<pre><code>router.post('/create-user', ... | 3 | 1,481 |
Xamarin Android CarouselView with IndicatorView position below the image | <p>How can i put the indicatorview below and center of the image?</p>
<p><a href="https://imgur.com/Wa3Ur48" rel="nofollow noreferrer">https://imgur.com/Wa3Ur48</a></p>
<p>I tried position and other stuff but i can't seem to move the indicatorview below the image.</p>
<pre><code><StackLayout Grid.Row="0" O... | 3 | 1,707 |
How do I prevent data from reloading when I scroll up? | <p>I have a problem with data reloading and this is my question:
I made an animation for each <code><article></code> shows a preloader. For example, you can see below that I set a condition to show me the next <code><article></code> if user scrolled from <code>620px to 640px</code>, and the main problem is ... | 3 | 1,265 |
In R, how can I use group by for multiple column? | <p>I have one raw dataset. And I am trying to make my desired output.</p>
<p>The raw dataset is like below:</p>
<pre><code> gender type neg_sentiment neu_sentiment pos_sentiment
1 M rep 7871 3454 7290
2 F rep 841 469 548
3 M rep ... | 3 | 1,052 |
WebvView zoom not working in android.support.v4.widget.NestedScrollView Android | <p>I have created Browser in Android, in that I am using <strong>AppBarLayout</strong> and <strong>NestedScrollView</strong> for scroll to hide/show header. But there are one issue occurs pinch to zoom is disabled after adding webview in NestedScrollView.</p>
<p>My xml code is:</p>
<pre><code><?xml version="1.0" e... | 3 | 2,285 |
String replacement in loops and recursions with unexpected side effects | <p>I'm trying to create a program where I go through files (in a folder and all its sub folders) and dynamically replace parts of a line with other parts. To do this I made a program but found out that it behaved unexpectedly.</p>
<p>Instead of just the string being replaced the WHOLE line got replaced. Then I did som... | 3 | 1,112 |
ValueError: Shape must be rank 1 but is rank 2 when doing tf.einsum('i,j->ij',u ,j) | <p>I have coded this model with tf.keras ,</p>
<pre class="lang-py prettyprint-override"><code> import tensorflow as tf
from tensorflow import einsum
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.layers import Flatten , Dot
from tensorflow.keras.layers imp... | 3 | 1,200 |
How to wrap long text correctly? | <p>In my application users can post comments on posts. Everything works fine however the lines do not wrap when creating a long text thus I get this</p>
<p><a href="https://i.stack.imgur.com/KkG7u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KkG7u.png" alt="enter image description here"></a></p>
... | 3 | 1,270 |
html php form store results in a text file | <p>I am using following html, php code. Everything works fine. I can store the html form submitted values to a text file. But when I load the html page I see following when doing tail -f filename. </p>
<pre><code>mytext.txt: file truncated
</code></pre>
<p>I looks like when the page loads or is refreshed text file is... | 3 | 1,365 |
Stan_glmer object assignment error | <p>After waiting a week for three MC chains to run, the object was not
saved, giving the error "Error: is.atomic(x) is not TRUE". I have run
this code or variants thereof many times, so it is probably not my
syntax, but possibly something about the object size or an internal
stan_glmer error? Log is below and thank y... | 3 | 1,392 |
Compiler error - Can not find symbol | <p>this is my code</p>
<pre><code>public class RegMember {
private int regno;
private Cmember cmember;
private Vipmember vipmember;
private Clubs clubs;
private static int nextNo =1000;
public RegMember(Cmember cmember,Vipmember vipmember,Clubs clubs) {
this.vipmember=vipmember;
this.cm... | 3 | 1,566 |
Time expended for HashMap get() is higher first time | <p>I have been doing some performance checks with HashMap on Java. The results are surprising i should say. I would show the code first. </p>
<pre><code> public class HashMapCheck {
int m_size =10;
String Keys[], Values[] ;
void initKeyValues(int size){
m_size=size;
Keys = new String[m_size... | 3 | 1,311 |
Unable to export bitmape onto csv | <p>I want to export an image to csv, but my application crashes whenever trying to do this. In my application I have a question "which brands do you recognize ?", and wanted to let the user answer by selecting a checkbox along with the corresponding ImageView. The objective is to save both question(a string) and answer... | 3 | 2,093 |
Unable to pass data through Express Middleware locals | <p>I am attempting to pass data from a middleware controller method to the view, however when attempting to access res.locals in my get method, it returns empty. When logging the array from the controller method, it is filled, but the array seems to clear when attempting to access it in the get request.</p>
<p>the snip... | 3 | 1,371 |
Can't find 'cacerts' folder on jenkins | <p>I host a GitLab and Jenkins server using Docker on my local machine. I've installed the <a href="https://plugins.jenkins.io/gitlab-plugin/" rel="nofollow noreferrer">GitLab plugin</a> on my jenkins server. Now I want to add the GitLab server to jenkins. GitLab runs on HTTPS using a self-signed certificate. If I try ... | 3 | 5,440 |
Flutter: How to call a standalone widget from a different dart file when Onpressed | <p>I have a buttom sheet which appers when a button is click, and it was working fine when everything was on a single dart file, but because i have to use some of the widgets on different screens i decided to split the widgets into different dart files, now i have done that but when the buttons are clicked nothing happ... | 3 | 3,119 |
ERROR in ./src/$$_gendir/app/app.module.ngfactory.ts: Cannot read property 'flags' of undefined | <p>I'm working on a project based on the <a href="https://github.com/maximegris/angular-electron/tree/angular4" rel="nofollow noreferrer">Angular Electron Repo</a>, using the Angular 4 versions. When I try to run <code>npm run electron:mac</code>, which in turn runs <code>webpack --display-error-details</code>, the web... | 3 | 3,265 |
Ajax submitting form more than once | <pre><code> function form5() {
var finance = [];
var paymentmode = "";
var errors = [];
if (!$("input[id='payment[]']:checked").length > 0) {
errors = "Please select at least one payment mode.";
}
if ($("input[id='payment[]']:checked").length > 0) {
$("input[id='payment[]']:... | 3 | 3,811 |
Getting Elements positioned correctly | <p>I have beat my head on this for over an hour and I need your help, I am creating a web form and I am having the most difficult time getting these shadow elements pushed behind the form and not the container. I have tried giving the .form class div a z-index property with no success. It just keeps it in front of the ... | 3 | 2,156 |
Maven. Execute one plugin while another plugin is executing | <p>I have an issue.
I want execute tests ny one plugin(<code>surefire-plugin</code>) and while I execute <code>surefire-plugin</code> I need to create reports by <code>serenity-plugin</code>
So my pom does not perform this way I want and looks like:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<proje... | 3 | 3,772 |
R Shiny rendering plots with filtered select input | <p>I am trying to render conditional plots for a shiny app that would allow the use to view results by either the total sample or the selections of one factored variable. Here is a sample of the data:</p>
<pre><code>> head(data_share)
# A tibble: 6 × 48
student_id cohort group term `Pre-Survey Que… `Pre... | 3 | 10,483 |
json schema validation does not work for dependencies? | <p>As far as I understand, using:</p>
<pre><code> dependencies:
cake:
- eggs
- flour
</code></pre>
<p>in a JSON schema validation (I actually parse the schema in YAML, but it should not really matter) should forbid the presence of a cake without an entry for eggs and flour. So this should be re... | 3 | 1,842 |
Running local development kafka in kubernetes with Kind and persisting volumes | <p>I am running a Dev Linux machine and setting up a local Kafka for development on Kubernetes(moving from docker-compose for learning and practicing pourposes) with <a href="https://kind.sigs.k8s.io/" rel="nofollow noreferrer">Kind</a> and everything works fine but I am now trying to map volumes from Kafka and Zookeep... | 3 | 1,539 |
Timing problem between OnInit and async-pipe | <p>I have a problem with the <code>async</code>-pipe in combination with an <code>Observable</code> which gets it's first value in <code>OnInit</code>. Must be a timing issue about the point in time when <code>OnInit</code> happens and the one when the template gets rendered and thus the <code>Observable</code> get sub... | 3 | 1,164 |
Is there any method to reset the queue used in dequeueReusableAnnotationViewWithIdentifier? | <p>I add custom annotation in a mapview. Based on the internal model of the app the annotations can change color and title (although position may not change). I am using <code>dequeueReusableAnnotationViewWithIdentifier</code>in the method </p>
<pre><code>- (MKAnnotationView *)mapView:(MKMapView *) viewForAnnotation:(... | 3 | 2,154 |
How to build a php if-statement based on the status of a form (submited/unsubmited)? | <p>Right now, when I submit a form, I get this in my URL:</p>
<blockquote>
<p><a href="http://www.taiwantalk.org/users/admin/edit/?updated=true" rel="nofollow">http://www.taiwantalk.org/users/admin/edit/?updated=true</a></p>
</blockquote>
<p>It's a form to updates an user's profile (I'm using Wordpress
but I guess ... | 3 | 4,471 |
Set dynamically created TextView on frame layout | <p>I want to pass some data from one activity to another and set it in dynamically created <code>TextView</code> over frame layout of that activity..I'm using intent for that but at second activity the data is not getting extracted..Can any one tell me the simple way for this..
Following is my code..</p>
<p>Hidden.jav... | 3 | 1,660 |
Kivy Toggle buttons erratic behavior | <p>Trying to translate a checklist (actually represented in xml) from tkinter to kivy. I gave up doing it with CheckBox and switched to ToggleButtons. This worked -- after a fashion. Unfortunately the toggles come unchecked or checked seemingly at random. I'm sure that I've made a basic error, but I can't see it.</p>
<... | 3 | 1,273 |
JSON + jQuery - Filtering Issues | <p>I hate to bother you all, but I cannot get my filters functioning. I've posted the code I'm working on below without any of my attempts in there (the dropdown menu and checkboxes have no functions assigned to them) to make things slightly easier to see.</p>
<p>I want the user to be able to click the checkboxes and ... | 3 | 4,706 |
How to use the ObdRawCommand from pires OBD-II Java API to send custom commands | <p>Does anyone know how I can send custom commands using the <a href="https://github.com/pires/obd-java-api/blob/master/src/main/java/com/github/pires/obd/commands/protocol/ObdRawCommand.java" rel="nofollow">ObdRawCommand</a> in pires <code>Java</code> api? I have little to no experience with this api and I have contac... | 3 | 1,116 |
Rails saving half of a post entry | <p>Afternoon all, </p>
<p>I have a post model, which has a song name, song string fields and a user_id field. A user can create a new song with up to 10,000 characters. Now when saving a short song it displays it all just fine in its entirety, however when a user enters a long song say over 400 chars, it seems to cut ... | 3 | 1,436 |
Problems with inheriting the correct property with the child class in python | <p>I am needing to have the child class inherit from the parent class. I continue to either get "TypeError: <strong>init</strong>() missing 1 required positional argument: 'species'" or the name is often getting assigned to the name and name continues to return back as none.</p>
<pre><code>import unittest
imp... | 3 | 1,410 |
PHP: Get each POST data from a text file and insert it to database | <p>I have a hard time on how to get the POST data from the text file. I have this line of text from my text file:</p>
<blockquote>
<p>Wednesday October 11, 2017, 04:53 AM,reader_name=%22Impinj%20RFID%20Reader%22&mac_address=%2200%3a16%3a25%3a10%3a7E%3a85%22&line_ending=%0a&field_delim=%2c&field_names... | 3 | 1,027 |
How test an @RequestScope component with WireMockServer? Gets error "java.lang.IllegalStateException: No thread-bound request found..." | <p>I have an <code>@RequestScope</code> component and I'm trying to test it with wire mock server, but it throws the exception:</p>
<blockquote>
<p>java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside... | 3 | 1,046 |
java.lang.VerifyError on XPAthConstants.NODESET in WebSphere but not in Jetty | <p>My code works fine in <code>Jetty</code>, but as soon as I deploy in <code>WebSphere</code>, I get <code>a java.lang.VerifyError</code> exception with no extra information at all (not even a message).</p>
<p>The code:</p>
<pre><code>Class c = Class.forName("javax.xml.xpath.XPathConstants"); // This works
System.ou... | 3 | 1,264 |
Adding items to the Adapter breaks onItemClickListener events | <p>After re-organizing a custom ListView and Adapter so that it took advantage of a ViewHolder class, the code initially seemed to work. However, when one scrolls down to the bottom and it adds more items to the list, list elements suddenly lose the ability to be clicked. This was not the case prior to using ViewHolder... | 3 | 1,297 |
@WebMvcTest with @Import does not work. Test context always asks for @Repository beans | <p>Using Spring Boot <code>2.7.3</code> I can not create a simple integration test for my API using <code>@WebMvcTest</code>.</p>
<p>Here is my setup:</p>
<pre><code>// GameServerApplicationTests.kt
@SpringBootTest
class GameServerApplicationTests {
@Test
fun contextLoads() { }
}
</code></pre>
<pre><code>// Cra... | 3 | 1,252 |
Converting from C# to VB.NET | <p><a href="http://wiki.team-mediaportal.com/MediaPortal1_Development/PluginDevelopersGuide#Appendix_A:_complete_source_code_of_the_plugin" rel="nofollow noreferrer">http://wiki.team-mediaportal.com/MediaPortal1_Development/PluginDevelopersGuide#Appendix_A:_complete_source_code_of_the_plugin</a></p>
<p>Trying to trans... | 3 | 1,889 |
Can't draw a polygon on changing location | <p>I'm making a google map android app on java. Some sort of "scratch map".
I have a code to draw a polygon between arraylist points and it should also add LatLng points when location changes. It supposed to take a LatLng from onLocationChanged method but it is not working.
Unfortunatelly code is not working.... | 3 | 4,517 |
I am getting What went wrong: Execution failed for task ':app:generateDebugBuildConfig'. >\AndroidManifest.xml | <p>I am getting following <code>Execution failed for task ':app:processDebugManifest'</code>.</p>
<pre><code>Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [me.riddhimanadib.bottom-nav-bar:bottom-nav-bar:1.0.0] C:\Users\admin\.gradle\caches\transforms-1\files-1... | 3 | 1,233 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.