title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Swiper.js AngularJS attributes from inline HTML | <p><a href="http://jsfiddle.net/Zuriel/LDdKW/" rel="nofollow">Semi-working JSFiddle</a></p>
<p>How can I get attributes from a directive like so:</p>
<pre><code><div swiper="{mode:'vertical'}">
<slide ng-repeat="slide in news.images">
<img src="{{slide.image}}" alt="{{slide.caption}}">
... | 1 | 1,344 |
How could i pass parameter to pika callback | <p>I use pika to interact with RabbitMQ server as following:
1. P1 send message to RabbitMQ
2. C1 is an pyqt4 desktop tray application,which will show the above message once received.
The code is as following:</p>
<pre><code>import sip
sip.setapi('QVariant', 2)
from PyQt4 import QtCore, QtGui
import systray_rc
cla... | 1 | 4,080 |
Protobuf Inheritance and Generics | <p>I am attempting to use ProtoBuf net to serialize an object tree with the classes in the following format:</p>
<pre><code>[ProtoContract]
class MySpecialCollectionList<T> : List<MySpecialCollection<T>>
{
[ProtoMember(1)]
public string Name { get; set; }
}
[ProtoContract]
class MySpecialCol... | 1 | 1,233 |
Repository Pattern Implementation Experience | <p>I am getting ready to start a new asp.net web project, and I am going to LINQ-to-SQL. I have done a little bit of work getting my data layer setup using some info I found by <a href="http://mikehadlow.blogspot.com/" rel="nofollow noreferrer" title="Mike Hadlow">Mike Hadlow</a> that uses an Interface and generics to ... | 1 | 1,550 |
"Specified value has invalid HTTP Header characters. Parameter name: name" | <p>I'm trying to build a soap envelope using C#; I'm getting the error: "Specified value has invalid HTTP Header characters. Parameter name: name" when adding the header.
When I use the Immediate Window to examine the output of BuildSoapHeader(), I still see the escape sequence "\" literal and I wonder if that's the is... | 1 | 1,366 |
Doctrine Pessimistic Lock | <p>Scenario:</p>
<p>I am implementing an application in Symfony2 running a command every five minutes (cronjob) that goes through a MySql table and in each record, first read a json_array field, performs a series of calculations and finally saves the array with new data in the same field. Moreover there is a web appli... | 1 | 1,432 |
AR Vuforia move object by touch only in x z (Unity3D) | <p>Im working on a augmented reality program and i need to move objects by touch in x and z coordinates. i have found a code in vuforia site to move objects. i tested this code but there are some problems, like object moving in Y so it goes to air !!!!!
but i want to move my object only in x z (on ground scene)
i trie... | 1 | 1,374 |
JpaRepository: No Transaction in progress | <p>I'm using Spring Data Jpa along with hibernate. I have a repository that extends JpaRepository and I'm using it to save records to the database. But when I call .flush(), the following error occurs.</p>
<p>I've seen other questions with a similar error but after trying to use @Transaction in the repository as well,... | 1 | 1,570 |
Is recent GTK 3.22 still Boehm GC friendly (thread issue)? | <p>The <a href="https://www.hboehm.info/gc/" rel="noreferrer">Boehm's conservative garbage collector</a> is quite useful (e.g. <a href="https://www-sop.inria.fr/indes/fp/Bigloo/" rel="noreferrer">Bigloo</a> is using it, <a href="http://www.gnu.org/software/guile" rel="noreferrer">Guile</a> is using something similar, e... | 1 | 1,505 |
How to run a task with celery in django and save result in django database? | <p>I have made a scraper to scrape some links from web page and want to run this scraper every 1 hours which resides in django app, but django it is impossible to run a scraper every 1 hours because the django views depends on the request response object. to solve this problem I have decided to use a python library n... | 1 | 1,194 |
How to write junit test for Postmapping method | <p>I have the program which displays the fields with names and the user needs to enter them. How can I test this?</p>
<p>User.java - class for user.</p>
<pre><code>public class User {
@NotEmpty
private String firstName;
@NotEmpty
private String lastName;
public String getAllInfo() {
return t... | 1 | 1,322 |
jQuery and split not working together? | <p>I'm playing around with jQuery tabs and have a prototype up and running.</p>
<p><a href="http://www.omnicom-innovations.com/play/tabsdemo.html" rel="nofollow noreferrer">http://www.omnicom-innovations.com/play/tabsdemo.html</a></p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function() {
$("#tabs").t... | 1 | 1,301 |
Tomcat not running on Amazon EC2, Redhat Instance | <p>I'm a java application developer, and don't know much about linux configuration.</p>
<p>I'm trying to install Java and Tomcat to a fresh Redhat instance on Amazon EC2, and executed the below script.</p>
<pre><code>mkdir /usr/local/java
cd /usr/local/java
curl http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk... | 1 | 2,155 |
Drawing quad in OpenGL ES on Android | <p>I am just trying to understand what is going on here. I have a textured quad on the screen but I am really confused why it takes up the entire screen. If my texture is 64X64 and I wanted a quad at the top left of the screen that was 64X64 what would I need to change? Is my viewport or my vertices positions causing i... | 1 | 1,181 |
Nodejs- Set body to Google cloud task queue | <p>I have a nodejs server in Google app engine where I want to delegate long running tasks to task queues using the <a href="https://cloud.google.com/appengine/docs/standard/python/taskqueue/" rel="nofollow noreferrer">Google Cloud Task queue</a>.</p>
<p>Task queue not delivering request body but hitting the endpoint:... | 1 | 1,200 |
How to Create a Compatible JAR File for Selenium Tests? | <p>I have created a script to perform few automated tests in Selenium for a website using Java in Eclipse.</p>
<p>My aim here is to create a JAR file for my automated tests so that when the file is simply executed, the tests will run on any other system configured with a Selenium environment. For that I have created a... | 1 | 1,045 |
Left join query with EF 6 | <p>First, here is the simplified EF model I'm using :</p>
<pre><code>public partial class MaterielRoulant : IKeyed<int>
{
public MaterielRoulant()
{
this.RelationsMaterielRoulantEquipement = new List<RelationMaterielRoulantEquipement>();
}
public int Id
{
get;
s... | 1 | 2,712 |
REST Web Service 400 error when calling function | <p>I have made a REST Web service, that works with Visual Studios WCF Test Client.
Can call it with a website that sits next to it and uses a "proxy" class that was created with svcutil.</p>
<p>I can also see the service is there when I Browse to the .svc file. (http://localhost/service1.svc) It comes up with the "Yo... | 1 | 3,486 |
Mahout error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1 | <p>I am a Mahout newbie. </p>
<p>I was trying to implement the Recommender which is discussed in following post: <a href="https://code.google.com/p/unresyst/wiki/CreateMahoutRecommender" rel="nofollow">https://code.google.com/p/unresyst/wiki/CreateMahoutRecommender</a></p>
<p>I was trying using NetBean IDE, and recei... | 1 | 3,301 |
Static Library and -weak-lSystem | <p>I build a static library that links against other frameworks, particularly CoreLocation. I want to use features provided by iOS 5 but be compatible with 4.3.</p>
<p>My app crash at launch when I start it on iOS devices in 4.3 with this error :</p>
<pre><code>Date/Time: 2012-08-22 16:44:53.900 +0200
OS Versio... | 1 | 1,030 |
Building Android source: error when executing mm? | <p><strong>Update</strong></p>
<p>I got this working. How I am not sure. I did no config changes at all. What I did was:</p>
<ul>
<li>Modify <code>Dialog</code> in <code>frameworks/base/core/java/android/app</code>.</li>
<li>Went to my root (<code>/path/to/source/</code>).</li>
<li>Then I did <code>mmm frameworks/bas... | 1 | 1,467 |
Camera exception in Android | <p>I get the following exception when trying to tun Camera intent:</p>
<pre><code>10-31 20:49:43.297: ERROR/DatabaseUtils(194): Writing exception to parcel
10-31 20:49:43.297: ERROR/DatabaseUtils(194): java.lang.UnsupportedOperationException: Unknown URI: content://media/external/images/media
10-31 20:49:43.297: ERROR... | 1 | 2,119 |
Builder Annotation not working in Java class | <hr>
<p>This code was written for learnig purpose.
@Builder and @Data annotation has been implemented in the Book class. While trying to create a builder for the same in LibraryApplication.java builder is not being recognized. </p>
<p>How can I enable the annotations which on Book class</p>
<p>**Edit **: When trying... | 1 | 2,621 |
NodeJS dbus not working | <p>I'm trying to get status from omxplayer with NodeJS via DBus, to do that i'm just trying to execuce shell script:</p>
<pre><code> #!/bin/bash
#set -x
OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus"
OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.pid"
export DBUS_SESSION_BUS_ADDRESS=`cat $OMXPLAYER_DBUS_ADDR`
... | 1 | 2,354 |
Android app java.lang.RuntimeException error | <p>Hi I'm trying to build a calculator to calculate compound interest, I'm keep getting a <code>java.lang.RuntimeException</code> error. I've read some topics on stackoverflow and their problems seems something wrong with their AndroidManifest.xml. I didn't edit that file at all but I'm still getting this error.
Here's... | 1 | 2,064 |
Jquery UI dialog box, is grayed out too | <p>I'm using a jquery UI dialog to modify a data row in a ASP.NET website, When opening the dialog I append the dialog to the underlaying form, this gives me the possibility of using postbacks. <code>$('#' + id).parent().appendTo($("form"));</code></p>
<p>But when I set the dialog property <code>modal: true</code> Not... | 1 | 1,061 |
Need help on Socket Programming in Python (beginner) | <p>I am learning socket programming and python. I need to create a client that sends a command to a server (list or get ). The server then validates the command. My client program can display "list" or "get" , but it doesn't show the error message when I enter other things.<br>
Also, it only works one time; when I en... | 1 | 1,254 |
Elastica filter not working | <p>I am testing out Elastica and Elastic Search. I am trying to add a filter to my query that only returns results by city location. It is returning empty. I've tried filter by username, and so on and it always returns empty, so it would seem my understanding isn't quite correct. Here's my code to analyse, map, then se... | 1 | 1,494 |
Does this use 256-bit AES encryption? | <p>I think it's hashing a 256 bit key, not sure if this is producing 256 bit cipher text though. Does using a 256-bit key mean the cipher will produce a 256-bit cipher text? The resultant cipher text is base 64 encoded. </p>
<p>Thanks!</p>
<pre><code>import java.security.spec.InvalidKeySpecException;
import java.secu... | 1 | 1,308 |
Non-serializable values were found in the navigation state. Check: Login > params.store.dispatch (Function) | <p>If I log in then I close application (and I have data saved in AsyncStorage) I get no errors when I'm trying to log out, but if I clear all cache/data from app and I try to login then to logout I have error:
<strong>Non-serializable values were found in the navigation state.</strong></p>
<p>Index.js (extracted from ... | 1 | 2,813 |
Spring rest template 401 error response | <p>I have a rest controller answering on <a href="http://localhost:8080/documents" rel="nofollow noreferrer">http://localhost:8080/documents</a>.
I should have an authorization header to call it.</p>
<p>So in my client code i have : </p>
<pre><code>HttpHeaders headers = new HttpHeaders();
headers.set(HttpHeaders.AUTH... | 1 | 1,598 |
Get request attributes and store them for later use anywhere in the application | <p>I am using Spring MVC and I would like to get some parameters from the request headers and store them an an object that is available anywhere in the application during the current request. Imagine a an application wide metadata class.</p>
<p>I would like to avoid using the RequestContextHolder because other parts o... | 1 | 1,026 |
Using a HOC (higher order component) with React-Redux connect | <p>I'm trying to get more comfortable with using higher order components so I'm working on refactoring an application. I have four different components that all reuse the same <code>fetchData</code> request, as well as error/loading conditionals. My plan is to take this reusable data and put it into a HOC. I've tried m... | 1 | 1,213 |
How do I return json for 404s and 403s in WebAPI? | <p>I have a fairly simple web API application that currently has one route setup. If the user attempts to access any other route they get a 404 back but the body of the 404 is HTML instead of JSON (which is what their accept header asks for). What is the <em>easiest</em> (least code/config added to my project) way to... | 1 | 1,274 |
selenium webdriver no element found error in internet explorer | <p>I am getting below error in <code>Internet explorer 8</code> but working same in <code>Firefox</code> (Both name, xpath are same)</p>
<pre><code>"Unable to find element with name == username (WARNING: The server did not provide any stacktrace information)"
</code></pre>
<p>My HTML Looks like</p>
<pre><code><cl... | 1 | 1,884 |
Java Android FCM sending message to user Server returned HTTP response code | <p>I did this :</p>
<pre><code>public class PushNotifictionHelper {
public final static String AUTH_KEY_FCM = "AIzaSyD63pfTvnwhe9WVuIe.........";
public final static String API_URL_FCM = "https://fcm.googleapis.com/fcm/send";
public static String sendPushNotification(String deviceToken)
throws... | 1 | 1,181 |
libgit2 alpine linux docker error | <p>Ok, This is above my understanding. I have really no idea what exactly is wrong here but something is. I am on the verge of breaking by banging my head on the wall and yet nothing came up. Can any kind soul please help me.</p>
<p>This is my Dockerfile - </p>
<pre><code>FROM golang:1.7-alpine
RUN echo http://dl-4.a... | 1 | 3,051 |
jquery validation - submitting form with enter key | <p>I am new to javascript and jquery and I'm trying to submit a form which is validated using the jquery validation plugin using the enter key. This is my code but the form is not being submitted as the alert isn't showing when you press enter. I'm not sure what exactly is happening. I think the page is simply being re... | 1 | 1,087 |
Device not responding to set address | <p>I just wasted a morning trying to figure this out and I finally did. There is no hint on SO for this issue, so I thought that I would post my experience and what finally worked.</p>
<p>I am running ubuntu 13.10 and suddenly yesterday when I plugged in my android phone via usb, it fails to mount. These are errors ... | 1 | 1,546 |
Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap | <p>I get the following error when installing elixir on laravel 5.2.31</p>
<blockquote>
<pre><code> gulp
[12:05:58] Using gulpfile /var/www/html/ta/gulpfile.js
[12:05:58] Starting 'default'...
[12:05:58] Starting 'sass'...
Fetching Sass Source Files...
- resources/assets/sass/app.scss
Saving To...
- public/c... | 1 | 1,341 |
How do I configure Jetty to allow larger forms when used with Spark Framework | <p>How do I configure Jetty options via <a href="http://sparkjava.com/" rel="nofollow noreferrer">Spark framework</a> ?</p>
<p>Im getting the problem below when i submit a large form. The solution for Jetty is documented at <a href="https://stackoverflow.com/questions/3861455/form-too-large-exception">Form too Large E... | 1 | 1,227 |
Why can't I create a managed device on Intune? | <p>I am trying to create a managed device in Intune but I am getting different errors.<br/>
<br>This is the documentation I am using <a href="https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_devices_manageddevice_create" rel="nofollow noreferrer">https://developer.microsoft.com/en-us/graph... | 1 | 1,450 |
scrolling menu ( c code ) | <p>I want to create a menu with max 10 line window, and display in this window all items from a xml file ( containing more than 10 items), by scrolling up/down line in window to view all content of file.</p>
<p>Questions: How make this possible in my API (like in ncurses scroll menu):</p>
<p>"If the sub window given ... | 1 | 3,688 |
Java Web Service Client Certificate Configuration for Secure(Https) Connections in Jdeveloper | <p>I'm developing a Web Service integration in Java with Oracle Jdeveloper for UPS shipments. I've imported the WSDL files and they're assigned perfectly. However I can't run it because Jdeveloper throws an exception since it doesn't recognize its certificate. I've downloaded the required certificate and installed it i... | 1 | 3,165 |
Blank page when building Angular 8 project but works perfectly using "ng serve" | <p>My project is working with "ng serve" command but shows just a blank screen when building. And this message is shown in the console:</p>
<blockquote>
<p>Angular is running in the development mode. Call enableProdMode() to enable the production mode.</p>
</blockquote>
<p>No route is loaded and there is just an em... | 1 | 3,020 |
Multiple analog to digital converters on Arduino using SPI bit banging | <p>I am using a Nano Arduino (ATMega 328) to communicate to two 12-bit MCP3208 ADC chips based on <a href="http://playground.arduino.cc/Code/MCP3208" rel="nofollow">this code</a>. I have another device (LED driver TLC5940) tied to the pins that are suggested on this page but since I am using bit banging, it should not... | 1 | 2,301 |
Add "close" button to a bootstrap tab content | <p>I'm having trouble adding a "close" button to my Bootstrap tab content. Not only should the tabs open and close on hover, but I have to add a button to allow users to click and close the tab.</p>
<pre><code><!-- SIDE NAV -->
<div class="col-xs-3 hidden-xs">
<div class="row">
... | 1 | 1,174 |
How to call a react native function for navigation from another class | <p>I am new in react native. I have used Wix react-native-navigation library for navigate between pages. I want to write a separate class for navigation like bellow and call it in everywhere that I need it in my project. But I get error for "this.props.componentId". Here is my function for navigation:</p>
<p>ScreenNav... | 1 | 1,195 |
Adding @angular/fire to angular 12 | <p>I am trying to add @angular/fire to my Angular 12 project so I can deploy it on Firebase.
I used the cli to add @angular/fire
I run:</p>
<pre><code>ng add @angular/fire
</code></pre>
<p>Here is the output I get:</p>
<pre><code>ℹ Using package manager: npm
✔ Found compatible package version: @angular/fire@0.0.0.
✔ Pa... | 1 | 2,643 |
Java automatically connect to server if it opened | <p>I'm trying to create a program which will determine if the server is connected, down or disconnected.
I need to make the client automatically connect to the server when it's open.</p>
<p>Questions:</p>
<p><code>1. How can I continuously ping the server, to determine if the server is up?</code></p>
<p><code>2. Why... | 1 | 2,827 |
Weekday as dummy / factor variable in a linear regression model using statsmodels | <p><strong>The question:</strong></p>
<p>How can I add a dummy / factor variable to a model using <code>sm.OLS()</code>?</p>
<p><strong>The details:</strong></p>
<p><strong>Data sample structure:</strong></p>
<pre><code>Date A B weekday
2013-05-04 25.03 88.51 Saturday
2013-05-05 52.98 67.99 Sunday
... | 1 | 3,022 |
Spring Boot JMS Topic not working | <p>Spring Boot JMS Topic not working properly it behave like queue.</p>
<p>Sample code</p>
<p>Application</p>
<pre><code>@SpringBootApplication
public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
</code>... | 1 | 1,138 |
undefined references ATLAS, MPI, CBLAS when compiling HPL in Centos6 | <p>I am trying to run HPL 2.1 in my Centos systems.</p>
<p>This is my make file:</p>
<pre><code>[root@cadejos-0 hpl]# cat Make.cadejos
#
# -- High Performance Computing Linpack Benchmark (HPL)
# HPL - 2.1 - October 26, 2012
# Antoine P. Petitet ... | 1 | 4,668 |
Cannot deploy Next.js to Netlify. Deploy failed due to an error in @netlify/plugin-nextjs plugin | <p>I can run <code>npm run build</code> with no problems at all, but whenever I try and deploy my Next.js project to Netlify I get an odd error stating <code>Deploy failed due to an error in @netlify/plugin-nextjs plugin</code></p>
<p>After doing some research I found that I should install <code>@netlify/plugin-nextjs<... | 1 | 7,458 |
Typescript compiler not finding absolute paths when including files on tsconfig.json | <p>I'm trying to use absolute paths when importing modules in JS, unfortunately <code>tsc</code> fails to resolve the paths correctly returning error:</p>
<blockquote>
<p>Module name 'test2' was not resolved.</p>
</blockquote>
<p>I have the following file structure</p>
<pre><code>project
│
└───tsconfig.json
└───js... | 1 | 1,131 |
Get JSON data from URL and display in tablelayout (Android Studio) | <p>I have some JSON data stored online and I want to grab that from the URL and display it in a tablelayout in Android Studio. At present the code I have done doesnt appear to be working. When I click the button on the app all that displays is "[]" and not the desired information from the arraylist.</p>
<p>Any ideas?<... | 1 | 2,087 |
Implementing a KVO/Bindings-Compliant Bridge-Pattern in Cocoa | <p>I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject instance.</p>
<p>Here is my problem (more details in the code below):</p>
<p>A bridge object acts as a drop in for a Person-Object, with an NSString* property c... | 1 | 2,265 |
Is "Copy Local" transitive for project references? | <p><strong>Wrt. the proposed dupe:</strong> Since this here queston suggests the opposite of the <a href="https://stackoverflow.com/questions/12386523/visual-studio-not-copying-content-files-from-indirectly-referenced-project">linked question</a>, I'd rather like to think it is <em>not</em> a dupe.</p>
<p><strong>Firs... | 1 | 1,472 |
Why does mulss take only 3 cycles on Haswell, different from Agner's instruction tables? (Unrolling FP loops with multiple accumulators) | <p>I'm a newbie at instruction optimization.</p>
<p>I did a simple analysis on a simple function dotp which is used to get the dot product of two float arrays.</p>
<p>The C code is as follows:</p>
<pre><code>float dotp(
const float x[],
const float y[],
const short n
)
{
... | 1 | 4,357 |
flutter: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) | <p>I'm working with flutter in ubuntu 18.04. I can't run my project although <code>flutter doctor</code> is no problem. I stuck in the problem of <code>Gradle daemon</code>. I have tried the method in <a href="https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:disabling_the_daemon" rel="nofollow noreferre... | 1 | 4,805 |
Rails 4/Devise/MongoDB: "Unpermitted parameters" using custom properties and strong parameters | <p>Trying to add a nested custom attribute, <strong>Profile</strong> (a Mongoid document), to my devise <strong>User</strong> class. When the Devise registration form is submitted, it should create both a <strong>User</strong> and a corresponding <strong>Profile</strong> object as well.</p>
<p>I'd like the end-result ... | 1 | 1,803 |
How to get bitmap of a view? | <p>Ok, so I'll try my best to explain my problem.
I have used this code to get a "screenshot" of my FrameLayout</p>
<pre><code>/**
* Function that takes a screenshot of the view passed and returns a bitmap for it.
*
* @param view {@link View}
* @return screenshot of the view passed
*/
public Bitmap screenShot(Vie... | 1 | 1,177 |
Spring Batch - Bean Creation Error Causes Autowire to Fail | <p>I'm pretty new to Spring and Spring Batch I'm working on setting up a Java configuration for a Spring Batch job I tested out using an XML configuration which I have running correctly. However I'm running into an issue where I cannot even get the job to application to run because of an issue, I believe, with setting ... | 1 | 5,601 |
How to have a textview transition to the title in a collapsing toolbar? | <p>I have a <code>CollapsingToolbarLayout</code> that contains a <code>TextView</code> and a <code>RatingBar</code> under the <code>TextView</code>. Would it be possible to have the <code>TextView</code> somehow transition to the title?</p>
<p>My current layout looks like this: <a href="https://i.stack.imgur.com/dcRYP... | 1 | 1,328 |
Memory leak in AFNetworking Cache images in IOS | <p>I just moved from ASIHTTP to AFNetworking library. I am also using SDURLCache library from Olivier Poitrey and Peter Steinberg. I want to cache all the images that I gonna use in my application. For these, I tried this:</p>
<pre><code>NSOperationQueue *queue = [[NSOperationQueue alloc] init];
for(NSURLReque... | 1 | 1,838 |
Creating a montage of pictures in python | <p>I have no experience with python, but the owner of this script is not responding.</p>
<p>When I drag my photos over this script, to create a montage, it ends up cutting off half of the last photo on the right side edge. </p>
<p>Being 4 pictures wide,</p>
<pre><code>1 2 3 4
5 6 7 8
</code></pre>
<p>... | 1 | 1,327 |
SMIME encryption using openssl , decrypting with java bouncy castle fails | <p>Hi i have an application where i generate key pair and x509 certificate, i then use the public key (key.pem) and use openssl to encrypt my data to smime format as shown.</p>
<pre><code>openssl smime -encrypt -out encrypted_smime.p7m -in token.json out form SMIME key.pem
</code></pre>
<p>the encrypted file looks li... | 1 | 1,832 |
appendChild() to dynamically add images to a specific div | <p>I've just finished the codeacademy course on javascript so forgive my total lack of knowledge.</p>
<p>I'm attempting to create the classic bar game 1-4-24 (also called past midnight or after midnight) using javascript and html. (Here's a <a href="http://www.kickstarter.com/projects/ibeninja/past-midnight-1-4-24-ios... | 1 | 2,812 |
NoClassDefFoundError when creating default display image options | <p>I am gettign NoClassDefFoundError exception in MyApplication.onCreate:</p>
<pre><code> DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder()
.cacheInMemory()
.cacheOnDisc()
.build();
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder... | 1 | 1,239 |
I want a selected value in a combobox on form1, to be automatically populated into a textbox/label on form 3 | <p>I have 3 forms at the moment, form 1 you select 4 peices of data,
Form 2 you select up to 10.</p>
<p>I want it so when you go to form 3, all selected fields on form 2 are shown on the 3rd form.... as uneditable text fields (labels i guess)</p>
<p>I would attach some diagrams to make this 5000x easier to explain, b... | 1 | 1,122 |
a while loop inside a for loop not working in codeigniter view file | <p>so I have a codeigniter view file that has a code inside like this:</p>
<pre><code> <?php for($i=1; $i <= count($headings); ): ?>
<div class="row">
<?php while(($i%3) != 0 ): ?>
<div class="span4">
<?php $heading = current($headings); ?>
... | 1 | 1,613 |
Webpack hot reload using webpack dev server and rails server | <p>My current application is set up using Ruby on Rails and React/Typescript. I am trying to set up hot reloading.</p>
<p>Here is the current folder structure</p>
<pre><code>Project Root
- app => all the rails code
- frontend => all the react code
- webpack => list of configuration files, like developm... | 1 | 1,695 |
leading zeros missing within number input | <p>I need to have displayed, within the number input field, the leading zeros on integers between 00-09. I am using angularJS.</p>
<p>View/template for the input field(sorry for the style within the html):</p>
<pre><code><script type="text/ng-template" id="form_field_time">
<h3 style="color:coral ;">{{f... | 1 | 1,676 |
Using image in r markdown report downloaded from Shiny app | <p>I have created a very large shiny app that has a downloadable pdf report. The client has requested their logo in the header of every page of the pdf. I can get a logo on the pdf when the pdf is by itself (not part of the larger shiny app) but pandoc cannot find the image when I try to download the exact same repor... | 1 | 1,859 |
Disappearing CSS table cell borders in Gecko-based browsers | <p>I have a very specific html table construct that seems to reveal a Gecko bug.</p>
<p>Here's a distilled version of the problem. Observe the following table in a gecko-based browser (FF, for example): (you'll have to copy and paste this into a new file)</p>
<pre><code><style>
table.example{
border-colla... | 1 | 1,348 |
sasl installation in Windows | <p>I am using Python 3.4.2 on windows 64bit system. When I am trying to install sasl using pip, I am getting the error <code>error: INCLUDE environment variable is empty</code></p>
<pre><code>C:\Windows\system32>pip install sasl
Collecting sasl
Using cached sasl-0.2.1.tar.gz
Requirement already satisfied (use --... | 1 | 1,879 |
How can i fix InputBootStrapper error in eclipse for runnig Hadoop program? | <p>How can i fix it ?
This code is Hadoop WordCount example in JAVA.
I have added the external JARs and this is not a compile time issue,
When i have tried o run the program this is happening.
The input and out put arguments are set.
All the mangers are up and running.</p>
<p>Hadoop version 2.9.0</p>
<p>Java version ... | 1 | 1,096 |
How to contain a div floating outside of container div | <p>I'm making a 'topic' design, and I am having issues again. I have a floating div (to the left) inside a container div and it's going outside of it's boundries. It's dynamic, so setting a height: property will not suffice. Now I know it's the float: left; that's causing it, but how can I try fitting in it? I tried se... | 1 | 1,972 |
Windows XP batch command schtasks doesnt' run a remote script | <p>I'm trying to create a <code>batch</code> file in order to run automatic scripts on several remote PCs.<br>
My main machine should be able to connect to any remote PCs and set a local scheduled task.<br>
The batch file uses these commands:</p>
<pre><code>schtasks /delete <--- remove any previous ve... | 1 | 1,069 |
Android Displaying data from json to cardview in RecyclerView | <p>I want to display data from webservice to cardview in recycleviewer. It had already success to display data. But it only display one data, although it has a lot of data to display.
Can you help me to solve this problem? Thank you</p>
<p><strong>Seller.java</strong></p>
<pre><code>public class Seller {
String p... | 1 | 5,223 |
JENKINS : Can not set org.eclipse.aether.spi.log.Logger field org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider.logger | <p>When running my job im getting this error:</p>
<pre><code>Parsing POMs
12:04:09 ERROR: Failed to parse POMs
12:04:09 hudson.maven.MavenEmbedderException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
12:04:09
12:04:09 1) Error injecting: private org.eclipse.aether.spi.log.Log... | 1 | 1,683 |
Twitter Bootstrap Carousel - displaying multiple thumbnails | <p>I've created Carousel which displays 4 thumbnails per slide and I have two <a href="http://jsfiddle.net/S2rnm/487/" rel="nofollow">slides.</a> </p>
<pre><code><div class="container">
<div class="row">
<div class="carousel slide span8" id="myCarousel">
<div class="carouse... | 1 | 2,165 |
throw new TypeError('OAuth2Strategy requires a verify callback'); | <p>So I am learning about node.js and facebook authentication, and I ran into this error:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>/home/lindan4/Git/HelloNodeJS/Cha... | 1 | 1,583 |
reading a barcode with a webcam | <p>Hey,<br>
I'm trying to read a EAN-13 barcode from my webcam.<br>
I already wrote a class to do that work.<br>
I'm taking a picture from my webcam, trimming it to show ONLY the barcode,<br>
and reading the barcode with the code tables from wikipedia.<br>
For some reason, the barcode gets trimmed, but the output is al... | 1 | 3,329 |
Log4Net with ASP.NET Core 2.2 to write to a File | <p>In my ASP.NET Core 2.2 application I installed <a href="https://github.com/huorswords/Microsoft.Extensions.Logging.Log4Net.AspNetCore" rel="nofollow noreferrer">Microsoft.Extensions.Logging.Log4Net.AspNetCore</a> </p>
<p>in startup.cs</p>
<pre><code>public class Startup
{
private readonly ILogger _logg... | 1 | 1,067 |
react-native-gesture-handler pan/drag and rotate wrong values when rotated | <p>I made a single component based on the react-native-gesture-handler examples and they are working pretty well. I can transform, scale, move and rotate the image. But as soon as I rotate the image for 90° as an example, I receive wrong values for translateX and translateY. Moving down will move it right, swiping up w... | 1 | 3,777 |
google cloud vision api, how to read text and structure it | <p>I'm using google cloud vision api python to scan document to read the text from it. Document is an invoice which has customer details and tables. Document to text data conversion works perfect. However the data is not sorted. I'm not able to find a way how to sort the data because I need to extract few values from i... | 1 | 1,172 |
java.lang.NoClassDefFoundError: javax/persistence/Persistence... axis2 and eclipselink | <p>I want to deploy axis2 web services in netbeans, i installed the plugin axis2 in netbeans. Also i use EclipseLink 2.0 to connect a db. My connection is successful when i use in a main class that i created. But when i try to test my web services in netbeans with right click on the services throw this exception: </p>
... | 1 | 1,846 |
$ionicModal.fromTemplateUrl undefined is not a function | <p>I want to make an ionicModal form in my app but it always say's:</p>
<pre><code>TypeError: undefined is not a function
at new AppController (http://127.0.0.1:58710/www/js/home/AppController.js:15:17)
at invoke (http://127.0.0.1:58710/www/lib/ionic/js/ionic.bundle.js:11591:17)
at Object.instantiate (http... | 1 | 1,618 |
C Program, recv() error: Connection reset by peer | <p>I have some Problems using the recv() and send() functions.</p>
<p>here's my code:</p>
<pre><code>#include "performConnection.h"
#include "errno.h"
//checks if the first arguement of an answer is "+"
bool checkPlus(char buffer[]){
int position = strcspn(buffer,"+");
if (position==0){
return true;
}
else{
... | 1 | 1,372 |
File permission in docker container with volume mount | <p>I'm trying to let a docker container access a letsencrypt certificate from the host file system.</p>
<p>I do not want to run the docker container as root, but rather as a user with very specific access rights.
Neither do I want to change the permissions of the certificate.
All I want, is for the given user, to have... | 1 | 1,286 |
How to clear or update the content of an element in a grid in WPF | <p>I have a WPF window with a grid with 2 rows and some columns with text and buttons, then when I click a button the code adds some rows and populates them with random textblocks and images via for loops. For example, the method I call to add a TextBlock with text s in the (i,j) cell of the grid is</p>
<pre class="la... | 1 | 1,351 |
Electron: Cannot read property 'send' of undefined | <p>I'm trying to read the files from a directory using the fs module, and display that in a div with the id displayfiles in an Electron app. I keep getting the error :</p>
<pre><code> Cannot read property 'send' of undefined
</code></pre>
<p>Here is my renderer.js </p>
<p><div class="snippet" data-lang="js" data-hid... | 1 | 2,136 |
keycloak (spring boot) Not authenticating REST endpoint | <p>I am trying to play around with open source user management service like keycloak. Building a angularJs app that will be send HTTP request to REST endpoint secured by keycloak. I am using spring boot on the backend. I am able to call the endpoint and get result which should not be possible since it should block requ... | 1 | 1,091 |
Wicket: There is no application attached to the current thread | <p>I want to login from a Desktop application to a wicket webpage. Because of this I want to check periodically that some specific parameters are present.</p>
<p>But when I run my code the following exception is thrown.</p>
<pre><code>Exception in thread "Thread-13" org.apache.wicket.WicketRuntimeException: There is ... | 1 | 1,448 |
How can I make a triangle drawable on the top left of my view? | <p>I have created this drawable:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item >
<rotate
android:fromDegrees="45"
android:toDegrees="10"
android:pivotX="100%"
... | 1 | 1,251 |
Persistent storage in Phonegap | <p>I have literally spent the last 6 hours trying to persist data using phonegap, my first approach was using the localStorate API but that was killed everytime the app restarted so it was useless. Now I implemented it by writing a file to the the filesystem, but with the following problems:</p>
<ul>
<li>The file is c... | 1 | 1,139 |
Iterate over groups of rows in Pandas | <p>I am new to pandas and python in general - grateful for any direction you can provide! </p>
<p>I have a csv file with 4 columns. I am trying to group together rows where the first three columns are the same on all rows (Column A Row 1 = Column A Row 2, Column B Row 1 = Column B Row 2, and so on)</p>
<p>My data loo... | 1 | 1,439 |
"npm install bcrypt" failing with "Error: Cannot find module 'nan'" | <p>I'm trying to get my existing Angular project working on a new laptop and getting it up and running is driving me crazy. Here is what I have done:</p>
<pre><code>git init
git clone <project>
cd <project directory>
delete package-lock.json
npm install
npm install --global --production windows-build-too... | 1 | 1,616 |
How do I get JFrame to display my panel? | <p>I am learning to use JFrame so that I can start building some applications however, I am having a great deal of trouble getting my panel to display components. The code that I have created so far is just to practice and get a feel for the actual JFrame library.</p>
<p>Here is my code:</p>
<pre><code> import jav... | 1 | 1,031 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.