title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
android phonegap geolocation emulator | <p>I try to get get coordinates using geolocation on android emulator on phonegap platform. but it seems to not work. The code should be right, I add permission in manifest, use the highacuracy tag, how can I address this problem? Thanks !</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title... | 1 | 1,093 |
How do I extract e-mail attachments from raw e-mail without IMAP functions? | <p>The title pretty much says it all, but I'll try to flesh the issue a bit. </p>
<p>A PHP application of mine needs to read e-mails from a socket (this was a requirement) and then use some of those e-mails (having an api token) as articles in the application (it's a cms).</p>
<p>I've been able to get the reading par... | 1 | 1,595 |
formGroupName must be used with a parent formGroup directive | <p>[EDIT] : that's why because i used formGroupName on form tag and it has to be on a div tag.
There is an other problem with formArrayName, no errors but the checkbox associated didn't appears.
I did this and now its says can't access controls of undefined..</p>
<pre><code>get operatingRangesFormArray(): FormArray { ... | 1 | 8,370 |
Unexpected token Provider | <p>I'm trynig to create an isomorphic react application,
Below are some of my files, Inside my server.js when I try to use <code><Provider></code>, I get an error saying Unexpected token.</p>
<p>I assume this is because I'm trying to use jsx inside my server.js, But, I'm not sure on this. </p>
<p>Inside my ind... | 1 | 2,509 |
Entity Framework Core model with abstract class | <p>I have a question</p>
<p>I make a Code First Database In <code>ASP .NET Core 2.1</code> and <code>Entity Framework 2.1.1</code>. For now, im in a planning step and i have one question. I want to have a list of instance of abstract worker's class with method, that will work difrently. My code:</p>
<p>I have a <code... | 1 | 1,132 |
Create textView right to left layout | <p>I want set TextView direction right to left.<br>
I want that show unicode character right to left and align to right. I set my text view
layout_gravity and gravity right but isn't work<br></p>
<pre><code><RelativeLayout
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_m... | 1 | 1,900 |
failed to open stream: Connection timed out error - Themoviedb | <p>I need some help with the movie db api. I constantly get a connection timed out error. Below is my code, I'm trying to just output the raw json respone so I can work my way from there.</p>
<pre><code>$header_opt = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept: application/json\r\n" .
... | 1 | 2,136 |
How can i get selected day, month, year and hours,minute from React Native datepicker every time i pick it? | <pre><code>import DatePicker from 'react-native-datepicker';
export default class App extends Component {
static navigationOptions= ({navigation}) =>({
header: null
});
constructor(props) {
super(props);
this.state = {
date: '',
time: '',
};
}
componentWillMount() {
... | 1 | 1,024 |
Linked list shows only first node element on printing | <p>I am trying to create a linked list in order to enhance my concepts of pointers and address. I have to create linked list in following way:</p>
<p>(1) Read all the nodes together at once at terminal.</p>
<p>(2) Then show the final linked list so formed at last. </p>
<p>How i try to do so ?
I am reading first the ... | 1 | 1,039 |
How to create a separate view model for a contentview in Xamarin forms having prism? | <p>Problem Statement
I want to create a contentview user control having its own view model that can be used in multiple content pages. </p>
<p>Issue in below implementation
I have extended my App.xaml.cs as mentioned below. But once the navigation works from the contentpage having contentview user control but if I nav... | 1 | 2,104 |
ORA-06550 line 10, column 41: PLS-00103: Encountered the symbol "," when expecting one of the following: | <p>I am executing an anonymous PL/SQL block from C# but I am getting an error like below: </p>
<blockquote>
<p>ORA-06550 line 10, column 41: PLS-00103: Encountered the symbol ","
when expecting one of the following:</p>
</blockquote>
<p>My code:</p>
<pre><code>OracleDB AppConn = new OracleDB();
OracleDataRead... | 1 | 1,051 |
MySQL calling a procedure with select statements from a trigger - "Not allowed to return a result set from a trigger" | <p>Here's one for the SQL wizards. Similar questions have been asked before and I have some idea what the problem is but I'm having trouble rewriting the select statements inside my procedure to avoid returning a result set, and returning the global vars my trigger wants. </p>
<p>For a bit of background, what I'm try... | 1 | 1,726 |
Reading and Writing a file from SD card | <p>I have bought a book ("Beginning Android Games") by Mario Zechner. On page 149, he talks about saving and opening a file on External Storage. I understand the code, however I dont understand WHY it says this:</p>
<p><img src="https://i.stack.imgur.com/oM7yS.png" alt="Screenshot of error"></p>
<p>Why does it say th... | 1 | 1,838 |
asp.net mvc jqgrid submit grid using a button outside of the grid | <p>I'm new to jqgrid and MVC. My Jqgrid is in multi select mode, and I want to submit all selected items on the grid to the controller by clicking on a button (tbrSave) outside of the grid.</p>
<pre><code>@using (Html.BeginForm("Save", "Home"))
</code></pre>
<p>{
</p>
<pre><code><button type="s... | 1 | 1,874 |
RubyOnRails 2.2 + Jquery UI Sortable & AJAX: This is how I did it. Is there a better way? | <p>In a Rails 2.2 project, I'm having users put together a list of projects into a portfolio object (i.e.: <code>PortfolioHasManyProjects</code>). On the page is a Rails form for regular text, titles etc., as well as 2 sortable lists; the lists are used for dragging projects from the global-project-list into your portf... | 1 | 2,210 |
ErrorException - Array to String Conversion [Laravel] | <p>For some reason I'm getting the Array to String Conversion when processing a Request through the controller. </p>
<p>My script creates multiple entries in the database, and I can't seem to figure out where my errors are.</p>
<pre><code>public function storeMappool(MappoolFormRequest $request)
{
$this->valid... | 1 | 2,231 |
d3.js - How to do data mapping and filter for Stacked Bar graph | <p>I am implementing a Stacked Bar graph in d3.js. It is for populations of various categories (category of people) in city over the years . Although I have achieved a bit of outcome with the help of some references but I haven't got the exact result I wanted.</p>
<p>I guess I am facing some problems in data mapping a... | 1 | 2,637 |
Fragment menu's not changing | <p>i'm trying to figure out why the menu is not changing in the actionbar when switching between fragments in my main activity. I've tried some of the suggestions about setHasOptionsMenu(true) and menu.clear and no luck... I just don't get it.</p>
<p>ConsoleActivity.class</p>
<pre><code>@Override
protected void onCre... | 1 | 2,084 |
AIO not found while compiling nginx | <p>I am trying to compile nginx on ubuntu and I am using the following config parameters:</p>
<pre><code>./configure \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--lock-path=/var/lock/nginx.lock \
-... | 1 | 1,691 |
TabLayout with ViewPager leading to app crash | <p>I want to make a GUI for android app where I have TabLayout for separate fragments. Uptil now my MainActivity.java and activity_main.xml look like this:</p>
<p><strong>MainActivity.java:</strong></p>
<pre><code>package com.example.cortana.testing.activity;
import android.support.design.widget.TabLayout;
import an... | 1 | 6,811 |
How to upload multiple file under 1 http request | <p>Using HTML5 chunking, I could do file upload with smaller piece. But the problem starts when it started using multiple http POST request which will cause the computer slowing down, or probably crash. Is there anyway to have the splitted file under one http request.. so if I have 5 files it would be only 5 http reque... | 1 | 2,598 |
'glib.h' file not found on Max OSX 10.9 | <p>I'm trying to compile <a href="https://github.com/djcb/mu/tree/master/toys/msg2pdf" rel="nofollow">msg2pdf</a> which is a tool to convert messages in mu4e (mu for Emacs) to pdf.
I'm receiving the following error :</p>
<pre><code>/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in .
... | 1 | 1,268 |
Maven Surefire test fails after upgrade to JDK 1.8 | <p>Getting the following exceptions during all test runs after upgrading from JDK 1.7 to JDK 1.8. All the test cases are running fine with Eclipse JUnit launcher, but fails when run with Maven surfire. We are using the latest stable version for Maven surefire and Maven compiler.</p>
<pre><code>java.lang.IllegalArgumen... | 1 | 4,535 |
jQuery Accordion header with jQuery UI icon button (hide/show + hover/click) | <p>What i need: a jQuery UI framework button like the one that can be found here: <a href="http://jqueryui.com/themeroller/" rel="noreferrer">http://jqueryui.com/themeroller/</a> (look at Framework Icons) in a jQuery accordion header.</p>
<p>Live Sample: <a href="http://www.nikollr3.three.axc.nl/" rel="noreferrer">htt... | 1 | 2,518 |
Jquery append - Opening and closing a tag | <p>I have a jquery block like this. After the html is rendered i see that the <code><article></code> tag opens and closes immediately, same way, <code><div class=bar></code> opens and closes immediately. Am i doing anything wrong in his piece of code. Any better way to implement this one?</p>
<p>Thanks</p>... | 1 | 1,113 |
ios mapkit closing annotation callouts by tapping the map | <p>I've got a mapkit app that places annotations on the map, when you press them, it shows the callout with the title attribute.</p>
<p>This works fine, but the user cannot close them. They stay open until they tap another annotation. Can't I make it that the user can tap elsehwere on the map (or tap the annotation ag... | 1 | 1,041 |
Flutter Firestore NoSuchMethodError | <p>I'm developing app with flutter and trying to get data from firestore by using streambuilder method like so.</p>
<pre><code>body: new StreamBuilder<DocumentSnapshot>(
stream: Firestore.instance.collection('user').document(uid).collection('userInfo').document(uid).snapshots(),
builder: (BuildContext co... | 1 | 2,975 |
How to filter contours by bounding rect size using OpenCV and C++? | <p>I try to detect license plate from image using OpenCV and C++. I can find the contours of license plate. But I want to drop only license plate. I have a idea to filter contours by bounding rect size. </p>
<p>Here is my code:</p>
<pre><code>#include <opencv\cv.h>
#include <opencv\highgui.h>
#include &l... | 1 | 1,279 |
How to install a private npm github package during sls deploy | <p>My CI/CD serverless deploy is failing because its not able to install a private npm package.</p>
<blockquote>
<p>Error --------------------------------------------------</p>
<p>npm install failed with code 1
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOE... | 1 | 1,371 |
NSJSONSerialization results in EXC_BAD_ACCESS | <p>Currently I am writing an app (Target iOS 6, ARC enabled) that uses JSON for data transmission and Core Data for persistent storage. The JSON data is generated out of a MySQL database by a PHP script via json_encode.</p>
<p>My Problem is that with data from certain tables the following code fails:</p>
<pre><code>-... | 1 | 1,296 |
Debug with F5 fails on VSCode saying "Unable to establish a connection to GDB" | <p>When I press F5 key to run a C++ program on Visual Studio Code, I get the message</p>
<p><code>"Unable to start debugging. Unable to establish a connection to GDB. Debug output may contain more information."</code></p>
<p>I use <code>g++.exe</code> and MinGW for compiling.
Until an hour ago, the debugging ... | 1 | 2,976 |
Query "SELECT * FROM .... WHERE ..." in PHP with POST request | <p>I'm trying to send a user's id from my android app and then get their information in the SQLite database on the server by using $_POST method request. Following some tutorials, I found that mysqli_query() will return an Object for the successful SELECT query. So I get the user information to read a JsonObject using ... | 1 | 1,203 |
How do I go from Pandas DataFrame to Tensorflow BatchDataset for NLP? | <p>I'm honestly trying to figure out how to convert a dataset (format: pandas <code>DataFrame</code> or numpy array) to a form that a simple text-classification tensorflow model can train on for sentiment analysis. The dataset I'm using is similar to IMDB (containing both text and labels (positive or negative)). Every ... | 1 | 2,379 |
Go gRPC on Docker on Cloud Run "transport: Error while dialing dial tcp : i/o timeout"" | <p>I have a gRPC server</p>
<pre><code>
type Server struct {
name string
host string
port string
dbUser string
dbPassword string
dbURL string
dbParameters string
}
func main() {
/*Start of config*/
server := Server{
"User service&... | 1 | 1,718 |
Python to Draw a Filled "Circle" on a Grid | <p>Can you provide an efficient algorithm for drawing a circle(ish) shape in a grid of arbitrary position and radius?</p>
<pre><code>. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . o O o . . . . . . . . . . . . . . . . . . . .
. . . . O O O O O . . . . . . . . . . . . . . . . . . .
. . . o O O O O O ... | 1 | 1,651 |
Flask+requests API ConnectionRefusedError: [Errno 111] Connection refused | <p>I'm trying to run a simple Flask API, but it's not working as expected. I'm not very experienced in Python, so found the error and solve it have been very challenging. I would appreciate a lot if someone could help.</p>
<p>The system's settings are:</p>
<ul>
<li>Ubuntu 18.04</li>
<li>Conda environement with python... | 1 | 2,805 |
Binding CheckBox Command | <p>I have a checkbox for each row in the listview. I want to bind the Checkbox OnClick to my command in the view model. But its not binding to my Command. What should I do? Below is my xaml and Viewmodel </p>
<p>Xaml:</p>
<pre><code><Grid>
<ListView Name="lstdemo" ItemsSource="{Binding obcollection}"... | 1 | 1,508 |
How to submit clone of jQuery form with current data? | <p>I need to dynamically create and submit HTML form. </p>
<p>I join many forms into one AJAX request so I clone them and send by jQuery. Code in the link shows the not working part. The problem is that jQuery is sending original HTML code instead of generated/user changes code.</p>
<p>What do I wrong?
<a href="http:... | 1 | 1,528 |
Counting items from a .txt file and displaying results - C# | <p>I'm sure I'm making this much harder than it really is, but my brain hurts....</p>
<p>I have a program that reads a list of baseball teams from a .txt file (called Teams) and displays them into a listbox. I have another .txt file (called WorldSeries) that displays, in order, which teams have won the World Series. T... | 1 | 1,549 |
The controller must return a response (null given). Did you forget to add a return statement somewhere in your controller? please | <pre><code>**DefaultController.php**
</code></pre>
<p>This is my DefaultController.php file i am going to simple login page in symfony
i want to display hello with name which i mentioned in controller, plese guide me i am new in symfony.</p>
<pre class="lang-php prettyprint-override"><code><?php
namespace AppBundle... | 1 | 2,554 |
How can i save manytomany field in django? | <p>models.py:</p>
<pre><code>class Tag(models.Model):
name = models.CharField(max_length=100)
description = models.CharField(max_length=500, null=True, blank=True)
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now_add=True)
class Post(models.Model):
user = ... | 1 | 1,036 |
C# Text file and regular expressions | <p>I seem to be having a problem with the following file:</p>
<pre><code>*User Type 0: Database Administrator
Users of this Type:
Database Administrator DBA Can Authorise:Y Administrator:Y
DM3 Admin Account DM3 Can Authorise:Y... | 1 | 2,911 |
"You seem to not be depending on "@angular/core" and/or "rxjs". This is an error. " when deploying MEAN-app to Heroku | <p>I want to deploy my MEAN-stack application using Heroku. I have followed <a href="https://www.youtube.com/watch?v=pDYhwfi7VU0" rel="nofollow noreferrer">this tutorial series</a> mostly to build my app. But when I start deployment by pushing to GIT, it gives me this error during the build process:</p>
<pre><code>mean... | 1 | 1,908 |
Apache Tiles CannotRenderExcption | <p>I am trying to add Tiles to my web application however I am getting a CannotRenderException when I run my application</p>
<blockquote>
<p>Request processing failed; nested exception is
org.apache.tiles.request.render.CannotRenderException:
ServletException including path
'/WEB-INF/tiles/templates/baseLayout... | 1 | 4,104 |
SoundManager2 on iPhone - Sound not playing on jQuery Load | <p>I'm trying to use SoundManager2 as part of an iPhone Web App to play a sound after a form has been submitted using jQuery. The particular sound that is played is dependant on the result, and so the resulting page sets a variable that identifies which sound file to play.</p>
<p>This all works without a hitch on the ... | 1 | 1,200 |
Android: ListView click event not working using SimpleAdapter | <p>In my app i am trying to set TextView as Strikethrough while clicking on list item. But Listview clik item is not working.</p>
<p>Here is the code:</p>
<pre><code> listView = ( ListView ) findViewById(R.id.listview);
SimpleAdapter adapter = new SimpleAdapter( this, aList, R.layout.add_list_detail,
... | 1 | 1,372 |
CascadeType.ALL does not update child element | <p>I'm trying to add a new Employee-entity via my REST-api to the database. The Employee-entity contains a City property. This is a ManyToOne relationship. When I insert a new employee with a NEW (not existing) city it works fine. However, when I add a new employee with an existing city I get this error.</p>
<pre><cod... | 1 | 1,500 |
ANTLR4 Lexer getTokens() returning 0 tokens | <p>I'm running code from here: <a href="https://github.com/bkiers/antlr4-csv-demo" rel="noreferrer">https://github.com/bkiers/antlr4-csv-demo</a>.
I want to view the tokens analyzed by the lexer by adding this line:</p>
<pre><code>System.out.println("Number of tokens: " + tokens.getTokens().size())
</code></pre>
<p>... | 1 | 1,093 |
Webpack gives eslint errors while using npm link | <p>I have a multi-package project set up, where I have one JavaScript package that relies on a TypeScript library. Initially I installed Sinopia and was reinstalling the library every time I made changes to it. Then I saw <code>npm link</code> and thought that it would be easier for development. Unfortunately, when I l... | 1 | 1,115 |
Strongly-Typed Model Not Posting from Partial View | <p>I have an MVC3 page comprised of the following components:</p>
<p><em><strong>ProfileController</em></strong> - Contains all of the actions and loads all of the views below</p>
<p><em><strong>/Profile/Index</em></strong> - This action method creates an instance of UserViewModel, which contains several properties a... | 1 | 3,519 |
Google Calendar API with React | <p>I'm trying to use Google Calendar API in a React and Firebase app. I'm authenticating to Google in my <code>App.js</code> component, while I attempt to access the Google Calendar API in my <code>Calendar.js</code> component.</p>
<p>Here's my <code>App.js</code>:</p>
<pre><code>import React from 'react'
import fire... | 1 | 2,045 |
SocketException: Connection closed by remote host when pushing to producation destination | <p>I need to send notifications to IOS devices and we are using Java as backend.
I am using <a href="https://github.com/notnoop/java-apns" rel="nofollow">notnoop/java-apns</a> library to push notifications to IOS devices.</p>
<p>I am getting a <strong>SocketException:Connection closed by remote host</strong> when I tr... | 1 | 1,569 |
Error with JSON data Android Illegal Argument HttpClient | <p>I'm having trouble with <code>JSON</code> transfer in Android. I receive the following error in <code>LogCat</code>.</p>
<pre><code>04-29 04:47:11.362: E/Trace(851): error opening trace file: No such file or directory (2)
04-29 04:47:12.243: I/System.out(851): 1
04-29 04:47:12.243: I/System.out(851): 2
04-29 04:47... | 1 | 2,078 |
Derby INSERT SELECT null pointer exception | <p>I'm writing a Java application that's working with Apache Derby via JDBC. I'm having problems with the code in the following snippet:</p>
<pre><code>byte md5[] = md5sum(file);
PreparedStatement s = con.prepareStatement("INSERT INTO input_files (job_ID, hash) SELECT job_id, ? FROM job WHERE job_name = ?");
s.setByt... | 1 | 3,936 |
Map to view on custom field name - one-to-one relationship | <p>I am unable to get NHibernate to map the <code>AccountCode</code> column of the <code>Beneficiary</code> table <code>AccountCode</code> column in this one-to-one relationship (each <code>Account</code> has a single <code>Beneficiary</code>, each <code>Beneficiary</code> has a single <code>Account</code>).</p>
<p>Cl... | 1 | 1,335 |
Jquery - Datepicker Calculating the days between two dates | <p>I am using jquery datepicker and trying to find the days between two dates. However, some dates are not selectable according to my database, so I have some unavailable dates. </p>
<p>What I would like to do is to check the selected date range if they are all available (otherwise give error with div) and then calcul... | 1 | 1,715 |
Searchbar with filter from JSON data with Ionic 3 | <p>I would like to have a search bar that filters the results based on the name of the book, I tried to do it but it does not work. When I'm looking for something, nothing happens, no mistake, so I'm wrong, but I do not know what, I'm new to typescript and I ask for help. Thanks in advance</p>
<p>this is my <code>page... | 1 | 1,129 |
JMeter load-testing : ClassNotFoundException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup | <p>I'm trying non-GUI and distributed JMeter load-testing.</p>
<p>Before I go distributed, I tested it locally. I installed JMeter on my laptop and setup a testplan targeting the system under test. I installed the plugin manager and install the concurrent thread plugin.
I found my JMX file to be correct and working, s... | 1 | 3,994 |
Create Zip File In Windows and Extract Zip File In Linux | <p>I had created a zip file (together with directory) under Windows as follow (Code are picked from <a href="http://www.exampledepot.com/egs/java.util.zip/CreateZip.html" rel="noreferrer">http://www.exampledepot.com/egs/java.util.zip/CreateZip.html</a>) :</p>
<pre><code>package sandbox;
import java.io.File;
import ja... | 1 | 2,914 |
How to create a Boggle Board from a list of Words? (reverse Boggle solver!) | <p>I am trying to solve the reverse <a href="http://en.wikipedia.org/wiki/Boggle" rel="nofollow">Boggle</a> problem. Simply put, given a list of words, come up with a 4x4 grid of letters in which as many words in the list can be found in sequences of adjacent letters (letters are adjacent both orthogonally and diagona... | 1 | 2,127 |
How to share a dynamic link in PHP? | <p>I have a generated link in PHP that takes the user's ID and places it at the end of a referral link to track who refers who using a referral system. Example of the link via php:</p>
<pre><code>http://example.com/index.php?page=act/reg&inv=$arrusr[0]
</code></pre>
<p>I'm trying to create a share button for fac... | 1 | 1,511 |
Starting a simple python thread on Django init | <p>I have just now started to work with django. On my development environment I use to the start the django server using:</p>
<pre><code>python manage.py runserver 0.0.0.0:8000
</code></pre>
<p>and my web application is working as expected still I have many errors with that too... But as of now I want to run a backgr... | 1 | 1,283 |
MultipartMemoryStream in Dot Net Core | <p>I have a .Net 4.5.2 App that I am moving to Dot Net Core. This app allows the user to upload a file with Metadata (Angular Client Side) and the Api will handle the request and process the file. Here is the existing code that does that.</p>
<p><strong>Api</strong></p>
<pre><code>[HttpPost]
[Route("AskQuestions")]
p... | 1 | 1,759 |
Angular select option dynamically in *ngFor | <p>That's the scenario:
I have a data array of objects that contains different types of objects. It could be a text, a select or whatever. In the view I have an *ngFor to loop this data and it generates an object depending on the type. I could have 2 or 3 select, it depends on the json that i receive.
These select, can... | 1 | 2,340 |
How to make responsive each area of an image map | <p>I have this image map and I am trying for the way to make each selected area responsive... because when changing the size of the screen, the image adapts correctly, but the areas do not adapt to the new size of the image. here you can see the selected area in blue.</p>
<p><strong>BLUE AREA IS SELECTED</strong>
<a h... | 1 | 1,424 |
How to add custom tab in left sidebar to my custom page in admin section in magento module? | <p>I am very new to <code>Magento</code>, just started Magento before 4 days but i am given the task to develop a <code>Magento extension</code>. So i am reading over the internet and creating it.</p>
<p>Now the problem i am having is i want to add a custom left sidebar tabs just like it is under <br><code>System->... | 1 | 5,018 |
Error(Mac OS): sudo pip install MySQl-python | <p>I have problem on command </p>
<pre><code>sudo pip install MySQl-python
</code></pre>
<p>All log:</p>
<pre><code> Downloading/unpacking MySQl-python
Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
Running setup.py (path:/private/tmp/pip_build_root/MySQl-python/setup.py) egg_info for package MySQ... | 1 | 1,322 |
How to show one message at a time in bootstrapvalidator | <p>I have added three validation message. when i am clicking on submit button, all three messages are displaying in the div.</p>
<p>Is there any way to show one message at a time(priority vice or which ever comes first.)</p>
<p>code:</p>
<pre><code><div class="col-md-6">
<input class="form-control" type... | 1 | 1,060 |
Is there a way to suppress "update-alternatives: warning: skip creation" warnings when building a Docker image? | <p>Building this <code>Dockerfile</code>:</p>
<pre><code>FROM ubuntu:19.10
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y locales apt-utils
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure locales && \
update-locale ... | 1 | 2,166 |
ngbdatepicker disable dates objects dynamically | <p>I am trying to disable only selected dates by the user. After multiple trials, I was able to do so, but it is disabling all the calendar. I want it to disable only the selected days.</p>
<p>Current materials on ng-bootstrap, only disable days as numbers, not objects:</p>
<p><a href="https://ng-bootstrap.github.io/... | 1 | 1,067 |
I keep getting "Failed to load resource" when I try to start an React app | <p>So I'm working on a React App using Webstorm for IDE. As far as I can tell everything seems to be configured properly, but somehow when I try to run the app it would throw an error "Failed to load resource: the server responded with a status of 404 (Not Found)".</p>
<p>Here is a sample of script in the index:</p>
... | 1 | 1,611 |
How to get and update data from the ngrx store into Observable variable? | <p>I got pretty simple feature module with store/reducers/etc created by @ngrx/schematics. In this feature module i got 2 components - form and items list which is empty by default and u can add items via form. When i add something via form action works, reducer get payload but items list in second component doesn't up... | 1 | 1,561 |
How to refactor chain of asynchronous calls in vertx to avoid the callback hell | <p>I have the following code with several asynchronous calls depending on each other (calls can be apis REST, for example) and in the end process all the results. This is my sample code:</p>
<pre><code>private void foo1(String uuid, Handler<AsyncResult<JsonObject>> aHandler) {
//call json api, for exam... | 1 | 2,345 |
vba excel inverse cubic spline interpolation | <p>I recently came across a problem with a dataset I have, since its "resolution" is way too small. The dataset is charaterized to have a maximum (0) which is not really its maximum, since all the numbers are normalized to the higher number found within its "resolution", which is basically the "1 by 1 unit" of the "X" ... | 1 | 1,196 |
HTML5 iPhone dynamic caching of images | <p>We are building web applications for the iPhone that work offline. But we are having difficulties caching dynamic images. Please read on and I'll show by example exactly what I mean and what we have done so far.</p>
<p>So for example let's say we are building a simple list application with just 1 page. The applicat... | 1 | 1,202 |
Problems with understanding a linked list implementation | <p><em>Update: Thanks a lot to everybody who responded!!! It made me feel that I'm not completely alone in my efforts to learn Java. Please excuse me, but I guess I didn't clarify enough what I don't get about linked lists and the exercise application -</em> </p>
<p><em>first - how can a class definition contain an o... | 1 | 1,694 |
Filter a lazy dataTable with dynamic columns | <p>I have a dataTable with dynamic Columns:</p>
<pre><code><p:dataTable id="bookings" var="booking" value="#{tableBean.dataModel}"
widgetVar="bookingTable" filteredValue="#{tableBean.filteredFields}"
paginator="true" rows="15"
lazy="true" rowsPerPageTemplate="15,30,50" type="none" draggableColumns="tru... | 1 | 1,276 |
Input Excel text into fields on HostExplorer mainframe emulator screen | <p>I'm working with the HostExplorer mainframe terminal emulator. My VBA knowledge is based on piecing together bits of information I've found online to make other macros. </p>
<p>I'm making a macro to enter an invoice into the mainframe, move between a few screens, input information which will generate a link then us... | 1 | 1,103 |
Close all goroutines when HTTP request is cancelled | <p><br />
I am making a web crawler. I'm passing the url through a crawler function and parsing it to get all the links in the anchor tag, then I am invoking same crawler function for all those urls using seperate goroutine for every url.
<br/>
But if if send a request and cancel it before I get the response, all the g... | 1 | 1,515 |
Android data binding problem: "Cause: couldn't make a guess for" | <p>i'm enabling data binding with adding </p>
<blockquote>
<p>dataBinding {
enabled = true
}</p>
</blockquote>
<p>and </p>
<blockquote>
<p>kapt 'com.android.databinding:compiler:3.1.4'</p>
</blockquote>
<p>in app level <code>build.gradle</code> file.</p>
<blockquote>
<p>apply plugin: 'kotlin-... | 1 | 1,665 |
The deployment environment 'Staging' in your bitbucket-pipelines.yml file occurs multiple times in the pipeline | <p>I'm trying to get Bitbucket Pipelines to work with multiple steps that define the deployment area. When I do, I get the error</p>
<blockquote>
<p>Configuration error The deployment environment 'Staging' in your
bitbucket-pipelines.yml file occurs multiple times in the pipeline.
Please refer to our documentation for ... | 1 | 1,626 |
CSS HTML dropdown menu not showing full text and text not aligned | <p>I have edited this post as it has partially solved my problem. However, i am faced with a new problem now and i do not wish to create a new question in case its deemed of spamming. currently, my add subject, drop subject, delete subject, manual crawl is not centralised even though i have specified it to be text-alig... | 1 | 1,265 |
how to run maven project in android ? or convert maven project to android project? | <p>i try to upload video to youtube by use this open source<br>
<a href="https://code.google.com/p/ytd-android/" rel="nofollow noreferrer">https://code.google.com/p/ytd-android/</a></p>
<p>the problem couse by maven tool ... i never use it , and dont know how to use it.</p>
<p><strong>there is way to transform maven... | 1 | 20,237 |
change barchart background color dynamically in highcart | <p>I am creating a bar-chart using the Highcharts plugin, where i want to change the background color of bar-chart dynamically not the color of bars. </p>
<p>Basically i have 2 different themes 1 is white and other is black. so if i select Black then the background color of bar chart should change to black and if sele... | 1 | 1,869 |
ASP.NET Core Options Pattern | <p>I'm trying to use the Options Pattern described <a href="https://docs.asp.net/en/latest/fundamentals/configuration.html#using-options-and-configuration-objects" rel="nofollow">here</a>, but I'm wanting to be able to get something more complex than just key/value pairs.</p>
<p>Ideally, I'd like to be able to copy my... | 1 | 1,294 |
Nsubstitute or moq an Async method so it will return a faulted task instead of exception | <p>In the below code for each request we are calling rest client in an Async manner. Rest client is basically a http client which is calling some webapis in a batch. If suppose AsyncTaskCount value is 5 then 5 request will be called asynchronously and then in the while block we are getting the result for each call. If ... | 1 | 2,160 |
How do I horizontally concatenate pandas dataframes in python | <p>I have tried several different ways to horizontally concatenate DataFrame objects from the Python Data Analysis Library (PANDAS), but my attempts have failed so far.</p>
<h1>Desired Output for Given Inputs:</h1>
<p>I have two dataframes:<br>
d_1:</p>
<pre><code> col2 col3
col1
str1 1 ... | 1 | 1,507 |
C - Undeclared variable at declaration | <p>I'm building a hash table in C.
Everything seems to work fine except this variable, <code>cur_item</code>, that report me an error at compilation.</p>
<p>Here is the code :</p>
<pre><code>void insert(hash_table* ht, const char* key, const char* value) {
const int load = ht->count * 100 / ht->... | 1 | 1,474 |
Appending to a file in C, reading to an array of struct | <p>The program asks user to input some records (structures) if necessary and appends them to the existing file or creates a new file if there isn't any, then lists the contents of the file.</p>
<pre><code>#include <stdio.h>
#include <string.h>
#define N 25
int main() {
struct studrec {
char name[20... | 1 | 1,381 |
How do I draw Bitmap on TextureView | <p>I'm trying to play video on android with <code>TextureView</code>. Regarding video everithing works well. But <code>MediaPlayer.prepare();</code> takes some time. So I would like to show some placeholder for that time. I'm trying to do it with Glide like this:</p>
<pre><code>public static final Rect rc = new Rect()... | 1 | 1,080 |
How to use jmeter to test an Oracle Stored Procedure with sys_refcursor return type? | <p>I want to test an Oracle Stored Procedure by using jmeter.I have done everything but parameters.</p>
<p>And here is my SQL Query:</p>
<blockquote>
<p>declare
outinfo varchar2(20);
outtable sys_refcursor;
begin
{call RK_JSCX(?,?)};
end;</p>
</blockquote>
<p>The outtable in Ora... | 1 | 1,238 |
ASP.NET MVC - Extending Ajax.ActionLink method | <p>Is there anywhere I can see the method definition of the current Ajax.ActionLink method as I'd like to be able to extend it with a custom method but not sure on its current method definition</p>
<p>EDIT: This is what I have so far:</p>
<pre><code>public static class AjaxExtensions
{
public static IHtml... | 1 | 1,281 |
Controller mapping are not logging at startup | <p><a href="https://i.stack.imgur.com/agqsU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/agqsU.png" alt="enter image description here"></a>I have a requirement to upgrade the existing code which runs on jdk 8 to jdk 11 After upgrading it the controller mappings are not showing up during startup.In this app... | 1 | 2,185 |
cucumber.runtime.CucumberException: Couldn't load plugin class: com.CustomHtmlFormatter | <p>I am new to cucumber parallel execution. I need to do the parallel execution of cucumber TestCases with cucumber plugin "cucumber-jvm-parallel-plugin".
When I run a pom.xml file It throws an error. Please let me know my mistake. </p>
<pre><code>[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapse... | 1 | 3,392 |
How to pip uninstall a package installed using a git project URL? | <p>I've tried following the installation instructions for the BlueJeans meetings REST API (<a href="https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python" rel="nofollow noreferrer">https://github.com/bluejeans/api-rest-meetings/tree/master/libs/python</a>), using the command</p>
<pre><code>pip install... | 1 | 1,240 |
Installing fog - unable to convert from ASCII-8BIT to UTF-8 | <p>I am needing to install fog to use SDK to interface with openstack and create a plugin. So far I'm failing at the first step.
I am looking for any advice on how I could debug these errors and any opinion on whether the install is okay with them still there. </p>
<pre><code>gem install fog
Fetching: builder-3.2.2.g... | 1 | 1,510 |
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AFHTTPRequestSerializer" | <p>I integrated the SDKTools via CocoaPods, with <code>use_frameworks!</code> and it is throwing me these errors:</p>
<p><code>Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in SKTDownloadObjectHelper.o
"_OBJC_CLASS_$_AFNetworkReachabilityM... | 1 | 1,030 |
WebGL try draw sphere | <p>I try to draw sphere using triangles and 2 buffers(gl.ARRAY_BUFFER and gl.ELEMENT_ARRAY_BUFFER), but something wrong.I see just empty display...I use some of this code <a href="http://learningwebgl.com/blog/?p=1253" rel="nofollow noreferrer">http://learningwebgl.com/blog/?p=1253</a> and this <a href="https://github.... | 1 | 1,491 |
OnConstruction() method of an Unreal Engine's Actor class is not correctly executed | <p>I'm writing an ALadder class by C++ inspired by a Alan Noon's tutorial <a href="https://www.youtube.com/watch?v=axuwbkDWI5U" rel="nofollow noreferrer">https://www.youtube.com/watch?v=axuwbkDWI5U</a>.
Currently the class is very simple:</p>
<p><strong>Ladder.h</strong> </p>
<pre><code>#pragma once
#include "GameFr... | 1 | 3,322 |
WSO2 ESB store and forward - Unexpected error during sending message out | <p>Having WSO2 5.0.0 trying to implement the store and forward pattern with a JDBC message store.</p>
<p>Sending a message to the target endpoint throws an exception:</p>
<pre><code>TID: [-1234] [] [2016-12-05 23:25:24,874] ERROR {org.apache.synapse.message.processor.impl.sampler.SamplingService} - Error occurred wh... | 1 | 1,133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.