title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
When I change screen orientation using sensor ImageView becomes blank in android? | <p>Here i am using following code</p>
<p>Here the problem is to using following code i am picked image from gallery and set in ImageView but when i rotate screen the ImageView become blank. So give me the solution for how to save state and displaying the image. </p>
<pre><code> FloatingActionButton fab = (FloatingAc... | 3 | 1,041 |
Angular JS create multiple Dropdowns dynamically and Need validation | <p>I want to do validation for the dynamically create dropdown fields in angular js.
Here I pasred my JSON data and dynamically create dropdown fields and able to get even data but I want validation on default option "select a type".
.html file</p>
<pre><code> <div ng-repeat="CategoryList1 in Data">
{{Categor... | 3 | 11,651 |
.apk file installed and worked on 2.2 android device well but .apk not installing in android 4.0.4 iball tab | <p><strong>MY MANIFEST</strong></p>
<p>App run well in android 2.2 device well but getting error when try to installing in android </p>
<p>4.0.4 device,i tested by changing the properties of the app also.</p>
<p><strong>BUILD TARGET:</strong></p>
<p>
<p>package="com.example.androidactionbar"</p>
<p>android:versio... | 3 | 7,025 |
Translate HTML form request to php array | <p>I have a html form with 3 selector:</p>
<pre><code>a. Room -> 1, 2, 3, 4, 5, 6
b. Adults -> 1, 2, 3, 4, 5, 6
c. Childs -> 0, 1, 2, 3, 4, 5
</code></pre>
<p>THe php arrays that i need to get looks like:
Example 1 room with 2 adults</p>
<pre><code>$rooms[] = array(array("paxType" => "Adult"), array("pax... | 3 | 1,135 |
Django cumulative value displayed in template | <p>I’m new to Django and Python and have been plugging through Python Crash Course. I have finished that and now have been making my own Django project, adding some extra bits in.</p>
<p>Currently, I have a table of entries from my model which I am displaying with a template, each entry in the table has a time and some... | 3 | 4,485 |
Using Factory with DryIoc and getting object by string | <p>I am just testing invertion control using DryIoc library. Please check above to get the picture.</p>
<p>I have that factory class:</p>
<pre><code> 'FactoryConnections using IoC Dry
Public Class FactoryConnections
Private Shared ReadOnly Container As Container
Shared Sub New()
Cont... | 3 | 1,075 |
Cesar decryption. How to deal with non-alphanumerical chars | JS | <p>Build a function which takes an encrypted string as argument. it's a Cesar encryption. Like: encrypted character + 5 (or whatever number).</p>
<p><strong>Problem: The encrypted string contains non-alphanumeric chars like " " or "!".</strong></p>
<p>I build a very verbose function which is attached below for comple... | 3 | 1,024 |
how to perform addition using a textbox | <p>I have a Text box. On button click event the value of Text box should be displayed in a label as result.
On clicking the button again and giving some input in the Text box the input should get added to the result.
I mean repeating the button clicks and providing input should get added o the result.
How to perform th... | 3 | 2,361 |
highrise api not working with spring | <p>I am trying to use highrise api with my java spring application.</p>
<p>I copied highrise .jar from <a href="https://github.com/dnobel/highrise-java-api" rel="nofollow">https://github.com/dnobel/highrise-java-api</a>. But I am getting exception when I run my appliaction with this and it stops my tomcat server</p>
... | 3 | 1,706 |
React setState not merging all changes | <h2>EDIT - I can't vote for my own answer at the moment but this turned out to be a reference/immutability issue - see <a href="https://stackoverflow.com/a/60189228/11602055">https://stackoverflow.com/a/60189228/11602055</a></h2>
<p>this one has me completely stumped!</p>
<p>I'm getting some data from my server and a... | 3 | 3,707 |
Dissolve/combine an Array based on attributes | <p>I have an array that i made by combining two other arrays. The new array has all the data from the original arrays joined based on an attribute (id). I would like to make a new array that combines all the attribute (id)values into one string without duplicating the data. The data has many different (Attribute and At... | 3 | 2,420 |
Python - Newspaper Library - Why is it missing sizable portions of articles? | <p>I'm using the newspaper library, V. 2.7 found <a href="http://newspaper.readthedocs.io/en/latest/" rel="nofollow">here</a>. </p>
<p>When I download, parse, and print the text, it gives me a much smaller portion of the article than exists in reality. Why is this? Is there any way to fix this? </p>
<p>Here is my cod... | 3 | 2,010 |
Using Future with ExecutorService | <p>I need to execute two tasks in parallel and wait for them to complete. Also I need the result from the second task, for that I am using <code>Future</code>. </p>
<p>My question is that DO I need <code>executor.awaitTermination</code> to join the tasks or <code>Future.get()</code> will take care of it. Also is there... | 3 | 1,133 |
PHP for loop stops after the first iteration | <p>For a project I am trying to do something in PHP. It requires a <code>for</code> loop and houses one as well. The <code>for</code> loop inside the initial loop functions as expected. It loops through the variables and stops once <code>$i</code> is equal to <code>count($tasks)</code></p>
<p>However, when I copy past... | 3 | 1,935 |
error 400 bad request with XEP-0055? | <p>I got possible fields from my server:</p>
<pre><code><iq xmlns="jabber:client" from="vjud.company.com" to="testuser@company.com/iPhone" id="search1" type="result"><query xmlns="jabber:iq:search">
<instructions>You need an x:data capable client to search</instructions>
<x xmlns="jabber:x:... | 3 | 2,017 |
Getting data from a input textfield then use it in MySQL statement on the same page | <p>sorry for the bulk of code :)</p>
<p>I need to input a client name in the input textfield name clientname then i need to output the client information from my database when i click a button name loadcliinfo. But the problem is <strong> i don't know how will i get the data inputted in clientname? </strong> so I used... | 3 | 1,916 |
NoneType' object has no attribute 'shape | <p>I am trying to do my detection but dont know why this error is comming up dont know whats the issue with this when i start the detection the cam stops and it gives the shape error of nonetype.
It was running before but dont know what happen and its stop working and giving me this error.Can anyone can help me.</p>
<p... | 3 | 2,235 |
I want to add new option to table row on hover | <p>I want to add a new option to the table cell on hover in ReactJS:</p>
<p>Here is the screenshot:</p>
<p><a href="https://i.stack.imgur.com/n44cB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n44cB.png" alt="enter image description here" /></a></p>
<p>Here what I have done so far:</p>
<p><a href=... | 3 | 1,401 |
Cannot operate on year value of regular expression | <p>This is my first question here so please forgive and educate on any formatting errors. I am new to Python and going through automate the boring stuff. Decided to expand the date detection project by using the clipboard and formatting some things also. The problem I have is in any operation taken on the year part of ... | 3 | 1,638 |
Printing an array of structs in C | <p>I'm trying to print an array of structs that contain two strings. However my print function does not print more than two indices of the array. I am not sure why because it seems to me that the logic is correct.</p>
<p>This is the main function</p>
<pre><code> const int MAX_LENGTH = 1024;
typedef struct... | 3 | 1,146 |
Intermittent Stale Element Reference Exception | <p>I am writing a python selenium script to scrape data from a website. The script reads the employee identification number, name and date of birth from a CSV file and copies it to a Dictionary & then enters data from each line into a form and then clicks a submit button.
The next page that appears asks for the yea... | 3 | 1,502 |
Is there a way to only add verified email addresses to Firebase authentication console (React JS)? | <p>I'm trying to create a Firebase authentication system in my React web app. I know how to register an account and I know how to send a verification email out. Upon registration it sends the verification email which is fine, but the account gets added to the Firebase console database before the user has even verified ... | 3 | 1,600 |
inline expansion compiles into a function call [c++] | <h2>Introduction:</h2>
<p>I have been creating a simple wrapper classes. I randomly found out that <em>(or it appears to be)</em> an inline function still compiled into a function call. I created an example class to test things out and this is what I found:</p>
<p><strong>Consider the following class:</strong> </p>
... | 3 | 1,727 |
vue-tables-2 — $emit from custom filter not making it to callback? | <p>I'm struggling to get a custom filter in vue-tables-2 to emit an event from a nested, single-page component in Vue. The problem may be that I'm not capturing / handling it correctly upstream.</p>
<p>I have a custom filter <code><filter-brand /></code> inside a custom template for <code>dataTable</code> which e... | 3 | 1,244 |
PFQueryTablViewController queryForTable method with network reachability | <p>I am trying to populate a PFQueryTableViewController with Question objects from my Parse backend. How do I implement blocks within this method? </p>
<pre><code>- (PFQuery *)queryForTable // I'm having issues with using the method "findObjectInBackgroundWithBlock" in this method.
{
PFQuery *query = [PFQuery q... | 3 | 1,117 |
jquery slider with cookie | <p>I'm trying to add a cookie to a jquery slider which works fine, until i refresh the page and go backwards in the slider (when the value in the cookie is added (valuevalue) rather than added (value+value).</p>
<p>The error occurs on slideMargin += width (which works if the cookie's not involved) , if i change this t... | 3 | 1,098 |
HtmlUnit infinite loop when redirect link after the form submit is same as the one containing form | <p>I am trying to login to a web page <a href="https://online.firstdata.de/esp/concardis/" rel="nofollow noreferrer">https://online.firstdata.de/esp/concardis/</a> using HTMLunit library in Java. The thing is that this page contains a form inside a couple of iframes. The source of the iframe containing the form is <a h... | 3 | 1,025 |
If clauses in for loop acts weird | <p>I have a function, which collects inputted answer and checked if collected answer is the same as it is the solution. Questions are asked randomly. Questions and solutions are in separate .txt file.</p>
<p>I have a file with some words and the program always fulfil its condition if the last word from the list is cor... | 3 | 1,202 |
hashchange event possible bug | <p>I think I've found a really unusual bug in Javascript but I'm not sure.</p>
<p>So I have three child divs absolutely positioned inside a parent div (that is position relative).</p>
<p>The three child divs are 1200px wide and are <strong>side by side</strong> inside the parent.</p>
<p>So the first div is left:0px the... | 3 | 1,320 |
How to construct links to static images? | <p>I realized that when I send mails(letters) on localhost site via local postfix server, they were sent successfully, but each time I need to include the letter link to my logo stored in: </p>
<blockquote>
<p>public/castle.jpg</p>
</blockquote>
<p>app/mailers/<strong>review_mailer</strong>.rb:</p>
<pre><code>clas... | 3 | 1,039 |
Audio playback using ffmpeg and audiotrack android | <p>I am trying to play mp3 audio in android using ffmpeg and audiotrack. But i'm getting only garbled audio output. Can anyone suggest where could be the problem ?. Here entire player runs in JNI code.
All other ffmpeg and audio track initializations are also done before starting this thread.</p>
<pre><code>void *deco... | 3 | 3,732 |
php artisan error after repo clone SQLSTATE[42S02]: Base table or view not found: | <p>I made a Laravel project with Jetstream and uploaded it to Github. After my colleague and I tried to execute <code>composer install</code>, we received the following error:</p>
<pre><code>> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Database\Qu... | 3 | 1,052 |
Cleaning a SQL schema before using SQL Developer Database copy tool | <p>I have a database for an application and several environment (development, test and production). I would like to use the option <strong>Database copy</strong> from <strong>SQL Developer</strong> in order to retrieve data from the production and copy them in development. Thus data on both environments will be the sam... | 3 | 1,340 |
AsyncTask #2 java.lang.RuntimeException | <pre><code>public static Bitmap getBitmapFromURL(String src) {
try {
URL url = new URL(src);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getI... | 3 | 1,611 |
Python - Help me find a better way to extract and join all hashtags into a new dict value for each tweet | <p>I am attempting to parse some Twitter data that is from the Twitter Streaming API and is stored in a nested JSON format. I would like to create a new dict key:value pair called <code>'HASHTAGS'</code> that holds all of the hashtags in an array. I do not want to use a regex to extract the values from the tweet text... | 3 | 9,079 |
Filter a dataframe column based on values in a second column being within a tolerance value of any rows in a second dataframe | <p>I am dealing with experimental measurements of time-correlated gamma-ray emissions with a pair of detectors. I have a long-form dataframe which lists every gamma-ray detected and displays its energy, the timestamp of the event, and the detector channel. Here is the sample structure of this dataframe:</p>
<pre><code... | 3 | 1,073 |
Using if statements with strings in c++ | <p>I am trying to perform binary addition using strings. When using if statement, I am always getting the output "did not go in ifs". Please help me and tell me if I am doing any bad practice or any error. Beginner in c++.</p>
<pre><code>while(k >= 0)
{
if (Bin_input1[k] == 0 && Bin_input2[k] == 0)
... | 3 | 1,108 |
In angularjs dynamic button creation is correct but validation is not correct | <p>in my code buttons are created correctly but after typing the first row,click Add fields.the close button is disabled in first row.but i want only disable in current typing row.other close buttons are enable.</p>
<p>HTML</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" typ... | 3 | 2,207 |
Can't Add/Accept and Decline/Cancel Friend requests on Django | <p>Able to Send Friend requests successfully but responding to the requests are an issue. When you press Accept to Add, the button is removed but the Friend isn't added or when you press Cancel to Decline, nothing happens. </p>
<p>Tried adding a forms</p>
<pre><code>class Add_Friend(forms.ModelForm):
model = User... | 3 | 2,151 |
The tmx map is only rendering two blocks into the screen and all the rest is black | <p><a href="https://i.stack.imgur.com/EI5rX.png" rel="nofollow noreferrer">The print from my game</a></p>
<p>I'm learning to develope a game like supermario through a tutorial on youtube (<a href="https://www.youtube.com/watch?v=P8jgD-V5jG8&t=43s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=P8jgD-V5j... | 3 | 1,797 |
expected primary-expression before ' arrayName ' | <p>I dont undersatnd why this expected primary-exception errors are there!!! ... :</p>
<pre><code>Running /home/ubuntu/workspace/sample.cpp
/home/ubuntu/workspace/sample.cpp: In function ‘int main()’:
/home/ubuntu/workspace/sample.cpp:50:22: error: expected primary-expression before ‘arrayHelpfull’
std::stri... | 3 | 2,316 |
INVALID_CLIENT: Invalid redirect URI error when running GitHub pages application. Uses Spotify API | <p>I've deployed a React application to GitHub pages that uses the Spotify API to get the currently playing track on Spotify and display it in the web page. This runs great locally and used a local server running on port 8888 to send the api requests and redirect to the app running on localhost:3000. The issue is that ... | 3 | 4,158 |
Web browser navigation crash in wp8 | <p>I am developing windows phone app .In this app i need to integrate with foursquare,So I loaded the url of foursqare in web browser.Web browser loaded the four square login page upto this it is working fine when i enter the login details and press enter,Then i will hide web browser and show the data in a list which c... | 3 | 1,412 |
Handling processes in C | <p>I have a problem when trying to handle a SIGUSR1 signal sent from a father process to all of his child's process. The handler on the child's does nothing. I checked for the result of the kill command and it returns 0 meaning that the message sent was ok . Can anyone help with this? Below is the code of the child pro... | 3 | 1,248 |
angular-ui-carousel just showing next and previous buttons. No slider or images | <p>I am using angular-ui-carousel as mentioned in <a href="https://www.npmjs.com/package/angular-ui-carousel" rel="nofollow noreferrer">https://www.npmjs.com/package/angular-ui-carousel</a>. However when I code it up it just shows the previous and next buttons. Can anyone please suggest what I have done wrong. I am als... | 3 | 1,950 |
AngularJS Modal Service Stops Working | <p>I've created a <code>modal</code> service within my Angular app that I can inject into controllers or directives. I'm running into a problem where after opening/closing a modal multiple times, everything within the modal stops workings. The modal works by grabbing content from a hidden div on the page and popping it... | 3 | 1,696 |
Global variables between C and C++ | <p>I'm developing a mixed C/C++ program for an ARM STM32F4, but I have problems in accessing global variables defined in the C part.
Here is a simple test code to reproduce the problem.</p>
<p>test.h:</p>
<pre><code>#ifndef TEST_H_
#define TEST_H_
#ifdef __cplusplus
extern "C" {
#endif
extern const char* strings[];... | 3 | 4,017 |
Get the average of the values of one column for the values in another | <p>I was not so sure how to ask this question. i am trying to answer what is the average tone when an initiative is mentioned and additionally when a topic, and a goal( or achievement) are mentioned. My dataframe (df) has many mentions of 70 initiatives (rows). meaning my df has 500+ rows of data, but only 70 Initiati... | 3 | 2,212 |
Virtual keyboard in TASM | <p>I know it's quite a long-shot but I'm stuck in the middle of a school assembly project and as I'm pretty new to programming, I'm having a hard time tracking down the problem(s) in my code.</p>
<p>I'm trying to make an virtual (on-screen) keyboard. The values of the location of each button is found in 2 arrays, one ... | 3 | 3,587 |
Extract single data value from retrieved firebase json objects | <p>In my android app I want to retrieve only a single value from all the nodes of firebase json objects and check...
My firebase database looks like ->
<a href="https://i.stack.imgur.com/nYBZI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nYBZI.png" alt="enter image description here"></a></p>
<p>N... | 3 | 1,088 |
ssh fails to connect but scp works in gitlab-ci | <p>I am using gitlab secrets to pass the ssh private key for it to connect to a remote server. For scp works fine but running ssh doesn't.</p>
<p>I can even see the ssh logs on the server when the gitlab pipeline runs and tries to do ssh.</p>
<p>Here is the output from gitlab-pipeline:</p>
<pre><code>ssh -i /root/.s... | 3 | 2,828 |
how to solve overlay2 make du report wrong disk size and make shell give no space left on disk error | <p>I use the same docker image to launch many containers, now, the /var/lib/docker/overlay2 take up all my disk space, when I login into the shell, it tells me that no space left on the disk, and features like tab completion is disabled.</p>
<p>But, ncdu show that I have a lot of space on disk.</p>
<p>So, what should... | 3 | 6,307 |
ERROR Error: Cannot insert a destroyed View in a ViewContainer | <p>I have designed a page generator by configuration app and it works fine and generate components and render them on the page as good as it should.</p>
<p>But when i try to render a new page by new configuration, i get this error <code>ERROR Error: Cannot insert a destroyed View in a ViewContainer!</code> right when ... | 3 | 1,139 |
Laravel query returns unexpected order | <p>I'm using Laravel Query Builder to get a set of rows, ordering them by 2 columns, <code>ticket_id</code> then <code>id</code> (previously <code>created_at</code>). However the result orders them by <code>ticket_id</code> (correct), but the <code>id</code> (or <code>created_at</code>) secondary order is incorrect. Am... | 3 | 1,194 |
flutter keep data after reset password | <p>i'm work on flutter project . i create a simple function to change password . it's works fine but ( the password change correctly) but i can't keep my actual screen after password changed. i losed all data as you see . My question is How i can keep data in screen after the change of password .</p>
<p>password screen... | 3 | 15,912 |
Making a sidebar collapsable on mobile | <p>I have a row of two columns. The left column has a sidebar that stacks on top of the column on the right column on and below the iPad's width. I want it to be collapsible, show active link on as the title and dropdown to show the menu when clicked.</p>
<p>I have tried a few ways to achieve this but I cannot get it t... | 3 | 1,491 |
Triggers and Actions for Creature AI | <p>Despite my creature AI working (for the most part), I feel like the way I've set it up is terribly inefficient and likely committing some programming sins. I want to rewrite it to be more clean, efficient, and easier to maintain but I'm not exactly sure where to begin. </p>
<p>In my creature AI, I have a list of tr... | 3 | 1,870 |
AngularJS ng-repeat Post Value not getting in proper pattern | <p>I'm new in AngularJS I want to get post value in proper format. When I use
field name as key in checkbox it gives proper value but when I use id as key it does't.</p>
<p>Given below code with name as key</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class... | 3 | 3,133 |
jQuery get() php button submit | <p>I have the following jquery code</p>
<pre><code>$(document).ready(function() {
//Default Action
$("#playerList").verticaltabs({speed: 500,slideShow: false,activeIndex: <?=$tab;?>});
$("#responsecontainer").load("testing.php?chat=1");
var refreshId = setInterval(function() {
$("#responsecontainer").load('tes... | 3 | 1,086 |
Getting errors after attempting to update log4j and remove display tag | <p>I've recently had to update my log4j dependency as the old one was being pulled in by displaytag. I've converted all of the necessary tables, and things seem to be running fine on the front end, but I'm receiving the following error in the log:</p>
<pre><code>Exception while visiting META-INF/versions/9/module-info.... | 3 | 8,347 |
Accessing MVC's model property from Javascript to fill jQuery datatable insted of using json | <p>I am trying to build an ASP.NET MVC application I want to return a model instead of json but I need help to use to model to fill my datatable. </p>
<p>Here is my Javascript:</p>
<pre><code> @section Scripts{
<script type="text/javascript" charset="utf8" src="~/Scripts/DataTables/jquery.dataTables.js"&... | 3 | 2,623 |
My recyclerview data keeps getting doubled when i switch to some other fragment and return to that fragment which has the recyclerview | <p>I have a MainActivity where I replace the fragments in a FrameLayout using getSupportFragmentManager().beginTransaction.replace() and the PositionsFragment as given below. </p>
<p>When I open PositionFragment initially, data is perfectly displayed, but when I switch to dashboard and then again switch to PositionsFr... | 3 | 1,269 |
How to select options from two different dropdowns of same css class name using javascript or jquery | <p>I want to update values of two dropdowns as shown in attached image, have a look on html code for the same(using same css proprty for both select)</p>
<pre><code><div class="container-fluid" role="main" style="margin-top: 100px;">
<form id="allPhotoForm">
<fieldset>
<leg... | 3 | 2,167 |
Android XML - Trying to hide remove "preference" option | <p>Trying to hide the "DisableGMS" option but dont know where to put the code or how to use it, there arent many examples that i can find online on how to implement "removePreference". everyone just say use "removePreference" but no implementation examples on how its used in the code or where its put. Can someone pleas... | 3 | 1,542 |
Validations pass but when merge() is called a validation error is thrown | <p>Sorry for asking here but I can't for the life of me understand what is going on. Been looking for answers all around the web for hours with no luck.</p>
<p>I have a simple Quiz modelled in JPA, using <a href="http://www.vraptor.org/" rel="nofollow">VRaptor</a> (an MVC framework) running in a WildFly 10.0.0.Final s... | 3 | 1,920 |
Any solution to select the dropdown value rather than first index | <p>I have five options with same values in it. Is there any way to select all the indexes of option tag rather than first index.</p>
<p>Consider this js fiddle for the same </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-overrid... | 3 | 1,679 |
Consuming restapi and store Json response to different tables in Springboot JPA? | <p>I am new to Spring boot and these JSON objects. I have a requirement where I need to invoke GET RestAPI and it returns list of nested Json Objects. I need some particular fields from Json object and store it into Database(SQL Server-backend) tables.
And these tables having relationship between them,also my Entity cl... | 3 | 2,569 |
StructureFareRulesRQ Parse Failure - Visual Studio Web Reference Naming Convention Error? | <p>I'm trying to call the StructureFareRulesRQ API from Sabre but its seems as though this API is different than the rest of the Sabre APIs. After adding the wsdl file to my project, I am expecting the Web Service call method to be named something like StructureFareRulesRQService but that doesn't exist. Instead I get S... | 3 | 1,618 |
Push Notifications don't appear on devices | <p>I have already written a lot of code in which I set notifications and try to send a notification from a user to another but now here is my problem, there isn't any notification that appears on the other user's device. The app doesn't crash and I have don't have build failed so I really don't know where I am wrong. T... | 3 | 1,148 |
Apache James Mail Server: Where to put custom Mailets? | <p>I want to wite a custom Mailet for the Apache James Mail Server.</p>
<p>I'm running James through Docker via the <code>linagora/james-project</code> image. The setup works (only locally of course, but that's enough for the moment), as I can set up accounts and connect to them with Thunderbird via IMAP and I can sen... | 3 | 1,172 |
@PostConstuct does not appear to work and @autowire gives an error | <p>I am new to spring and am creating a spring web application.
The application I'm writing has a <code>Class PreLoadService</code>. In this class is a method defined with <code>@PostConstruct</code> that calls a DAO to load the data. The DAO instance is declared in the class with the <code>@autowired</code>.</p>
<p>... | 3 | 2,706 |
Is there an other way to include Jquery lib to communicate between Angular and this library? | <p>I had to include a kind of library called RappidJS and a lot of Jquery files into an Angular 7 Project.
I used an homemade fonction to do it in my component :</p>
<pre><code>ngOnInit() {
this.loadScript('./app/assets/node_modules/jquery/dist/jquery.js');
this.loadScript('./app/assets/node_modules/lo... | 3 | 1,226 |
How to add significance of Tukey's test to ggplot2 figure with multiple facet? | <p>I generated a plot using a long format table, ggplot() and facet_wrap() functions in Rstudio. I want to add values of Tukey's tests applied to different levels of data and annotated with a system of stars (or letters) for significance.</p>
<p>Here is the example code :</p>
<pre><code># create a df for example
a <... | 3 | 1,449 |
React Router v6 Redirects | <p>thank you for taking the time to review this question in advance. I have experience with v5 but since changed pretty significantly in v6 I'm quite confused on how to setup a redirect within a nested page.</p>
<p>For example my page structure is as follows:</p>
<pre><code>- /auth
- /client
- dashboard
- settings
... | 3 | 1,329 |
Integrate nodejs into existing docker lamp container | <p>I'm currently learning how to use docker. And i have a lamp stack container, including php7.4, apache, mariadb, phpmyadmin. All is working fine. I installed Laravel into this container. It includes all needed php extensions.
(I'm aware of Laravel Sail, for docker learning purposes i prefer not to use Sail. I prefer ... | 3 | 1,222 |
Kendo UI Grid : Drag and Drop Hierarchy not working | <p>I want to drag and drop in different Grid with hierarchical data.</p>
<p>The Drag and drop is working fine but the row is not dropping in Detail item in destination grid.</p>
<p>I have created the sample here. <a href="https://jsfiddle.net/ravituvar/0xe9u4g6/" rel="nofollow noreferrer">here is the sample for the s... | 3 | 6,854 |
custom template with v-if is giving error while using inside li item - vue js | <p>I have to display menus in navigation bar. There are multiple menu items(Home, About etc). Some menu items are having submenus(2nd -3rd level). So, i created one directive to show up submenus while hovering over the menu in navigation bar.</p>
<p><strong>Here is my code(old code)</strong> - v-show-sub-menu is the di... | 3 | 1,834 |
I need to make these clouds extend to the left and right and go on forever. (Hard to explain so images are provided with further detail) | <p>So I am trying to make a cloud generation script that when going forward, left, or right it generates clouds infinitely.</p>
<p>Here is an example of how it currently is, I would like it to generate clouds when moving left or right infinitely but currently it only generates clouds moving forwards infinitely. Arrows ... | 3 | 2,738 |
Why are HTML links not loading until audio file has been played | <p>I am coding a website that has a navigation bar at the top of the page, containing normal, generic HTML5 link elements (using the "a" element):</p>
<pre><code><table id="menuButtonTable">
<tr>
<td>
<a href="/home" class="menuButton">
... | 3 | 1,297 |
Changing the language of the formatted_address called by google Places API autocomplete method | <p>The data that i have received using google Places API is giving me formatted_address field in my local language. I want it to be in English.</p>
<p>I have enabled google Places Api and used autocomplete method to load suggestions. A simple html page to load the received data is created. I have tried setting the lan... | 3 | 2,180 |
Large array, stack overflow, and dynamically allocated | <p>I am wondering how could I create and initiate this large array without resorting to vector. Basically, I have been trying to create a large 1D array whose each element is a cell of a cubic with side L=NGRID cells. NGRID is read from a parameter file. </p>
<pre><code>#include <stdio.h>
#include <stdlib.h&... | 3 | 2,155 |
Webpack + eslint replace source change on linting | <p>Running on webpack dev server with a string replacement plugin that does a replacement based <a href="https://github.com/jamesandersen/string-replace-webpack-plugin/blob/master/loader.js#L19" rel="nofollow">on a function</a>. I am finding the value of the replacement overwritten my source file .</p>
<p>My Dev serve... | 3 | 1,325 |
C# Customising MailAddress.From field not working | <p>I am trying to send Emails from my custom address to users using C# and googles smtp service. My problem is that when the when the user receives the message it is displayed <code>admin@customDomain.co.uk <myAddress@gmail.com></code> in the from section of the email.</p>
<p>My problem is that I want the user t... | 3 | 1,088 |
CodeIgniter News Tutorial - Parse Error | <p>I'm following the CodeIgniter tutorial (<a href="http://www.codeigniter.com/user_guide/tutorial/news_section.html" rel="nofollow">http://www.codeigniter.com/user_guide/tutorial/news_section.html</a>), when I get to '<a href="http://www.codeigniter.com/user_guide/tutorial/news_section.html#display-the-news" rel="nofo... | 3 | 1,169 |
NodeJS rest api which return response similar like Java Map e.g. Map<String,List<Class>> | <p>I am having 2 tables <strong>product_categories</strong> and <strong>product_sub_categories</strong> and these table columns are as follows:<br>
<strong>product_categories:</strong><br>
category_id category_name created_by created_date updated_by updated_date
<strong>product_sub_categories:</strong><br>
sub_category... | 3 | 2,632 |
How to convert GA API JSON to Pandas DataFrame | <p>I'm developing a connector Google Analytics to MS SQL Server and in order to load the GA info to a DB Table the API response should be normalized. I thought pd.Dataframe is not a bad idea. </p>
<p>API Responce v3</p>
<pre><code>{'columnHeaders': [{'columnType': 'DIMENSION',
'dataType': 'STRING'... | 3 | 1,455 |
Binding instances during Caliper benchmarks | <p>I've recently been tasked with benchmarking some features of our API, and I've been using Caliper to do so. It seems fairly straightforward and is actually quite powerful, I've been following the tutorials here:</p>
<p><a href="https://stackoverflow.com/questions/21341505/how-to-use-caliper-for-benchmarking">How to... | 3 | 1,569 |
How to bind data attribute instead of id? | <p>Use bootstrap 3 carousel - <a href="http://jsfiddle.net/cxv1osq0/" rel="nofollow noreferrer">Fiddle</a></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-css lang-css prettyprint-override"><code>/* for testing onl... | 3 | 1,514 |
Speech Recognition stops listening immediately | <p>I want to listen the first word from the user. When speech recognition starts I hear the bip-sound, but immediately I hear the stop sound. I observed that onRMSchanged is the only method where something is happening. </p>
<p>This is how I use the SpeechRecognizer. I am connected to the internet when I run the appli... | 3 | 1,289 |
Preventing td from getting smaller when content is empty | <p>I have the following table structure. I have a table inside a table here.</p>
<p><a href="https://i.stack.imgur.com/NCb3V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NCb3V.png" alt="enter image description here"></a></p>
<p>My issue is, if the td doesnt contain any text, the full-height gets... | 3 | 1,420 |
What does Relay use to decide which outputFields to include in a mutation response? | <p>I am creating my first React/Relay application by modifying the TODO example. I am to the point where I am adding my own mutation for an object Distributor that has a parameter bookCount. The mutation is called AddBook and simply increases book count by 1. At this point, the mutation executes without error, optimist... | 3 | 1,083 |
Spark's example throws FileNotFoundException in client mode | <p>I have: Ubuntu 14.04, Hadoop 2.7.7, Spark 2.2.0.</p>
<p>I just installed everything.</p>
<p>When I try to run the the Spark's example:</p>
<pre><code>bin/spark-submit --deploy-mode client \
--class org.apache.spark.examples.SparkPi \
examples/jars/spark-examples_2.11-2.2.0.jar 10
</c... | 3 | 1,167 |
in excel empty cells of non empty rows are neglected using java , POI jars | <p><strong>Excel To Json Conversion using JAVA, POI</strong></p>
<blockquote>
<blockquote>
<p>Issue: Empty cells in Non Empty rows are neglected.</p>
<blockquote>
<p>I am trying to convert an excel file through java to Json.<a href="https://i.stack.imgur.com/VFtyE.png" rel="nofollow noreferrer">A2... | 3 | 1,299 |
CoreOS cloud config not creating user | <p>The template does not generate the bamboo user that I have set up in the cloud config. I ssh into my cluster and see cat /etc/passwd but I don't see that user. What might be going wrong?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<... | 3 | 3,332 |
sensorLandscape activity display very slowly when first run after first installer | <pre><code><activity
android:name=".WelcomeActivity"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:launchMode="singleTop"
android:screenOrientation="sensorLandscape"
android:theme="@style/WelcomeStyle"
android:windowSoftInputMode="adjustPan">
&l... | 3 | 1,220 |
How to place buttons correctly in a layout - android | <p>In my android app I have three buttons below. The problem I have is that these buttons are too close together and if I try to move one of them away then they all follow. Maybe because I state which button should go below who but I want to know if there's a way in my xml code to create a gap between these buttons?</p... | 3 | 1,220 |
Nested cfloops with less records than outer loop cause "array index out of range" error | <p>I'm very curious why this is happening. I've run into it twice now, and after a ton of googling/so'ing, I haven't found any reason I actually understand. The gist of it:</p>
<p>Query 1: selectContent (6 records; no blanks/nulls etc)</p>
<p>Query 2: selectPricing (5 records; no blanks/nulls etc)</p>
<p>Output: </p... | 3 | 1,164 |
Spring boot Controller json response has a field name "empty" | <p>I have a GET endpoint in my application supposed to return :</p>
<pre><code>{
"gameId": "41a483c4-6220-424a-a931-d9114a4f6748",
"pits": [
{
"id": 1,
"stones": 6
},
{
"id": 2,
"stones": 6
},
{
&... | 3 | 1,864 |
Set initial values in form passing parameters (kwargs) with view | <p>I want to prefill a form with values taken in a table.
First I pass the PK relative to the line where I wan't to get values and build the kwargs list:</p>
<p><strong>views.py</strong></p>
<pre><code>def NavetteToFicheCreateView(request, pk):
navette = Navette.objects.get(id=pk)
ref = navette.id
attribut... | 3 | 1,025 |
Self overwriting object tab | <p>I'd like to ask you for help. At my current Java programming skills, that are rather basic this problem is magic for me. Let me explain first what was my intention:
I wanted to load data from database to object tab called airportList, and this is tab of Airport objects initialized here:</p>
<pre><code> public void ... | 3 | 2,475 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.