title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
high disk watermark [90%] exceeded [...] shards will be relocated away from this node | <p>I'm trying to run multi node Elasticsearch from docker containers in my local machine. Below is my docker compose file:</p>
<pre><code>version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
container_name: es01
environment:
- node.name=es01
- cluster.name... | 2 | 1,997 |
How can I disable smart lock for passwords auto login request after Firebase Auth UI sign out? | <p>I'm building a single activity Android app in an attempt to follow Google's recommendations. I'm using FirebaseAuth UI for authentication which apparently uses 'Smart Lock for Passwords' to save the credentials into your google account. My sign out function looks like this:</p>
<pre><code>private fun signOutUser(){... | 2 | 1,200 |
Why Android Circle Progress Dialog Getting Freezes when Bunch of Data Syncing from Server to Local DB Using Retrofit | <p>1.Iam fetching <strong>Bulk of Data from Server</strong> and Inserting in the Local Database While Login in android.</p>
<p>2.For Syncing Purpose i have Used <strong>Retrofit Library</strong>, Syncing and Inserting Working Fine.</p>
<p>My Problem: <strong>While Syncing Bunch of Data from server Using Retrofit</str... | 2 | 4,301 |
How to find the rule throwing an ArrayOutOfBoundsException after activating a bunch of rules in Sonarqube? | <p>I recently activated following rules in Sonarqube (5.1.1):</p>
<ul>
<li>squid:CallToDeprecatedMethod ("@Deprecated" code should not be used)</li>
<li>squid:S2737 ("catch" clauses should do more than rethrow)</li>
<li>squid:S3398 ("private" methods called only by inner classes should be moved to those classes)</li>
... | 2 | 7,312 |
Android full justify and auto-hyphenation with Hyphenator.js | <p>I'm trying to fully justify text in Android with auto-hyphenation. I have achieved full justification using a WebView as explained <a href="https://stackoverflow.com/questions/1292575/android-textview-justify-text/4314724#4314724">here</a>. I have read a couple of threads on auto-hyphenation in Android, but none of ... | 2 | 1,602 |
Password Generator formula | <p>I have the below code which works perfectly fine in a .xlsm file, however when I copy the code over to my Personal.xls file it no longer works. I have searched the forum and found similar threads, however none of them seem to hold the solution to my issue. </p>
<p>I'm sure you can see that my code is creating a pas... | 2 | 1,333 |
Remove additional space while entering data to mysql | <p>I have an android application that sends some array of strings to php. php takes that array and inserts that data value individually into database. now when the data is inserted, each row data get an additional white space along with it.
how to eliminate it. i tried REPLACE with the string but when tried REPLACE, a... | 2 | 1,094 |
gunicorn doesn't kill worker even after timeout | <p>gunicorn doesn't seem to kill and re-spawn worker even after timeout.</p>
<p>Here is my code (<strong>myapp.py</strong>):</p>
<pre><code> def app(environ, start_response):
data = b"Hello, World!\n"
start_response("200 OK", [
("Content-Type", "text/plain"),
("Content-Length", str(len(data)))
])
return... | 2 | 1,675 |
XML, XSD xs:keyref within recursive complex type defintion | <p>I have some xml data with a list of allowed types at the top and a recursive list type of objects and sub-objects that refer to the allowed types:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNa... | 2 | 2,000 |
Shopify slick slider with section have problems? | <p>I'm working building Shopify theme and adding the slick slider plugin <a href="http://kenwheeler.github.io/slick/" rel="nofollow noreferrer">http://kenwheeler.github.io/slick/</a>. </p>
<p>I have created schema json for setting inside of and the code for Slider but cannot get to work. I'm getting an error message:<... | 2 | 2,230 |
Smarty general block code inheritance | <p>Is it real to get block content from parent file to child?
For example, I have 3 files <code>parent.tpl</code> & <code>first-child.tpl</code> & <code>second-child.tpl</code></p>
<p>Parent contains that code:</p>
<pre><code><div>
{block name='greetings'}{/block}
</div>
</code></pre>
<p>Firs... | 2 | 1,299 |
Get each element with jQuery from handlebars template | <p>I want to get each item from a template. The template looks like:</p>
<pre><code><div class="row flush" id="photos_list">
<script id="photo_list_template" type="text/x-handlebars-template">
{{#each this}}
<div class="3u photo">
<im... | 2 | 1,042 |
IllegalStateException:android.widget.ListView is not a view that can be bounds by this SimpleAdapter | <p>Getting a IllegalStateException SimpleAdapter.java:195 and ...when list view showing something from simple adapter
you can get my source code here <a href="https://github.com/Wifin/WifinApp" rel="nofollow">https://github.com/Wifin/WifinApp</a></p>
<p><strong>Code snippet 1</strong></p>
<pre><code>public class Main... | 2 | 3,774 |
Why doesn't Bootstrap datepicker work here? | <p>I am trying to use datepicker from <a href="http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&utm_medium=twitter" rel="nofollow">http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&utm_medium=twitter</a>.</p>
<p>Question updated to include complete code:</p>
<pre><code><!DO... | 2 | 3,778 |
getting StackOverflowError while initializing a static variable | <p>Below is the Minimal Verifiable Example of a piece of code which i stumbled upon.</p>
<pre><code>package test_package;
import java.util.function.Predicate;
public class TestClass {
public static final String CONST_STR = " some_data "+ getMoreData(e -> e.getId()==3);
private static String getMoreData(Pred... | 2 | 1,705 |
Inner join 2 tables into one | <p>I have 2 tables, trying to <code>inner join</code> into one table. I am using Excel to query, so it has limited syntax (Jet Access). <code>stack1</code> and <code>stack2</code> tables are identical and in two different Excel sheets.</p>
<p>The tables come from Vertica (<code>stack1</code> and <code>stack2</code>) a... | 2 | 1,156 |
How can I process a keyboard event in the <cdk-virtual-scroll-viewport? | <p>I created a virtual scroll list with divs. Using event binding I can attach actions to click an dblclick events. I would like to bind a keyboard event like KeyPress to detect the enter key and mimic the action of a mouseclick. Whatever I try the events do not fire. What am I doing wrong? </p>
<pre class="lang-html ... | 2 | 1,260 |
hibernate buildSessionFactory ClassFormatError: | <p>ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/InheritanceType</p>
<p>I got this error when try to build sessionFactory
my hibernate.cfg.xml file :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBL... | 2 | 1,796 |
gdb log file format | <p>When I use <code>set logging on</code> in gdb, the output to the log file has a different format than what I see on the terminal screen. The logfile is not very readable. How can I get the log file in a readable format?</p>
<p><strong>Output to screen is fine:</strong></p>
<pre><code>(gdb) p foo
$1 = {
static np... | 2 | 1,143 |
Elasticsearch: restart node after java.lang.OutOfMemoryError: Java heap space | <p>One of my ES nodes has failed because of <code>java.lang.OutOfMemoryError: Java heap space</code> error. Here is the full stack trace from the logs:</p>
<pre><code> [2020-09-18T04:25:04,215][WARN ][o.e.a.b.TransportShardBulkAction] [search1] [[my_index_4][0]] failed to perform indices:data/write/bulk[s] on replic... | 2 | 2,436 |
Multi step form submit method is not working in laravel | <p>step bootstrap form but the submit method is not working. It's linked with jquery but if I remove the id then continue button is not working. Ho can I take action using route submit and I don't need jquery validation I just need continue, back button and submit button only visible in the last phase. </p>
<pre><code... | 2 | 11,346 |
how to auto populate Django Rest Framework Model fields | <p>Trying to auto populate model attributes using Django rest framework </p>
<p><strong>Intro:</strong> I have 2 models <code>Patient</code> and <code>Embryo</code> There is only 1 user who is the superuser. All patients belong to the superuser. One patient can have many embryos but an embryo can have only one patient... | 2 | 1,538 |
Jasmine - “Cannot read property 'values' of undefined thrown” | <p>I just started writing unit tests for an existing Angular app using Jasmine, and around 50% of the time, I get the following error.The other 50% of the time, all tests pass without any issues.</p>
<p>The major problem I have with this error message is that Jasmine is not telling me where the issue</p>
<pre><code> ... | 2 | 1,494 |
Image-Processing: Converting normal pictures into FishEye images with intrinsic matrix | <p>I need to synthesize many FishEye images with different intrinsic matrices based on normal pictures. I am following the method mentioned in this <a href="https://arxiv.org/pdf/1804.04784.pdf" rel="nofollow noreferrer">paper</a>.</p>
<p>Ideally, if the algorithm is correct, the ideal fish eye effect should look like... | 2 | 2,144 |
select the string before ":" or a function like first() in xslt | <p>i wish to select the string before ":" or a function like first() in xslt</p>
<p>my input is</p>
<pre><code><E T="B">1.1.1-CES: Describe the normal anatomy.</E>
</code></pre>
<p>expected output is</p>
<pre><code><span class="emph_B">
<span class="emph_Bcol">1.1.1-CES:</span>
Des... | 2 | 7,356 |
How to make the video in view pager stop playing when the next page is scrolled? | <p>First, I play a <code>video</code> in the first <code>view pager</code>, then when i scroll to the next page, the <code>video</code> continues to playing. The video stops when i come to the third page. Is it any coding to stop the <code>video</code> or the activity by the time I scroll to the next page? Eager for ex... | 2 | 2,141 |
PLSQL insert and returning id form trigger on table | <p>I am trying to execute insert statement within PLSQL insert and returning out the id generated from trigger on table that use sequences but
I am getting below error dose anyone has any idea about that ?</p>
<blockquote>
<p>ORA-00905: missing keyword</p>
<p>ORA-06512: at "ADMIN.F_INSERT_ORDER_DATA", line 22<... | 2 | 2,493 |
How to check how many times the letters of the alphabet occur in a text file C++ | <p>I want to check how many times the letters of the alphabet are in a text file. </p>
<pre><code>#include <iostream>
#include <string>
#include <fstream>
#include <cctype>
using namespace std;
int main()
{
char alphabet[]="abcdefghijklmnopqrstuvwxyz";
//char alphabet[26]= {'a','b','c','d','... | 2 | 1,093 |
Web API Caching - How to implement Invalidation using a distributed cache | <p>I have an API that currently does not use any caching. I do have one piece of Middleware that I am using that generates cache headers (Cache-Control, Expires, ETag, Last-Modified - using the <a href="https://github.com/KevinDockx/HttpCacheHeaders" rel="nofollow noreferrer">https://github.com/KevinDockx/HttpCacheHead... | 2 | 1,088 |
Adding radius slider to Google Maps JavaScript API | <p>I'm getting some weird behavior when I try to dynamically change the radius in a heatmap made with the Google Maps JavaScript API. I've tried to add a slider to the HTML so that the radius can be selected by the user. I've done the same for opacity, and it worked beautifully. When I adjust the radius slider, howe... | 2 | 13,238 |
jquery resizable not working after page load | <p>I have a page that stores the document's body html in localStorage. When the page reloads it should (and does) put the content the same place it was before the reload. I'm able to drag,sort, and resize until I refresh the page. After that drag and sort continue to work, but resize fails.</p>
<p><strong>I figured it... | 2 | 3,864 |
getline() error in C++ when using for loop | <p>I had to write a program to calculate average speed of a car during a trip and I have to prompt the user for the names of the two cities that they were traveling between. That program worked, but the next program we had to write is an addition to the last one, in which the user is prompted for how many times the pro... | 2 | 1,134 |
can I authenticate a user via a custom method? | <p>An app currently uses spring security with a simple username and password handled by a login form that spring generates automatically. The username is a valid email address. </p>
<p>I have other code that sends the user an email with a session id in a url to validate the email address. And that also sends the us... | 2 | 1,053 |
Error in Django Test using Factory Boy | <p>I use Factory Boy in my Django project. Could you please explain my mistake to me: why am I having the error when I ran 'tests.py' - 'ValueError: "" needs to have a value for field "post" before this many-to-many relationship can be used.'</p>
<p>Here is my code: </p>
<pre><code>import factory
from . import mod... | 2 | 1,911 |
Why does destroy action trigger HTTP authentication in Production in Rails 3? | <p>Screenshot of what happens when I press 'delete': <a href="http://twitpic.com/4mljuy" rel="nofollow">http://twitpic.com/4mljuy</a></p>
<p>This is what I see in my production.log:</p>
<pre><code>Started POST "/clients/1" for 127.0.0.1 at 2011-04-20 13:48:26 -0500
Processing by ClientsController#destroy as JSON
... | 2 | 1,413 |
grid view does not show data from database once bind | <p>I have a grid view it has 3 drop down lists and 3 text boxes in template field. On the top of the grid view i have two text boxes( text box 1 and 2) which initilize there values when page is loaded. i also have 3 buttons for add new row , save , search. I want my grid view to show data from database when search butt... | 2 | 2,463 |
Converting Bitmap to Base64 String in Android | <p>I did the following code to convert Bitmap image to Base64 String format.</p>
<pre><code>public static String encodeTobase64(Bitmap image)
{
Bitmap immagex=image;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
immagex.compress(Bitmap.CompressFormat.JPEG, 100, baos);
... | 2 | 5,076 |
SPACY custom NER is not returning any entity | <p>I am trying to train a Spacy model to recognize a few custom NERs, the training data is given below, it is mostly related to recognizing a few server models, date in the FY format and Types of HDD:</p>
<pre><code>TRAIN_DATA = [('Send me the number of units shipped in FY21 for A566TY server', {'entities': [(39, 42, ... | 2 | 1,283 |
Adding stack info to logging format in python | <p>Is there a way to use variable data in the actual format part of the logger? </p>
<p>I want my logs to contain the names of the functions on the stack. For example here is the following code:</p>
<pre><code># logging_utils.py
def init_logger(logger_name: str) -> logging.Logger:
log = logging.getLogger(log... | 2 | 2,409 |
ScrollView inside RelativeLayout | <p>
I have a Coordinator Layout, where I have on top of it a player info bar and at the bottom a navigation bar, which are fixed there. In the middle I have a relative layout which contains a scroll view and the problem is, that the scroll view doesnt scroll. Additionally to that I have put for test purposes a border ... | 2 | 2,804 |
What is causing my PowerBuilder C0031 Synax error? | <p>I'm still pretty new to Powerbuilder and programming. I'm getting two syntax errors when trying to save this code and I can't figure it out. The first error shows up as the first thing in the code "//*****" and the second error is at the "END CHOOSE". Any assistance would be much appreciated.
//**************... | 2 | 3,682 |
Clear Input textbox fields after select box selected index has changed | <p>I am trying to clear the current values of <code>Input</code> fields <code>totalA</code> and <code>qtyA</code> when the selected value of a <code>select</code> box, <code>acct</code> has been changed.</p>
<p>I have this code so far, but am unsure where to clear the values.</p>
<pre><code><script language="javas... | 2 | 1,612 |
Hibernate JSF MySql , loss DB connection | <p>I am developing a webapp with JSF 2.2 and hibernate the app works fine, but if I don't use in X hours when I try logged in to the app, it throws this exception:</p>
<pre><code> [#|2014-03-18T09:12:57.688+0100|WARNING|glassfish3.1.1|org.hibernate.jdbc.AbstractBatcher|_ThreadID=23;_ThreadName=Thread-2;|exception clea... | 2 | 9,835 |
SVNSERVE ldap groups | <p>I need to configure svnserve daemon to authenticate users using the ldap group. All my svn repositories are in a CentOS box. I performed the following steps:</p>
<p>1- Install libraries:</p>
<blockquote>
<pre><code>yum install subversion cyrus-sasl cyrus-sasl-ldap cyrus-sasl-plain db4-utils
</code></pre>
</blockqu... | 2 | 1,114 |
AWS Lambda & MySQL Connection Handling | <p>I am currently using AWS Lambda (Python 3.6) to talk to a MySQL database. I also have Slack commands triggering the queries to the database. On occasion, I have noticed that I can change things directly through MySQL Workbench and then trigger a query through Slack which returns old values. I currently connect to My... | 2 | 2,112 |
"app:transformClassesWithMultidexlistForDebug" execution for this task whenever I try to run my Flutter app | <p>Whenever I try to run my App, it always fails and it gives this error</p>
<blockquote>
<ul>
<li>What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.</li>
</ul>
</blockquote>... | 2 | 1,250 |
OpenApi generator doesn't allow multiple schema in content | <p>I've an OpenAPI contract like this:</p>
<pre><code>openapi: 3.0.1
info:
title: Internal API
version: ''
tags:
- name: Calendar
description: Api for Calendar resource
paths:
'/api/v1/appointments/{id}':
get:
tags:
- Calendar
summary: Get the given appointment
description: Get... | 2 | 7,630 |
Intersect method in LINQ with C# | <p>I am trying to obtain the same files using Intersect method from two folders.
123.xml files are the same (no change with content, date, size) in all the folders.</p>
<pre><code>Scores\Content\123.xml
Scores\Content\hi.xml
Scores\123.xml
Power\Content\123.xml
Power\Content\helo.xml
Power\123.xml
</code></pre>
<p>T... | 2 | 1,254 |
CUDA C++ problems with CMake on CLion IDE | <p>I'm trying to start a project with CUDA C++ using CLion as an IDE.
I installed a fresh version of CUDA Developer Tools (v10.2) and tried to load the changes of the MakeFile.
Apparently, the CUDA compiler (nvcc) doesn't get properly linked, but I'm not sure this is the problem.</p>
<p>This is my CMakeLists.txt:</p>
... | 2 | 1,763 |
Change Modal View Size From Within Modal View Controller | <p>One of my view controllers loads another with presentation style of <code>UIModalPresentationFormSheet</code>:</p>
<pre><code>- (void)loadNotesForm {
if ([helper isOrderReadyForSubmission:self.coreDataOrder]) {
CIFinalCustomerInfoViewController *ci = [[CIFinalCustomerInfoViewController alloc] init];
ci.orde... | 2 | 2,043 |
Problems of print java exceptions in one line by logback for docker | <p>I am going to put my java app into docker. But based on our company's logging facility, i have to use <code>fluentd</code> to collect containers' log. That requires me to put java stacktraces into one line log.</p>
<p>I did the following, it works in some circumstances but fails in one another.</p>
<pre class="lan... | 2 | 3,332 |
How can I use the Google Custom Search API to check if a list of website's is currently indexed by Google? | <p>Currently, you can import a spreadsheet (contains a list of websites) into a database. You are able to click a button and it retrieves the number of pages that Google has indexed for each domain in the database.</p>
<p>It works fine up until about ~400 requests and then my requests come back with nothing. Not sure ... | 2 | 1,118 |
how to implement csurf on node js and react js? | <p>I have a react js application on node js, I can’t implement csurf on my application for a long time, how can I implement csurf in the right way?</p>
<p><strong>project directory</strong></p>
<pre><code>-admin
-client
-config
-middleware
----file.js
----variables.js
-models
-node-modules
-routes
-utils
index.js
pac... | 2 | 8,447 |
How to copy random generated numbers to the selection sort method. (JAVA) | <pre><code>import java.util.ArrayList;
import java.util.Random;
public class Sorting
{
public static int numOfComps = 0,
numOfSwaps = 0;
public static void main(String[] args)
{
System.out.println("\nOriginal order:");
int size = 5;
ArrayList<Integer> list... | 2 | 1,492 |
How to return the nth value of a Dict? | <p>I have this dict for example and i wish to return the nth value of it </p>
<pre><code>d = {'Hello':4, 'World':17, 'Hi':2, 'Again':46}
</code></pre>
<p><strong>Note:</strong> I know that dicts are unordered, and i don't care i just want to return all the keys one after the other.<br>
In my program I just want to m... | 2 | 2,372 |
Swift: Changing (translate) a UIView position through a pan gesture in its superview window | <h1>Introduction</h1>
<p><strong>Context:</strong></p>
<p>In my main ViewController I have a scrollView with a few objects inside (which are UIViews). When one of the UIViews are tapped/selected I animate forward a UITextView in a UIView to go with the selected object. (only one UIView can appear at a time)</p>
<p>T... | 2 | 1,695 |
Can't get config files when run ConfigServer and EurekaServer on docker container | <p>[Spring boot Microservies]</p>
<p>I have a microservices includes 2 services: ConfigService and DiscoveryService</p>
<ul>
<li><strong>ConfigService</strong> is enabled ConfigServer, keep files config for microservice</li>
<li><strong>DiscoveryService</strong> is EurekaServer. It will get config file from ConfigSer... | 2 | 1,484 |
How to create a Filter for an IceFaces based web application? | <p>I am using IceFaces 1.8.2. I want to create a <code>Filter</code> so that people cannot access unauthorized URLs of my application. </p>
<p>I attempted to created a <code>Filter</code> like this:</p>
<pre><code>public class AuthenticationFilter implements Filter {
private FilterConfig config;
public void... | 2 | 1,536 |
EXC_BAD_ACCESS at removeFromParentNode() SceneKit | <p>I've got the following error popping up randomly during my game execution:</p>
<p><a href="https://i.stack.imgur.com/46Ov2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/46Ov2.png" alt="enter image description here"></a></p>
<p>I am creating multiple instances of a carNode, at random moments in time, an... | 2 | 1,827 |
Getting "The AndroidManifest.xml of the uploaded APK could not be parsed. Was it compiled properly?" error after enabling Google App Signing | <p>After enabling <a href="https://support.google.com/googleplay/android-developer/answer/7384423?hl=en" rel="nofollow noreferrer">Google App Signing</a>, everytime I try to upload a signed release APK to Play Store I get an error saying <strong>The AndroidManifest.xml of the uploaded APK could not be parsed. Was it co... | 2 | 10,672 |
CakePHP 2.x : Cascade delete with softdelete do not work | <p>I use softdelete Behaviour of <a href="https://github.com/CakeDC/utils/tree/2.0-tests" rel="nofollow">Utils Plugin</a> for CakePHP 2.x</p>
<p>I have following 4 tables </p>
<ol>
<li>customers </li>
<li>customer_addresses</li>
<li>customer_contacts</li>
<li>customer_reports</li>
</ol>
<p>And consider following it... | 2 | 3,356 |
Materializecss menu works fine only on one page | <p>I'm using <code>materialize-sass</code> gem in my Rails app and have some troubles with using it. It works fine only in root (home) page, and in some others but not on full site.</p>
<p>The <code>.button-collapse</code> losts functionality and menu doesn't work. I just click on it, or tap (in mobile device) and not... | 2 | 1,219 |
Sqlalchemy duplicate entry when creating entries dynamically | <p>In my application, I am using SQLAlchemy (via MySQL) with Flask, and in my current situation I need to create entries dynamically. For example, while creating an instance from table A, my script will see that we need to create a related entry B, so after creating B, it will attempt to assign B to one of the relatio... | 2 | 1,221 |
Import Firebase data into android class | <p>I'm trying to Query Firebase data and store it into the Dinosaur class from the example link below. I have an issue when importing directly from Firebase into the Dinosaur Facts class. It's able to create the Query and enters the "onChildAdded" method. It then goes to the Dinosaur constructor class but crashes right... | 2 | 2,137 |
Image streamed from Mongo's Gridfs not displayed in browser | <p>I am posting this issue here, I have been reading many related posts, but any of them helped me in making it work.</p>
<p>The idea is pretty easy: I have a MEAN-based application in which is possible to upload an image to GridFS - WITHOUT storing it locally to the server - and later to visualize it in the browser. ... | 2 | 1,280 |
Cartopy background color (outside of data domain) | <p>In a Cartopy map, I would like to have the region not covered by any data (outside of my domain) colored in e.g. lightgrey.
Have played with <code>background_patch</code> and looked at this example <a href="https://stackoverflow.com/questions/32200438/change-the-background-colour-of-a-projected-matplotlib-axis">Chan... | 2 | 1,238 |
How to add google Map marker from SQL database | <p>I have a google map and I would like to add a new marker on it for each element I add on my database (with it latitude and longitude).
This is what I have done that isn't working.
Thanks for helping.</p>
<pre><code><?php
$reponse = $bdd->query('SELECT * FROM zdou ORDER BY id ');
while ($donnees = $rep... | 2 | 1,026 |
LDAP Unsolicited Notification using spring | <p>Sorry if I don't get the exact phrases here, I'm pretty new to this area...</p>
<p>I'm using Spring LDAP to authenticate/validate users. I want to be able to get notification sfrom LDAP once there have been changes like removing or updating users.</p>
<p>I know I can have something like a scheduled task that will ru... | 2 | 1,349 |
Issue styling Rating bar | <p>I am having problem styling rating bar</p>
<p>Here is the screenshot</p>
<p><img src="https://i.stack.imgur.com/X4G9q.png" alt=""></p>
<p>I want to reduce the size of rating bar. I know I can use style small to make them smaller but that is too small. Can I make somewhat medium style?.</p>
<p>Here is my xml </p>... | 2 | 1,350 |
Parsing multi sections of a text file using regex in C# | <p>I would like to parse a text file with content that looks something like below:</p>
<pre><code>START-OF-DATA
#100846105
START SECURITY|US912810DZ85|CBBT|
## in: 20150430_14:59:00 to 20150430_15:00:00 [13 (New York-DST)]
## out:20150430_14:59:00 to 20150430_15:00:00 [13 (New York-DST)]
04/30|15:00:00|B|118.640625|||... | 2 | 1,059 |
css - Bootstrap - Vertically align form with form-control input-sm in navbar | <p>I can't seem to be able to vertically align a form with "input-sm" that is placed within the navbar. If the inputs to the form are not the same height as the navbar, it appears that they get top aligned. I was hoping there might be a way to do this without manually adjusting the padding or margin-top. Any ideas?<... | 2 | 1,723 |
Evaluating result of boost::phoenix::insert | <p>I'm having difficulties trying to evaluate the result of <code>boost::phoenix::insert</code> which inserts elements into a map. Similar to the regular <code>std::map::insert</code> the actor object returned by <code>boost::phoenix::insert</code> also returns a <code>std::pair<Iterator where, bool result></code... | 2 | 8,151 |
Zipping and Unzipping Jar, It's not the same size! | <p>I'm making a modding application for a game. When I unzip and zip the same files: for some reason although it is open-able with 7Zip, it's not open-able in the actual application. Even though I've not edited the unzipped files - it's missing a few bytes.
I gathered the methods from the net and have been editing and... | 2 | 1,131 |
Win32 (GDI) - Set Opacity of STATIC Control | <p><strong>I'm using C - (NO MFC or GDI+)</strong> :-)</p>
<p>What I want is to set the opacity of my child window to let say 100 (my child window is a <code>STATIC</code> control). I was wondering if this is even possible and if so can someone please point me to the right direction on how to do it.</p>
<p>Here is my... | 2 | 1,026 |
Google unified messaging platform SDK implementation | <p>I am wondering how I can make the form show in my iOS App <a href="https://developers.google.com/admob/ump/ios/quick-start" rel="nofollow noreferrer">https://developers.google.com/admob/ump/ios/quick-start</a>.</p>
<p>I am using Xcode vs 11.6 and exported the game from Godot game engine.</p>
<p>I have changed the <c... | 2 | 2,124 |
Hide shipping method based on the radio button in WooCommerce checkout page | <p>I put a radio button in the checkout page with the code below.</p>
<pre><code>add_action( 'woocommerce_before_checkout_shipping_form', 'custom_shipping_radio_button', 10, 1 );
function custom_shipping_radio_button( $checkout ) {
woocommerce_form_field( 'shipping_type', array(
'type' => 'radio',
... | 2 | 2,424 |
How to get particular values from JSON response by using Android code? | <p>I need to get Particular Object values ( A, B, C, D) and related key values <code>(@"name" )</code>. After getting <code>(A, B, C, D )</code> object values I need to list out into list view Android. Here below I have posted my sample code and response. Please help me.</p>
<pre><code>@Override
protected Voi... | 2 | 1,088 |
BeanCreationException: Injection of autowired dependencies failed | <p>I want to use <code>Spring</code> for JDBC configuration.</p>
<p>But it throws next bunch of exceptions:</p>
<pre><code>Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcDaoImpl': Injection of autowired dependencies failed; nested exception is or... | 2 | 2,656 |
How to resolve Unable to get provider androidx.lifecycle.ProcessLifecycleOwnerInitializer | <p>Getting below exceptions from the play store build.</p>
<pre><code>(1) Fatal Exception: java.lang.RuntimeException: Unable to get provider androidx.lifecycle.ProcessLifecycleOwnerInitializer: java.lang.ClassNotFoundException: Didn't find class "androidx.lifecycle.ProcessLifecycleOwnerInitializer" on path: DexPathLi... | 2 | 1,448 |
WPF-MVVM: Handeling Event from within DataGrid Style | <p>I develop Prism+MEF application based on WPF+MVVM, where there are many DataGrids so i build DataGridStyle to be applied for all DataGrids in all modules. The style add Filter Text Box in the Columns Headers, and i used MVVM Light EventToCommand to trigger TextChanged event when the Text Box text is changed like thi... | 2 | 2,356 |
Flutter: How to populate form from a list data on click edit button and save it? | <p>I have a list which is hard coded at the beginning. When i make an entry in the form, the form data is saved to list. I want to get the data in my form of same index when i click on the update icon. The current screen is this.</p>
<p><a href="https://i.stack.imgur.com/gFC1l.png" rel="nofollow noreferrer"><img src="h... | 2 | 4,190 |
StreamTransformationFilter: ciphertext length is not a multiple of block size? | <p>I am trying to encrypt and decrypt a plain text using aes algorithm present in <a href="https://github.com/weidai11/cryptopp" rel="nofollow noreferrer">crypto++</a></p>
<p>Here is my encryption method</p>
<pre><code>/*
* Encrypt the given text
*/
template<typename T>
T encryptText(T plainText) {
/* Ke... | 2 | 1,999 |
How do I redirect output for an already running process in c# | <p>I'm launching a new process from a service (Administrative privileges) in C# by using a custom DLL written in c++ that basically modifies the security and privileges to reduce it.
This is because the new process when run through Ring 0 of Windows 7 does not allow it to access the hardware encoder in OpenCL (Windows ... | 2 | 1,250 |
React-native boolean=true only for concerned array and false for others, Flatlist | <p>I am trying to make sure that on press not all <code>this.state.users.expended=true</code> and only the one i've clicked on, the problem is that i am using flatlist and it is changing the state of all expanded in all array elements I've tried using loops, conditional statement and wrapping the array in another state... | 2 | 4,485 |
Camel route move files from local folder to sftp folder using multiple threads | <p>So I am moving the files from a local folder to an sftp location. The files potentially could also be in order of 500,000.
I have seda for writer process where multiple writers are writing the files, but moving the files have become bottleneck. Following is my camel route currently :</p>
<pre><code>from(props.spli... | 2 | 1,841 |
How to import local typescript module? | <p>I am building a TypeScript module and I want to eventually publish to NPM but I first want to import it into another local host project to test. Both projects are in TypeScript.</p>
<p>The module successfully compiles with <code>tsc</code> and outputs what appears to be correct files into the <code>dist</code> direc... | 2 | 2,016 |
bootsrap carousel is not working with angular 7 | <p>I am using bootstrap multi carousel, It is working fine when I am not using loop. But I am trying to make it dynamic using ngFor loop It's not working properly. It sliding with single Images <a href="https://i.stack.imgur.com/cdqEr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cdqEr.png" alt="en... | 2 | 4,052 |
Python - error: [Errno 111] Connection refused and error: [Errno 98] Address already in use | <p>I'm in the process of learning how to use threads and socket connections.
I've found literature and examples online on how threads and socket connections work. Now I'm trying to merge the two together to create a simple send/receive application. So here is what I put together as an example: </p>
<p>main.py,</p>
... | 2 | 3,624 |
Unzip password protected archive and read the containing SPSS file into R | <p>I have a password protected zip archive containing one SPSS system data file (*.sav). And I want to unpack it and read its content into R. From what I googled, <code>Hmisc::getZip</code> seems to be the best bet. And I've tried some different approaches.</p>
<p>First try was to just run the function, hoping that it... | 2 | 1,767 |
Launching an intent without context | <p>What is the best way to deal with the following situation:
I have a IntentService which does synchronisation with the server (this is triggered by either an Activity coming to the foreground, or a GCM message, so onoy occasional). Sometimes there is a user action needed as a result, and the given command/request is ... | 2 | 2,047 |
ng-model not updating with on-screen keyboard on Chrome OS | <p>A ChromeOS device puts up a virtual keyboard when you select in an input.</p>
<p>Inside my angular component I have an <code>input</code> control bound to a property:</p>
<pre><code><input type="text" ng-model="$ctrl.searchText" />
</code></pre>
<p>I want this to work via a touch screen.
If I click in the c... | 2 | 1,747 |
setting up passport local strategy with postgresSQL | <p>I'm having issues setting up passport authentication with my server. I've used passportjs before but with mongodb. I'm currently trying to setup my local strategy with postgressql but have had no luck. When going to a login POST route with passport.authenticate(), I'm not getting a cookie sent back to me. I'm not su... | 2 | 1,249 |
Play framework 2.3 ActionBuilder composition issue | <p>I really like play framework 2.3's ActionBuilder and the andThen method that allows you to dynamically compose actions.</p>
<p>Here's a snippet of how I want to use action composition:</p>
<pre><code>def showHomepage = RedirectingAction andThen
AuthenticatedAction andThen NotificationAction async { request =&g... | 2 | 1,110 |
Star-rating with css | <p>so I have these radio buttons that form a star-rating component in reactjs, when I hover over the stars they paint in yellow but when I click in one of them and hover out of the stars the color doesn't stay and the gray color come back in all of them. </p>
<p>Here is the js file:</p>
<pre><code> render(){
r... | 2 | 1,051 |
Paged List in MVC | <p>To perform paging I have followed this method
<a href="http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-application" rel="nofollow">http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-pagin... | 2 | 1,111 |
How do you use query parameters to limit retrieved contacts in the Google Contacts API | <p>I'm trying to test out the Google Contacts API with JavaScript. I know that V1 had support for JavaScript but V2 and V3 don't list it. However, I have been able to find a way to retrieve contacts through an AJAX request so getting the contacts isn't really the problem right now. However, I'd like to be able to sp... | 2 | 1,190 |
How to use <chrono> in order to see how much time a function took to execute | <p>I have to compare the time differentiation between bubble sort, selection sort, linear search, and binary search functions. I have already completed all of my functions, but every time I display execution time, it displays a 0. Anyway around this, or do I have to change something about my formatting... My time displ... | 2 | 1,471 |
Is it possible to use ASP.NET MembershipProvider/RoleProvider in self-hosted WCF services? | <p>I am trying to use custom ASP.NET MembershipProvider and RoleProvider to handle security for my service. The service is self-hosted in a console app, not in IIS.
I use webHttpBinding with Basic Authentication. I configured serviceCredentials and serviceAuthorization to use providers. Providers really get initialize... | 2 | 1,296 |
Link to other panel once i clicked the button | <p>now i have 3 Java files which are .
i have 2 buttons on TrainAndCOnductor. my purpose is , when i click on 1st button it will open my The Conductor panel. </p>
<pre><code>public class JavaApplication1 {
public static void main(String[] args) {
TheConductor form = new TheConductor();
form.setVis... | 2 | 1,147 |
How to manage large a dataset for regression? | <p>my question has to do with a very large dataset I'm running a regression on in Python. I have categorical data (gender, industry, region, salary groupings, etc.) that I would like to run a regression on with statsmodels. The whole dataframe comes out to be about 83 columns in width after using pd.getdummies() on rou... | 2 | 1,193 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.