title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Algorithm HmacPBESHA256 not available | <p>So, I have written some code to take a PEM, add it to a PKCS keystore via bouncycastle, and then use java crypto to import the PKCS keystore value into a JKS keystore.</p>
<p>I swear that yesterday I had a unit test pass successfully having executed these steps, but this morning I started hitting this</p>
<pre><co... | 0 | 1,930 |
what is VIRT column in HTOP? memory overhead? | <p>What means the column VIRT in this HTOP output? It appears in red color and bolded.</p>
<p>I'm running an elasticsearch cluster with <strong>4 nodes</strong> and indexing massive data. </p>
<ul>
<li>1700 indexes with 3 shards, some with 10 small docs, others with 500k small docs</li>
<li>1 index with 3 shards with... | 0 | 6,091 |
RecyclerView onListItemClick to create new intent | <p>so, before latest update, I use onListItemClick listener and it works fine, but now I tried to use RecyclerView, and I'm not sure how to implement onClick for each item, that will open up a new activity..</p>
<p>this is what I used to have</p>
<pre><code>public class SermonsFragment extends Fragment {
@Overri... | 0 | 3,429 |
Node Error - Using a domain property in MakeCallback is deprecated | <p>I`m getting this error while doing an request.
<br>
<br>
<strong>(node:3993) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.</strong></p>
<p>That`s the code of my controller: <a href="https://githu... | 0 | 1,131 |
Marker Clustering,Google Maps API | <pre><code> <h1>Explore Ireland with me!</h1>
<div id="map"></div>
<script>
function initMap(){
// map options
var options = {
zoom:7,
center:{lat:53.3938131, lng:-7.858913}
var map = new google.maps.Map(document.getElementById('map'),options);
//... | 0 | 5,520 |
UnsatisfiedLinkError: no snappyjava in java.library.path when running Spark MLLib Unit test within Intellij | <p>The following exception is occurring when running a spark unit test that requires snappy compression:</p>
<pre><code>java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
... | 0 | 1,459 |
ConstraintLayout, when constraint dependent view is gone, the layout view behave weirdly | <p>I'm using ConstraintLayout where I will show as below</p>
<p><a href="https://i.stack.imgur.com/lA0fl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lA0fl.png" alt="enter image description here"></a></p>
<p>I would like to hide <code>First</code> (using gone), and which the view I expect to be as below ... | 0 | 1,272 |
Displaying JTable in JFrame | <p><strong>What i want to do:</strong></p>
<p>I want to list some records of a database. This list should be displayed in a JFrame popup.</p>
<p><strong>Description:</strong></p>
<p>I have 3 classes: </p>
<ul>
<li>Main.java (runs program)</li>
<li>PeopleTableModel.java (holds data, extends AbstractTableModel)</li>
... | 0 | 4,197 |
Spring mvc bad request with @requestbody | <p>i have a Spring MVC service with that signature:</p>
<pre><code>@RequestMapping(method = RequestMethod.POST, value = "/addUser", consumes = "application/json")
public @ResponseBody User addUser(@RequestBody User user) {
</code></pre>
<p>And this in context.xml</p>
<pre><code><bean id="jacksonMessageConvert... | 0 | 1,178 |
Oracle.ManagedDataAccess: TNS:could not resolve the connect identifier specified | <p>I'm getting the following error while trying to connect to an Oracle database from a new ASP.NET MVC 4 application: "ORA-12154: TNS:could not resolve the connect identifier specified". I'm using the Oracle.ManagedDataAccess DLL (version 4.121.1.0) to try to connect to an Oracle 10g database. Here's the thing - I h... | 0 | 1,594 |
535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant | <p>I am sending e email using an SMTP error . I am getting Authentication unsuccessful. The username and password are correct. Am I doing something wrong.</p>
<pre class="lang-java prettyprint-override"><code>public class Office365TextMsgSend {
Properties properties;
Session session;
MimeMessage mimeMessage;
String ... | 0 | 1,098 |
why ui.item.attr("id") return undefined value? | <p>I am working with sortable between <code><li></code> of <code><ul></code> but when I try to get <code>ui.item.attr("id")</code> I got undefined but other variable are working well like <code>$(this).attr('id')</code> and <code>'+ui.sender.attr('id')</code> but I am searching the index of the <code><ul... | 0 | 1,607 |
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway | <p>I try to use library cv2 for changing picture.
In mode debug I found out that problem in function <strong>cv2.namedWindow</strong>:</p>
<pre><code>def run(self):
name_of_window = 'Test_version'
image_cv2 = cv2.imread('external_data/probe.jpg')
cv2.namedWindow(name_of_window, cv2.WINDOW_NORMAL)
cv2.im... | 0 | 4,024 |
How read Doc or Docx file in java? | <p>I want to read a word file in java</p>
<pre><code>import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hpsf.DocumentSummaryInformation;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;
import org.apache.poi.hwpf.usermodel.HeaderStories;
import java.io.*;
public class ReadDocFileFro... | 0 | 1,312 |
mvn spring-boot:run doesn't start spring | <p><strong>ANSWER: I changed the version tag from 0.0.1-SNAPSHOT to 1.0.2.RELEASE and it worked, see answer below.</strong></p>
<p>I am following this <a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-documentation">documentation</a> and have created the Example.java as instru... | 0 | 2,474 |
java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManagerFactory | <p>I have Eclipse Indigo that I use to develop a JSF 2 project using Glassfish 3 Open Source, this in my computer then in my EC2 instance too, in Amazon AWS, for both Glassfish's I created a JDBC Connection Pool to use with my JPA Entity Manager. </p>
<p>Locally my project works pretty fine, but when I deploy the proj... | 0 | 2,512 |
Java - javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated | <p>I'm trying to connect to my own SSL Server with my own SSL Client, but i get the following error:</p>
<p><code>
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificateChain(SSLSessionImpl.java:420)
at server.run(Server.java:70)
at server.mai... | 0 | 2,555 |
Can anyone give me an example for PHP's CURLFile class? | <p>I had a very simple PHP code to upload a file to a remote server; the way I was doing it (as has been suggested here in some other solutions) is to use cUrl to upload the file. </p>
<p>Here's my code:</p>
<pre><code>$ch = curl_init("http://www.remotesite.com/upload.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, ... | 0 | 1,252 |
Add attachment through PHPMailer | <p>I have this following piece of code of PHPMailer. The problem is, that the file uploads to the server successfully but the attachment is not sent in the mail. The attachment code seems right to the best of my knowledge. Please review the code and let me know where have I gone wrong.</p>
<p><strong>Form</strong></p>... | 0 | 2,915 |
Java POI API: Convert from *.xlsx to *.xls | <p>I have a small problem.
Wanna convert the new excel files (<em>.xlsx) into the old one (</em>.xls) with the POI API on Java.</p>
<p>I think it is a mind problem, but I don't know which fault exist.</p>
<p>I used these code here:</p>
<pre><code>import java.io.BufferedOutputStream;
import java.io.File;
import java.... | 0 | 2,406 |
WebClient.DownloadProgressChanged never gets called | <p>I added an event handler to the WebClient's <code>DownloadProgressChanged</code> event, but it never seems to fire. The file successfully downloads, but without having its progress updated.</p>
<pre><code>public class DownloadFile
{
private File file = null;
public DownloadFile(File file)
{
thi... | 0 | 1,167 |
R/ RStudio - install devtools fails? | <p>I am trying to install <code>devtools</code> in my RStudio. But I get tons of errors:</p>
<pre><code>* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `lib... | 0 | 1,684 |
What exceptions could be returned from Pandas read_sql() | <p>I have a user-defined function that uses pymysql to connect to a mysql database and then it interrogates the database and reads the results into a Pandas dataframe.</p>
<pre><code>import pandas as pd
import pymysql
import getpass
def myGetData(myQuery):
myServer = 'xxx.xxx.xxx.xxx'
myUser = input("Enter M... | 0 | 1,486 |
Asp.net Core, How to post file and model to controller in JQuery/Ajax? | <p><strong>This question is not a repetition with <a href="https://stackoverflow.com/questions/29293637/how-to-append-whole-set-of-model-to-formdata-and-obtain-it-in-mvc">this</a> because all details are fully described in this question and will be very suitable for beginners</strong></p>
<p>I have a view that inherit... | 0 | 2,010 |
How to simulate regular expressions in LINQ-to-SQL | <p>I have a database table with customer account numbers. Within the same table are test accounts that don't match the production formatting: say, 'A1111' is production but 'JTest' is not. I have the Regex that will pull only my production accounts. I need a specific compiled query to pull only the production accounts.... | 0 | 1,571 |
How to acquire HttpStatus Codes in ASP.Net Core? | <p>I'm running through a list of both secure and unsecured domains (both <code>http://</code> and <code>https://</code>) in an array and wish to return their status codes. How is this possible in ASP.Net Core 1.0?</p>
<p>so far, I have</p>
<pre><code>foreach(var item in _context.URLs.ToList())
{
// Do something h... | 0 | 1,253 |
How to place a overlay div on another div on hover with grid like design? | <p>I tried to make a grid like design, I want to show a overlay on hover to each div.</p>
<p>The overlay div has two button which should be placed in center.</p>
<p>i tried the below code i believe the logic is correct but the position of the button and overlay are not placing at the center of the image div.</p>
<p... | 0 | 1,133 |
How to set remote description for a WebRTC caller in Chrome without errors? | <p>I hope there is no flaw in the logic.</p>
<p><strong>Step 1:</strong> caller creates offer</p>
<p><strong>Step 2:</strong> caller sets localDescription</p>
<p><strong>Step 3:</strong> caller sends the description to the callee</p>
<p>//------------------------------------------------------//</p>
<p><strong>Step... | 0 | 1,669 |
Is overloading equals worthwhile | <p>Consider the following snippet:</p>
<pre><code>import java.util.*;
public class EqualsOverload {
public static void main(String[] args) {
class Thing {
final int x;
Thing(int x) { this.x = x; }
public int hashCode() { return x; }
public boolean e... | 0 | 1,236 |
Android Jetpack Compose - Image can't scale to box's width and Height | <p>Created ImageCard view for creating the list in android jetpack compose
but some images can't scratch to Box widget's width and height.</p>
<p>Using 640*427 image and output like image 1.<br />
Using 6720*4480 image and it's looking good like image 2.<br /><br />
Use below code to create ImageCard.<br /><br />
Usage... | 0 | 1,236 |
How to align buttons properly in css/asp.net? | <p>I'm trying to align 2 sets of buttons to the panel in the div above. The buttons called but1, but2 for the left panel. The others are but1, but2, but3 right panel. At the moment the buttons are in a straight line under the 2 panels. So I would like the 2 left buttons right under the left panel aligned left. The 2 ri... | 0 | 1,867 |
Java thread doesn't stop/interrupt | <p>I'm trying to terminate a thread but it doesn't interrupt or stop. All of this are part of controller of a software called Webots. I use this to simulate a multi robot system. In the controller of each robot, I start a thread which receive messages through robots receivers. This thread must start at first, and termi... | 0 | 1,073 |
Implementing Disjoint Sets (Union Find) in C++ | <p>I am trying to implement Disjoint Sets for use in Kruskal's algorithm, but I am having trouble understanding exactly how it should be done and in particular, how to manage the forest of trees. After reading the Wikipedia description of Disjoint Sets and after reading the description in Introduction to Algorithms (Co... | 0 | 1,113 |
Updating messages with inline keyboards using callback queries | <p>I want to update message in chat with inline keyboard but can't understand how to receive a <em>inline_message_id</em> or if it only for inline queries how I can determine <em>chat_id</em> and <em>message_id</em> for using it on <a href="https://pythonhosted.org/python-telegram-bot/telegram.bot.html" rel="nofollow">... | 0 | 1,143 |
React Module parse failed: Unexpected character '@' | <p>I am getting an error when trying to import the following in my react component:</p>
<pre><code>import FontIconPicker from '@fonticonpicker/react-fonticonpicker';
import '@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.base-theme.react.css';
</code></pre>
<p>I'm using this module: <a href="https://fontico... | 0 | 2,719 |
Broadcast receiver not working in android oreo | <p>My Broadcast receiver is not working on oreo but its working below oreo it's working fine, I searched a lot regarding this but could not find the suitable solution. Does anyone face the same problem, here is my code regarding my service in which broadcast has been implemented. Kindly suggests me that how I can make ... | 0 | 4,178 |
Session Data to Model MVC 5 | <p>I want to use C# Sessions as a way to store data(potentially editing) instead of going back to the database repeatedly, especially with repopulating lists, plus this may go across a few pages. </p>
<p>In ASP Web Forms I would do the following.</p>
<p>Code behind:</p>
<pre><code>if(!String.IsNullOrEmpty(Session["P... | 0 | 1,437 |
Load view and make json data available in ajax request (Codeigniter) | <p>I want ajax request to load view as well as make json data available for same loaded view. In bellow ajax request, I am making request to <code>letUsKnow</code> method which loads views and also I want json data to be available in same loaded views. I tried following code but its not working. </p>
<pre><code>$(docu... | 0 | 1,226 |
How can I set up hyperledger fabric with multiple hosts using Docker? | <p>I work on the Hyperledger Fabric v1.0 and would like to make the <a href="http://hyperledger-fabric.readthedocs.io/en/latest/asset_setup.html" rel="noreferrer">Getting Setup</a> work on multiple hosts. For now, 2 would be great.</p>
<p>Here is what I want to do: </p>
<ol>
<li><strong>Host1</strong>: start an order... | 0 | 1,859 |
activemq failover connection not working | <p>I am trying to use this following code to connect to tcp://datafeeds.networkrail.co.uk:61619 to receive messages. The code works fine without failover (using url1 from the following code), but when I tried to add a failover feature (use url from the following code) the connection keep failing. Seems from the debug i... | 0 | 3,396 |
JSF 'total' variable something like c:set in JSTL | <p>I don't like JSF but I need to solve this problem with it, I am working in "pure" JSF.
So this is what I baisicly need but I don't know how to accomplish it with JSF:</p>
<pre><code><c:set var="total" value="0"></c:set>
<c:forEach var="item" items="${cart}">
<tr>
<td>${ite... | 0 | 1,068 |
node.js + MySQL & JSON-result - Callback-issue & no response to client | <p>I'd like to use node.js to query a mySQL-database and return the results as JSON to be used in a mobile application. Unfortunately, my request just sorta times out and the server does nothing for a good 2 minutes until the log-files show my <code>console.log()</code>-statements.</p>
<p>Also, the callback doesn't re... | 0 | 1,562 |
imagick installation issues on the lion | <p>Currently i'm having issues with installing imagick correctly on the mac lion with MAMP.</p>
<p>I have ImageMagick-6.7.3 successfully installed. I've tested out the calls on command line. Note: The bin folder of the ImageMagick-6.7.3 has Magick-config, MagickWand-config, and Wand-config</p>
<p>I'm trying to inst... | 0 | 9,591 |
In Android, how do I set margins in dp programmatically? | <p>In <a href="https://stackoverflow.com/questions/2481455/set-margins-in-a-linearlayout-programmatically">this</a>, <a href="https://stackoverflow.com/questions/7981456/setting-buttons-margin-programmatically">this</a> and <a href="https://stackoverflow.com/questions/8312215/adding-margins-to-button-object-programatic... | 0 | 1,169 |
Error while running node-mssql query | <p>I am trying to run node-mssql query, if I run simple quires it is getting executed. But when I use <code>OPENROWSET</code> and <code>Microsoft.ACE.OLEDB.12.0</code>, it is showing some errors. </p>
<p>Here is <strong>server.js</strong> code</p>
<pre><code>var express = require('express');
var app = express();
app.... | 0 | 1,101 |
spring JNDI logging before logback is initialized | <p>I've got a spring boot app that is outputing around 1500 lines of JNDI debug logging to stdout at startup before logback is initialized. Does anyone know what's causing this and if there is a way to get logback initialized before this? I've got -Dlogback.debug=true but it doesn't help much.</p>
<pre><code>10:44:56.... | 0 | 1,813 |
node.js resolve promise and return value | <p>I use the Microsoft bot framework to come up with a "simple" PoC bot. I used a <a href="https://chatbotsmagazine.com/a-nodejs-chatbot-tutorial-part-1-a2abd1b1c715#.xkoxkhin4" rel="noreferrer">tutorial</a> as a basis and extend it.</p>
<p>I've a couple of basic functions for differet intents (ie. greetings, goodbye,... | 0 | 1,154 |
Create dynamic Word Cloud using d3.js | <p>I am using the following example as base and want to make it dynamic word cloud
<a href="https://github.com/jasondavies/d3-cloud" rel="noreferrer">https://github.com/jasondavies/d3-cloud</a></p>
<p>The data is added to the array but my word-cloud is not reflecting the newly added word(s):</p>
<pre><code><script... | 0 | 1,133 |
Insert node in xml document using c# | <p>I was trying to insert an XML node in XML document at a specific position.</p>
<p>This is my xml:</p>
<pre><code><Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<readContract xmlns="http://implementation.company.schema.reference">
<ContactNumbers>... | 0 | 1,211 |
spring-data mongodb custom implementation PropertyReferenceException | <p>I'm trying to implement a custom query according to the Reference 4.4 Custom Implementations:</p>
<p><a href="http://static.springsource.org/spring-data/data-mongodb/docs/current/reference/html/repositories.html" rel="nofollow noreferrer">http://static.springsource.org/spring-data/data-mongodb/docs/current/referenc... | 0 | 1,110 |
Avoid mutating a prop directly in VueJS 2 | <p>First of all, I am just starting playing with VueJS, so this cannot be a VueJS version thing as suggested <a href="https://stackoverflow.com/questions/41215773/getting-avoid-mutating-a-prop-directly-since-the-value-will-be-overwritten-whene">here</a></p>
<p>It might be a duplicate of :</p>
<ul>
<li><a href="https:... | 0 | 1,903 |
fasterxml.jackson.databind Invalid Definition Exception | <p>I am trying to do a post request using a URL which I've defined as the endpoint.</p>
<p>Controller Code:</p>
<pre><code> import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigi... | 0 | 8,619 |
PHP array into google charts | <p>I need a little help putting PHP data into google charts.</p>
<p>I have created a simple array</p>
<pre><code>$chart_arr = array($year, $new_balance);
json_encode($chart_arr);
</code></pre>
<p>If I run</p>
<pre><code><?php echo json_encode($chart_arr);?>
</code></pre>
<p>I see the following: [2015... | 0 | 1,033 |
Wrap abel within a composite | <p>I have <code>ScrolledComposite</code> which allows only vertical scrolling. (<code>heighthint = 400</code>).</p>
<p>Within this ScrolledComposite, I have another <code>CompositeA</code> (height may exceed 400 for scrolling) to store all other widgets.</p>
<p>I have a very long label (with <code>SWT.WRAP</code> ena... | 0 | 1,856 |
JAVA : Exporting Data (from database) to excel and sending it to client side | <p>As the title suggest, I need to put some data (which I have got from database) into an excel sheet, and then send it to client side so that user can save , open or cancel the action.</p>
<p>I have seen some articles regarding this, the closest one being : <a href="https://stackoverflow.com/q/4834446/870767">How can... | 0 | 1,284 |
java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; | <p>I am unable to find answer through the following links</p>
<p><a href="https://stackoverflow.com/questions/39214853/spring-jersey-java-lang-nosuchmethoderror-javax-ws-rs-core-application-getpro">One</a>
<a href="https://stackoverflow.com/questions/30723370/java-lang-nosuchmethoderror-javax-ws-rs-core-application-ge... | 0 | 5,042 |
cvc-elt.1: Cannot find the declaration of element 'beans' | <p>I am trying to get a bean object to authenticate the user login functionality with Spring Security:</p>
<pre><code> ApplicationContext context = new ClassPathXmlApplicationContext(
"com/humandevice/drive/fx/util/applicationContext.xml");
authenticationManager = (AuthenticationManager) context
... | 0 | 1,466 |
how to Customize the Contextual Action Bar using appCompat in material design | <p><code>MainActivity.java</code></p>
<p>I've implemented <code>MultiChoiceModeListener</code> in this class and below is the code:</p>
<p>on <code>listView</code>:</p>
<pre><code>listView.setMultiChoiceModeListener(MainActivity.this);
listView.setChoiceMode(listView.CHOICE_MODE_MULTIPLE_MODAL);
@Override
... | 0 | 1,515 |
VS2012 Add Service Reference not updating config file | <p>I have created a new IIS hosts WCF service using the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.webhttpbinding.aspx" rel="nofollow noreferrer">webHttpBinding</a> which is currently running on on IIS Express on my development machine and when I try to "Add Service Reference" the service is c... | 0 | 1,566 |
Why is Hibernate 4.2 using jandex and classmate if its Maven POM defines them as test scope? | <p>I'm developing a simple example with Hibernate, using it outside any container. I'm using Maven, and thus configured the JBoss repository (see <a href="https://community.jboss.org/wiki/MavenGettingStarted-Users" rel="nofollow">https://community.jboss.org/wiki/MavenGettingStarted-Users</a>) and added the following de... | 0 | 1,688 |
extract a column from a matrix in a list in R | <p>I have a list of 100 elements. Each element is a list. And this list has two elements in them. One is just a key another is a matrix. This matrix has 5 columns in it. I am trying to extract one column from each of these matrices for all the elements. So basically I would have 100 matrices again as an element of the ... | 0 | 1,341 |
Create a transparent dialog on top of activity | <h2>Background</h2>
<p>I'm trying to put a layer on top of the current activity which would have explanation of what is going on on the current screen, similar to what occurs on <a href="https://play.google.com/store/apps/details?id=com.contapps.android" rel="noreferrer">contact+ app</a> .</p>
<p>I know there are som... | 0 | 1,159 |
How do I solve SecurityNegotiationException and InvalidCredentialException in WCF | <p>So I've written a small game and wish for the game to be playable over the internet.</p>
<p>I've been testing the game just through localhost using these configs:</p>
<p>Client Winapp Application:</p>
<p>App.Config file</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<configuration>
<st... | 0 | 1,761 |
expandable list view in iOS | <p>I need to create expandable list view in my iOS app, ie. if you tap on a cell, it should expand to give more cells. I'm following the example given on this link: <a href="https://stackoverflow.com/questions/13074713/toggle-showing-hiding-child-table-cells-ios">Toggle showing/hiding child table cells iOS</a>
The code... | 0 | 2,884 |
Error in 'a.out': free(): invalid next size (normal) | <p>I'm writing a big application and i recently included there my new module for working with files. It has simple functions of writing integers and strings, it was tested to be perfect on Red Hat. It does exactly what i want.</p>
<p>Here's the implementation of the functions there:</p>
<pre><code>int CFile_open(CF... | 0 | 2,206 |
Convert XAML to FlowDocument to display in RichTextBox in WPF | <p>I have some HTML, which i am converting to XAML using the library provided by Microsoft </p>
<pre><code>string t = HtmlToXamlConverter.ConvertHtmlToXaml(mail.HtmlDataString,true);
</code></pre>
<p>now, from <a href="https://stackoverflow.com/questions/1449121/how-to-insert-xaml-into-richtextbox">How to insert XAM... | 0 | 5,230 |
How to style a table cell in JavaFX2 using CSS (without removing hover/selection etc.) | <p>I'm trying to style individual table cells in an JavaFX2 <code>TableView</code> (to indicate that a table cell value is changed, contains an error, etc). To achieve this, I have created a custom <code>TableCell</code> that sets the proper CSS class, based on it's content.</p>
<p>This works to some degree, but the p... | 0 | 3,342 |
ForbiddenError: invalid csrf token, express js | <p>I've tried to get csurf to work but seem to have stumbled upon something. The code so far looks like this:</p>
<p>index.ejs</p>
<pre><code><form method="post" action="/">
<input type="hidden" name="_csrf" value="{{csrfToken}}">
.
.
</form>
</code></pre>
<p>Whe... | 0 | 1,287 |
VBA If <object> Is Nothing | <p>I want to test an object to see if it doesn't exist. If it does not exist, I just want to have a MsgBox show up (or write Error in cell A1 or something). Banana does not exist in this XML. </p>
<pre><code><?xml version="1.0"?>
<catalog>
<book id="Adventure">
<author>Gambardella, Matthew&l... | 0 | 1,211 |
Rotating a Open GL camera correctly using GLM | <p>I have a camera class, which is initialized like so: </p>
<pre><code>CameraFP::CameraFP() {
this->aspect_ratio = 800.0f / 600.0f;
this->fov = 45.0f;
this->near_plane = 0.1f;
this->far_plane = 1000.0f;
this->position = glm::vec3(0, 0, 0);
this->target = position + glm::vec3... | 0 | 3,388 |
Matrix multiplication: Small difference in matrix size, large difference in timings | <p>I have a matrix multiply code that looks like this:</p>
<pre><code>for(i = 0; i < dimension; i++)
for(j = 0; j < dimension; j++)
for(k = 0; k < dimension; k++)
C[dimension*i+j] += A[dimension*i+k] * B[dimension*k+j];
</code></pre>
<p>Here, the size of the matrix is represented by ... | 0 | 1,233 |
Bootstrap 4 - Scrollspy not working | <p>I have followed the documentation on how to use Scrollspy in BS4, but it is not working, so how do I solve it?</p>
<p>My body has <code>posistion: relative</code></p>
<p>This is my body tag:</p>
<pre><code><body data-spy="scroll" data-target=".navbar">
</code></pre>
<p>And this is the HTML for the navbar:<... | 0 | 1,187 |
In swagger, is it possible import multiple yaml files in one single file? | <p>For the Client this one is inside of client.yaml</p>
<pre><code>/clients:
get:
tags:
- "Clients"
description: "List Clients The list capability"
produces:
- "application/json"
parameters:
- name: "tenantIdentifier"
in: "query"
required: true
type... | 0 | 1,468 |
how to publish 3rdparty artifacts with ivy and nexus | <p>I'm busily getting my feet wet with ivy. I have an existing nexus repository running on my local PC, and an existing ant build script.<br>
Both work fine. </p>
<p>Part of the build scripts have some files to retrieve our 3rdparty jar files (log4j, xmlbeans, junit, pdf, etc..) from a network share - which is klunk... | 0 | 1,498 |
Retrieving single data from SQLite and display in TextView (Android Development) | <p><strong>Intent</strong>: Retrieving single data from SQLite table and display in TextView</p>
<p><strong>Case:</strong> Fail to retrieve data, and unable to show in mainactivity.</p>
<p><strong>Expected Result:</strong> TextView displaying the current total bank balance in main activity (e.g. Total bal: $7600) </p... | 0 | 1,848 |
Caused by: java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB in WAS Liberty | <p>I started using WAS Liberty 8.5 in my eclipse,when i try to deploy an application I am getting this error.</p>
<pre><code>Caused by: java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB
</code></pre>
<p>I found that its due to the WAS runtime jar <code>ibmorb.jar</code> provided with WAS server install.</p>
<p>... | 0 | 1,273 |
WPF Combobox binding and SelectedValue with SelectedValuePath | <p>I am really struggling with data binding and the MVVM Methodology, though I like the concept I am just struggling. I have created a WPF for that has multiple comboboxes and a button. The first combobox will list database instance names. the remaining comboboxes will be populated after the button is clicked. Sinc... | 0 | 1,504 |
' /usr/lib/i386-linux-gnu/qt5/bin/lrelease: not found WARNING: TARGET is empty' Error when trying to compile Feathercoin from source | <p>I am following <a href="http://forum.feathercoin.com/index.php/topic,430.msg3621.html#msg3621" rel="noreferrer" title="This I found after tonnes of searching on the net after numerous unsuccessful attempts to install namecoin and feathercoin">this</a> tip on installing feathercoin from source. I have followed all th... | 0 | 1,441 |
php-fpm process receiving SIGKILL signal in Kubernetes | <p>I have created the ubuntu docker image with Nginx, PHP and php-fpm configured in it. It is working fine when I am running it on Docker instance.</p>
<p>But when I run the same image in kubernetes, the php-fpm process receive the SIGKILL (9) signal and we are getting 502 Gateway errors.</p>
<p>I guess it is kuberne... | 0 | 4,544 |
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class | <p>I am doing spring login application. When I run the application on WAS server I am getting some exceptions. Errors</p>
<blockquote>
<p>org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with na... | 0 | 2,550 |
How to set title in app bar with Navigation Architecture Component | <p>I was trying out Navigation architecture component and is now having difficulties in setting the title. How do I set the title programmatically and also how it works?</p>
<p>To clear my question, let's have an example, where, I've set up a simple app with <code>MainActivity</code> hosting the navigation host contro... | 0 | 2,889 |
Increasing timeout for WCF web service in c# | <p>I currently have an application that is calling a web service on a server for searching. We can expect a large amount of data to be returned, so a search to take longer than a minute is routine. </p>
<p>We've been receiving the below error message for such large volume searches:</p>
<blockquote>
<p>The request c... | 0 | 2,219 |
How to await an async call in JavaScript in a synchronous function? | <p>I recently had to correct security issues in a web-application (that I didn't create).
The security problem was, it was using non-http-only cookies.
So I had to set the session-cookie http-only, which means you can't read (and set) the cookie's value anymore from javascript.
So far so seamingly easy. </p>
<p>The ... | 0 | 5,242 |
SpringBoot JPA repository save method not working | <p>I will get List of JSONs from my MobileApp and I am converting those to a DataModel and then trying to insert the list of dataModel as a bulk.</p>
<p>This is my Data Model or Entity Object.</p>
<pre><code>import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
... | 0 | 1,603 |
Navigation drawer item click listener not working | <p>Sorry for the silly question i am amateur in android studio and learning now.
I have tried a lot but the click listener is not working please help.
i have used the android studio's default drawer layout.navigation is working but i want to perform a special action such as using a new intent to open another app.I am t... | 0 | 1,292 |
Flutter bloc listener not listening to state changes | <p>I am using flutter_bloc library to create a verification code page. Here is what I tried to do.</p>
<pre><code>class PhonePage extends StatelessWidget {
static Route route() {
return MaterialPageRoute<void>(builder: (_) => PhonePage());
}
@override
Widget build(BuildContext context) {
retur... | 0 | 1,924 |
error Message: Expected response code 220 but got an empty response" with exception "Swift_TransportException", | <p><a href="https://i.stack.imgur.com/DL2MU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DL2MU.png" alt="enter image description here"></a>I am following a tutorial to build an API using passport authentication on <a href="https://medium.com/modulr/create-api-authentication-with-passport-of-larave... | 0 | 1,357 |
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource | <p>Hi I am developing a RIA application using SWING as client,Java WebStart JNLP and Spring on server side using HTTPInvoker.</p>
<p>I am getting the below error message when I am trying to Launch & Run my application from JNLP. But if I run the same as java application it workes fine and communicate with server a... | 0 | 2,135 |
Can't get rows in TableLayout to center horizontally | <p>I can't get the rows in my TableLayout to center on the screen. I'm trying to create a 4x4 table of clickable images and want them centered on the screen. It ends of drawing them left aligned, I would like them to be centered with space on either side. Here is the code I have:</p>
<pre><code><LinearLayout xml... | 0 | 1,772 |
CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status | <p>I am using Angular6 as FrontEnd running on <b>http:// localhost:4200</b> and Spring Boot (which has in built Tomcat server) as backend (exposing a GET Rest API) running on <b>https:// localhost:8083/ldap</b> . When I run this, I am getting CORS policy error on the browser. So I searched on internet and tried multi... | 0 | 1,684 |
CSS+HTML: How to draw table/cell border | <p>Here is my CSS code for table:</p>
<pre><code>table.t_data
{
/* border: 1px; - **EDITED** - doesn't seem like influences here */
background-color: #080;
border-spacing: 1px;
margin: 0 auto 0 auto;
}
table.t_data thead th, table.t_data thead td
{
background-color: #9f9;
/* border: #080 0px so... | 0 | 1,188 |
HighCharts: How to use reflow to allow auto-resize after changing size | <p>In our Angular app we're using <a href="https://github.com/pablojim/highcharts-ng" rel="noreferrer">highcarts-ng</a> for our <a href="http://www.highcharts.com/" rel="noreferrer">HighCharts</a> implementation.</p>
<p>Here is the Chart Maximize and Minimize function, which works:</p>
<pre><code>function expandChart... | 0 | 1,587 |
Angular 2 form validation, hasError is not a function | <p>i try to make a validation for my input fields. </p>
<p>this is a piece of code that I used:</p>
<p><strong>DepartmentComponent</strong></p>
<pre><code>import {
FORM_DIRECTIVES,
FormBuilder,
ControlGroup,
Validators ,
AbstractControl
} from 'angular2/common';
@Component({
selector: '... | 0 | 1,148 |
Git, error: remote unpack failed: unable to create temporary object directory - By creating new Branch | <p>I'm trying to create a new branch in my repo.</p>
<p>I did this:</p>
<pre class="lang-sh prettyprint-override"><code>git branch events
</code></pre>
<pre class="lang-sh prettyprint-override"><code>git Checkout events
</code></pre>
<p>That worked. So I changed some files and did:</p>
<pre class="lang-sh prettyprint-o... | 0 | 1,368 |
Getting Unknown Provider error when injecting a Service into an Angular unit test | <p>I'm fairly new to Angular and have reviewed all the similarly related questions on Stack Overflow but none have helped me. I believe I have everything set up correctly but am still getting an 'Unknown Provider' error when attempting to inject a service into a unit test. I have laid out my code below - hopefully som... | 0 | 1,233 |
How to render checked radio button in React | <p>I came of with a solution for pre checked radio button based on JSON data but I think the code can be improved. Or there should be a better way to implement it. The data is structure in following way:</p>
<pre><code> {
radioA: 'Radio A',
radioB: 'Radio B',
radioC: 'Radio C',
selecte... | 0 | 1,275 |
Angular material layout - expand to fill window | <p>I am attempting to create an Angular material layout. My goal is to create a page where it fills the entire browser window without creating a vertical scroll bar. At the top of the page is a toolbar that consumes 100% of the width of the page. Under the toolbar is a title area that also consumes 100% of the width... | 0 | 2,640 |
SQL Server Msg 241, Level 16, State 1, Conversion failed when converting date and/or time from character string | <p>I am getting this error when executing a <code>stored procedure</code> that I have created</p>
<blockquote>
<p>Msg 241, Level 16, State 1, Procedure UDP_INITIAL_CUSTOMER_DIM_POPULATION, Line 28<br>
Conversion failed when converting date and/or time from character string.</p>
</blockquote>
<p>The code for the p... | 0 | 1,122 |
How to support both HTTP and HTTPS channels in Flex/BlazeDS? | <p>I've been trying to find the right configuration for supporting both http/s requests in a Flex app. I've read all the docs and they allude to doing something like the following:</p>
<pre><code><default-channels>
<channel ref="my-secure-amf">
<serialization>
<log-property-errors>t... | 0 | 1,033 |
Given final block not properly padded | <p>I am trying to implement password based encryption algorithm, but I get this exception:</p>
<blockquote>
<p>javax.crypto.BadPaddingException: Given final block not properly padded</p>
</blockquote>
<p>What might be the problem?</p>
<p>Here is my code:</p>
<pre><code>public class PasswordCrypter {
private ... | 0 | 1,438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.