title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Android TextView text won't center | <p>I am trying to make a PIN entry activity, but one little thing is not quite working for me. I can't get the text to center in the TextView's at the top of the screenshot here:</p>
<p><img src="https://i.stack.imgur.com/MEouI.png" alt="Pin Screenshot"></p>
<p>The way it will work is when the user is entering a PIN,... | 0 | 2,015 |
Form submit is not sending any POST data | <p>On my web page, when I press the "Add Customer" link, the following happens:</p>
<ul>
<li>the onclick handler is called, which
<ul>
<li>sets values into the forms two text fields</li>
<li>displays an alert (at this point you can see the new values in the text fields on the screen)</li>
<li>calls the form's submit b... | 0 | 1,029 |
My First Node.js server : Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING | <p>The following server is supposed to :</p>
<p>CASE #1 : serve <code>mysitename.html</code> if the request is <code>http://localhost:8080</code></p>
<p>CASE #2 : serve the relevant file if the request is e.g. <code>http://localhost:8080/mysitename.html</code></p>
<p>CASE #3 send me an email if the request is <code>... | 0 | 2,449 |
Failed to parse the JSON document | <p>I am getting a "Failed to parse the JSON document" error along with another error: "Caused by: groovy.json.JsonException: Lexing failed on line:" that I can't figure out.</p>
<p>CODE:</p>
<pre><code>@Test
public void givenData() {
RestAssured.baseURI = "https://maps.googleapis.com";... | 0 | 1,603 |
How to get the selected value from a kendo dropdownlist within a kendo grid? | <p>I have a kendo grid with batch editing enabled which contains a dropdownlist. I can read the other field of the grid while trying to save batch information but getting hard time to read the selected value of the dropdownlist. Here is my code for the grid:</p>
<pre><code> $(document).ready(function () {
... | 0 | 1,984 |
(Spring + JSP + jQuery-AJAX + JSON ) setting environment for UTF-8 issue? | <p>I am doing a <code>chat project</code> in <code>java</code> with <code>Spring 3.x</code> which needs <code>Multi-language support</code>.</p>
<p>Here is what I have done.</p>
<p>My JSP has:</p>
<pre><code><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%request.set... | 0 | 2,519 |
JPA mapping: "QuerySyntaxException: foobar is not mapped..." | <p>I've been playing around with a very simple JPA example and am trying to tweak it to an existing database. But I can't get past this error. (Below.) It just has to be some simple thing I am not seeing.</p>
<pre><code>org.hibernate.hql.internal.ast.QuerySyntaxException: FooBar is not mapped [SELECT r FROM FooBar ... | 0 | 2,149 |
Error message "MemoryError" in Python | <p>Here's my problem: I'm trying to parse a big text file (about 15,000 KB) and write it to a MySQL database. I'm using Python 2.6, and the script parses about half the file and adds it to the database before freezing up. Sometimes it displays the text:</p>
<blockquote>
<p>MemoryError.</p>
</blockquote>
<p>Oth... | 0 | 2,928 |
How to pass parameters to a CodeActivity in a NativeActivity code sequence | <p>I'm trying to get windows workflows working, and I've become a little stumped.</p>
<p>I've gotten a single workflow working, but now I am trying to do something a little more complex: start a workflow, where each activity itself contains a workflow. (Picture something like the main program starts the activities "In... | 0 | 2,442 |
Passing data to components in vue.js | <p>I'm struggling to understand how to pass data between components in vue.js. I have read through the docs several times and looked at many vue related questions and tutorials, but I'm still not getting it. </p>
<p>To wrap my head around this, I am hoping for help completing a pretty simple example </p>
<ol>
<li>d... | 0 | 1,465 |
Pagination to HTML table | <p>I have referred to several SO questions and answers. Still I could not find a solution for pagination to tables. Please someone provide me the appropriate javascript coding for pagination with necessary plugins(if any). My table is filled with data from API call. Thanks in advance</p>
<pre><code><!DOCTYPE html&g... | 0 | 1,131 |
How do I receive udp packets with winsock in c++? | <p>As an attempt at wrapping my head around udp sockets I've tried to port the code from this tutorial page <a href="http://www.linuxhowtos.org/C_C++/socket.htm" rel="nofollow noreferrer">http://www.linuxhowtos.org/C_C++/socket.htm</a> to winsock (running on win 8 if it matters). [direct links below]</p>
<p>The code c... | 0 | 1,787 |
Pandas Dataframe - RemoteDataError - Python | <p>I'm trying to pull data from yahoo finance. </p>
<p>Here is the error I'm getting:</p>
<pre><code>File "banana.py", line 35, in <module>
data = web.DataReader(ticker, "yahoo", datetime(2011,1,1), datetime(2015,12,31))
File "C:\Users\ll\Anaconda2\lib\site-packages\pandas_datareader\data.py", line 94, in... | 0 | 2,286 |
HTTP Status 500 - Servlet.init() for servlet spring-dispatcher threw exception | <p>I am learning <strong>Spring MVC</strong> and when I am trying to run the html file it gives the error HTTP <em>Status 500</em> - <code>Servlet.init()</code> for servlet spring-dispatcher threw exception</p>
<p>This is my web.xml </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>`<web-app xmlns:xsi="h... | 0 | 1,985 |
jquery ajax submit form uploading image | <p>i am adding a family member with a form with php and jquery ajax, my datas are posted but the image is not uploaded.</p>
<p>my html form who post the datas with ajax:
(the problem is on the input type file)</p>
<pre><code><form id="form_add_famille" name="form_add_famille" action="modif/add_famille.php" method=... | 0 | 3,559 |
how to call block method from magento 1 template | <p>I'm new to magento and always have issues.</p>
<p>For now, I managed to add subscribe popup message and want to add a child block to my main block.</p>
<p>Code:(my custom module is <code>My_Module</code>)</p>
<pre><code><reference name="before_body_end">
<block type="newsletter/subscribe" name="newsl... | 0 | 1,273 |
how to clear view in android? | <p>I have created a simple demo application in android for drawing ,now can any one say me how can i remove view and clear screen in just one click .I have tried as below:please help me to do it....thanx in advance..!</p>
<p><strong>main.java</strong></p>
<pre><code>package com.example.singletouch;
import com.exampl... | 0 | 6,238 |
SQLiteAssetHelper:Couldn't open database for writing (will try read-only) | <p>This question has already been asked by the people but going through the steps from many of them I am still unable to fix the problem at my end, My app is working fine on emulator but not on the real device and gives the following 2 exceptions, the first exception is the major source of second exception and i guess ... | 0 | 4,237 |
Uploading images with Mongoose, Express and AngularJS | <p>I know this has been asked many times before, and I have read almost all I could find about the subject, namely:</p>
<p><a href="https://stackoverflow.com/a/25022437/1031184">https://stackoverflow.com/a/25022437/1031184</a></p>
<p><a href="https://stackoverflow.com/questions/5149545/uploading-images-using-node-js-... | 0 | 5,096 |
PHP - Accessing Multidimensional Array Values | <p>After several hours of messing, sweating and pulling my hair out I'm still unable to access these values. I want to loop through the first level of arrays, and that's simple enough with a basic 'foreach' loop but I can't seem to get to the '['suitability']' array on the second sub array. I've looked around but can't... | 0 | 1,052 |
Add text to QPlainTextEdit in PyQT (the result is a status log) | <p>I am trying to build a StatusLog, every move that happens on an application.
For example, the user clicked in the button1, the progressBox must receive a string like "user clicked the button1".</p>
<p>I've searched and found a link but I can't put that working out, I don't know how.</p>
<p>Link: <a href="h... | 0 | 2,596 |
how to set visibility options of android.widget.textview | <p>had FC issues with this</p>
<pre><code>private TextView msg, NameOut, DateOut;
msg = (TextView) findViewById(R.id.txtviewOut) ;
</code></pre>
<p>down the line... (problem lies here)</p>
<pre><code>msg.setVisibility(View.INVISIBLE);//set visibility to false on create
</code></pre>
<p>how do I set the visibility o... | 0 | 3,219 |
Flutter Getx - "Xxx" not found. You need to call "Get.put(Xxx())" - But i have called Get.put(Xxx()) | <p>I have this global bindings class to initialise some services and I need it to be initialised straight away:</p>
<pre><code>import 'package:get/get.dart';
import 'package:vepo/data/data_provider/local_data_provider.dart';
import 'package:vepo/data/data_source/local_data_source.dart';
import 'services/authentication... | 0 | 1,118 |
How to keep the dropdown menu selected value after form is submitted? | <p>I am creating a very simple form with a dropdown menu and a text filed.
It shows the errors if the form has empty field during the submission.</p>
<p>I want to show the filled values after the form submission if there is any error.
It works on text field as I expected.
Ex: If fill the <code>name</code> and submit t... | 0 | 1,522 |
Why doesn't strcpy work? | <pre><code> char sentence2[10];
strncpy(sentence2, second, sizeof(sentence2)); //shouldn't I specify the sizeof(source) instead of sizeof(destination)?
sentence2[10] = '\0'; //Is this okay since strncpy does not provide the null character.
puts(sentence2);
//////////////////////... | 0 | 1,043 |
java.lang.NullPointerException when launching Eclipse | <p>I'm using Eclipse Juno and I get this error when I launch it on a certain workspace:</p>
<blockquote>
<p>An error has occurred. See error log for more details.</p>
<p>java.lang.NullPointerException</p>
</blockquote>
<p>Other workspaces that are checked out from the same SVN repository work well. Does anyone... | 0 | 1,027 |
How is it possible that UITableViewCellContentView height is different from heightForRowAtIndexPath: | <p>I'm facing a really weird problem on my UITableView.
I have some different cells that I want to display on a newsfeed-like table view.</p>
<p>And I have a problem with a cell after reuse.
The cell contains two images, two labels and a view with the share/like/comment buttons.
I'm gonna try to draw it, but I'm not s... | 0 | 1,735 |
Multi user login in php | <p>I am designing a website which have four modules Admin, branch admin, reporter, accountant where each of the respective person can login to their respective page like admin will login to the admin page and reporter will login to it's page, but the code is not working.
When I try login to any module it login only to ... | 0 | 1,386 |
Passing data to Bootstrap Modal without JavaScript | <p>I have a grid with image links on my page. When clicking one of them a modal should pop up with the image but in big format. </p>
<p>Now I'm trying to achieve this without the use of javascript/jquery but just with data-attributes.</p>
<p>At the moment I have this code:</p>
<pre><code><!-- Generating the image... | 0 | 1,070 |
How to interpret a Java thread stack? | <p>In line with this question: <a href="https://stackoverflow.com/questions/3734696/how-to-get-stack-trace-of-a-thread">How to get stack trace of a thread</a></p>
<p>I am wondering if anyone could point to information about interpreting Java thread stacks extracted with <code>jstack</code>.</p>
<p>My situation is tha... | 0 | 9,046 |
Sort Index by list - Python Pandas | <p>I have a dataframe that I have pivoted:</p>
<pre><code>FinancialYear 2014/2015 2015/2016 2016/2017 2017/2018
Month
April 42 32 29 27
August 34 28 32 0
December 45 51 28 0
Febr... | 0 | 1,481 |
Neo4j WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual | <p>I installed Neo4j on Ubuntu 12.04 using these instructions: <a href="http://www.neo4j.org/download/linux">http://www.neo4j.org/download/linux</a></p>
<pre><code>wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j... | 0 | 3,184 |
How to show soft keyboard perfectly in fragment in Android? | <p>I have an EditText inside a Fragment inside a Activity.</p>
<p>My Activity layout:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="mat... | 0 | 1,867 |
React - Module parse failed | <p>I've got this error all day when running webpack from command line:</p>
<pre><code>ERROR in ./index.js
Module parse failed: /home/kuro/Workspace/ExpressJS/corate/src/index.js Line 10: Unexpected token <
You may need an appropriate loader to handle this file type.
| render:function(){
| return (
| ... | 0 | 1,262 |
Error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(project) | <p>After migrating application from angular 5 to 6, on running ng serve the following errors pop up.</p>
<blockquote>
<p>Schema validation failed with the following errors:
Data path "" should NOT have additional properties(project).
Error: Schema validation failed with the following errors:
Data path "" s... | 0 | 2,491 |
Codeigniter cannot load libraries | <p>Initially, I thought I had a problem with loading libraries due to using Modular Extensions inside Codeigniter.</p>
<p>However I have discovered even with a clean install of codeigniter I am unable to load libraries such as the <code>Session library</code> or even the Migration library.</p>
<p>I always get similar... | 0 | 1,071 |
White spaces between images in HTML email | <p>I am working on a HTML email template. For some reason, there are white spaces to the left of the images in outlook and bellow the images in gmail.</p>
<p>I have tried many of the suggestions listed here to no prevail.</p>
<p>Here is some of code I am referring too:</p>
<pre><code><tr>
<td colspan="... | 0 | 1,061 |
Performance issue with Volley's DiskBasedCache | <p>In my <a href="https://play.google.com/store/apps/details?id=no.ludde.android.photocollage&referrer=utm_source%3Dphotocollage%26utm_medium%3Dshare">Photo Collage</a> app for Android I'm using Volley for loading images.
I'm using the DiskBasedCache (included with volley) with 50 mb storage to prevent re-download... | 0 | 9,169 |
Is there a way to force MySQL execution order? | <p>I know I can change the way MySQL executes a query by using the <code>FORCE INDEX (abc)</code> keyword. But is there a way to change the execution order?</p>
<p>My query looks like this:</p>
<pre><code>SELECT c.*
FROM table1 a
INNER JOIN table2 b ON a.id = b.table1_id
INNER JOIN table3 c ON b.itemid = c.itemid
WHE... | 0 | 1,024 |
Error on Configure tomcat with SSL certificate using APR library on ubuntu | <p>I have installed Tomcat 7 on a 64 bit server running Ubuntu and am trying to configure SSL to work.</p>
<p>I have place my certificate under /opt/tomcat/conf/ directory and made the following changes in server.xml</p>
<pre><code><Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" ... | 0 | 2,591 |
Missing artifact javax.activation:activation:jar:1.0.2 when it is not in pom | <p>I have a maven project which is actually supposed to be a scheduler. In that project, I have a pom.xml for dependencies. There is a dependency as activation-1.0.2.jar. pom is throwing an error as <strong>Missing artifact javax.activation:activation:jar:1.0.2</strong>. Although I have not mentioned any dependency for... | 0 | 6,012 |
Retrofit2 - response body null on success request | <p>I'm having a problem with Retrofit2.</p>
<p>When I make a call to my webservice, even in case of success, the body of my response is null.</p>
<p>I tried to make the same call with RESTClient for Firefox and the body contains the correct answer.</p>
<p>This is my stack trace:</p>
<pre><code>D/Call request: Reque... | 0 | 1,257 |
Could not extract result in hibernate? | <p>I can't extract result in hibernate.. I want to check an account when they sign in but it throws an exception: could not extract result. </p>
<p>My sample code:</p>
<p>My Pojo:</p>
<pre><code>@Entity
@Table(name = "account")
public class TestAccount implements Serializable {
@Id
@Column(name="IDACCOUNT")... | 0 | 2,089 |
The command returned a non-zero code: 2 docker | <p>The following is the Dockerfile,</p>
<pre><code>FROM alpine:3.10
# Add the testing repo in case it's needed for additional dependencies
# For example, gdal can be installed by using gdal@community
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
# Install sy... | 0 | 1,234 |
How to get objects to react to touches in Cocos2D? | <p>Alright, so I'm starting to learn more about Coco2D, but I'm kinda frusterated. A lot of the tutorials I have found are for outdated versions of the code, so when I look through and see how they do certain things, I can't translate it into my own program, because a lot has changed. With that being said, I am worki... | 0 | 1,460 |
can not find flutter android version code | <p>I was able to build the release version of my app and uploaded to play store, Now I want to update it and I need to change the <code>versionCode</code>. However when I look in my <code><android/app/build.gradle></code> the part which says version which is supposed to be an integer is now something like <code>f... | 0 | 1,111 |
ClassNotFoundException: Didn't find class on path: DexPathList | <p>I have a problem since I updated my App on playstore. Since this update, the exception is thrown, but I haven´t changed anything related to this exception.</p>
<p>Stacktrace:</p>
<pre><code>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{de.opiatefuchs.onthejobtimerlight/de.opiatefuchs.ont... | 0 | 1,079 |
SoapHttpClientProtocol.ReadResponse - The request failed with HTTP status 401: Unauthorized | <p>I have an ASP.NET (v2.0) web application that uses a reference to a SQL Server Reporting Services 208 R2 instance (using the ReportService2010.asmx service endpoint). The web application is hosted on ServerA and the Reporting Services instance is hosted on ServerB. ServerA is running Windows Server 2003 (IIS6) and... | 0 | 1,671 |
error: size of array ‘u’ has non-integral type ‘double’| | <p>i have the following code and i am receiving the error " size of array ‘u’ has non-integral type ‘double’|"</p>
<pre><code>#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#define steps 1000.0
#define time 1000.0
using namespace std;
in... | 0 | 1,325 |
"The remote certificate is invalid according to the validation procedure." using Gmail SMTP server | <p>I'm getting this error:</p>
<blockquote>
<p>The remote certificate is invalid according to the validation procedure.</p>
</blockquote>
<p>whenever I try to send e-mail using Gmail's SMTP server in my C# code.
Can someone point me to the right direction for a solution to this problem?</p>
<p>The following is the... | 0 | 1,366 |
XAMPP setup - MySQL not working | <p>I'm trying to get XAMPP working on Win7/64 for testing Wordpress themes.</p>
<p>I was originally getting a problem with Apache trying to access
Port 80 but I was told to change the config file to port 81 which I have done and now Apache is running and localhost:81 shows the XAMPP control panel fine.</p>
<p>Howeve... | 0 | 3,402 |
How to implement polymorphic JPA entities with generic relations | <p>I'm trying to use JPA 2.0 to create polymorphic entities with generic relations. There should be two tables, an event table and a notification table. Inside those table are concrete entities that are related to one another, like so:</p>
<pre><code>Event <---------- Notification<X extends Event>
| ... | 0 | 1,131 |
CRM 2011: Getting entity with Javascript | <p>I am working on some CRM 2011 Online customisations and I need to get an entity using javascript.</p>
<p>The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine.</p>
<p>The entity I want is a custom entity. There may be multiple matches based on the Cont... | 0 | 1,725 |
Layering elements on top of each other with css | <p>I have been playing around with this sliding drop-down jquery menu. I moved the drop-down area up a little bit with a negative margin. I was hoping there would be a way to layer the drop down on top of the parent element that is the trigger for the action. I tried z-index but no luck. Anyone know what I am doing wro... | 0 | 1,327 |
Read RSA PrivateKey in C# and Bouncy Castle | <p>I have successfully written to public and private key files with OpenSSL format.</p>
<p><strong>Files:</strong></p>
<pre><code>-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpHCHYgawzNlxVebSKXL7vfc/i
hP+dQgMxlaPEi7/vpQtV2szHjIP34MnUKelXFuIETJjOgjWAjTTJoj38MQUWc3u7
SRXaGVggqQEKH+cRi5+UcEObIfpi+cIyA... | 0 | 4,457 |
AFNetworking POST to REST webservice | <p>Brief backstory, our previous developer used ASIHTTPRequest to make POST requests and retrieve data from our webservice. For reasons unknown this portion of our app stopped working. Seemed like good enough time to future proof and go with AFNetworking. REST webservice runs on the CakePHP framework. </p>
<p>In short... | 0 | 1,132 |
format json date to mm/dd/yy format before displaying in a jquery datatable | <p>I am trying to display some data in a <strong>datatable</strong> and the table script I am using is</p>
<pre><code>$('#userData').dataTable({
"ajax": {
"url": "my-url",
"dataSrc": "",
},
... | 0 | 1,182 |
android compass seems unreliable | <p>I have been working on a small compass app the past couple of days, and have gotten the code up and running, but it seems that the compass reading is not accurate. After calibrating both phones, my first test that i found this in what that i simply held the phone against and flat surface looked at the reading then f... | 0 | 1,421 |
Invalid mapStateToProps Argument in React-Redux | <p>I'm facing a problem with <strong>mapStateToProps</strong> argument. It seems a very simple error but I'm not able to figure out what's happening. Basically, what I'm trying to do is toggle a sidebar menu with react-redux and react saga. Everything works well but I'm getting the following error:</p>
<blockquote>
... | 0 | 1,492 |
wsdl2java Error: Emitter failure. Invalid endpoint address in port | <p>I am trying to run the wsdl2java command on a WSDL file that was given to me from another group in my company. I know wsdl2java works because I can run the examples but when I try it on the wsdl given to me it fails. The one big difference is that the WSDL given to me uses SSL.</p>
<p>I’m using Java 1.4 (checked ... | 0 | 1,431 |
android - how to get the image edge x/y position inside imageview | <p>If i have an ImageView that fills the screen.<br>
The ImageView background is set to green color.<br>
I place a bitmap in the ImageView, keeping bitmap proportions. </p>
<p>A portrait photo in this layout will show green on both left and right side<br>
(Phone orientation= portrait). </p>
<p>Now, How do i ge... | 0 | 4,671 |
Set content of iframe | <p>I have the following structure.</p>
<pre><code><div>
<p>Hello World !!</p>
</div>
<iframe id="myiframe" src='myiframeContent.html'></iframe>
</code></pre>
<p>and I have the following JavaScript variable with <code>content</code>:</p>
<pre><code>var s ="<html>... | 0 | 2,135 |
how to connect to google play service and load leaderboard | <p>I want to connect my game with google play service. i have read documentation on android developer and try to following type-a-number sample and still can't load leaderboard.</p>
<p>i have import baseGameUtils, but i use andengine so i didn't use extends BaseGameActivity from google.</p>
<p>what i have until now:<... | 0 | 1,462 |
Web API post data: object reference not set to an instance of an object | <p>I am trying to get Web API working with POST and I have the following in my Controller:</p>
<pre><code>public class mainGridController : ApiController
{
public class formData
{
public string module { get; set; }
public string group { get; set; }
public string... | 0 | 1,036 |
Unknown exception and crash | <p>My application crashes when I try to scroll the tableview very fast or reload the data from remote. Everything seems to be working fine, when I let the remote fetch happen first and then scroll the tableview. I have no idea what the crash log below means. It just works fine sometimes and crashes sometime. </p>
<pre... | 0 | 5,471 |
Qt::nativeEvent calls | <p>I am working on a Windows 8 x64 laptop. Developing with Qt5.
I have some difficulties to handle non-client area color (especially the color frame).
I did not find some easy-to-use functions or processes to do that. I found that the DWM message to handle for the title bar color is WM_DWMCOLORIZATIONCOLORCHANGED and I... | 0 | 1,472 |
How to apply Drop Out in Tensorflow to improve the accuracy of neural network? | <p>Drop-Out is regularization techniques. And I want to apply it to notMNIST data to reduce over-fitting to finish my Udacity Deep Learning Course Assignment.I have read the <a href="https://www.tensorflow.org/versions/r0.12/tutorials/mnist/pros/index.html" rel="noreferrer">docs of tensorflow</a> on how to call the <co... | 0 | 2,691 |
WPF trigger to change parent property | <p>I want to override element triggers so, when clicking on a textbox, it changes the property of the parent border. </p>
<p>But the parent targetname is not recognized. Here is the code sample:</p>
<pre><code> <Style x:Key="customstyle" TargetType="{x:Type local:customcontrol}">
<Setter Property="Back... | 0 | 1,503 |
Filtering on a JTree | <h2>Problem</h2>
<p>Applying filtering on a <code>JTree</code> to avoid certain nodes/leaves to show up in the rendered version of the <code>JTree</code>. Ideally I am looking for a solution which allows to have a dynamic filter, but I would already be glad if I can get a static filter to work.</p>
<p>To make it a bi... | 0 | 1,489 |
How to add php gd extension to Dockerfile | <p>I'm getting this error when trying to deploy using alpine:</p>
<pre><code>phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
</code></pre>
<p>Here's my Dockerfile:</p>
<pre><code>FROM php:7.2-alpine
RUN apk update
RUN apk add zlib-dev gd php7-gd
RUN... | 0 | 1,289 |
PHP MySQL: Saving PDF to Database | <p>I am generating PDFs with TCPDF, I want to save the generated pdf as blob in a MySQL db. What data should I save to the db?
Code for PDF page</p>
<pre><code><?php
require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF... | 0 | 1,434 |
How to fix the error Unfortunately, the process "android.process.acore has stopped"? | <p>we are porting whole android open source for the device Imx-6X-solo board.Developing and re-skinning all the applications.Every thing is done properly and device is ready now. But the problem is I am getting " <strong>Unfortunately, the process "android.process.acore has stopped"</strong> " error during uninstallati... | 0 | 1,780 |
Decode base64 string and write to file | <p>I'm trying to read file which contains encoded base64 string and write decoded output into another file. My <code>Input.txt</code> contains a base64 string, something like:</p>
<pre><code>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48cmV2aWV3LWNhc2UgY3JlYXRl\r\nZGF0ZT0iMTMvTWFyLzIwMTQgMDk6MDQ6NTEiIHN5c3RlbT0i... | 0 | 1,321 |
android.view.View$OnUnhandledKeyEventListener | <p>I am new to Android Studio and I don't get why my toolbar isn't shown as described by <a href="https://developer.android.com/training/appbar/setting-up" rel="noreferrer">https://developer.android.com/training/appbar/setting-up</a>
I know there are already some other questions like mine on stackoverflow but they don'... | 0 | 1,944 |
How to resolve the "EVP_DecryptFInal_ex: bad decrypt" during file decryption | <p>I have the following query.Could any one please suggest me a solution.</p>
<p>I'm working on encryption and decryption of file for first time.</p>
<p>I have encrypted file through command prompt using the command:</p>
<pre><code>openssl enc -aes-256-cbc -in file.txt -out file.enc -k "key value" -iv "iv value"
</c... | 0 | 2,390 |
android - Cannot resolve method getSystemService issue | <p>I'm experiencing the problem concerning getSystemService method, as the Android Studio IDE keeps telling me it just cannot resolve this method. As far as I've read it might come out from the fact, that my class doesn't contain activity. I was reading related topics about getSystemService issue, but I couldn't find a... | 0 | 1,936 |
JDBC Driver with PostgreSQL and Pentaho | <p><strong>Situation:</strong></p>
<p>I'm using PostgreSQL 9.1 and now I'm using Pentaho Report Designer to create reports from a data warehouse stored on a database. This database is named <code>bd-datawarehouse</code>.</p>
<p>The problem I have is when I try to create a connection from the Pentaho Report Designer t... | 0 | 3,712 |
How to Correctly Configure Traefik Dashboard for only port 8080? | <p>I am having trouble with configuring Traefik - I have a feeling this is probably a small configuration error. Below is the docker-compose file. I am trying to make WordPress use port 443, and have the Traefik dashboard on port 8080. However, the dashboard is appearing on both 443 and 8080. What could I be doing wron... | 0 | 1,914 |
Write a program with while loop code in it to calculate the amount of exam scores enter by a user | <p><strong>I wrote a program for the following question in a task I'm doing.</strong></p>
<p><strong>"Write a program to read a list of exam scores given as integer percentages in the range 0 to 100. Display the total number of grades and the number of grades in each letter-grade category as follows: 90-100 is A, 80-8... | 0 | 1,157 |
How do I programmatically import a certificate into my iOS app's keychain and pass the identity to a server when needed? | <p>I am working on an iOS5 application that will facilitate mobile payments between two users. As part of the payment process, the sender and the recipient need to communicate with a server. The server requires that both parties present their identities when an authentication challenge is initiated upon connection.</p>... | 0 | 1,120 |
Sections must only appear once per config file! why? | <p>I'm getting the following exeption:
"Sections must only appear once per config file. See the help topic for exceptions. "</p>
<p><strong>my configuration file look like this</strong>:</p>
<pre class="lang-xml prettyprint-override"><code><configSections>
<sectionGroup name="point.System">
... | 0 | 1,241 |
Eclipse giving an error of android.support.v7.widget.GridLayout failed to instantiate | <p>I have tried to incorporate the GridLayout from the support library, but it is not working. My target build is for API version 10. The XML code I am using is shown below:</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.androi... | 0 | 2,102 |
Webpack output files to different directories | <p>After building a project, I have index.html, bundle.js and some .css files, I would like them to be placed in a dir structure like this:</p>
<pre><code>dist/
- css/all.my.css
- js/bundle.js
- index.html
</code></pre>
<p>Here is what I did for the .js and .css:</p>
<pre class="lang-js prettyprint-overr... | 0 | 2,207 |
How to find a control inside a TemplateField in Gridview | <p>I have a gridView with a textBox inside a templateField. I wan to extract the text of the textBox if a checkbox is marked in the row.</p>
<p>I have the gridView defined as follows</p>
<pre><code> <asp:GridView ID="GV_Comments" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
DataSourceID=... | 0 | 1,068 |
Fast blur on iOS | <p>I'm running into trouble trying to blur part of the screen in my iOS app. See image for better idea of what I'm trying to do. </p>
<p><img src="https://i.stack.imgur.com/hRrej.png" alt="BlurBox"></p>
<p>Only the content of the "BlurBox" needs to be blurry but the rest can be clear. So if you were looking at table ... | 0 | 1,346 |
SpecFlow: Scenario Outline Examples | <p>I just starting to work with SpecFlow and really like the tool. However I am running across some issues in relation to example data inputs into the Scenario Outlines.</p>
<p>Just wondering if what I am facing is normal or whether there is a trick to it.</p>
<p>I am using C# Visual Studio 2013 and writing an MVC A... | 0 | 1,780 |
how to enable Apache Arrow in Pyspark | <p>I am trying to enable Apache Arrow for conversion to Pandas. I am using:</p>
<p>pyspark 2.4.4
pyarrow 0.15.0
pandas 0.25.1
numpy 1.17.2</p>
<p>This is the example code</p>
<pre class="lang-py prettyprint-override"><code>spark.conf.set("spark.sql.execution.arrow.enabled", "true")
x = pd.Series([1, 2, 3])
df = spar... | 0 | 1,067 |
Using System.ComponentModel.DataAnnotations with Entity Framework 4.0 | <p>I'm working with MVC3, and using Entity Framework 4.0 Entities as my model. So far, everything works great as far as using it as a model (all the crud operations/page generations work out of the box). I'm wondering, though, how do you get the same robust labels and validation information as when you generate a mod... | 0 | 1,333 |
Array index out of bounds exception 4 | <p>I keep getting an error when trying to delete or display the users that I've created. Pointing to the line of code where it actually does the deletion or displaying of a certain user. I can't seem to figure out where the error is coming from.</p>
<pre><code>import java.util.*;
public class contactInfo {
publi... | 0 | 1,353 |
Logback file error : no applicable action for [rollingPolicy], current pattern is [[configuration][appender][rollingPolicy]] | <p>I am using logging in akka to write logs to a file every thing is fine until my log file stop writing logs maybe it become full so i read abou rolling policy so i can create additional files but i end up with lots of errors
here is my logback.xml file</p>
<pre class="lang-xml prettyprint-override"><code><confi... | 0 | 2,015 |
Powershell: Display array-members in ConvertTo-HTML | <p>I have a collection of Objects with NoteProperties. One of these properties is an array.
I would like to have an easy way to display the members of this noteproperty not just '[System.Object]' when I use ConvertTo-HTML.</p>
<p>For example, I have a property called "Computername" and one called "Disks" that is actua... | 0 | 1,997 |
MockMvc test POST request | <p>I have the following post route in my REST controller:</p>
<pre class="lang-java prettyprint-override"><code> @RequestMapping(value = "", method = RequestMethod.POST, produces =
"application/json")
public ResponseEntity saveMovie(@RequestBody Movie movie){
movieService.saveMovie(movie);
... | 0 | 1,138 |
WiX - Install Prerequisites and 3rd party applications | <p>I have a wix Windows Installer for my C# application. Things are working, I am able to install and uninstall the application. But I have few Prerequisites and other 3rd party applications that I want to install with my application.</p>
<p>Prerequisites:</p>
<ol>
<li>Microsoft .NET Framework 4 (x86 and x64) - <stro... | 0 | 3,091 |
Javascript number comparison fails | <p>I'm trying to understand where is my error, because it's not possible that JS fails in math!</p>
<p>On the HTML form I have a select and 9 text input.
Then, on the JS I compare the text entered.</p>
<p>My problem is the following:
If I write on</p>
<pre><code>new_da3 = 1400
new_a3 = 1900
</code></pre>
<p>the JS ... | 0 | 1,189 |
use jQuery to expand/collapse ul list - having problems | <p>I'm trying to create a blog archive list which shows all articles by year and month (which I've done with PHP/MySQL)</p>
<p>Now I'm trying to make it so that on page load, all years are collapsed except the latest year/month and also that each will collapse/expand on click.</p>
<p>At the moment my jQuery click fun... | 0 | 1,222 |
Can't install PHPUnit via PEAR, requires PEAR Installer >= 1.9.2, can't upgrade PEAR from 1.9.0 | <p>I read the other PHPUnit installation questions but haven't had any success. What is going on with my PEAR install?</p>
<pre><code>$ sudo pear update-channels
Updating channel "components.ez.no"
Channel "components.ez.no" is up to date
Updating channel "doc.php.net"
Channel "doc.php.net" is up to date
Updating chan... | 0 | 1,200 |
No provider for NavParams error is coming In Ionic App | <p>I am transferring parameters from one component to app.component.ts but the error is coming. Error: No provider for NavParams.</p>
<p>This is my <strong>app.component.ts</strong>:</p>
<pre class="lang-js prettyprint-override"><code>import { FrontPage } from "./../pages/front/front";
import { Component, Vi... | 0 | 1,740 |
How to prevent NestedServletException when testing Spring endpoints? | <p>I am trying to <strong>test the security configuration</strong> of some of my endpoints which are secured with <code>@PreAuthorize(#oauth2.hasScope('scope')</code>. When accessing such an endpoint via Postman with a access token that does not have the required scope, the following is returned with HTTP status code 4... | 0 | 1,077 |
Quality of Image after resize very low -- Java | <p>In the script it is going from around the 300x300 mark down to 60x60. Need to improve the overall image quality as it is coming out very poorly at the moment.</p>
<pre><code>public static Boolean resizeImage(String sourceImg, String destImg, Integer Width, Integer Height, Integer whiteSpaceAmount)
{
BufferedI... | 0 | 1,350 |
Hibernate unknown entity (not missing @Entity or import javax.persistence.Entity ) | <p>I've got a really simple class:</p>
<pre><code>import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "users")
public class User {
@Co... | 0 | 2,561 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.