title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to make an element reference a StaticResource Storyboard in XAML (instead of the storyboard referencing the element) | <p>I am reading the MSDN Animation tutorial, and it describes the following steps to apply a storyboard to an element:</p>
<ol>
<li>Create the Storyboard;</li>
<li>Specify its target element name with the <code>TargetName</code> property;</li>
<li>(Specify the target property);</li>
<li>(Add an event trigger to start ... | 1 | 1,567 |
JSP To PDF Converter By jsPDF | <p>I am trying to convert my jsp page output into PDF. For this, I am trying <code>jsPDF</code> API. I did some R&D and wrote the code for the same. There is a PDF getting open but it is blank.
Need some help.</p>
<pre><code><script type="text/javascript" src="jsPDF/examples/js/jquery/jquery-1.7.1... | 1 | 1,060 |
Cannot read property 'length' of null in React component | <p>I am trying to build a React list component using a json-like format and materialUI components. I am trying to use a recursive function to build the component but it gives an error:</p>
<pre><code>transformed.js:23561 Uncaught TypeError: Cannot read property 'length' of null
at getStyles (transformed.js:23561)
at L... | 1 | 1,211 |
Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied | <p>Trying to run prometheus with a non-root user and after trying the many suggestions from <a href="https://github.com/prometheus/prometheus/issues/5976" rel="nofollow noreferrer">https://github.com/prometheus/prometheus/issues/5976</a>, it just doesn't work for me and I get:</p>
<pre><code>level=error ts=xxxxxxxx cal... | 1 | 1,028 |
Update and cancel outlook appointment using ICS file | <p>I'm trying to create an application which will create, update and cancel an appointment on target user's outlook calendar using ICS file.
I've successfully created the ICS file and send to target user's successfully for the first time.
<strong>But I'm unable to edit and cancel the appointment through an ICS file.</s... | 1 | 2,582 |
Memory leak risk in JavaScript closures | <p><strong><em>Solved</em></strong></p>
<p>There's a lot of contradictory information on the web, regarding this subject. Thanks to @John, I managed to work out that the closures (as used below) aren't the cause of memory leaks, and that -even in IE8- they're not that common as people claim. In fact there was only 1 le... | 1 | 2,716 |
Polymorphic Types and IXmlSerializable | <p>The XML serialization in .NET allows polymorphic objects through the <code>extraTypes[]</code> parameter of the <code>XmlSerializer</code> constructor. It also allows customization of XML serialization for types that implement <code>IXmlSerializable</code>.</p>
<p>However, I’m unable to combine these two features –... | 1 | 1,973 |
java.lang.IllegalStateException: Required identifier property not found | <p>I keep getting this exception while I'm trying to save an object to an H2 database.</p>
<p>The object I'm trying to persist is defined as following: </p>
<pre><code>package mypackage.foo.core.jpa.domain;
@Entity
@Getter
@NoArgsConstructor
public class Task implements Serializable {
@Id
@GeneratedValue(st... | 1 | 1,681 |
Firestore Pagination with FirestoreRecyclerAdapter (Android) | <p>I have reviewed the docs at <a href="https://firebase.google.com/docs/firestore/query-data/query-cursors" rel="nofollow noreferrer">https://firebase.google.com/docs/firestore/query-data/query-cursors</a></p>
<p>I would like to get firestore pagination working with <code>FirestoreRecyclerAdapter</code>. </p>
<p>Doe... | 1 | 1,668 |
Tensorflow tf.reshape() seems to behave differently to numpy.reshape() | <p>I'm trying to train a LSTM network and it trains successfully in one way, but throws an error in the other way. In the first example I reshape the input array X using numpy reshape and in the other way I reshape it using tensorflow reshape.</p>
<p>Works fine:</p>
<pre><code>import numpy as np
import tensorflow as ... | 1 | 1,819 |
Convert logic formula to conjunctive normal form in C++ | <p>I'm going to implement a CNF generator in C++, using Boots/Spirit. but after finish "the order of precedence" and "eliminating equivalences & implications" these two parts, I can't figure out how to implement "move NOTs inwards" and "distribute ORs inwards over ANDs". </p>
<p>Desired output is documented here:
... | 1 | 3,066 |
Pause/resume CSS animations when switching tabs | <p>I have a bunch of long-running CSS animations on a page. I want to pause them when a user switches to another tab and resume them when the user is back to the original tab again. For the sake of simplicity I don't aim for a cross-browser solution at this point; making it work in Chrome should be enough.</p>
<p><div... | 1 | 1,671 |
How do query (where,inner join) with Alloy (appcelerator)? | <p>I'm working on:</p>
<pre><code>Application Mobile with Alloy
Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0)
iPhone Device family: universal
iPhone SDK version: 6.0
iPhone simulated device: iphone
Detected compiler plugin: ti.alloy/1.0
</code></pre>
<p>I've created two models:</p>
<pre><code>alloy generate m... | 1 | 1,141 |
Swing + LWJGL not rendering anything. Black Screen | <p>I'm doing a Gr 12 Project. the basic idea is to render a map texture that can be changed via the swing GUI.<br>
I'm stuck at rendering using a Display that's .parented to a JFrame.
Nothing is showing up and i cant figure it out. ive changed the backround color and the rendering color. heres some of the code: </p>
... | 1 | 2,138 |
How to successfully obfuscate project with Dagger 2.0 using Proguard? | <p>I was happy to see google's fork of Dagger has been made available. (At the time of this writing, I realize that it is not "released" yet.) we have an android app which uses dagger heavily, although we do not use many of the more advanced features.</p>
<p>We have a business requirement to obfuscate our code, so I ... | 1 | 1,642 |
AWS API Gateway "Unsupported method \"undefined\"" as response | <p>I am setting up a AWS Lambda function to connect to my DynamoDB. To access it I'm also setting up an API Gateway.</p>
<p>The lambda seems to work when I test it. Because of this I believe the issue to be in the API gateway setup. </p>
<p><a href="https://i.stack.imgur.com/xvXbZ.png" rel="nofollow noreferrer"><img ... | 1 | 2,285 |
React app Heroku build failed - git push heroku master - Expecting X, Parse error on line 1: got unexpected end of input. Line 1 of which file? | <p>I'm getting a very confusing parsing error when I run <code>git push heroku master</code> when trying to build a React app in Heroku that successfully built yesterday. The only changes since then have been some media queries another contributor added to several .scss files.</p>
<p>The main error (full build repor... | 1 | 2,458 |
Spring Boot Rest Template Keep Connection Alive | <p>I have a Spring Boot application that is creating a request to an external system. The external system is responding after some time, 3-4 minutes. I would like to keep the connection open until i receive an response from the remote API. I tried using webflux, i tried setup the connection timeout for my application i... | 1 | 2,247 |
How to get the previous and next post in my Django blog? | <p>I know Django have get_previous_by_FOO and get_next_by_FOO methods but I don't know how to use them in my templates and views. So, please help me to make this two methods work for my project.</p>
<p>I'm running <code>Django1.7</code> and <code>Python2.7</code> and my app name is <code>blog</code>
Here is my corresp... | 1 | 1,029 |
maven 3.3 support for Websphere 8.5.5 - pom.xml | <p>I could not find a way to deploy my war file in websphere 8.5.5 using maven's pom.xml.
I see there is a plugin called was6-maven-plugin-1.2.1. and it can support WAS 6+, 7+, 8+ as well it seems.</p>
<p>But i could not deploy a war file using this plugin. It throws the following error.</p>
<pre><code>[ERROR] Failed... | 1 | 1,040 |
Laravel 5.8 Validation Localization - not translating error messages | <p>I have a problem that should be relatively simple, but I've read through the documentation and multiple posts here and I still can't figure it out. :( </p>
<p>I am creating a Laravel application with localisation (EN & FR). Everything works fine on the page in terms of localisation. However, when it comes to va... | 1 | 1,280 |
Lex program to count number of lines, characters, digits, and key words | <p>I have been working on developing a lex scanner however when I feed it my input file it is producing the wrong output. Here is my source code:</p>
<pre><code>%{
#include <stdio.h>
int NumberOfLines=0;
int NumberOfChar=0;
int NumberOfIntegers=0;
int KWCount=0;
int NumberOfComments=0;
%}
DIGIT [0-9]*
ID [a... | 1 | 1,115 |
Python OpenCV pure white background | <p>I have a DIY home photo studio to take photos. I want them to be on pure white background (#FFFFFF) with minimum user interaction</p>
<p>This is original picture i have (no any processing, just raw JPG from camera)
<a href="https://i.stack.imgur.com/16nH2.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/16... | 1 | 1,115 |
Deserialize xml to object with Symfony2 | <p>I collect some data in xml format through an API and would like to deserialize it in an objects list.
I'm using Symfony2 and find out JMSSerializerBundle but I do not really know how to use it.</p>
<p>I know that Sf2 allows to serialize/deserialize object to/from array, but I'm looking for something more specific.
... | 1 | 1,171 |
Java & XML: CRUD | <p>I would like to know how to manipulate XML files in Java.</p>
<p>I know how to do the create and read, I am just missing how to do the update and delete them. If anyone knows a website with tutorials, about it I would appreciate it. I also would like to know how to manipulate the records. </p>
<p>Here is what I ha... | 1 | 1,276 |
ConcurrentModificationException only in Java 1.8.0_45 | <p>I've got two question about this code:</p>
<pre><code>import java.util.*;
public class TestClass {
private static List<String> list;
public static void main(String[] argv) {
list = generateStringList(new Random(), "qwertyuioasdfghjklzxcvbnmPOIUYTREWQLKJHGFDSAMNBVCXZ1232456789", 50, 1000)... | 1 | 1,068 |
Laravel vue with two different layout | <p>I that possible to have different layout in laravel vue components?</p>
<p>If we use blades all we need is to change <code>@extends('layouts.app')</code> to <code>@extends('layouts.custom')</code> and then you have different design, but how it's working in vuejs?</p>
<h1>Code</h1>
<p>This is my <code>App.vue</cod... | 1 | 1,347 |
Android How to set a sound as ringtone with long press on button | <p>How do i set the sound as ringtone with long press on the button?</p>
<p>At the moment it only works on sound4 but not sound5</p>
<pre><code>package com.test.soundboard;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStre... | 1 | 2,471 |
SpringBoot junit tests with multiple TomcatServletContainerInitializer 's - BindException: Address already in use" | <p>I have spring boot app and currently all my test are running green if ai run them separately i.e. manually, but when i run the maven package command then all test run in a serial mode i.e. after each other. What happens then is that i get:</p>
<pre><code>"java.net.BindException: Address already in use".
</code></p... | 1 | 1,139 |
Laravel Excel - blank sheets when creating multiple sheets | <p>I had this working, using Laravel 4 and Laravel Excel to export data from mySQL. I have objects for Regtype and Attendee and I want one sheet per regtype with all related attendees. I had a single sheet of attendees exporting great. Now I've added a loop for the regtypes and I'm able to get multiple sheets but all s... | 1 | 1,631 |
Fatal Exception : AsyncTask #1 | <p>help help..huu</p>
<p>Im having a problem here..seems there was no error in codes..but when I run it...and click button to view map consist routing the map..It appers to be close all of sudden..why is that? Please help me friends.. </p>
<p>Im developing an app to read my current location and creating route to A po... | 1 | 5,162 |
ASP.NET MVC 4 project without any ORM | <p>I am trying to use ASP.NET MVC without EF and possibly without LINQ. To start with I created just one table/model/controller/view on basic ASP.net mvc template in VS2010(Just index page and Index method is implemented). I am currently going with try/error as all tutorials on the web are based on EF and I have an emb... | 1 | 1,646 |
Uncaught TypeError when calling a Javascript Function in Android | <p>I am an Android developer and new to JavaScript. I am controlling the webview from my activity using javascript. In my login page when I use the Java Script functions I getting some huge errors. Please guide me to avoid these errors.</p>
<p>Code: </p>
<pre><code>web.loadUrl("javascript:document.getElementById(\"um... | 1 | 1,438 |
Android webview not loading website properly | <p>I am trying to load a website: <a href="https://www.citibank.com.hk/HKGCB/JSO/signon/DisplayUsernameSignon.do?locale=en_HK" rel="nofollow noreferrer">Citibank</a>.</p>
<p>This loads fine in the chrome browser ( Mobile and desktop).
However, doesn't load with styles and javascript in my webview app.</p>
<p>Note: I... | 1 | 1,027 |
How to delete a cell from jTable by pressing DELETE key? | <p>I have a code like below. I want to delete cell by pressing a delete key. How can I do that? And I also want to add delete button in that field.</p>
<pre><code>private static final long serialVersionUID = -250883760398754970L;
private final LinkedList<Product> list= new LinkedList<Product>();
privat... | 1 | 1,166 |
java spring MappingJacksonJsonView not doing toString on mongodb ObjectId | <p>I am using the MappingJacksonJsonView in my SpringMVC application to render JSON from my controllers. I want the ObjectId from my object to render as .toString but instead it serializes the ObjectId into its parts. It works just fine in my Velocity/JSP pages:</p>
<pre><code>Velocity:
$thing.id
Produces:
4f1... | 1 | 1,886 |
creating multiple audio streams of an icecast2 server using python-shout | <p>I am trying to create a web radio server to stream 3 sources at once. I am using python to create a source client for icecast2 using the python-shout library. I am not too familiar with the language (python). however, i got a sample program which does what i need to and more and i have tweaked it for my need. Howeve... | 1 | 1,781 |
Cross-platform solution to isolated storage in PCL? | <p>I'm currently using the latest version of PCLStorage for my Xamarin app and it doesn't work well in Android. Every time my app loads it is unable to find the directory I had just created. But it works fine in my Windows project. Odd...</p>
<p>Does anyone know of a good alternative compatible with Portable Class Lib... | 1 | 1,333 |
Dante server unknown socks version | <p>OS: Ubuntu 16.04
Dante-server 1.4</p>
<p>Getting troubles after dante server update. Every connection blocks with error</p>
<pre><code> error after reading 1 byte in 0 seconds: unknown SOCKS version 22 in client request
</code></pre>
<p>config file:</p>
<pre><code> logoutput: /var/log/danted.log
debug: 2
... | 1 | 14,647 |
Threads inside Fragment | <p>I have an app using a Fragment with a View pager. I query the android contacts database (this should be fast) to get primary numbers of every contact to show in a ListView. The problem is, this seems to take some time. I tried to use a Thread and an ASyncTask inside onCreateView and "update" or set my adapter for my... | 1 | 1,597 |
Tracking colored ball with Opencv Java | <p>This is my first time working with opencv. I choose it because I had experience coding with JAVA. But I have had some difficulties when trying to solve my coding problems.</p>
<ol>
<li>My first problem:</li>
</ol>
<p>I want to catch color from a frame so that when I click with my mouse it gives me RGB colors, whic... | 1 | 6,499 |
MPAndroidChart : Is it possible to rotate value labels for a given DataSet? | <p>In my Android application I have a bar chart I made using <code>MPAndroidChart</code>. My problem is when there are a number of bars in bar chart then the value labels above each bar are overlapping with other value labels as shown in the attached screen shot below. I know this is because there is no room for displa... | 1 | 1,250 |
Javascript Runtime Error: app undefined | <p>I'm trying to make a somewhat basic app using Canvas and Javascript for a Windows 8 Application I'm making. Upon compiling the code in Visual Studio 2012 for windows 8 Apps I get the following message</p>
<blockquote>
<p>0x800a1391 - JavaScript runtime error: 'app' is undefined</p>
</blockquote>
<p>What Have I d... | 1 | 1,289 |
Why does jboss-as:deploy fail? | <p>I wanted to deploy my war file to JBoss 7.1.1 after compilation. But it fails with the following line in output (setting maven debug output to -X and -e does not create more verbose output).</p>
<p>My maven command I use to invoke it is: <code>clean install -Pintegration jboss-as:deploy</code> </p>
<pre><code>[INF... | 1 | 2,433 |
Enable mySQL remote connections port 3306 Plesk 11.5 CENTOS | <p>I am having problems connecting to our mysql server remotely. We have 2 servers both running Plesk 11.5 one of them is linux (IP 99.99.99.99) and the other is Windows R2 2008 (IP 88.88.88.88).</p>
<p>Note: These are not the true IP addresses but for security I have replaced them with those above.</p>
<p>I am tryin... | 1 | 1,760 |
UrlFetch put method using Google Apps Script | <p>Have tried many options to update a product in ECWID using Google Apps Script UrlFetchApp.fetch() put method but not succeeded. Following are the different ways that I've written the code and tested, but am getting different type of errors.</p>
<p>I guess, am missing some small thing, which am not able to figure it... | 1 | 1,094 |
Can not convert a function into a tensor or operation | <p>I am constantly getting an error for a convolutional network I'm building and I don't know why the error is popping up. Here's my network:</p>
<pre><code>learning_rate = 0.0001
epochs = 10
batch_size = 128
test_valid_size = 128
n_classes = 5
dropout = 0.75
start1 = timer()
with tf.device('/gpu:0'):
weights = ... | 1 | 1,332 |
How do I make Nock and Mocha play well together? | <p>I am trying to use nock to intercept/mock some HTTP traffic in my application for testing purposes. Our app authenticates to another one of our sites, and I need nock to imitate an HTTP 200 (with JSON data) and an HTTP 401 (with no data) to test behaviors when the user is or isn't logged in there (respectively). </p... | 1 | 1,545 |
ServiceDescriptionImporter cannot find definition for web service namespace | <p>I'm wondering if anyone knows how to overcome an issue I'm getting when using <code>ServiceDescriptionImporter</code>. I am generating web service client proxy dynamically using CodeDOM, when the web service WSDL has type schema embedded the following code works fine, however when the WSDL contains an import the fol... | 1 | 1,427 |
Implementing timeout for calling generic function with parameters | <p>I am trying to get my head around the use of the Action delegate type for use in forcing a timeout when methods called in a 3rd party COM dll hang up. After much searching I find that I can use Action<> or Func<> and pass up to 4 generic parameters depending on whether the method called returns a parameter or ... | 1 | 1,678 |
Loading multiple versions of the same class | <p>Let's say I release a code library as a standalone PHP class. Someone then uses version 1.0 of that library in their application. Later, I release version 2.0 of the library and that same someone, for any reason, needs to use both 1.0 and 2.0 side-by-side in their application because either he or I broke backwards... | 1 | 1,170 |
FFmpeg seems to be version conflict | <p>I am using git version of ffmpeg( renewed after old version succesful using) , when i try to compile my project i get</p>
<pre><code> /usr/local/lib/libavcodec.a(opusdec.o): In function `opus_decode_subpacket':
/home/user/projects/ffmpleglast/ffmpeg/libavcodec/opusdec.c:376: undefined reference to `swr_is_initializ... | 1 | 1,157 |
Python - creating multiple objects for a class | <p>In python I need to create 43 instances of a class 'Student' that includes the variables first_name, middle_name, last_name, student_id by reading in a file (Students.txt) and parsing it. The text file appears like this: </p>
<pre><code>Last Name Midle Name First Name Student ID
------------------------------... | 1 | 1,773 |
How to serialize an object in powershell to json and get identical result in PS desktop and core? | <p><strong>Prolog</strong></p>
<p>It turns out that in my case it is important to understand the source of the objects - it is a JSON payload from a REST API response. Unfortunately, <strong>JSON -> Object</strong> conversion produces different results on PS desktop vs PS core. On desktop the numbers are deserialize... | 1 | 2,036 |
IntelliJ idea - Jetty duplicate configurations found? | <p>I have IntelliJ Idea 12 and Jetty 9 on my Windows 7 machine. </p>
<p>I also have a sample JSF project which runs fine on Tomcat 7.0. When I try adding a runtime with Jetty, I get the error:</p>
<blockquote>
<p>Duplicate config file paths found</p>
</blockquote>
<p>When I remove</p>
<blockquote>
<p>etc\jetty-... | 1 | 1,586 |
Entity Framework throws exception when using Find-method | <p>I have a simple web application which allows an user to upload 2 .csv-files containing certain data. To persist the data I use the <code>Entity Framework</code> in two different <code>Import-methods</code>.</p>
<p>First Import-method</p>
<pre><code> public void ImportOne(string path)
{
StreamReader ... | 1 | 1,474 |
Dynamo db type conversion error ValidationException: A value provided cannot be converted into a number | <p>I have a dynamo DB query like this. Which I execute to add data to two different table and this question is the continuation of the first question. <a href="https://stackoverflow.com/questions/51702342/using-batchwriteitem-in-dynamodb/">Using batchWriteItem in dynamodb</a></p>
<pre><code> var createuser = {
... | 1 | 1,554 |
Mega Menu with PHP in Laravel | <p><strong>EDIT</strong>: Based on the advice by Tom, here's my modified code. Works well, so thanks Tom. </p>
<pre><code><?php
$categories = Category::where('parent_id', '0')->get();
foreach($categories as $category):
$category_courses = get_courses($category->id);
$sub_categories =... | 1 | 9,963 |
VideoView does not fill the entire screen | <p>I'm trying to play a short introductory video for my application. Since it is a game, first I created a theme to hide the action bar and go full-screen.</p>
<p><strong>styles.xml:</strong></p>
<pre><code><style name="AppTheme.NoTitleBar" parent="AppTheme">
<item name="android:windowNoTitle">true<... | 1 | 1,046 |
Android Studio quiz app saving score | <p>I'm currently making a flag quiz app, and want to add scores. Below you can see a picture of it; each flag is a fragment, and when you press them, the right hand side allows you to submit an answer.</p>
<p><a href="https://i.stack.imgur.com/lW4or.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l... | 1 | 3,521 |
How to convert SVG String to PNG? | <p>I know that there are various topics about this but i haven't found the right answer...</p>
<p>I need to transform a SVG string to a png image, it has to be a png image because i need the transparency and for what i'm trying to use it only accepts png (or gift) images...</p>
<p>I need to do this through <strong>ph... | 1 | 4,701 |
Registering Generic Interfaces and classes with Autofac | <p>My current Autofac config is working to resolve my ApiControllers in a WebApi.</p>
<p>Where I'm struggling is, I'm attempting to create a 'BaseApiController' with generic constructor parameters, but getting exception: </p>
<blockquote>
<p>No constructors on type 'Service`1[WorldRegion]' can be found with the con... | 1 | 1,224 |
gem install json fails with redifinition of struct timezone/timespec | <p>I am on Windows with Ruby 1.9.3 with DevKit (all 32 bit on Win 7 64 bit). Now I try to install rails, but get an error from bundle. If I try to run (what bundle is complaining about)</p>
<pre><code> gem install json
</code></pre>
<p>I get the following error message:</p>
<pre><code>D:\RubyTest>gem install json... | 1 | 1,275 |
Java xor byte array not returning expected result | <p>This is part of an assignment, I'm trying to decrypt a message from several ciphertexts, encrypted using the same OTP.</p>
<p>My issue is that when I try to xor the ciphertexts, I'm receiving unexpected results.</p>
<pre><code>String ciphertext1 = "315c4eeaa8b5f8aaf9174145bf43e1784b8fa00dc71d885a804e5ee9fa40b16349... | 1 | 1,273 |
How can i get csrf token in html meta tags using spring boot | <p>How can i get csrf token in html meta tags using spring boot?</p>
<blockquote>
<p>I already done the CSRF token in SPRING by using xml configuration</p>
</blockquote>
<p>Currently my project is in SPRING BOOT. I tried a lot but no luck.</p>
<p>I have an html code</p>
<pre><code><!DOCTYPE html>
<html&g... | 1 | 1,634 |
960 grid system - nested grids have layout problem | <p>I've just started developing a hobby site for myself, and trying to use the <a href="http://960.gs/" rel="noreferrer">960 css grid system</a> to layout my html elements on screen.</p>
<p>I got the basic idea and just implemented a skeleton website <a href="http://mindinscription.net/webapp/coastalbooks/" rel="noref... | 1 | 1,078 |
Android app crash okhttp3 HTTP FAILED: javax.net.ssl.SSLException: Read error: I/O error during system call, Software caused connection abort | <p>I am working on android native kotlin project.
<br>I am testing app in android real <strong>Oneplus 6</strong> device with <strong>Android version 10</strong>.
<br> Please find below details from build.gradle file for latest okhttp and retrofit dependencies which I am using for project.
<br><strong>okhttp</strong></... | 1 | 1,392 |
Postgres - Can not 'SELECT' from tables even though my role/user has been granted 'READ' | <p>I have an admin role/user and a developers role on postgres. The developers role enherits attributes from a 'readaccess' role which I created for convenience in the future. If I run \du I get:</p>
<pre><code> Role name | Attributes | Member of
---------... | 1 | 1,205 |
The class '...' does not have the property | <p>I get alaways the same error:</p>
<p><strong>The class '....sessionbeans.materialsammlung.Materialsammlung' does not have the property 'showFiles'.</strong></p>
<p>The complete code from the xhtml:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh... | 1 | 16,616 |
c# sending image via socket | <p>I have a problem with sending a screenshot via sockets in c#. </p>
<p><strong>Client</strong>: </p>
<pre><code> private void btnCaptureScreen_Click(object sender, EventArgs e)
{
clientSocket = new TcpClient();
clientSocket.Connect(txtIP.Text, 8888);
NetworkStream serverStream = clientS... | 1 | 1,561 |
org.json.JSONObject cannot be converted to JSONArray in Android Studio | <p>I want to retrieve a row in my PHP MySQL and put it in my spinner. I have this of error:</p>
<pre><code>06-13 04:56:53.656 10276-10342/com.example.eugene.spinnersql W/System.err: org.json.JSONException: Value {"result":[{"DriverID":"28","VehicleID":"122","BodyType":"Sedan","Make":"Toyota","Series":"Vios"},{"DriverI... | 1 | 2,287 |
how to change the color of a link in d3js? | <p>here is my code and i want to change the color of my link.
i have tried so many techniques but no effect.
please kindly help me out.
im using asp.net </p>
<pre><code> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="D3js_demo.WebForm1" %>
<!DOCTYPE html>
<html ... | 1 | 5,249 |
'Module not found' error when running webpack | <p>A few days ago to solve a problem with the webpack module, I had to move my global dependencies to Development dependencies, before everything was working correctly, but now when I run the webpack it returns the following error:</p>
<pre><code>ERROR in (webpack)/lib/node/NodeTargetPlugin.js
Module not found: Error:... | 1 | 1,144 |
How To Do Client-Side Validation In Custom Validation Attribute In ASP.NET Core 2.0? | <p>Here I am trying to do both client and server side validation in <code>Age</code> property of model class <code>contact</code> for which i have used custom validation attribute i.e <code>Digt</code> and <code>UpperCase</code> attribute for checking uppercase and digit in input, if not should give error message as sp... | 1 | 1,353 |
HTML5 not rendering header tags in IE | <p>So i am using a static site generator called Bonsai that uses a few codependencies like handlebars, tilt and liquid templating. now following best practices i am building it on HTML5. i have tested the format extensively on chrome and firefox and opera. saving the worst for last IE.</p>
<p>first before those who ar... | 1 | 1,422 |
TypeScript linting error: ref does not exist on component | <p>When trying to add a <a href="https://reactjs.org/docs/refs-and-the-dom.html" rel="nofollow noreferrer">ref</a> to my component, I am getting a linting error:</p>
<blockquote>
<p>TS2339: Property 'childNavRef' does not exist on type 'Navigation'</p>
</blockquote>
<p><a href="https://i.stack.imgur.com/QWe3I.png" ... | 1 | 1,584 |
having an issue with membership credential verification failed when it shouldn't be using it | <p>Since our website cannot take credit cards directly we are routing the user, with credential and other misc variables, to a 'hosted page' on another site.</p>
<p>To go more in detail, this is how the user would access this generally:</p>
<ol>
<li><p>Go to our site and login with a username and password that they c... | 1 | 5,868 |
how to to retrive data in jsp from MySQL using Liferay? | <p>I want to retrieve data from and insert data in mysql.</p>
<p>I m providing 3 file one java file and two jsp file <code>edit.jsp</code> and <code>view.jsp</code> to edit and view the data respectively.</p>
<p>I have created table using <code>ServiceBuilder</code>, I have put my <code>portal-ext.properties</code> i... | 1 | 4,274 |
Grails export plugin don't download any file | <p>I want to use grails export plugin to get my Domain classes exportables into xls and csv files.</p>
<p>In my main layout named <strong>front.gsp</strong>, I did that :</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
...
<g:layoutHead />
</head>
<b... | 1 | 1,226 |
How to bind AutoCompleteTextView from HashMap | <p>I want to create a AutoCompleteTextView in which user can enter <strong>Zip Code</strong> or <strong>City Name</strong> but only <strong>City Name</strong> should be appear on suggestion drop down.</p>
<p>I am using AsyncTask for getting Church List, and I am using HashMap to store City Name and Zip Code.</p>
<p><... | 1 | 2,550 |
How to get loss gradient wrt internal layer output in tensorflow 2? | <p>I would like to get gradient of the model's loss function with respect to specific layer's output during training. What I want to do with it next, is using a value of that gradient to modify something in layer in the next learning epoch.
So how to obtain that gradient?</p>
<p>Here's a minimal example.
MinimalRNNC... | 1 | 1,829 |
Android WorkManager doesn't trigger one of the two scheduled workers | <p>I have two periodic workers scheduled in my app where one worker repeats after 24 hours and another in 15 minutes.</p>
<p>Initially on fresh install things work as expected, but after some days I got an issue on 2 devices(out of 5).
The 24 hour worker is triggered properly but the 15 minute one isn't triggered at ... | 1 | 1,438 |
data.table Lookup value and translate | <p>Like many I am new to R. I have a large data set (500M+ rows) which I have fread into a data.table <code>logStats</code> which has data like the following :</p>
<pre><code> head(logStats,15)
time pid mean
1: 2014-03-10 00:00:00 998 3.570000
2: 2014-03-10 00:00:00 11 4.090000
3: 2014-0... | 1 | 1,807 |
Unexpected End of Input Error | <p>I have this nodejs app and one of the calls I've made is an upsert call that upserts the request body to mongodb. If the request body exists in mongo, update it, else insert it. The insert portion works correctly, however, I am having trouble with the upsert portion. My request body is being generated by a C# app th... | 1 | 1,995 |
the relationship between connection_pool_size and tp-processor? | <p>apache2 workers.properties:</p>
<pre><code>worker.node223.connection_pool_size=100
worker.node223.connection_pool_minsize=50
</code></pre>
<p>tomcat server.xml:</p>
<pre><code><Connector address="192.168.0.17" port="8009" maxHttpHeaderSize="64836"
maxThreads="350"... | 1 | 1,187 |
How to add dynamic python modules to PyInstaller's specs? | <p>I'm trying to figure out how to load dynamic/hidden imports with PyInstaller, so far I got this simple structure:</p>
<p>First of all, I got a framework package added into my PYTHONPATH living in <code>d:\Sources\personal\python\framework</code></p>
<p>That package is used by many of my python projects, in particu... | 1 | 1,817 |
sending/ receiving email in Java | <p>I want to send email through Java (Any email like from yahoo, gmail, or any other part).</p>
<p>I tried the code give <a href="http://www.tutorialspoint.com/java/java_sending_email.htm" rel="nofollow">here</a>, however I get exception as </p>
<pre><code>javax.mail.MessagingException: Could not connect to SMTP host... | 1 | 1,884 |
Java Convolution | <p>Hi I am in need of some help. I need to write a convolution method from scratch that takes in the following inputs: <code>int[][]</code> and <code>BufferedImage inputImage</code>. I can assume that the kernel has size 3x3. </p>
<p>My approach is to do the follow:</p>
<pre><code>convolve inner pixels
convolve corne... | 1 | 3,163 |
How to plot dates in Chart.js | <p>I am trying to make a chart for my website that takes a year's worth of dates (entries for each day), and then plots it on the graph.</p>
<p>I tried writing a function that makes a list of all dates in that v=certain range in the format of </p>
<pre><code>"date1", "date2", "date3", ...
</code></pre>
<p>and then p... | 1 | 1,326 |
No appropriate connection provider encountered: JPA Hibernate | <p>I'm trying to connect to my local database with user root and password: password. I'm just trying to learn this stuff and it's difficult to get going. I understand that there needs to be a connection provided to the entitymanager and transaction system, but I thought I specified that already in my persistence file. ... | 1 | 1,679 |
MDX query to count number of rows that match a certain condition (newest row for each question, client group) | <p>I have the following fact table:</p>
<pre><code>response_history_id client_id question_id answer
1 1 2 24
2 1 2 27
3 1 3 12
4 1 ... | 1 | 1,052 |
Performance issue using Javas Object streams with Sockets | <p>I'm trying to do local IPC using Sockets and Object streams in Java however I'm seeing poor performance.</p>
<p>I am testing the ping time of sending an object via an ObjectOutputStream to receiving a reply via an ObjectInputStream over a Socket.</p>
<p>Here's the Requestor:</p>
<pre><code>public SocketTest(){
... | 1 | 1,044 |
How to use boost context correctly | <p>I want to implement a job system for my game engine using fibers. After searching the internet for a good c++ implementation of fibers, I found that <a href="http://www.boost.org/doc/libs/1_64_0/libs/context/doc/html/index.html" rel="nofollow noreferrer">Boost.Context</a> is a good starting point.</p>
<blockquote>
... | 1 | 1,030 |
Zend Framework 2 Doctrine 2 - Multiple Forms same View | <p>I have created a ZF2 project with the following dependencies:</p>
<pre><code> "php": ">=5.3.3",
"zendframework/zendframework": "2.*",
"zendframework/zend-developer-tools": "dev-master",
"doctrine/doctrine-orm-module": "dev-master",
"bjyoungblood/bjy-profiler": "dev-master"
</code></pre>
<p>I ... | 1 | 2,197 |
Create a rowspan in bootstrap | <p>I want to create a boostrap markup definition with this image:</p>
<p><img src="https://i.stack.imgur.com/XHT1L.png" alt="enter image description here"></p>
<p>What do I have to do that row1, row2 and row3 share the same div/column?</p>
<p>If I would do table design then I would use a rowspan...</p>
<p>UPDATE</p... | 1 | 1,572 |
Window Session Crash | <p>I have the following code that add a View on top of a activity and remove it after 10 seconds.</p>
<pre><code>public class MyActivity extends MainActivity {
@Override
protected void onCreate(Bundle arg0) {
super.onCreate(arg0);
final ImageView view = new ImageView(this);
view.setBac... | 1 | 1,051 |
curl: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure | <p>Lately, on my Mac, I ran this command : </p>
<p><code>curl https://randomuser.me/api/</code></p>
<p>I keep getting </p>
<blockquote>
<p>curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure</p>
</blockquote>
<p>Have you guys faced something like this before ?</p>
<p>It us... | 1 | 1,051 |
How can I extract multiple archives to each folder with WinRAR command line? | <p>I want to extract ZIP and RAR archives existing in each folder to the respective folder at the command line. Furthermore, I want to delete the original compressed file only if there is no error during decompression. If there is an error on extracting an archive, the archive file name should be written to an error lo... | 1 | 1,361 |
Rails ActiveRecord group_by & sum db results for use with Lazy HighCharts | <p>I am completely new to RoR/Ruby and i am using Lazy High Charts gem to generate some purdy charts based on some database information.</p>
<p>I have tried the answers that were provided in a previous question but i am still a bit confused as to how to do this..</p>
<p>I need to sum amount_used, and billed_amount and ... | 1 | 1,101 |
Creating a parent and child treeview checkbox nodes | <p>I need to create a treeview control with checkboxes. However, my treeview needs to have checkboxes for the parent and the child. <em>The business logic in my situation is that the user may choose "MS Office" but may not want "Microsoft".</em> </p>
<p>I came across <a href="http://asp-net-example.blogspot.com/2008/... | 1 | 2,175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.