title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Make a REST URL call to another service by filling the details from the form | <p>I have recently started working with Spring MVC framework. I made a lot of progress while reading lots of tutorial on the net.</p>
<p><strong>Background about my application-</strong></p>
<p>I have to make a REST URL call to another service (deployed already on tomcat) by using details provided in the form. So I h... | 0 | 2,331 |
Bootstrap 3 merge rows and columns | <p>I can't figure out what is the problem with my code. I'm very new in bootstrap my problem is kinda trivial. One of my field is out of position. I have tried a different route by making only one row and instead of increasing the div sizes I reduced them, but it had the exact same problem. (Run the code in full screen... | 0 | 1,078 |
Bootstrap 4 - Toggle button not working | <p>I'm trying to add <code>navbar</code> to my website, but when I add it toggle button doesn't work. </p>
<p>Here is my <code>navbar</code> code:</p>
<pre><code><nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggl... | 0 | 1,148 |
Wait for Data Before Rendering View in Angular 5 | <p>I am new to Angular 5 and was able to create view with access to service methods using subscribe but encounter problem in delay in render. The user see first "undefined" string and after 0.5 sec it change to the correct value.</p>
<p>Here is the .ts file for the component:</p>
<pre><code> public trips: Trip[];
p... | 0 | 1,305 |
phpmyadmin #2054 cannot log in to the mysql server | <p>I am a newbie in MySQL, Apache, PHP, and phpMyAdmin. The first server I built was on Windows Vista x32bit and it was successful. Then, I try to build the second server on another laptop, it is Windows 7 x64bit and it stucked in error code #2054. I use 'localhost' with a fixed IP address. I installed the server indiv... | 0 | 1,598 |
SAMLException: Response has invalid status code status message is null | <p>Im trying to implement spring-securtiy-saml integration as a SP with an adfs system, and im bumping my head for some days now with this exception happening when SAMLResponnse is sent back from the ADFS after successful authentication and the following exception is thrown. this is the DEBUG log:</p>
<pre><code>2017... | 0 | 10,368 |
Loading Highcharts via shim using RequireJS and maintaining jQuery dependency | <p>I'm attempting to load the Highcharts library using a shim in RequireJS. However, when Highcharts loads, it throws an exception because it can't access the jQuery methods it depends on.</p>
<p>The require config looks like so:</p>
<pre><code>require.config({
baseUrl: "js",
shim: {
'libs/highchar... | 0 | 1,712 |
VBA - Display each node and its value from XML | <p>I have a simple XML as below and I need to display name of each and every node and its value. No element would have any attribute.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<ResponseEnvelope xmlns="http://www.nwabcdfdfd.com/messagin" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:... | 0 | 3,027 |
Angular 2 Injected Service is undefined | <p>Why is my service (this.loggerService) undefined in my DataHandlerService when it has been injected? I thought dependency injection took care of this. My loggerService works in other services. Please help me realize where I am going wrong. My DataHandlerService code below:</p>
<pre><code>import { Injectable } f... | 0 | 2,064 |
How to build task 'gems:install' | <p>I am deploying my rails app to a linux server and i have some of the rake tasks missing inlcuding rake gems:install and rake db</p>
<p>I am running rails 2.3.4 from GEM.</p>
<p>Why is this?</p>
<p>How do I fix this? can I update somehow?</p>
<hr>
<p>they are missing from rake -T list</p>
<pre><code>rake apach... | 0 | 1,075 |
Run PHP script with HTML in same file | <p>I'm trying to create a simple PHP registration and login form.
Prior to adding styling and HTML to the register.php file, all worked as expected.
Now when Register is clicked, instead of saying thankyou for registering, nothing happens.</p>
<pre><code> <html>
<head>
<link rel="stylesheet" type="te... | 0 | 1,575 |
knockout viewmodel property undefined | <p>I have a simple foreach:</p>
<pre><code><div id="customersArea" data-bind="foreach: people">
<div class="section" data-bind="attr: { 'personid': PersonId }" >
<div class="sectionActions">
<div><a class="action" href="#" data-bind='click: $pa... | 0 | 1,106 |
BadPaddingException : Decryption error | <p>I'm writing a program which takes as input from the console - the name of a zip file, name of a zip file to be made containing the (de/en)crypted files generated from the first zip and a file containing the public key. I get the exception when decrypting:</p>
<pre><code>exception Exception in thread "main" javax.cr... | 0 | 4,277 |
Failure [INSTALL_FAILED_VERSION_DOWNGRADE] | <p>I recently took over a project which is using Appium to do some automated mobile testing. I have a few python scripts that are supposed to be ran with Appium however when attempting to run them I run into <strong>"[INSTALL_FAILED_VERSION_DOWNGRADE]"</strong>. After much research on the matter I have included that th... | 0 | 2,329 |
Using XJB with jaxb2-maven-plugin | <p>I have a multi-module maven project in the following structure:</p>
<pre><code>root-module
|__module-a
| |__src
| |__main
| |__xsd
| | |__my.xsd
| |__xjb
| |__my.xjb
|__module-b
</code></pre>
<p>The POM for root module si... | 0 | 1,899 |
Send/Receive text with buffer using sockets in Delphi | <p>So I have searched for a way to make this work but found no working solution. I am trying to send text that has been inserted in to a memo from the Client to the Server using sockets. Unfortunately I cannot get the coding working. It might be something stupid I'm doing wrong; but I don't know where the mistake is. I... | 0 | 1,318 |
Python garbage collection can be that slow? | <p>I have a problem with my python application, and I think it's related to the python garbage collection, even if I'm not sure...</p>
<p>The problem is that my application takes a lot of time to exit and to switch to one function to the next one.</p>
<p>In my application I handle very large dictionaries, containing ... | 0 | 2,675 |
How to use a single OAuth2.0 token for Multiple Virtual Users in a Gatling load test | <p>I need to load test an API that requires an OAuth2.0 token via Gatling (of which I'm a complete novice!) but would like each virtual user to use the same token. I'm retrieving the token ok (I think) and putting it in a variable called 'access' but I keep getting 'no attribute named 'access' is defined' when the test... | 1 | 1,028 |
VBA extract and parse data from website to Word | <p>I'm trying to extract some data from here: <a href="http://www.hnb.hr/tecajn/f140215.dat" rel="nofollow">http://www.hnb.hr/tecajn/f140215.dat</a></p>
<p>This is the exchange rate list from the Croatian National Bank. The file name "f140215.dat" is basically a date, formatted in the following order:</p>
<p>"f" "DDM... | 1 | 1,422 |
jQuery UI sortable('cancel') - this.helper is null | <p>I am trying to disable a sortable element from sorting when it has been double clicked. When I try to disable it, even without a condition, it gives me the error 'this.helper is null'.</p>
<pre><code>$('.roundedBox:first', division).sortable({
start: function( event, ui ) {
if( true === true ) {
... | 1 | 1,944 |
Adjacency Matrix java | <p>User enters a text file at command-line and my prog. will take the text, create an array with the number of rows (vertices) of the first number showed, then fill the 2d array with the remaining numbers. Finally it will display if <strong>#</strong> connects to <strong>#</strong> display <strong>T</strong>, else disp... | 1 | 1,313 |
Error on some urls only : java.net.ConnectException: Connection timed out: connect | <p>I would like to download ics files with a Java application, so that I simply tried the code at this page : <a href="http://hc.apache.org/httpclient-legacy/tutorial.html" rel="nofollow">http://hc.apache.org/httpclient-legacy/tutorial.html</a> (at the bottom). </p>
<p>All is right with many urls, but this one gaves m... | 1 | 1,900 |
Arrays showing vertically instead of horizontally | <p>I am sort of new to programming and I am working on a school assignments on arrays</p>
<p>I am suppose to write a program that stores statistics using arrays.</p>
<pre><code>import java.io.*;
public class HockeyLeague {
static final int Rows = 7;
static final int Cols = 8;
static double HockeyChart [][] = new doub... | 1 | 1,183 |
Data not being saved to Firebase from Android App | <p>I have an existing application that I am trying to convert to use Firebase Database. Here is some code that I am using when I try to save an Object:</p>
<pre><code>...
private FirebaseDatabase database;
private DatabaseReference waypointRef;
@Override
protected void onCreate(Bundle savedInstanceState) {
supe... | 1 | 1,280 |
MVC 4 Mocking HttpContext - how to mock DisplayModeProvider | <p>I was currently using <a href="http://www.hanselman.com/blog/ASPNETMVCSessionAtMix08TDDAndMvcMockHelpers.aspx" rel="noreferrer">Scott Hanselmans HTTP context mock</a> for unit testing. This worked well for MVC 3 and never looked back, I used it for testing calls for the following code.</p>
<pre><code>public class ... | 1 | 1,698 |
What is wrong with this class for getting connection from database pool | <p>I wrote a class to get connections from a database pool (<strong>HikariCP</strong>). I searched for error and it means that connection is closed. But, I am not able to figure out the problem. I am certain I did something wrong in the code, may be not closing the connection properly or whatever because after some tim... | 1 | 1,861 |
Java: Kafka AdminClient not establishing connection (or so it seems) | <p>everyone.
This is my first post here, so, please, pardon my finesse skill of writing stack overflow questions.</p>
<p>I am having trouble using AdminClient from org.apache.kafka.clients.admin.AdminClient.</p>
<p>The issue at hand is this:
I initiate a secure connection to our broker server (running kafka 1.0.0) ... | 1 | 1,124 |
VBA convert a binary image to a base64 encoded string for a webpage | <p>I am trying to read in a JPG file and convert the file to a base64 encoded string that can be used as an embedded jpeg on a web page. I found two functions on the web for base64 encoding/decoding in VBA that appear to be well-accepted. The encode/decode process yields my original binary string, so the functions ap... | 1 | 1,960 |
VueJS components ref is undefined at all stages | <p>I'm learning VueJS using it with a rails app and I'm having issues trying to access a component from a parent component. It's possible I'm doing this wrong but I can't figure out what the problem is.</p>
<p>I've tried to boil down my problem to a simple html example:</p>
<pre class="lang-html prettyprint-override">... | 1 | 1,779 |
How can I compare two arrays and list differences in PHP? | <p>I'm building a form to do the following:</p>
<ul>
<li>Print a table of users and permissions, pulling from MySQL. Each permission a user has is a checked box, and each one they lack is an unchecked box.</li>
<li>Allow an administrator to check and uncheck boxes to grant or remove permissions.</li>
<li>When the form ... | 1 | 1,052 |
How to change drop-down value dynamically | <p>I need you help as I am not good in jQuery. I have bellow code and want to do some changes.</p>
<p>If user Select <strong>One/Two(drop-down one)</strong> and <strong>HDB(drop-down second)</strong> then i want change this <strong>Boat Quay, Chinatown</strong> To <strong>Admiralty, Alexandra Road</strong> in third dr... | 1 | 2,326 |
Warning: include_once(../lib/Database.php): failed to open stream: No such file or directory | <blockquote>
<p>Warning: include_once(../lib/Database.php): failed to open stream: No
such file or directory in
C:\xampp\htdocs\project\e-commerce\classes\Adminlogin.php on line 4</p>
<p>Warning: include_once(): Failed opening '../lib/Database.php' for
inclusion (include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\pro... | 1 | 1,196 |
Arduino SD card reader creating files but not writing to them with Nokia GLCD | <p>I have been busy on this for a few days and I have come up empty at every turn.
a simple temp logging device is what Im trying to create.</p>
<p>I have a working code for creating and writing to files using the serial monitor this works great but the moment I bring it into contact with any other devices ( Im using ... | 1 | 1,465 |
Tornado RESTful PUT handler method not getting request arguments | <p>I'm trying to unit test my RESTful API. Here's my API: </p>
<pre><code>
class BaseHandler(tornado.web.RequestHandler):
def __init__(self, *args, **kwargs):
tornado.web.RequestHandler.__init__(self, *args, **kwargs)
self.log = self.application.log ... | 1 | 2,824 |
Show the Android Statusbar Notification in Particular date, | <p>Help me to resolve this.</p>
<p>Iam having Some Date in Local Database,
Every day I Want to Check Database Date and Current Date in particular time,If database date is matching with current date Show notification in Statusbar </p>
<p>I have added my code, </p>
<p>signin-->MyNotificationService-->Scheduleclient-->... | 1 | 6,517 |
Log4j how to configure Log level | <p>I run my war with jboss-as-maven-plugin version 7.3.Final (goal jboss-as:run) from Netbeans 7.2.1.</p>
<p>My pom.xml</p>
<pre><code><!-- logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<versi... | 1 | 1,362 |
RowLeave Event - Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function | <p>I have DataGridView Control in windows application.<br>
I load data and bind it to grid using above code.</p>
<pre><code> private void LoadData()
{
clsData objData = new clsData();
DataTable dtTemp = new System.Data.DataTable();
dtTemp = objData.GetDatatable(" SELE... | 1 | 2,019 |
spring Bean creation exception Error creating bean with name | <p>Hello all i am new to Spring please solve my problem i am getting bean creation exception here is my code(i created these in dynamic web project) i am trying to do a simple Springmvc project.</p>
<p>file name: login.Jsp </p>
<pre><code><form action="login.do" method="post">
username<input type="text" nam... | 1 | 7,426 |
Linking the libraries for Dcmtk based c++ program? | <p>I'm trying to understand how to program based on Dcmtk libraries. I'm pretty new and naive in C++ programming(I have learned the basics of C++ and understand them) so it might just be an easy question for you guys. I have found this following code, I understand what it is doing, but I'm unable to link all the librar... | 1 | 7,544 |
C++: "Undefined symbols for architecture x86_64" error when "std" is used | <p>I'm a new C++ programmer, and I'm trying to run a simple, <10 line program as a system test. My operating system is OSX 10.9.5, and my gcc version is 4.2.1.</p>
<p>I've created a file "test.cpp" which I'm compiling on the command line with gcc. The command is "gcc test.cpp -o test". I then run "./test". (Yes, th... | 1 | 2,767 |
Exception when adding interceptor | <p>Hello I have this following exception :</p>
<pre><code>ERROR 13 May 2013 15:20:17,471 http-9090-1 org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.ws.soap.server.endp... | 1 | 3,284 |
Easy SQL Syntax NOT LIKE with AND operators seem to be ignored | <p>Thank you so much for helping! Nothing I seem to do works here. What I want to do is remove rows with a certain value in a certain column. Like so:</p>
<pre><code>Where SegStart_Date between getdate()-90 and getdate()-1
And q.Center not like 'Collections Center'
And q.Center not like 'Cable Store'
And q... | 1 | 3,418 |
Laravel eloquent retrieve user role in multi select | <p>Hi I am using Laravel and I am using a couple of packages for user auth and roles which are <a href="https://github.com/Zizaco/confide" rel="nofollow">Zizaco Confide</a> and <a href="https://github.com/Zizaco/entrust" rel="nofollow">Zizaco Entrust</a>. I have run through the setup process and I have roles and permis... | 1 | 2,069 |
How to change active tab on button click in angularjs? | <p>I'm working on an angularjs based page.and I'm using tabset feature of bootstrap for a page.I could have used tabs() jquery function for horizontal tabs but I'm using vertical tabset for my page.its an outlook styled page.</p>
<pre><code><div class="white-bg animated fadeIn">
<div class="row s-t-xs">
... | 1 | 1,141 |
A scroll view can have only one child Android XML file | <p>So, I want to have a scrollview on my layout. I did this and got <code>a scroll view can only have one child</code> :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match... | 1 | 4,423 |
This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement() | <p>When running my GWT/Errai app I get this error message:</p>
<blockquote>
<p>00:00:00.000 [ERROR] Unable to load module entry point class
org.jboss.errai.ioc.client.Container (see associated exception for
details) java.lang.RuntimeException: critical error in IOC container
bootstrap at
org.jboss.errai.... | 1 | 1,079 |
HttpPostedFile.SaveAs() throws UnauthorizedAccessException even though the file is saved? | <p>I have an aspx page with multiple <code>FileUpload</code> controls and one Upload button. In the click handler I save the files like this:</p>
<pre><code>string path = "...";
for (int i = 0; i < Request.Files.Count - 1; i++)
{
HttpPostedFile file = Request.Files[i];
string fileName = Path.GetFileName(fil... | 1 | 1,119 |
Python: Issue reading data lines multiple times from a file | <p>I am trying to make a Python2.6 script on a Win32 that will read all the text files stored in a directory and print only the lines containing actual data. A sample file -</p>
<pre><code>Set : 1
Date: 10212009
12 34 56
25 67 90
End Set
+++++++++
Set: 2
Date: 10222009
34 56 89
25 67 89
End Set
</code></pre>
... | 1 | 1,370 |
Errors when trying to integrate Wordpress on my existing website | <p>I followed this guide from Wordpress Codex: <a href="http://codex.wordpress.org/Integrating_WordPress_with_Your_Website" rel="nofollow">Integrating Wordpress with Your Website</a>
but I'm getting the following errors:</p>
<pre><code>Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::s... | 1 | 1,612 |
Sequelize: Cannot set a new unique constraint message | <p>I am trying to setup a validation message for unique constraint violation for the fields <code>username</code> and <code>email</code>. However, whenever an already taken username is entered, it shows the message defined for the <code>email</code> property, but shows the input for the <code>username</code> property a... | 1 | 1,485 |
an exception is thrown while sending email in java | <p>I am a beginner in Java and I want to send an email in Java. For that I am using this code to send the email, but this code is throwing an exception. I have verified my username and password and they are absolutely fine, so please, tell if there is any other way to send email in Java?</p>
<p>This is stack trace of ... | 1 | 1,562 |
Update database field SQL in C# | <p>I have tried many things, with no result. My question is, as the title says, how do I update a field in a database using SQL? Since I am a beginner with coding and SQL, I will copy my whole code below, not knowing what information you may need:</p>
<pre><code>using System;
using System.Collections.Generic;
using Sy... | 1 | 1,641 |
Encrypt Decrypt in C# Decrypt is not working | <p>I had a java code and I had to transform it in C# which is as below</p>
<p>Encryption:</p>
<pre><code> public String encrypt(String value)
{
System.Text.UTF8Encoding UTF8 = new System.Text.UTF8Encoding();
AesManaged tdes = new AesManaged();
tdes.Key = UTF8.GetBytes(securityKey);
... | 1 | 1,326 |
ElasticSearch nodes after network break cannot see other nodes | <p>We are currently doing failover tests on our ElasticSearch setup. So here is the setup we use:</p>
<p>We have 4 ElasticSearch machines running. Let's name them ES1, ES2, ES3 and ES4.
We have some indexes on them with 5 shards each and 1 replica so 10 shards by indexes. Everything is well distributed on each nodes s... | 1 | 6,891 |
ASP.net MVC4 Multiselect ListBox with Many-to-Many relationship | <p>I'm new to ASP.net, MVC4 and EF and having trouble making the leap from relatively simple samples to something (only slightly) more complex. I have simplified my model for the question here so consider the following. Forgive me if I have some of the terminology incorrect.</p>
<p>I have an Employee object and a Di... | 1 | 1,413 |
eCharts xAxis bug when zooming with datazoom | <p>I’m struggling to find a way to fix this bug. I’m displaying a chart with 2 Yaxis and a datazoom. Works fine most of the time:</p>
<p><a href="https://i.stack.imgur.com/5HmFA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5HmFA.png" alt="Chart with 2 Yaxis and datazoom"></a></p>
<p>If I unselec... | 1 | 3,182 |
Format EditorFor() field as Currency during View and while Editing? | <p>I have an <code>EditorFor()</code> on my View for a field <code>[cost]</code>: </p>
<pre><code><div class="form-group">
@*@Html.LabelFor(model => model.cost, htmlAttributes: new { @class = "control-label col-md-2" })*@
<span class="control-label col-md-2">Cost:</span>
&l... | 1 | 2,675 |
How to connect celery to rabbitMQ using SSL | <p>I'm trying to connect celery with a rabbitMQ broker using SSL certificates.</p>
<p>This is the code:</p>
<pre><code>from celery import Celery
import ssl
broker_uri = 'amqp://user:pwd@server:5672/vhost'
certs_conf = {
"ca_certs": "/certs/serverca/cacert.pem",
"certfile": "/certs/client/rabbit-cert.pem",
... | 1 | 1,516 |
Obtain values from array in one class from another class | <p>I have this code in a class and want to ideally copy the values in the <code>adjclose</code> array list to another class for further process while preserving the original data. <p>I am able to see that the arraylist is populated with the values with the <code>println</code> statement prior to the <code>return</code... | 1 | 2,020 |
C# - Changing color of checkmark in checkbox | <p>I have a C# application with a tick checkmark when user select the checkbox. The default color is black and not set by anyone. I would like to know the best approach to use to change the color of the checkmark, say to red instead of black.</p>
<p>I can't seem to find which part of the code is responsible for the co... | 1 | 2,431 |
snowflake Python Connection KeyError: 'snowflake-connector-python | <p>I have installed snowflake sqlachemy package. and successfully developed the script to upload a csv file to snowflake.</p>
<p>But when I upload the script to aws glue and supply the wheel file, I encountered <code>KeyError: 'snowflake-connector-python</code>.</p>
<p>Any idea?</p>
<p>here is the full error message:</... | 1 | 3,155 |
CollapsingToolBarLayout with TabLayout and ViewPager | <p><a href="https://i.stack.imgur.com/0XkZK.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/0XkZK.jpg" alt="Layout example from app"></a></p>
<p>Am try to create a layout similar to the one in the image using a CordinatorLayout and CollapsingToolbarLayout, TabLayout and ViewPager.
My Layout doesn't render pr... | 1 | 1,788 |
Schema with xsd:any - XmlReader validation error | <p>I have problem with types in my schema when trying to use xsd:any element
During validation i've got validation exception: The 'MerchantAccount' element is not declared. </p>
<p>The idea is to have ability to specify any properties and values within ExtendedProperties element.
Please advice what am i doing wrong.</... | 1 | 1,104 |
Deploying dbexpress Delphi application | <p>I'm trying to deploy an oracle application to another machine that uses the dbxora.dll file from dbexpress. I have included the file with the program but when i run the program and try to execute a query, it returns with an error that it could not load the dbxora.dll.</p>
<p>I have the following all in a folder tog... | 1 | 4,830 |
Connecting to MySQL From Eclipse (CDT) | <p>I tried to connect to MySQL database by C++ in Eclipse with all the recommendations that are on the internet, but none of them are fully helpful. I am using Eclipse with MinGW to connect to MySQL.
I have added the:</p>
<pre><code>C:\Program Files\boost
C:\Program Files\MySQL\MySQL Connector C++ 1.1.3\include
C:\Pr... | 1 | 1,064 |
syntax error, unexpected tIDENTIFIER, expecting keyword_end conversations controller | <p>I have the mailboxes gem installed and I am configuring it. I have been trying to set it up, however when I visit /conversations I get a SyntaxError <code>unexpected tIDENTIFIER, expecting keyword_end</code></p>
<p>I can't seem to see where I went wrong as there are modifications to the original code.</p>
<pre><co... | 1 | 1,093 |
Unable to create new service: ChromeDriverService | <p>I have globally installed Selenium Standalone:</p>
<pre><code>npm install selenium-standalone -g
selenium-standalone install --singleDriverInstall=chrome
</code></pre>
<p>I have also bastardised the <a href="https://www.hanselman.com/blog/RealBrowserIntegrationTestingWithSeleniumStandaloneChromeAndASPNETCore21.asp... | 1 | 1,572 |
Healthcheck not working at all when using docker-compose (My service do not wait for Kafka to be started before launching) | <p>I have three services on my docker-compose:</p>
<pre><code>version: '3.4'
setup-topics:
image: 'bitnami/kafka:2'
hostname: setup-topics
container_name: setup-topics
command: "bash -c 'echo Waiting for Kafka to be ready... && \
./opt/bitnami/kafka/bin/kafka-topics.sh ... | 1 | 1,959 |
Android Logcat Message "Could not find Class" | <p>i have downgraded the compile SDK from API 23 to API 22 now after downgrade i am receiving the following messages in logcat.</p>
<p>need you kind assistance to reduce errors.
i have updated this question with gradle app file as well</p>
<pre><code> 04-16 20:36:35.814 27855-27855/com.example.arsal.androtasbih E/... | 1 | 3,262 |
Craco build fails, taking aliased folder as external package | <p>I'm using craco and craco-alias to implement aliases for imports in my Create React App project.
Followed instructions in <a href="https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#installation" rel="nofollow noreferrer">https://github.com/gsoft-inc/craco/blob/master/packages/craco/README.md#in... | 1 | 1,044 |
How can I change the landing page after a success Laravel login? | <p>I am absolutly new in <strong>Laravel</strong> and I have the following problem. I am using <strong>Laravel 5.3</strong>.</p>
<p>When I perform the login from my login page it automatically land me on this <strong>home</strong> page:</p>
<pre><code>http://localhost:8000/home
</code></pre>
<p>My doubt is: how can ... | 1 | 2,144 |
Multiple chrome.runtime.onMessage-Listeners - disconnected port error | <p>I´m working on a chrome-extension which uses the indexedDB-Wrapper <a href="https://github.com/dfahlander/Dexie.js/wiki/Dexie" rel="noreferrer">Dexie</a>, several jQuery-Libraries and <a href="https://www.syncfusion.com/products/javascript" rel="noreferrer">syncfusions eGrid</a> to display and modify the database. I... | 1 | 2,102 |
Entity Framework object LINQ query Timeout issues | <p>I've attempted to modify my connection string to include an extended timeout and I've confirmed that on the sql server side the view that feeds my EF Object executes within seconds and returns a total of 3000 or less records.</p>
<p>BUT when I attempt to run it via code I am now running into Timeout issues and I wa... | 1 | 1,316 |
JQuery autocomplete error : Cannot read property 'label' of undefined | <p>With reference to <a href="https://stackoverflow.com/questions/49527724/query-auto-completion-in-c-sharp-bot-in-bot-framework/">AutoComplete in Bot Framework</a> , I had implemented GET method of search URL.</p>
<p>Below is my code:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title></t... | 1 | 3,069 |
Async method in query syntax | <p>I learn with asp.net identity, async/await, and I have this problem:</p>
<p>I have some function for <code>IEnumerable<T> list</code>. This list I fill using query syntax and looks like this:</p>
<pre><code>private IEnumerable<SomeModel> GetPersons(int categoryId) {
IEnumerable<SomeModel> persons... | 1 | 1,893 |
How to active a tab when a pagination links is clicked in that tab? | <p>When user accesses "<a href="http://proj.test/user/profile?user=1" rel="nofollow noreferrer">http://proj.test/user/profile?user=1</a>" he goes to a page like below that has 3 tabs, one for the user to edit his acccount, other (My Tickets) for the user to access information about his registrations in congresses and o... | 1 | 6,742 |
How reliable is Android camera2 CameraCharacteristics API for sensor size? | <p>I'm trying to get/compute the FOV for devices's cameras using <code>camera2</code> API my code at the bottom).</p>
<p>On my attempt on a Galaxy S7 :</p>
<ul>
<li>the given sensor size is 3.2mm x 2.4mm (using <code>SENSOR_INFO_PHYSICAL_SIZE</code>).</li>
<li>In this case, my computed HFOV is 41.7° (focal length giv... | 1 | 1,030 |
OSGI expose An "ClassNotFoundException: org.w3c.dom.***" Error when release | <p>I only wrote the following codes in Activator.start() function </p>
<pre><code> public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
Node node = new Node() {
@Override
public Object setUserData(String arg0, Object arg1, UserDataHandler arg... | 1 | 2,871 |
Getting error in node js "secret should be set" and in react "npm ERR! code ELIFECYCLE" | <p>I am doing one project in Mern Stack. I am fairly new to backend development and mern stack is my first encounter. Everything was going fine , i tried to use stripe js and it worked fine but I didn't want it in my project. So I decided to replace my entire folder with my previous codes before stripe js.
Now the pro... | 1 | 4,451 |
(C code) how would I pass my global variables between functions and return them when the main function needs them also? | <p>(C code) how would I pass my global variables between functions and return them when the main function needs them also? I've posted my code below for reference. Of course, I also have a header file with my function prototypes in it as well but they only list variable types inside the closed brackets, not the varia... | 1 | 3,185 |
CSS styling JPlayer elements that are created by jQuery | <p>I'm styling an instance of JPlayer (HTML5 audio/video player) and have run into a weird little snafu. I'm calling an element out by it's ID to set some attributes (width, height, background) but am not seeing the correct result. I'm definitely missing something! Instead of seeing the appropriate 100x100px thumbnail ... | 1 | 3,967 |
Routing within react throws "No duplicate props allowed " | <p>All my routing is done within my app.js. However within my routes I receive multiple errors for the same thing.I am not passing props through this section of my application so I am unsure why I receive this.</p>
<p>The error I receive </p>
<pre><code>
[1] ./src/App.js
[1] Line 70:36: No duplicate props allowe... | 1 | 1,820 |
Nested fragments getchildfragmentmanager causing crash | <p>I have viewPager which contains fragments each of these fragment has viewpager to display Images and banners</p>
<p>now to each fragment Image adapter I am passing getChildFragmentManager() as below</p>
<pre><code>CarouselAdapter carouselAdapter = new CarouselAdapter(getChildFragmentManager());
</code></pre>
<p>... | 1 | 3,889 |
Symfony: Authenticate users against LDAP server, but allow login only if their username is in custom db table | <p>First a short explanation of my task. I'm using Symfony 2.8 and have an application with REST API and SonataAdminBundle. Visitors of the website can post certain data over the REST API that is persisted to the database. A certain group of employees should manage those data through the admin area.</p>
<p>The access ... | 1 | 2,739 |
Sparse matrix-matrix multiplication in CUDA using cuSPARSE | <p>I'm benchmarking the sparse matrix-matrix multiplication on Nvidia K40 using <code>cuSPARSE</code> library.
I'm creating my own sparse matrix in <code>CSR</code> format and I'm using the <code>cusparseXcsrgemmNnz</code> routine of the <code>cuSPARSE</code> library.
However, as I increase the data size, an error occu... | 1 | 4,357 |
Django django.test Client post request | <p>Working on hellowebapp.com</p>
<p>Please help test valid form post using Django test client post request?</p>
<pre><code>response = self.client.post('/accounts/create_thing/', { 'name': dummy_thing.name, 'description': dummy_thing.description, })
</code></pre>
<p>Here's the TestCase Code Snippet:</p>
<pre><code>... | 1 | 8,072 |
Merge Json Objects in python? | <p>I have two json objects. Both may have common keys, Some present only in first object, while some present only in second.
When I come these two objects the structure of objects should not change. Only a new level of keys will be added such as the specifying for which object that value belongs to. Even the structure ... | 1 | 1,101 |
Force "zoom out" when viewing HTML tables on small screen | <p>At the moment, viewing this table on a small screen will produce a horizontal scroll bar. Instead, how do I force it to display full-wdith and "zoomed out" on small screens?</p>
<p>I'm trying to achieve what is happening on the right hand picture here: <a href="https://css-tricks.com/wp-content/uploads/2011/04/doub... | 1 | 1,131 |
How to insert data in TableLayout from .java file? | <p>I've a <code>TableLayout</code> in my android application. I'm new to <code>TableLayout's</code> so I dont know how to insert the data in all the rows from my .java file.<br>
This is my xml file containing the <code>TableLayout</code>:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout
x... | 1 | 2,160 |
Geojson/ turf : merge multiple polygons to one polygon keeping hole | <p>So I want to merge adjacent polygons in javascript this is what I actually have with my code:</p>
<p><a href="https://i.stack.imgur.com/rnwwX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rnwwX.png" alt="map" /></a></p>
<p>I want to remove inside stroke but keep border stroke.</p>
<p>So I want t... | 1 | 1,081 |
Why does installing boto3 break my installation of awscli? | <p>I am trying to install boto3 so I can use it in my python script that I want to run on an EC2 instance running Ubuntu 14.04. Anyway I install boto3 it breaks my installation of awscli on the non root user. I install awscli using apt get with <code>sudo apt-get install awscli</code>. After I install it, it works on b... | 1 | 1,669 |
Scraping data from TripAdvisor using R | <p>I want to create a crawler that will scrape some data from Trip Advisor. Ideally, it will
<strong>(a)</strong> identify the links to all locations to crawl,
<strong>(b)</strong> collect links to all attractions in each location and
<strong>(c)</strong> will collect the destination names, dates and ratings for all... | 1 | 1,468 |
SQL Server: How to use dense_rank on one column, based on order by another column | <p>I have got a table in SQL Server 2008 where I need alternating values for one column, say column <code>alt</code>. Duplicates in that column always need the same value, hence I was thinking about using the <code>dense_rank</code> function for this column <code>alt</code> via % 2.</p>
<p>But there are also zip codes... | 1 | 1,905 |
How to handle which child process gets a socket.io socket handle | <p>I am using Socket.io and clustering. What I need to do is be able to make multiple child processes and send specific [socket.io] sockets to each one as I see fit. Currently (see code below) when I attempt to send the [socket.io] socket as a handle I get an exception.</p>
<p>My code below doesn't have it (as I am tr... | 1 | 1,168 |
The jrxml file compilation failed due to built-in missing in ant | <p>The ant script throws error when compiling the <code>.jrxml</code> to <code>.jasper</code> file, only for the files which are using the <em>JasperReports</em> built-in functions. Please help me to resolve this issue.</p>
<p>The <em>JasperReports</em> version is 5.5.2. I've updated the <code>jasperreports_extension.... | 1 | 1,793 |
Apache mod_wsgi error: file not found (when the file exists) | <p>So I'm just trying to display a simple page on my Apache server. </p>
<p>I have a wsgi file: /var/www/html/wsgi/myapp.wsgi</p>
<p>and my /etc/apache2/sites-available/000-default.conf file looks like this: </p>
<pre><code><VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html... | 1 | 1,030 |
Clojure Performance For Expensive Algorithms | <p>I have implemented an algorithm to calculate the longest <em>contiguous</em> common subsequence (not to be confused with longest common subsequence, though not important for this questions). I need to squeeze maximum performance from this because I'll be calling it a lot. I have implemented the same algorithm in Clo... | 1 | 1,597 |
Where to put constants in a class: standards and best practice | <p>While coding some custom stream reader for a script result where quite a lot of constants were present in the class (mainly for expected tags and keywords), I was wondering if there was any kind of standards, conventions or best practice for where to put constants (read here <code>static final</code> fields) inside ... | 1 | 1,029 |
gdb error: Couldn't find method (null)what | <pre><code> ?58 pinNodes.push_back(node); ?
?59 } ... | 1 | 2,817 |
Apply-templates with different modes | <p>I want to process nodes with apply-templates but use different modes to match the right template-rules for all the nodes within the sequence.</p>
<p>XML:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<story>
<p class="h1">
<content>heading</content>
<br/... | 1 | 1,319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.