title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
getting Failed to load map. Error contacting Google servers | <p>I read all the post concering this issue and yet I wasnt able to solve it on my mechine.
I allways get:</p>
<pre><code>06-23 20:04:30.011: E/Google Maps Android API(6623): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
</code></pre... | 1 | 1,261 |
Problems with upgrading pip in Homebrew Python 2.7 installation | <p>I've got Python 2.7.9 installed using Homebrew on my Mac, and Homebrew also installs pip. There's also an older, unused version of Python that was installed by default on my Mac.</p>
<p>The problem is that when I try to upgrade pip (using <code>pip install --upgrade pip</code>), pip seems to want to upgrade the ver... | 1 | 1,805 |
Angular 2 "No provider for String!" | <p>I'm trying to create a generalized data service in Angular 2, and I'm encountering a strange error. Essentially, I'm creating an HTTP service whose methods take in part of the api url so that I can use it for multiple cases. For example, I would like to pass in 'projects/' and join it with 'api/' to get 'api/project... | 1 | 1,210 |
DataTables warning: table id=example - Invalid JSON response. I have no response from server | <p>I am trying to make <a href="https://datatables.net/examples/server_side/simple.html" rel="nofollow noreferrer">DataTables.js (Server-side Processing)</a> working for my custom CMS, unfortunately the default server-side script isn't returning any result.</p>
<p><a href="https://i.stack.imgur.com/QuEYJ.png" rel="nof... | 1 | 1,890 |
xwiki java.lang.OutOfMemoryError: PermGen space | <p>I just downloaded and setup <a href="http://www.xwiki.org/xwiki/bin/view/Main/WebHome" rel="nofollow">xwiki</a> on my local machine using the war file. I'm running it through tomcat 6 using hsql. I have it up and running but everytime i use it and get to the 5 or 6th page of whatever i'm doing, I get the error <code... | 1 | 5,954 |
Complex data-driven web application in Java - Decision on technologies | <p>Dear Stack Overflow Community,</p>
<p>I am a Java programmer in front of a task of building a complex, data-driven, web application (SaaS) and I'm searching for technologies to use. I have already made some decisions and I believe I'm proficient enough to build the appliaction using just the technologies I have dec... | 1 | 1,323 |
google api redirect_uri_mismatch error | <p>I am trying to get google plus authentication working for a web app, but continually get redirect_uri_mismatch errors. I have checked and re-checked that I have matching redirect urls in the code and in the google dev settings.</p>
<p>I have flagged the location that things are breaking at -> ** CRASHES HERE</p>
... | 1 | 1,348 |
Stylize WooCommerce checkout fields | <p>I've been customizing a theme for WooCommerce and encountered a dead end. I want to stylize checkout fields for them to be in two columns, right now it looks like this (one column only):</p>
<p><a href="https://i.stack.imgur.com/NEjrc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NEjrc.png" alt... | 1 | 8,262 |
JQuery Caroufredsel not working, displays all images | <p>I just installed caroufredsel and its not working. What I am expecting to happen is, 1 images appears, I click next or previous the next or previous image would appear. The code below just has all my images display in a list. I do understand what I am doing wrong as my code seems correct?</p>
<p>Here is my JQuery:<... | 1 | 1,289 |
Why do I get "Invalid Parameter binding" when using Oracle stored procedure with Udt and C# | <p>I'm trying to call a simple stored procedure on Oracle DB which takes a Udt (User defined type) as it's input and produces a simple varchar2 output. </p>
<p>However there is obviously something wrong in my code as I keep on getting following error:</p>
<pre><code>Invalid parameter binding
at Oracle.DataAccess.C... | 1 | 2,484 |
Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in C | <p>I am unable to receive confirmation emails because of the error. Here is my PhpMailer error on the line.</p>
<p>Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in C:\xampp\htdocs\Web\PHPMailer\PHPMailer.php:1703 Stack trace: #0 C:\xampp\htdocs\Web\PHPMailer\PHPMailer.php(1515): PHPMaile... | 1 | 1,077 |
Check excel file contents before import | <p>I am using VS2005 C# ASP.NET and SQL Server 2005.</p>
<p>I have a function which import Excel data. I have met a situation when the data inside is inappropriate, it will bring down the SQL Server DB.</p>
<p>E.g. SELECT [Username], [Password] from [userlist$] -> If an excel spreadsheet contains more than [Username]... | 1 | 1,298 |
What UIScrollview delegate method that will called after programmatic-generated scroll finishes | <p>i need some help, i really need to know what UIScrollView delegate method that will called after i do some programmatic-generated scroll. From <a href="https://stackoverflow.com/questions/1969256/uiscroll-view-delegate-not-calling-scrollviewdidendscrollinganimation">this</a> link, i know that I have to try to implem... | 1 | 1,207 |
Could not find artifact in jitpack.io, almost all dependencies in pom broken | <p>I cannot seem to resolve dependencies in my POM. This project was working for me earlier this morning and is currently working on another machine, but somehow now my project is so borked that all my dependencies are broken, all my imports and most of my classes are just red underlines. I want to go back to where I'm... | 1 | 7,476 |
First random number after setSeed in Java always similar | <p>To give some context, I have been writing a basic Perlin noise implementation in Java, and when it came to implementing seeding, I had encountered a bug that I couldn't explain.</p>
<p>In order to generate the same random weight vectors each time for the same seed no matter which set of coordinates' noise level is ... | 1 | 1,171 |
error: expected ', ' or ' ;' before 'namespace' | <p>I'm very new to C++ and I have no clue why but whenever I try to run my program I get the following error:</p>
<pre><code>error: expected ', ' or ' ;' before 'namespace'
</code></pre>
<p>I'm pretty sure the <code>using namespace std;</code> line in the below file is causing the problem but I'm not sure how to fix ... | 1 | 1,714 |
Error in websocketpp library and boost in windows Visual Studio 2015 | <p>I'm trying to compile this simple example <a href="https://github.com/zaphoyd/websocketpp/blob/master/examples/echo_server/echo_server.cpp" rel="nofollow noreferrer">https://github.com/zaphoyd/websocketpp/blob/master/examples/echo_server/echo_server.cpp</a> from the developer github, but I'm getting strange errors o... | 1 | 1,879 |
Webpack file-loader not loading images, 404 error | <p>I am developing a SpringBoot/React project that also uses webpack. I am simply trying to render an image that is stored locally in the project. I have tried using npm's file-loader endlessly, but to no avail. Whenever I run the application, I get a 404 error with the image I am trying to load. </p>
<p>I have also t... | 1 | 1,174 |
Socket.io node server using high cpu | <p>My socket server below works fine for 3-4 days, but after dat I get notifications from Munin that it's outside specified CPU range (160). Sounds to me like memory isn't free:d correctly, but I can't find where?</p>
<pre><code>var io = require('socket.io').listen(80);
var Memcached = require('memcached');
var md5 = ... | 1 | 1,316 |
RichFaces rich:panelMenu stops working when a4j:include'd | <p>From <a href="https://stackoverflow.com/questions/2335058/richfaces-richpanelmenu-from-rf-demo-causes-error">this previously asked question</a>, I have noticed that when I move a <code>rich:panelMenu</code> (which works fine when in an <code>index.jsp</code> page) into <code>another.jsp</code> and then include that ... | 1 | 3,317 |
NodeJS crash: Mongoose findById() does NOT throw error when document is NOT found | <p>I tried researching for the cause of this problem; it is most likely a misunderstanding on my part of the way Mongoose works. I was experimenting with creating a CRUD backend in REST style. GET, PUT, POST all seem to work. However, I'm a bit at a loss with a problem with the DELETE verb. </p>
<h2>The problem</h2>
... | 1 | 1,052 |
Ardent + Laravel, auto hydrate relation | <p>I use lavarel with ardent package.</p>
<p>I have some problem when i want to update a row.</p>
<p>I have 2 model Client and Address related by morphone relation.</p>
<p>This relation work well, when i want to get a client this line return expected result :</p>
<pre><code>Client::with('address')->find($id);
</... | 1 | 1,347 |
Spark Java: java.util.ConcurrentModificationException while broadcasting object of type GenericObjectPool | <p>I am working on a spark-streaming project in <strong>java</strong>. I am trying to send some messages from spark to apache <strong>kafka</strong> using kafka-producer java api. Since creating instance of KafkaProducer for each element would be very expensive, I am trying to use a pool of producer using apache common... | 1 | 2,488 |
Not able to get SOAP response after calling external webservice from java | <p>I have a requrement of calling an external webservice from java where I will where I will create the SOAP request and pass to the webservice and will get the SOAP response back ... I went through the following url :- <a href="http://www.concretepage.com/webservices/java-saaj-web-service-example" rel="nofollow">http:... | 1 | 2,605 |
"UserWarning: Possibly corrupt EXIF data" while classifying images | <p>Below is my code for multi image classification. I am getting an error; I think it is because of loading and other for mismatching in dimension somewhere.</p>
<p>The error message starts where the code ends. Can anybody see the problem?</p>
<pre><code>#importing necessary packages
import numpy as np
import matplot... | 1 | 5,654 |
Checking user role on login using CakePHP? | <p>I want to create an admin panel for my site, for this I've created <code>admin.ctp</code>. In DB table name user contain column <code>role</code>, where role=admin/regular(user).</p>
<p>There is only one login form, and the question is, Is it possible to place a 'check' that if <code>user.role=admin</code> then red... | 1 | 1,044 |
Understanding `option long_options[]` when using `getopt_long` | <p>I am trying to learn to use <code>getopt_long</code>. From <a href="https://en.wikipedia.org/wiki/Getopt#Example_2_.28using_GNU_extension_getopt_long.29" rel="nofollow noreferrer">wikipedia</a>, I see the code</p>
<pre><code>#include <stdio.h> /* for printf */
#include <stdlib.h> /* for exit */
#i... | 1 | 1,783 |
How do I make a radio button selected by reading the value from my database? | <p>I have a form with some radio buttons, a textfield and a textarea which I insert into my database. Now I have an option to edit the the whole thing. When I click on a button edit I get the form again and the values in the textfield and textarea are the same I inserted into the database. Now I have no idea how I get ... | 1 | 1,071 |
4 Column maximum per row Angular Material 2 FlexLayout | <p>I have a problem with Angular Material 2 and flexLayout, I didn't understand something : how to start a new row after 4 columns ?</p>
<p>I would like something like this :</p>
<p><a href="https://i.stack.imgur.com/VWxTz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VWxTz.png" alt="enter image ... | 1 | 3,065 |
Hide Banner Space when there there are no Ads Android | <p>I recently changed from Admob SDK to GPS Lib and there is 1 thing bothering me.
I have a simple View to define line in my Layout to prevent users from clicking on ads unintentionally. With Admob SDK that line would drop to the bottom of layout when there are no ads, but with GPS Lib, that View remains where it is.
... | 1 | 1,920 |
Using CSS to style data table to remove borders and change data cell height? | <p>I have a vuetify data table that i am trying to custom style to remove borders and change the height of the to 40 px but it doesn't seem to be working. Here is a sample <a href="https://codepen.io/treehuggerrick/pen/KKKRLMg" rel="nofollow noreferrer">codepen</a>.</p>
<p><div class="snippet" data-lang="js" data-hid... | 1 | 1,725 |
What toolchain do I need to cross-compile Clang for iOS | <p>OK, so first of all I know that this can be compiled on iOS (armv7) because I read the documentation. However, I can't find the right toolchain.</p>
<p>So, now, what toolchains I've already tried:</p>
<pre><code>i686-apple-darwin10-cpp-4.2.1
i686-apple-darwin10-g++-4.2.1
i686-apple-darwin10-gcc-4.2.1
</code></pre>... | 1 | 1,046 |
How To Implement Shared Behavior Between Classes (Without Multiple Inheritance Of Course) in C# | <p>UPDATE:
So pretty much everyone here has told me that I just need to start all over again on how I designed my classes (thank you folks for your excellent answers by the way!). Taking the hint, I started doing extensive reading on the <a href="http://www.dofactory.com/Patterns/PatternStrategy.aspx" rel="nofollow no... | 1 | 1,161 |
Remove insets in JavaFX TitledPane with CSS not working | <p>Based on a solution of James_D (<a href="https://stackoverflow.com/questions/23065096/how-to-set-remove-insets-in-javafx-titledpane">How to set/remove insets in JavaFX TitledPane</a>) that I've tried, it seems that removing insets from a JavaFX TitledPane through CSS does not work? It does update correctly in Scene ... | 1 | 1,727 |
Dockerfile with entrypoint for executing bash script | <p>I downloaded docker files from official repository (version 2.3), and now I want to build the image and upload some local data (<code>test.json</code>) into the container. It is not enough just to run <code>COPY test.json /usr/share/elasticsearch/data/</code>, because in this case the indexing of data is not done.</... | 1 | 1,545 |
Pass this.state not working ReactJS | <p>I have a table that gets data and dynamically displays it,</p>
<p>Passing the "example" the table shows the data without problems,
but when i try to pass </p>
<p>< ResponseTable data={this.state.sprints} , </p>
<p>which is also contains the same structure as example ( Array of objects )
it doesn't work</p>
<p... | 1 | 1,372 |
TypeError: bad operand type for unary -: 'type' | <p>Good day!</p>
<p>I am using google app engine with python code and a problem occurred</p>
<p>the helloworld.py file:</p>
<pre><code>import os
import urllib
import jinja2
import webapp2
import datetime
from google.appengine.api import users
from google.appengine.ext import ndb
JINJA_ENVIRONMENT = jinja2.Environ... | 1 | 1,151 |
Access-Control-Allow-Origin not working with Backbone json requests, Nginx settings "wide-open", headers look fine | <p>Hello I need to make json requests from Backbone to an API (I have control over server-side)..
I keep getting the Access-Control-Allow-Origin, although response headers looks fine.</p>
<p>Here are Nginx settings: </p>
<pre><code>location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Contro... | 1 | 2,394 |
Display tinymce textarea dynamically | <p>I have a drop down list that when a selection is made will insert a bunch of elements within a form to the DOM using ajax, within this form I have textareas that I wish to be TinyMCE textareas. </p>
<p>I have this inside of my HTML head:</p>
<pre><code><script type="text/javascript">
tinymce.init({
... | 1 | 1,082 |
HEX to bit[ ] array (also known as bool[ ]) | <p>I'm kindda new to c# and i was looking for some ideas on 2 thing. I have looked far and wide for answers but haven't found an answer to my exact problem.</p>
<ol>
<li><p>I have a byte array (called BA) within a for loop which keeps over-writting itself and there is no way for my to be able print it as a whole array... | 1 | 1,362 |
Flip / Rotate text upside down, in both X and Y | <p>Id like to easy flip a text upside down, like this page is doing: <a href="http://papertiger.com/" rel="nofollow">http://papertiger.com/</a></p>
<p>I want to do this as easy as possible, using</p>
<pre><code>-webkit-transition: 0s;
-webkit-transform rotateX(180deg)
</code></pre>
<p>This is my code:
HTML:</p>
<pr... | 1 | 1,032 |
JavaFX TableColumn with ObservableList as value | <p>In my <code>TableView</code>, one of the <code>TableColumn</code> values is an <code>ObservableList</code>. To simplify things, it only contains <code>StringProperty</code> values. In my cell value factory for the column, I am concatenating the values together using the <code>Bindings</code> class.</p>
<p>The resul... | 1 | 2,226 |
CopyArtifacts(...) giving error when used within job-dsl-plugin in Jenkins | <p>I tried using the CopyArtifacts() as well as writing a custom configure block for copying artifacts from upstream build. I get the errors in both as shown below - </p>
<pre><code>FATAL: No signature of method: javaposse.jobdsl.dsl.Job.CopyArtifacts() is applicable for argument types: (java.lang.String, java.lang.St... | 1 | 1,187 |
How to dispatch an action from reducer react-redux | <p>I use an event listener in one of my reducers and I need to trigger an action according to the incoming 'type'. I can listen the events i can see the payloads but i cant dispatch another action. The only thing i need to do is dispatch an action. How can I do that ? I cant dispatch from reducer. Im using redux-thunk.... | 1 | 1,224 |
Neo4j connection string | <p>I am using neo4j as graph database for my research thesis, i am facing hard time connecting neo4j2.3.1 with simple jdbc connection.</p>
<p>Here is a very simple code that i am using to connect to neo4j.</p>
<pre><code>import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java... | 1 | 1,441 |
HTTPS iframe shows as HTTP (mixed content) | <p>I've an iframe with a HTTPS URL which shows up as HTTP. I can't seem to figure out why it shows my HTTPS link as HTTP and therefore throwing a mixed content error. Thanks in advance.</p>
<pre><code><html>
<head>
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudF... | 1 | 1,497 |
Manipulating one video into multi outputs with FFmpeg results in no audio in the last output | <p>Using FFmpeg, I'm trying to do some filtering operations on one input video to scale it (out1), scale and trim it (out2).
This is the command I'm using:</p>
<pre><code>ffmpeg -y \
-i "Robotica_1080.mkv" \
-filter_complex "[0:v]split=2[v1][v2]; \
[v1]scale=640:360,setpts=PTS-STARTPTS[vout1]; \
[v2]trim=10:15,scale=6... | 1 | 4,889 |
Sqoop import --as-parquetfile from Oracle gets wrong file types | <p>I am using CDH 5.5 with Sqoop 1.4.6 and Hive 1.2.1 (which I manually downloaded to get the Parquet support for additional data types)</p>
<p>Here is the import command I'm using:</p>
<pre><code>sqoop import --connect jdbc:oracle:thin:@database:port:name --username username --password password --table SHARE_PROPERT... | 1 | 2,439 |
ActiveRecord::ConnectionNotEstablished for Rails3 mysql for rake db:migrate on EC2 | <p>On Amazon's EC2 using Ubuntu, when I execute <strong>rake db:migrate</strong> as:</p>
<pre><code>bundle exec rake db:migrate RAILS_ENV="production" --trace
</code></pre>
<p>I get the error <strong>ActiveRecord::ConnectionNotEstablished</strong> as shown below</p>
<pre><code> ** Invoke db:migrate (first_time)
** ... | 1 | 1,210 |
Tomcat Memory Leak Using Struts2 xwork | <pre><code>SEVERE: The web application [/ppAdmin] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@126212dd]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@64c47498]) but failed to remove it when the w... | 1 | 1,538 |
How to enable SASS Modules in Webpack 4 | <p>In my Node React web application written in TypeScript and TSX, I make use of CSS modules. Hence, when building the application I instruct Webpack to create a <code>style.css.d.ts</code> file out of a <code>style.css</code> so that I can access its classes like any other param by importing the CSS file into the Type... | 1 | 1,612 |
Bind JSON string to Gridview | <p>I am trying to take output from my JSON and add it to a Gridview. I have created a DataTable to store the data and I am trying to bind that to my Gridview. When I debug, I see each value being added to the DataTable. By the end, there are 10 rows. But nothing binds to the Gridview in the end. Let me know if I n... | 1 | 1,103 |
Performing multiple executions on Runtime exec | <p>I'm trying to do this simple unix ls in Android:</p>
<pre><code>cd /data
</code></pre>
<p>then</p>
<pre><code>ls
</code></pre>
<p>It should return all the content of /data folder.</p>
<p>I've this coded:</p>
<pre><code>try {
String line;
Process p = Runtime.getRuntime().exec(new String[] { "ls /d... | 1 | 1,161 |
Django template rendering speed | <p>i'm having a performance issue while rendering a django template with a prefetch queryset witch is not really large (~1000 objects in production environment / ~200 objects in developement environment) but has several level of nesting.</p>
<p>Here is the prefetch : </p>
<pre><code>stories = Story.objects.select_rel... | 1 | 1,399 |
Spring Boot 4 Not Rendering JSPs throwing 404 | <p>I have the following project structure</p>
<pre><code>-src
-main
-java
-com
-test
Application.java
-controllers
MyController.java
-webapp
-WEB-INF
-jsp
main.jsp
</code></pre>
<p>I want to do something similar to <a href="https://github... | 1 | 1,085 |
jquery.jqGrid.min.js is not working | <p>I have used 3.8.2 JQGrid file jquery.jqGrid.min.js which is only needed file with all the modules in it which will be selected from there side while downloading which is not working with one of the error = }).navGrid is not a function.</p>
<p>I than downloaded tonytomov-jqGrid-c3a2a2d folder from <a href="http://gi... | 1 | 2,141 |
Entity Framework Include OrderBy random generates duplicate data | <p>When I retrieve a list of items from a database including some children (via .Include), and order the randomly, EF gives me an unexpected result.. I creates/clones addition items..</p>
<p>To explain myself better, I've created a small and simple EF CodeFirst project to reproduce the problem.
First i shall give you ... | 1 | 2,618 |
CheckBox To Behave Like Toggle Switches | <p>I've an ASP.NET application where it has a list of products in a page with related details and with status column (Bit field - CheckBox). It works perfectly and I can change the status from true to false or vice-versa using Ajax. While doing so, I am keeping the state of the CheckBox means if it's true, then it rema... | 1 | 2,291 |
How to slide owl carousel slider and slick slider using the mouse wheel and MAC track pad with custom navigation? | <p>I am using OwlCarousel 2 for a slider (<a href="https://owlcarousel2.github.io/OwlCarousel2/" rel="nofollow noreferrer">https://owlcarousel2.github.io/OwlCarousel2/</a>). I have three sliders as of now. My issue is, I have created the custom navigation(It's displaying below of image) and I have to slide the image us... | 1 | 4,439 |
intellij idea : how to debug a java:fx maven project? | <p>I have a old javafx application that I have to run by doing <code>mvn javafx:run</code> but now I would like to debug it with intellij idea.</p>
<p>If I debug the configuration I use to run it, the debugger is connected but it doesn't stop at any breakpoint. </p>
<p>If I try to run a mvn command like <code>mvn -Dm... | 1 | 2,304 |
Exception on redirect to <error-page> configured (HTTP 500) | <p>I'm having problems when redirecting to error-page configured in web.xml (HTTP 500).
The following exception is being thrown</p>
<pre><code>java.lang.NullPointerException at java.lang.StringBuilder.<init>(StringBuilder.java:77)
at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.getRenderedVi... | 1 | 1,209 |
Error: ffmpeg exited with code 1: | <p>I am using the videoshow node package to create straightforward video slideshows based on images using <code>ffmpeg</code>, with additional features such as audio. I am following the documentation exactly but I get the following error: </p>
<blockquote>
<p>Error: ffmpeg exited with code 1:</p>
</blockquote>
<p>H... | 1 | 1,151 |
Pandas Error can only use .str accessor with string | <p>This is my code,</p>
<pre><code>import pandas as pd
import os
os.chdir('path\to\input\file')
xl_file = pd.ExcelFile('newcustomers.xlsx')
df = xl_file.parse('Customers Export 1', index_col='Domain', na_values=['NA'])
df = df[(df["Customer phone"].str.startswith("+1")) & (df["Customer phone"].str.len() == 13)]... | 1 | 1,188 |
Play - oracle 10g : PersistenceException: ERROR executing DML bindLog[] error[ORA-00001: Unique key constraint violation (PLAY.PK_COMPANY)\n | <p>I'm trying to use oracle 10g and ebeans for the "computer database" sample application of plesk. But when I try to insert a new computer on the database, I get this error :</p>
<pre><code>[PersistenceException: ERROR executing DML bindLog[] error[ORA-00001: Unique key constraint violation (PLAY.PK_COMPANY)\n ]]
</c... | 1 | 1,432 |
creating Ethernet frame in SOCK_RAW communication | <p>I did a simple <strong>ping</strong> program , in that i created a <strong>buffer</strong> and in that only i filled the <strong><code>IP frame</code></strong> and <strong><code>icmp stucture</code></strong> and when i run the program it's working correctly .</p>
<p>I have looked the execution in <strong>Wireshark<... | 1 | 1,914 |
Using webview and proxy with authentication | <p>I need to load some url in WebView that is unavailable in one country, so I tried to use a proxy with WebView. I've found one solution on SO (<a href="https://stackoverflow.com/a/18453384/7478869">https://stackoverflow.com/a/18453384/7478869</a>), and it works with proxy without authentication. But I need to set the... | 1 | 3,366 |
KendoUI Data source Template | <p>I write a template for my kendoUI DataSource like this:</p>
<pre><code><script id="SmallGalleryTemplate" type="text/x-kendo-template">
<div style="width: 30%; float:left; margin-left: 55px; margin-bottom: 5%; margin-right: 8%">
<h4 class="p2">#= Name =</h4>
... | 1 | 1,376 |
How to add .a libraries on flutter plugin via podspec | <p>I am trying to include <code>.a</code> files on the iOS side of the plugin. Below is my file structure.
<a href="https://i.stack.imgur.com/Yl5eS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Yl5eS.png" alt="enter image description here"></a></p>
<p>Now when I try to add .a files via <code>vendored_libra... | 1 | 2,074 |
ECDH + JWE encryption/decryption using jose4j | <p>I am trying to implement ECDH encryption/decryption along with JWE in Android (Java).<br>
I have found the <a href="https://bitbucket.org/b_c/jose4j/wiki/Home" rel="nofollow noreferrer">jose4j</a> and <a href="https://connect2id.com/products/nimbus-jose-jwt" rel="nofollow noreferrer">Nimbus JOSE</a> libraries that a... | 1 | 2,899 |
How to count total objects of a database table in django? | <p>My question is about django app, i have one app in one model in class employee ,i want to display how many employee register in fronted side in template.</p>
<p>In below app user count is successfully worked.</p>
<p>I want output like 4 employee register from template form and in template display <strong>4 Employe... | 1 | 1,280 |
Select2 with clone () does not want to work | <p>When I use the clone() method the elements with Select2 stop working. I have already verified that it is necessary to use the method "select2 ('destroy')", but I still can not find the problem. Anyone have any tips?</p>
<p>Here's the example using the select2 ('destroy') method, right after initializing the element... | 1 | 3,953 |
tableView.reloadData() causing a crash of the app | <p>In the Swift app, I present an addition view to add an element to the CoreData database. If I call tableview.reloadData(), the app crashes on the + button on the main screen. If I omit the reload data then the add view is presented and the data is added to the CoreData file.</p>
<p>the main view, from configureCell... | 1 | 4,298 |
How to add edit button and function in react.js | <p>i want to share this question. So, i have a form which is designed by react-bootstrap. And also use React Hooks and React Function Component. I have a form which is add new form and delete form but i don't do edit form.
This is a return statement</p>
<pre><code>return(
<Container>
<Row&g... | 1 | 1,721 |
pip install package from private github repo with deploy key in docker | <p>I'm trying to build a Docker container that should install a series of python packages from a requirements.txt file. <strong>One of the entries is a python package hosted on a private GitHub repository.</strong> To install it, I've created a pair of SSH keys and added the public one as a Deploy Key to the GitHub rep... | 1 | 2,205 |
js - how to output values from function into HTML table | <p>I've created a calculator to show repayments over the term of the loan.</p>
<p>I've managed to calculate each months payment, interest, remaining loan but I'm trying to output this into a table. The columns will be a fixed number (5) but the rows should dynamically update based on the number of months.</p>
<p>I've... | 1 | 1,338 |
Find the biggest Contour- OpenCV, Python - Getting Errors | <p>I am trying to find the biggest contour around a car in an image. <br>To find the contour I have learnt the following from the official OpenCv documentation:<br></p>
<pre><code> #convert the image to grayscale from rgb
1. image_gray = cv2.cvtColor(image,cv2.COLOR_RGB2GRAY)
2. threshold = cv2.threshold(image_gra... | 1 | 1,061 |
Extract polyline from Google map to GeoJSON | <p>I have a Google Map. When a user clicks, it places a "start" marker. The second click yields a polyline between the first click and the second click, and adds an "end" marker. The third click adds another data point to the polyline, and moves the "end" marker to the most recent click. Nothing special:</p>
<pre>... | 1 | 1,133 |
Vaadin 7.1.1: Failed to load the widgetset | <p>I have problem to run latest Vaadin 7.1.1 applications. It's mostly because I cannot find documentation for that version. Maven archetype creates old style app extending Root. Root is gone, so I'm trying to extend UI, like they do in Book of Vaadin.</p>
<h2>web.xml:</h2>
<pre><code><servlet>
<servlet-... | 1 | 1,141 |
Delete row from grid and database with Kendo UI and MVC | <p>I'm using a MVC project with Visual Studio 2012 and Kendo UI 2014.</p>
<p>I <strong>can delete a row from the grid</strong> and it disappears, but when I reload the page, the row that I deleted re-appears. <strong>I would like to remove from the database too.</strong></p>
<p>This is my code:</p>
<p><strong>.cshtm... | 1 | 1,093 |
Not able to receive message in WebSocket client | <p>I am using <a href="http://websocket4net.codeplex.com/" rel="nofollow noreferrer">websocket4net</a> to create a WebSocket client in C# and communicate with a server. </p>
<p>I am able to send data, but not able to receive the reply that the server is sending back. The <code>Client_MessageReceived</code> is not trig... | 1 | 1,039 |
If else statement in Java | <p>Need help with if else statement in Java. Need the program to say "Sorry, out of stock" when items are at 0. I tried but it wont print out "Sorry, out of stock" Can anyone explain to me how to properly set that up so when the items are at 0 the program will let the user know that the item is out of stock. Thank you.... | 1 | 1,740 |
POST request works with POSTMAN but not in my Java application | <p>I brief description of what I'm doing, I'm automating creating incidents in ServiceNow using API. I have tested with POSTMAN first and it works fine. </p>
<p>Now after I wrote the code, I try to post data, I got no respond from the server. what could be the problem?</p>
<pre><code> if (method.equals("POST") )
... | 1 | 1,568 |
changing background color of react native tabBar | <p>So i'm really new to react native and mobile dev,
i wanted to change the background color of a bottom tab bar navigation and i can't seem to figure how to do it, since i started with a react native project with navigation ( option in the expo init phase ), how stuff is written is different from what i've seen on the... | 1 | 1,060 |
RuntimeException: setDataSource failed: status = 0xFFFFFFEA in setDataSource() | <p>Here is my code:</p>
<pre><code> //query external audio
ContentResolver musicResolver = getContentResolver();
Cursor musicCursor = musicResolver.query(musicUri, null, null, null, null);
//iterate over results if valid
if (musicCursor != null && musicCursor.moveToFirst()) {
//get ... | 1 | 1,031 |
Validation with JSF 2 only wanted on submit | <p>I have an issue with validation, as I only want validation to take place when the submit button is clicked on the screen, not when another button is clicked.</p>
<p>In the displayed page option1.faces is the main file option1.xhtml, and several included files. Below are fragments of code from the main page and two... | 1 | 2,149 |
Issue : Trying to register my Emulator (Google cloud messaging)? | <p>I have downloaded some Google cloud messaging sample application. If I run my example application. unfortunately, gcm-client-demo has stopped. I got this kind of problem.</p>
<ol>
<li>I have sender id, app key and server url. </li>
<li>compulsory I need to sig-in for google account for my emulator. Right now my em... | 1 | 1,782 |
WebSocket Events Not Firing | <p>I'm trying to create a simple WebSocket example using the HTML5/JS API. Based on what I trace out on the server, it seems like the socket is connecting, but none of the events fire (<code>onopen</code>, <code>onmessage</code>, <code>onclose</code>, etc). I'm a Flash developer so I'm not very good at debugging the Ja... | 1 | 1,498 |
trying to activate pyenv, error: Load pyenv automatically by appending # the following to ~/.zshrc: eval "$(pyenv init -) | <p>i installed pyenv using homebrew, but when i try to activate pyenv with the command:</p>
<pre><code> pyenv shell 3.8.3,
</code></pre>
<p>i get the following message:</p>
<pre><code>pyenv: shell integration not enabled. Run `pyenv init' for instructions.
</code></pre>
<p>So i run:</p>
<pre><code>pyenv init
</code><... | 1 | 1,668 |
springboot get error when server starting in linux | <p>First, there are two <code>Linux</code> servers.
I want to build a redundant <code>web server</code> on two servers.</p>
<p>I installed jre1.8.0 on two servers equally.
And I installed the same spring boot war file on two servers equally.</p>
<p>By the way ....
Server 1 normally goes up and works normally.
Error o... | 1 | 2,970 |
Web API call failed in device mode but working in emulater in Cordova | <p>In my project I have deployed my web api in cloud server and getting the data from that service. In ripple emulator it is working perfectly. But when I debuging in device mode (Android Tab) it is enable to call the service.It didn't show any specific error message also.</p>
<p>here in my index.html page </p>
<pre... | 1 | 2,192 |
Activity intent -- Unfortunately has stopped | <p>I want to use a button intent Activity to Activity.
This is my program.</p>
<p>this is my XML:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_hei... | 1 | 2,046 |
Javascript Code works in jsfiddle and but not in the Browser | <p>I have tried searching similar problems but have not been able to find the reason why my code works in jfiddle but not in a browser. I have also tried making a copy of my code from jfiddle to another fiddle project and the code doesn't work in the new project. You can find <a href="http://jsfiddle.net/y53v6/13/" rel... | 1 | 1,152 |
Transposing rows to column ORACLE SQL | <p>I created this ORACLE SQL query that gives me all the data I need: </p>
<pre><code>SELECT ci.record_no,
ci.communication_no,
ctt.description AS "TOPIC",
ctc.description AS "CATEGORY",
cc.sequence_no
FROM communication_instance ci,
communication_category cc,
... | 1 | 1,323 |
MQQueueManager.<init> raises MQJE001: Completion Code '2', Reason '2400' for specified MQEnvironment.sslCipherSuite | <p>When creating MQQueueManager object with following sslCipherSuite:</p>
<pre><code>MQEnvironment.sslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA";
MQEnvironment.hostname = host;
MQEnvironment.channel = channel;
MQEnvironment.port = port;
iMQQueueManager = new MQQueueManager(queueMgr);
</code></pre>
<p>it manager in... | 1 | 1,073 |
Angular 2 bootstrap modal pass data | <p>I am newbie on angular 2. I am trying to do simple crud operations. However I have problem with using bootstrap modal. The code below, opens bootstrapmodal but I can't send selected movie on DeleteMovie() method.</p>
<pre><code><div style="margin: 20px">
<h2>Movies List</h2>
<input typ... | 1 | 2,103 |
Select specific rows based on previous row value (in the same column) | <p>I've been trying to figure a way to script this through R, but just can't get it. I have a dataset like this: </p>
<pre><code>Trial Type Correct Latency
1 55 0 0
3 30 1 766
4 10 1 344
6 40 1 716
7 10 1 326
9 30 1 550
10 10 1 ... | 1 | 1,290 |
Unable to start activity ComponentInfo java.lang.IllegalStateException: System services not available to Activities before onCreate() | <p>I am trying to see if the user has internet connection when the app starts:</p>
<pre><code>package nco.supp;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widge... | 1 | 1,087 |
Encoding Vietnamese characters from ISO88591, UTF8, UTF16BE, UTF16LE, UTF16 to Hex and vice versa using C++ | <p>I have edited my post. Currently what I'm trying to do is to encode an input string from the user and then convert it to Hex formats. I can do it properly if it does not contain any Vietnamese character.
If my inputString is "Hello". But when I try to input a string such as "Tôi", I don't know how to do it. </p>
<p... | 1 | 2,029 |
MVC4 Wrong date format | <p>I'm using MVC4 to develop an intranet web app. When I try to create a new <strong>person</strong>, I have to choose a <strong>start date</strong>. I've implemented a datepicker with a jQuery script in order to do that. I had a problem with the culture and decimal numbers but fortunately, with help I managed to fix i... | 1 | 2,136 |
GCD async block & EXC_BAD_ACCESS | <p>This crash is fairly rare, but it has happened often enough to convince me I'm doing it wrong.</p>
<p>It's an API call performed using both main-thread async dispatch and barrier dispatch on a custom concurrent queue (the barrier is used because we're modifying data that is read elsewhere, via non-barrier calls to ... | 1 | 1,473 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.