title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Contact form in HTML CSS but I do not create PHP code | <p>I created the contact form in html and css now comes the hard part.
Since it is my first experience with the php code sapede tell me how to create the code so that you can send the mail with all the information on the form?</p>
<p>Sorry for my bad English, Let me know if you didn't understand my Question</p>
<p>Th... | 2 | 2,187 |
Tumblr API Photo Post Returns 401 (Not Authorized) | <p>I'm attempting to use the Tumblr API in an Android app to authorize users and make text and photo posts. I'm using the Scribe library. So for, I can successfully obtain an access token and use it to get user info. I can also make text posts without any issues. This tells me that I'm signing requests correctly.</... | 2 | 1,161 |
c# generic types and repository pattern | <p>I am working on a C# MVC application using the repository pattern. I am using Unity as my IoC in order to implement my repository within the MVC application.</p>
<p>I have created the following generic type with the goal of minimizing code replication throughout my applications. Here is a sample:</p>
<pre><code>pu... | 2 | 1,024 |
Homebrew: Can't start elastic search | <p>I'm in a big trouble, I can't start Elasticsearch and I need it for run my rails locally, please tell me what's going on. I installed Elasticsearch in the normal fashion then I did the following:</p>
<pre><code>elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
</code></pre>
<p>But it sho... | 2 | 1,515 |
Cannot read property of undefined inside the row expansion | <p>Befote I wrote this question I checked most of similar cases to mine, but with no success. I'm trying to display <code>number</code> and <code>auth</code> inside expandable row - I'm using PrimeNG. No matter what I try, nothing works. Since I'm out of fuel for this problem I need your help.</p>
<p>Simplified code:<... | 2 | 1,867 |
Fundamental Verilog Concepts | <p>I have my first verilog assignment due in a few days and for whatever reason these concepts are escaping me. I don't think I'm thinking in terms of parallelism and hardware or something.</p>
<p>My question is that I have to <code>and</code> a few switches and buttons together using <code>wire</code>s and turn on 3 ... | 2 | 1,213 |
Center thumbnails in LightGallery | <p>I'm using LightGallery to make an image gallery and everything's working fine so far but I want to align the entire grid of thumbnails to the center of the page.
Right now is just stuck to the left side.Here's the code I used:</p>
<pre><code><div class="demo-gallery">
<ul id="lightgallery" class="list-unst... | 2 | 2,147 |
Intel Quartus Error 12002 Port does not exist in macrofunction | <p>Working with an Intel Cyclone 10 FPGA and running into a compile error I cannot seem to debug properly. The errors I get are:</p>
<pre><code>Error (12002): Port "out_msg" does not exist in macrofunction "inst6"
Error (12002): Port "msg" does not exist in macrofunction "inst5"
... | 2 | 1,617 |
Display image using json | <p>There is a gridview in which I want to display a image. I want to use this json below to diplay image in my gridview. I have an ImageAdapter class in ImageAdapter class I have AsynTask that get json but I don't know how to using it to diplaly image in gridview.</p>
<p>How can I display image using this json?</p>
<... | 2 | 2,006 |
Vuetify: How to use my own component inside of a Vuetify Expansion Panel Component | <p>I'm just starting with VueJS and Vuetify, so maybe this is a very basic error..</p>
<p>I'm trying to use the vuetify exansion panel component: <a href="https://vuetifyjs.com/components/expansion-panels" rel="nofollow noreferrer">https://vuetifyjs.com/components/expansion-panels</a></p>
<p>Basically I want to defin... | 2 | 1,056 |
Spring-boot application. Failed to load ApplicationContext in JUnit tests | <h1>Failed to load ApplicationContext in conditional scenarios</h1>
<p><strong>The issue is the 2 repository tests-classes will <code>fail to load the ApplicationContext</code> for the FIRST test-case of that test class IF any other test is run before the class.</strong></p>
<p><a href="https://github.com/Tony308/qac... | 2 | 7,479 |
Spring Cloud Stream Configuration classes are not being loaded | <p>After updating from <code>Spring Boot 2.0.6</code> / <code>Spring Cloud Finchley.RELEASE</code> to <code>Spring Boot 2.1.3</code> / <code>Spring Cloud Greenwich.SR1</code>, I am experiencing a very odd configuration / component scanning issue.</p>
<p>The application is structured as follows:</p>
<ul>
<li>main-appl... | 2 | 4,059 |
Resolve asynchronous function of Graphql not able to return data queried over Stardog server having rdf data | <p>I am trying to query a stardog server using graphql below is my code.</p>
<pre><code>import {
GraphQLSchema,
GraphQLObjectType,
GraphQLInt,
GraphQLString,
GraphQLList,
GraphQLNonNull,
GraphQLID,
GraphQLFloat
} from 'graphql';
import axios from 'axios';
var stardog = require("stardog");
let Noun =... | 2 | 1,128 |
Camel : jetty as input, soap as output | <p>I would like to do a simple code with camel, to redirect an URL listener to a soap web service.
I have a simple PHP helloWorld SOAP web service available. I would like to type <code>http://localhost:8080/test</code> and to be routed to the external SOAP web service.
The final goal is to convert soap to REST/JSON.</p... | 2 | 1,469 |
NSURLSession downloadTask not releasing memory | <p>Due to the customer can't implement just few downloads in his server in a short time and backgroundDownloadTaks were very inconsistent when there are so much files (500-1000 downloads) I decide to use NSURLDownloadTask without background NSURLSession.</p>
<p>It works quite well with a large amount of files, but the... | 2 | 4,028 |
Xamarin memory reclaim issues | <p>I have used Xamarin for a while now, and I have encountered a very strange issue.</p>
<p>I am able to crash a very simple two screens app. On the first screen, I have a <code>UIButton</code> with the <code>TouchUpInside</code> event. On the second, I have a <code>UIImageView</code> with attached image (from local f... | 2 | 1,185 |
Setup Xdebug and PHPStorm with remote server | <p>I'm trying to debug a PHP script using Xdebug and PHPStorm on a remote server, and am quite new to remote debugging. I do not have full access to the server but have FTP (not SFTP) access to most of the files (I can't get to php.ini for example).</p>
<p>Xdebug is installed on the server correctly according to the ... | 2 | 1,616 |
Null when trying to parse Uri from String path | <p>I'm using this <code>FileUtils</code> class to handle the <code>Uri</code>:</p>
<pre><code>public class FileUtils {
private FileUtils() {
}
private static final String TAG = "FileUtils";
private static final boolean DEBUG = false;
private static boolean isExternalStorageDocument(Uri uri) {
return &qu... | 2 | 2,954 |
Phusion Passenger Doesn't compile in Mountain Lion | <p>I am having trouble compiling Phusion Passenger with my new OSX Mountain Lion Install. Do you have any advice?</p>
<pre><code>Installing Phusion Passenger Standalone...
[******************************* ] Compiling Phusion Passenger...
*** ERROR: the following command failed:
mkdir -p 'ext/ruby/ruby-1.... | 2 | 3,680 |
Async method called from Task.WhenAll use DbContext and returned an error | <p>Hi I need some advice on async method run by Task.WhenAll().
It's dotnet core 3 project and context and serviced are added as AddScoped.</p>
<p>When I run DoWorksAysnc method I always get an issue "A second operation started on this context before a previous operation completed. This is usually caused by diffe... | 2 | 1,177 |
How to fix sync issue between column-header-width and column-body-width without the use of deprecated jqGrid updateColumns method? | <p>Currently I am working on restoring saved grid preferences/configuration. This is more or less working beautifully, until we get to the last last step of performing that performs a column remap, $grid.jqGrid("remapColumns", perm, true, true); and what happens is that the reordered column-header-widths are out of sy... | 2 | 1,258 |
React component does not react to mobx observable data | <p>I am using <strong>mobX</strong> for my react native project. Please consider this store class:</p>
<pre><code>class Birds {
@observable listOne = [];
@observable fetchingListOne = false;
@observable fetchErrorOne = '';
@action setListOne = () => {
this.fetchingListOne = true;
ap... | 2 | 1,525 |
The type or namespace name 'OwinStartupAttributeAttribute' could not be found | <p>I am compiling some code that I did not write.</p>
<p>When I do Build -> Build Solution I get this error:</p>
<pre><code>The type of namespace name 'OwinStartupAttributeAttribute' could not be found (are you missing a using directive or an assembly reference?)
</code></pre>
<p>On this line of code:</p>
<pre><cod... | 2 | 1,268 |
How do I handle switching between Emojipicker and Keyboard in Android? | <p>A functionality of the app I am working on is that people can chat with eachother. In the ChatFragment. I would like to have the same functionality as Whatsapp and Telegram where you can click the emoticon button and the keyboard switches to a Emojipicker <strong>Without</strong> any transition where the emoticonpic... | 2 | 4,423 |
Parallel processing to create PDFs | <p>What I want to achieve is to do multitreading to generate invoices using iTextSharp assembly.</p>
<p>In my understanding in using <code>Parallel.ForEach</code> is that it will take an IEnumerable source and delegate that to different threads.</p>
<p>Now the issue that I have is that 1 process is trying to access a... | 2 | 1,727 |
How to post to a friends wall from PHP script? | <p>hopefully someone can help me with this odd problem.</p>
<p>I have a database which stores the Facebook ID of all users who have registered, and this works just fine.</p>
<p>Users can send messages to their Facebook friends through PHP script which is activated via the app.</p>
<p>In my script I have a section wh... | 2 | 1,593 |
How can I loop in a map function in React? | <p>I'm currently mapping through an array of products in the render method returning list elements for each object, I want to create an html select tag for the quantity of products available. Only way I can think of doing this is by looping out an option for every quantity, but this seems to throw a syntax error when u... | 2 | 1,235 |
AJAX Response Text Empty | <p>I'm creating a system that interacts with Minecraft server using AJAX. My JavaScript code is as follows:</p>
<pre><code>function doMessage(name, message)
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for ... | 2 | 1,334 |
How to implement logging with Fluentd/Elasticsearch/Ikebana on Kubernetes 1.1? | <p>I am trying to implement logging on my AWS/CoreOS/Kubernetes (1.1) setup, which I've set up without kube-up. So far I've installed fluentd as a static <a href="https://github.com/kubernetes/kubernetes/blob/release-1.1/cluster/saltbase/salt/fluentd-es/fluentd-es.yaml" rel="nofollow">pod</a> on all nodes and the <a hr... | 2 | 2,732 |
mysql docker container get remote host: Connection refused after container running | <p>I tried to run multiple mysql docker container on one host server. After setting one first mysql container, it works fine. I following the same step to setting up second one and change the running port from 3306 to 3307 and use different path of dump.sql. After container starting up, I cannot telnet the container wi... | 2 | 1,658 |
Neural network (perceptron) - visualizing decision boundary (as a hyperplane) when performing binary classification | <p>I would like to visualize the decision boundary for a simple neural network with only one neuron (3 inputs, binary output). I'm extracting the weights from a Keras NN model and then attempting to draw the surface plane using matplotlib. Unfortunately, the hyperplane is not appearing between the points on the scatter... | 2 | 1,204 |
React.Js - Typescript how to pass an array of Objects as props? | <p>everyone.</p>
<p>So I am learning TypeScript with React.Js and I have come to a problem.</p>
<p>I have a "page" that has an array of objects that have further information about each user</p>
<pre><code>const USERS = [
{name: 'Nicole', id: 1, placeCount: 10, places: 'place 1', image: 'image source'}... | 2 | 1,423 |
Trouble with step in setting up virtualenvwrapper for Python | <p>I'm trying to complete the section <strong>Managing Virtual Environments With virtualenvwrapper</strong> <a href="https://realpython.com/python-virtual-environments-a-primer/" rel="nofollow noreferrer">here</a>.</p>
<p>I'm up to this section:</p>
<blockquote>
<p>Once it’s installed, we’ll need to activate its shell ... | 2 | 1,109 |
js - knockout Unable to process binding "text: function (){return | <p>can't find where i made a mistake.
I get this error message when I run my code:</p>
<pre><code>Uncaught ReferenceError: Unable to process binding "text: function (){return quoteAuthor }"
Message: quoteAuthor is not defined
</code></pre>
<p>newQuote might add new position to quotesArray, and cause adding new line t... | 2 | 1,585 |
Excel cell format from jasper report with spring | <p>We have an inhouse legacy java library to generate reports with jasper+spring and export them to html, pdf or xls.
However excel files have all the cells with the same (no ) format
We have one report where one column is filled with text and there is concern that it could be interpreted as formula with numeric values... | 2 | 1,394 |
Syntax using void pointers for functions and structs in simple kernel on an embedded system | <p>I'm writing an extremely simple kernel for an embedded systems class. The board is the TI Stellaris EKI-LM3S8962. It runs C and has an OLED display. I am having issues with void pointers and de-referencing them. Any help is much appreciated.</p>
<p>My very small initial goal is to prove the concept of passing f... | 2 | 1,730 |
Experiencing problems using OpenCVSharp HoughLines2 method with CvMat | <p>I'm using OpenCVSharp 2.3 and I'm experiencing problems using CvMat and the Cv.Houghlines2 Method ! HoughLines2 doesn't accept any CvMat object I'm creating. I used the Cv.MemStorage structure before, and this works, but it doesn't let you set a limit on how many lines you want to get detected??</p>
<p>I've tried s... | 2 | 1,061 |
trying to create line down a graph in nivo at set time intervals | <p>I'm using nivo charts to visualize some sick datasets.</p>
<p>The example is like this,</p>
<pre><code>import { ResponsiveLine } from '@nivo/line'
const MyResponsiveLine = ({ data /* see data tab */ }) => (
<ResponsiveLine
data={data}
margin={{ top: 50, right: 110, bottom: 50, left: 60 }}
... | 2 | 1,641 |
How to detect when a Sharepoint file is in a subfolder | <p>I'm displaying files from a Sharepoint 2010 document library on my web page. I'm successfully showing a list of the files and their icons. However, some of the files are in subfolders, and instead of showing the file icon, I'd like to show a folder icon.</p>
<p><strong>How do I detect when a file is in a subfolde... | 2 | 1,431 |
How to get an executable jar for a weld se application | <p>I have a little cli application that uses weld se that works fine if i run the application from within eclipse
(using the main method from weld se: org.jboss.weld.environment.se.StartMain)</p>
<p>The problem is i can't create an executable jar that works. At the moment i use maven-assembly-plugin:</p>
<pre><code>... | 2 | 2,085 |
Spring Security - How to access v2 API using basic HTTP authentication in Hybris? | <p>I want to access <code>v2</code> API using basic authentication(username/password), I have done all below-mentioned changes. But when I hit the web service URL, I'm getting a popup for providing username/password which is not taking(validating) my username/password. I'm sure I have entered correct username & pas... | 2 | 1,083 |
How to count number of <li> from a specific <ul>? | <p>I tried to count all append list <code>li</code> of the specific <code>ul</code> but it will count <code>0</code> when I console it.</p>
<p>I try to put this code:</p>
<pre><code>count = $('#notif-list').children("li").length;
console.log(count);
</code></pre>
<p>and here is my full code:</p>
<pre><code>$(docume... | 2 | 1,199 |
Guzzle HTTP from Docker to NodeJS in Host | <p>folks.</p>
<p>I have a servive running on my host machine. It is a NodeJS app with Express. It works fine at "localhost:3000".</p>
<p>Then, in a separate project, I have a Laravel App running fine inside Docker, and I access it at "<a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>".</p>
<p... | 2 | 1,706 |
Yii2: Application can't be executed. Apache shows "Index of" | <p>I developed a Yii2 application that works in my computer with Debian.</p>
<p>Then I installed <a href="https://bitnami.com/stack/wapp" rel="nofollow noreferrer">Bitnami WAPP</a> in a computer with Windows 8 and I tried to execute it but it doesn't work. It shows the content like a folder instead of execute the code... | 2 | 1,124 |
In protractor "chrome not reachable" error coming | <p>my machine is windows 7, chrome is latest with 32 bit, below is conf.js</p>
<pre><code> exports.config = {
// directConnect:true,
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['todo-spec.js'],
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'binary': 'D:/chromedriver... | 2 | 1,076 |
How can I force CMake to look for a library in a specific directory? | <p>Trying to install a Spenvis package and here's the error I'm getting when running the script:</p>
<pre><code>-- Boost version: 1.41.0
-- Found the following Boost libraries:
-- python
-- Configuring done
-- Generating done
-- Build files have been written to: Desktop/build
make[2]: *** No rule to make target `/us... | 2 | 1,693 |
Express JS - unable to center text in a DIV in a pug template with Bootstrap | <p>I am working on an Express JS web app based on Bootstrap 4 styling as front-end. </p>
<p>No custom stylesheet is involved.</p>
<p>My HTML with Bootstrap 4 styling:</p>
<pre><code><div class="container">
<div class="row text-center">
<div class="col-sm-6">
<div class="g... | 2 | 1,215 |
undefined value when getting value from json variable | <p>I have a c# webservice that returns json data. Here is the data that is being returned.</p>
<pre><code>[ { "destination": "pandora.com", "hits": 9 },
{ "destination": "google.com", "hits": 2 },
{ "destination": "msftncsi.com", "hits": 2 },
{ "destination": "nmlsconsumeraccess.org", "hits": 1 },
{ "destination"... | 2 | 1,344 |
How to create a non-executable JAR file that includes all Maven dependencies | <p>I have a Java project that doesn't have a main file but it has a lot of Maven dependencies.</p>
<p>How I can create a JAR-file that contains my source-code and required maven dependencies?</p>
<p>My pom.xml:</p>
<pre class="lang-xml prettyprint-override"><code><project xmlns="http://maven.apache.org/POM/4.0.... | 2 | 1,063 |
C# *Strange* problem with StopWatch and a foreach loop | <p>I have the this code:</p>
<pre><code>var options = GetOptions(From, Value, SelectedValue);
var stopWatch = System.Diagnostics.Stopwatch.StartNew();
foreach (Option option in options)
{
stringBuilder.Append("<option");
stringBuilder.Append(" value=\"");
stringBuilder.Append(option.Value);
s... | 2 | 1,036 |
How to prevent duplicate usernames when people register using Php? | <p>I have been making a login/register system.The only problem I am running into is how to make it so that users cannot register with duplicated usernames. I have looked around and have seen many examples of it but my code is not working.</p>
<p>I wanted to prevent users from having the same username when they registe... | 2 | 1,874 |
Reading information from the smart card by secure messaging | <p>I have tachograph company card which is used to get the client authenticated before allowing him to download the data of the tachograph by the remote download. The used APDU command
in my code below are commands of successfully authentication between the Tachograph and company card.</p>
<p>The connection between th... | 2 | 4,714 |
Retrieving OAuth Verification Code via .NET HttpWebRequest | <p>I'm attempting to replicate the OAuth steps normally done via the "<a href="https://developer.intuit.com/docs/0025_quickbooksapi/0010_getting_started/0020_connect/0010_from_within_your_app/add_the_connect_button" rel="nofollow">Connect to QuickBooks</a>" button using HttpWebRequest/HttpWebResponse.</p>
<p>It's easy... | 2 | 1,140 |
Can I call a jquery or javascript function in grails g:each element? | <p>I want to call a jquery function in grails g:each element, i'm using a function call on page load to filter a table which has a loop as follows</p>
<pre><code> <g:each in="${sampleTypes}" status="i" var="sampleType">
<div class="uniq">${sampleType}</div>
<table id="sampleTable">
<t... | 2 | 1,569 |
Adding New Row to DataGrid on button click | <p>I am new to WPF and got issues in adding new Row to Data-Grid on button click. I have tried few solutions but was not successful.</p>
<p>Tried-
If i enable "CanUserAddRows="True", This gives me buttons also which are present in upper rows. Also i dont want this approach as i want t add new row on button click.</p>
... | 2 | 9,075 |
Forcing Codeigniter to work with varnish | <p>I have a codeiginter application that already use codeiginter build-in caching, I applied Varnish as a new caching layer. But as i can see from varnishstat it's not making that difference. </p>
<pre><code>Hitrate ratio: 1 1 1
Hitrate avg: 0.0480 0.0480 0.0480
</code></pre>
<p>I think t... | 2 | 1,509 |
Connect HANA Express with MySQL via Smart Data Access | <p>I need to connect my HANA Express VM with a MySQL database. What I did so far is:</p>
<p>0.) Registered VM and installed unixODBC (as described in Youtube Playlist)</p>
<p>1.) Downloaded ODBC driver installation files (rpm)</p>
<p>2.) sudo zypper install </p>
<p>3.) myodbc-installer -d -l</p>
<p>4.) cp /etc/uni... | 2 | 1,259 |
Maven Module with Spring Boot | <p>I am trying to configure Maven to use Spring Boot with multi modules, this is my structure:</p>
<pre><code>- Parent
------ WebClient
------------ scr/main/java/config ---> Config Files
------------ scr/main/java/resources/WEB-INF ---> Template Files
------ Core
------ Services
------ Server
</code></pre>
<p>... | 2 | 2,527 |
How to get the max ID in a Join Query in Laravel 5 (Integrity constraint violation:) | <p><strong>My query is like this:</strong></p>
<pre><code>$deals=DB::table('leadsheet')
->join('Deal', 'leadsheet.leadcode', '=', 'Deal.leadcode')
->join('benefits', 'leadsheet.leadcode', '=', 'benefits.leadcode')
->join('delegatedealinfo', 'leadsheet.leadcode', '=', 'del... | 2 | 1,192 |
Taking photo with camera, onActivityResult does not contains media (photo) uri | <p>Hi i started to use Camera in Android, as simple as it can get from <a href="http://developer.android.com/guide/topics/media/camera.html" rel="nofollow">here</a>.</p>
<p>The problem is after i shoot the photo the file's uri is just null for some reason.</p>
<p>Steps:</p>
<ol>
<li><p>I ran the <code>takePhoto()</c... | 2 | 1,726 |
Convert types of PostgreSQL UUID arrays using jOOQ | <p>I am trying to bind a PostgreSQL (9.4) <code>UUID</code> array to an array of a wrapper class around each <code>UUID</code>. Please note that these wrappers are integrated throughout the application so removing them is not an option. I am using jOOQ and it's maven plugin (3.5.1) to generate PoJo's, <code>Record</cod... | 2 | 4,126 |
android onClick for imageview not fired | <p>I have a common layout which I use in all my activities. In the title layout, I have an imageview included and there is an onclick method specified in the xml layout for this imageview.</p>
<p>In one of my activities, the onclick for this imageview is not fired in the java code. Following is the layout of the activ... | 2 | 1,825 |
An active access token must be used to query information about the current user in laravel | <p>I am trying to login with facebook using angularjs with laravel. But I am stuck with this error:</p>
<blockquote>
<p>{"error":{"message":"An active access token must be used to query
information about the current user.","type":"OAuthExce (truncated...)</p>
</blockquote>
<p>Here is my Controller:</p>
<pre><cod... | 2 | 1,439 |
PrimeFaces 3.5 File Upload in Datatable | <p>I am trying to use <code><p:cellEditor></code> for <code><p:fileUpload></code>. When I tried to upload a file, it comes as <code>null</code>. How is this caused and how can I solve it?</p>
<p>I'm using PrimeFaces 3.5 and JSF 2.0.</p>
<p>Here is the view:</p>
<pre><code><p:dataTable id="question" va... | 2 | 4,429 |
How to click the login button using Selenium with Python | <pre><code><div class="login" id="login">
<div class="top">
<div class="logo"></div>
<div class="language">
<div class="language-show" ng-click="showLanguageList($event)"><span title="English" class="current-language" id="current_language">English</span>&l... | 2 | 1,649 |
Mathematica: How do I make a partial binary tree appear binary? | <p>In a recent <a href="https://stackoverflow.com/questions/6563407/classification-tree-implementation-in-mathematica/6563644#6563644">SO discussion</a> I displayed a binary classification tree that needed some pruning of vertices 6 and 7:</p>
<p><img src="https://i.stack.imgur.com/mOciK.png" alt="needs pruning"></p>
... | 2 | 1,151 |
Zeppelin security : Issues while securing Zeppelin UI | <p>HDP-2.4.2.0-258 installed using Ambari 2.2.2.0</p>
<p>I installed Zeppelin(0.6.0.2.4.2.0-258)manually and was able to execute several paragraphs in a notebook.</p>
<p>Now I wish to secure it step-by-step, starting with the authentication for the web UI, integrated with LDAP i.e when a user enters his credentials a... | 2 | 4,398 |
jersey with wildfly 10 | <p>I started jersey rest services project with wildfly server. As Jboss has restEasy default implementation it does not support Jersey. I tried using jboss-deployement-structure.xml, changes in web.xml as false for restEasy, removing jaxrs subsystems in standalaone.xml. Nothing is successful.</p>
<p>Anyone please sugg... | 2 | 3,114 |
How to create a test server which uses TLS client authentication in Go? | <p>I'd like to write a unit test for an HTTP handler which extracts certain information from a device's certificate. I've found this gist, <a href="https://gist.github.com/ncw/9253562" rel="nofollow noreferrer">https://gist.github.com/ncw/9253562</a>, which uses <code>openssl</code> to generate the certificates and sim... | 2 | 3,749 |
Hashmap Json Save and load | <p>Hello today im having a bit of a tough time Parsing and Building my Json Objects.
For starters I have my main HashMap here: </p>
<pre><code> private HashMap<AchievementList, Integer> playerAchievements = new HashMap<AchievementList, Integer>(
AchievementList.values().length) {
{
... | 2 | 1,098 |
error installing mvc 4 | <p>Please excuse the length of this post, I wanted to include all info i deemed necessary to debug.</p>
<p>I've been unable to install mvc 4 for vs 2010 after many attempts. I had the mvc 4 beta installed because I created a webapi project. I also had mvc 2 & 3 installed. I uninstalled mvc 4 using the (bundle) lin... | 2 | 11,423 |
External page div load with jQuery element error | <p>If anybody that knows jQuery better than me (probably 99% here since this is my first week trying this code :) have some time left over here´s a question that I really need some answer to. Sorry for some incorrect english.</p>
<p>Some of you have probably read the other questions I asked about putting external page... | 2 | 1,364 |
large bitmap crushes (out of memory) | <p>I am following developer.android website <a href="http://developer.android.com/training/displaying-bitmaps/index.html" rel="nofollow">here</a> and I am trying load large image from url (i.e 1024 x 900) My code works fine in my Google Nexus but doesn't work on Nexus s. </p>
<p>Here is my code</p>
<pre><code>public ... | 2 | 1,684 |
How can i Split Menu Bar in two lines | <p>This is my jsfiddle </p>
<p><a href="http://jsfiddle.net/Cs8Uu/1/" rel="nofollow">http://jsfiddle.net/Cs8Uu/1/</a></p>
<p>I have got a Menu as shown in the fiddle
Right now the Menu is being shown under one line .</p>
<p>How can i make that display in two lines ??</p>
<p>Means </p>
<pre><code>ONE TWO THREE (Fi... | 2 | 1,091 |
Integer and boolean types to use in an embedded system with two architectures | <p>I'm writing some software for an embedded system, mostly in C. It happens to be a dual core TI platform and I am using a few vendor and other libraries. The processor has one ARM core which is 32-bit and can do byte access (<code>sizeof(char) == 1</code> and <code>sizeof(int) == 4</code>: 8 and 32 bits respectively)... | 2 | 1,672 |
How to apply vba code which highlights active selected cell to all active sheets? | <p>I am currently trying to apply this code below to active sheets by converting it to macro. However I am having trouble with for each function. </p>
<p>This is the original code. </p>
<pre><code>Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
'Update 20140318
Static xRow
Static xColumn
If... | 2 | 1,026 |
Postgres Function to Populate Recordset and Returned ID | <p>I am trying to <code>INSERT</code> a record, return the ID, and then pass the ID to other tables and insert additional data. The data to be inserted is in JSON format.</p>
<p>I am using a function call to insert the data, and while the create statement works, I am doing something wrong during the execution of it (s... | 2 | 1,283 |
How to add spaces to triangles | <p>So I've been at this for a while and I have am not sure how to do this so my professor wants us to print out triangles using for statements I accomplished this. But I have to add spaces to different columns in two of these triangles and I'm confused of how to do this. Here is what I have so far:</p>
<pre><code>// L... | 2 | 1,317 |
Gettine Exception: java.lang.IllegalStateException: database not open | <p>Although it is a common error and there may be so many posts related to this exception. But here is the strange situation. I am getting the <code>java.lang.IllegalStateException: database not open</code> exception in Android 2.2. In remaining mobiles its working well.</p>
<p>Logcat:</p>
<pre><code>java.lang.Illega... | 2 | 1,643 |
How to populate list view in android with connection to sql server | <p>Hi guys i have tried some codes but none work i was hoping if someone could help me. Bellow i will put my code</p>
<p>AndroidManisfest:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.andre.marques.moldartsqlserver">
&l... | 2 | 2,504 |
Mechanize does not follow redirect after website login | <p>I've been having a lot of trouble getting what should be a fairly simple login script to work on a particular website. <strong>My code does work on another website (Reddit)</strong>, but it doesn't work on:</p>
<p><a href="https://eo-sso-idp.eo.esa.int/idp/umsso20/login" rel="nofollow">https://eo-sso-idp.eo.esa.int... | 2 | 1,218 |
how to change scene based on time in javafx | <p>New to java and JavaFX so please bear with me</p>
<p>I need to do a presentation of 5 3d fruit models that show in a continuous loop, 15 seconds apart: fruit1 for 15 seconds then fruit2 for 15 seconds ad so on and so forth.. until fruit5 for 15 seconds and then back to fruit1 and continues until I hit the ESC key w... | 2 | 1,076 |
XCode 7: AWS S3 Header file not found using Cocoa Pods | <p>I'm trying to get an existing Objective-C project to build in XCode 7 on OS X 10.11 (El Capitan). I grabbed the source from a repository, ran <code>pod install</code>, and then opened up the <code>.xcworkspace</code> file and tried to build. It fails to find 'S3.h' which should be getting installed by Pods. </p>
... | 2 | 1,325 |
How do you write multiple rasters in [r]? | <p>I am using lapply() to load 144 rasters as in my previous post:
<a href="https://stackoverflow.com/questions/59887908/how-do-you-load-multiple-rasters-in-r-using-a-for-loop">How do you load multiple rasters in [r] using a for loop?</a></p>
<pre><code>library(raster)
rastlist <- list.files(path=path, pattern='ti... | 2 | 1,165 |
MPI dynamically allocation arrays | <p>I have a problem with a dynamically allocation of arrays.</p>
<p>This code, if I use a static allocation, runs without problem...</p>
<pre><code>int main (int argc, char *argv[]){
int size, rank;
MPI_Status status;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
M... | 2 | 2,947 |
How to remove separator line in jfree chart- donut chart | <p>I am creating Donut chart using Jfreechart. I want to remove separator line (ie.line between green section and white section)- This line is exceeding the chart part. i need to restrict that to just to chart width.</p>
<p>Below is the actual and expected chart:
<a href="https://i.stack.imgur.com/RHl4e.png" rel="nofo... | 2 | 1,658 |
Component definition is missing display name in reactjs? | <p>I am complete my project. Now I am trying to get a production build. But I am getting an error with name <code>"Component definition is missing display name"</code>. I am using nextjs.</p>
<p>From my whole proect only two component, show that error like image-
<a href="https://i.stack.imgur.com/1ht7X.png" ... | 2 | 3,142 |
Symfony Dynamic Forms with ajax | <p>I am trying to do a form in which I will be able to add as many product options as I want (so collection with prototype). For this I need two fields, one Option Definition and second with Option values.</p>
<p>I have got entities like: Product, Options, Options Definitions and Product Options Join (I decided to use... | 2 | 2,090 |
Move data from one listbox to another on button click in asp.net mvc | <p>i am new in ASP.net MVC.
I have two listbox one listbox contain data from db and wanted to move data into another listbox and save into database.. i have done the following code to display the two listbox..
<strong>InstituteInformation.cs</strong></p>
<pre><code>public class InstituteInformation
{
publ... | 2 | 1,030 |
ffmpeg remove Non-Monotonous DTS frames | <p>Is it possible to stream copy a .ts file to another .ts file by removing the Non-Monotonous DTS frames? These frames usually also have a smaller resolution than the video I am trying to copy. I attempted this with VideoReDo but it did not work and I cannot seem to make it work.</p>
<p>Also, the MediaInfo for the vi... | 2 | 1,387 |
Creating batch action on sonata admin | <p>I'm trying to add new batch action on Sonata admin. But when i implement example on <a href="http://sonata-project.org/" rel="nofollow">Sonata-Project</a> to my project, it says:</p>
<blockquote>
<p>Notice: Undefined index: translation_domain</p>
</blockquote>
<p>How to solve it?</p>
<p>Some code pieces:</p>
<... | 2 | 1,923 |
On the semantics of `srun ... >output_file` for parallel tasks | <p>Sorry, this question requires a lot of build-up, but in summary, it's about the conditions under which many parallel instances of <code>srun ... >output_file</code> will or won't lead to the clobbering by some process/task of the output produced by some other process/task.</p>
<hr>
<p><strong>CASE 0: bash only ... | 2 | 2,236 |
React/Redux Sort Function Not Updating State | <p>I have a simple React/Redux app that displays a list of cars based on my Rails API.</p>
<p>I'm trying to add a sort feature that alphabetizes the cars by their name.</p>
<p>While my variable <code>orgArray</code> is in fact alphabetized when I console.log it, my Redux dev tool says <code>states are equal</code> af... | 2 | 1,519 |
PHP code showing blank page | <p>I want to send a email with input data from my html page. I am using next php script: </p>
<pre><code><?php
if((isset($_POST['budget']))&&(isset($_POST['type']))) {
$email_to = "design.er@icloud.com";
$email_subject = "Design";
function died($error) {
// your error code can go here
... | 2 | 1,200 |
How to save a JSON response in Database with Laravel Eloquent, I'm getting an error "Array to string conversion" | <h2>** Error: "Array to string conversion" **</h2>
<p>I'm trying to save a JSON(string) with Eloquent into the database but
I'm getting an error: <b>"Array to string conversion"</b></p>
<p>I try to add in my model:</p>
<p><code>protected $casts = ['payload' => 'array'];</code></p>
<p>or </p>
<p><code>protecte... | 2 | 1,024 |
Getting "The process cannot access the file because it is being used by another process" when saving multiple files from the request stream | <p>I am using the HTML5 canvas element and the new HTML5 file i\o function to drop multiple files on it and have them upload. It works fine, but now I need to generate a new filename if no files are in the destination directory (It's a 7 digit integer) or get the name of the last uploaded file, convert it to int32 and ... | 2 | 1,695 |
Hibernate/H2 @OneToMany "Referential integrity constraint violation" on remove of child? | <p>Hello I have a rather simple relationship.
A Patient can have several Measurements. I used a H2 file database and Hibernate.</p>
<p>The Problem:
When I try to remove a Measurement from a Patient I get a the following Error.</p>
<pre><code>Referential integrity constraint violation: "FK_O423U89KR6K78NNG1PO0ISDF6: ... | 2 | 1,431 |
SQL query inner join tables, print to HTML <select> tag | <p>I have been tasked with updating an old application and ran into a head scratch-er. The application runs on Railo(ColdFusion) with a MySQL 5 database.</p>
<p>The application is using Roles based authentication to manage users. The previous developer appeared to have no code to modify/add/delete users and just mod... | 2 | 1,435 |
Automatic Ajax call after page refresh | <p>I have a web page with form that uses Ajax which dynamically creates data underneath but when the user refreshes the page it disappears but the dropdown menu still has its selection. Is there anyway to either keep the dynamically generated data or to resubmit the Ajax call?</p>
<p>index.html:</p>
<pre><code><!D... | 2 | 2,620 |
iPhone : How to get values from class in viewForAnnotation method? | <p>I am trying to show two images on Map on base of Points name.</p>
<pre><code>@interface MyAnnotationClass : NSObject <MKAnnotation> {
NSString *_name;
NSString *_description;
CLLocationCoordinate2D _coordinate;
}
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSStrin... | 2 | 1,051 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.