title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
how to use FileSystemWatcher using asp.net(C#) | <p>SENARIO: i have few folders on my FTP server, belongs to particular user. Suppose i have 10GB total space and i assign 1GB to each user i.e can accomodate 10 users having 1GB each. </p>
<p>now users can add/delete/edit any type of file to utilize the storage space. All i need to do is to restrict users not to excee... | 1 | 2,224 |
Testing window resize on Angular directive - window dimensions undefined after resize event | <p>I have a directive that changes height of the text within element on window resize:</p>
<pre class="lang-ts prettyprint-override"><code>import {Directive, ElementRef, Renderer2, HostListener} from '@angular/core';
@Directive({selector: '[fittext]'})
export class FittextDirective {
constructor(private element: ... | 1 | 1,590 |
Why Icon and images are not shown when I execute Python QT5 code? | <p><strong>Environment:</strong></p>
<p>Python 3.7.7</p>
<p>Qt5</p>
<p>Qt Designer 5.11</p>
<p><strong>Problem:</strong></p>
<p>I designed a GUI with Qt Designer and I added some images in the background of labels and icons in buttons.
I can see the images and icons properly from the software Qt designer. But when I ex... | 1 | 17,938 |
Load a 3d Object from obj file and fit it inside the camera using Three.Js | <p>I am trying to load(dynamically) object files using THREE.OBJLoader and place them in the center of a scene(or canvas), so that the whole object can be visible in the Camera. Objects are dynamic, so I don't have fixed height or width data. </p>
<p><strong>What I have got:</strong>
<a href="https://i.stack.imgur.com... | 1 | 1,825 |
replace or push object in array using underscore | <p>I have one object with new data coming in and one array with data that has been saved. If cnName from newData already exists in savedData in the cnData array then that object in savedData should be replaced with newData.cnData[0] object. If it does not exists then the data should to pushed to the cnData array in sa... | 1 | 1,025 |
Butterknife view in Fragment is null reference if call from parent activity | <p>i have problem with using <a href="https://github.com/JakeWharton/butterknife" rel="nofollow">Butterknife</a> libray. There is I have SearchActivity.class use ViewPager with 3 Fragment in FragmentSearchAdapter:</p>
<p><strong>SearchActivity.class</strong></p>
<pre><code>mAdapter = new FragmentSearchAdapter(getSupp... | 1 | 1,531 |
Android how to read multiple BLE characteristics with a PriorityQueue | <p>A bit stuck here, might need your help. I want to read several BLE characteristics at once, some people suggest using PriorityQueue for that. I already know all the uuids, etc. just need a way to read several at once.
Could anyone explain how exactly should it look like? Or maybe there is yet another easier solution... | 1 | 2,724 |
How to execute Table SP in C# | <p>I looked at the SQLTeam website but now am having a new problem cause I have an IDENTITY column and their example does not. </p>
<p>I have SQL Server 2008 and VS 2008. I am trying to execute the InsertPIF SP using C# and a table UDT, but am getting an exception. I have looked at a SQLTeam website
example with a... | 1 | 1,078 |
How to implement multi-select? | <p>First of all, I need to say that I never worked with Access or any other databases before. I'm trying to understand how it works and picked "Students" template for this task (see step 0). Now, let's start.</p>
<h1>i. Creating the base from the template and fill it with data</h1>
<p><strong>Step 0</strong>. Creatin... | 1 | 1,567 |
Undefined variable inside textboxes | <p>As you can see I'm having an error inside my texboxes. Can anyone help me fix this error?</p>
<p>Errors inside the textboxes are the following:</p>
<pre><code>**
> aic:
**
<br /><b>Notice</b>: Undefined variable: aic in <b>C:\xampp\htdocs\test\index.php</b> on line <b>34&l... | 1 | 2,062 |
qt passing object to different class | <p><strong>EDIT</strong></p>
<p>I am creating all objects initially when the program is started in my <em>dialog.cpp</em> and storing all QPixmaps in an array then picking a random one from them all. That random QPixmap I want to pass to my maintargets class and draw in the scene (which is also created in the dialog.cp... | 1 | 1,680 |
Mysql - Running only one instance of stored procedure called from inside scheduled event | <h1>Summary</h1>
<p>Given an event that calls a stored procedure, what's the best practice to ensure that only one instance of the procedure is running at a time? Specifically in cases where the procedure may sometimes take longer to run than it takes for the event to tick over.</p>
<hr>
<h1>Example</h1>
<p>Let's t... | 1 | 1,320 |
Java how can I make a book class that can have one or more authors | <p>So I'm practictising Object oriented programming and I'm trying to make a Book class that can have multiple authors but I don't know how to do it.
This is the UML of the excerise:
<a href="https://i.stack.imgur.com/E20Hc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E20Hc.png" alt="enter image d... | 1 | 1,204 |
Exposing Sql Server Reporting Services 2008 R2 over Extranet while integrating with Java web application with LDAP authentication | <p>As part of a development project I need to Integrate SSRS 2008 R2 with a Java application and expose to Internet/Extranet. The additional requirement is that we have LDAP authentication, so ideally when a user logs in to the webapp it gets authenticated to LDAP and when he clicks on Reports link in the Web App, he s... | 1 | 1,107 |
TypeError: 'append' called on an object that does not implement interface FormData with processData and contentType false both | <p>first all, scuse me my english. I'm trying to submit a form with ajax, my js code is the next: </p>
<pre><code>$("#formPublicidad").on('submit', function(event) {
event.preventDefault();
var dataForm = new FormData(document.getElementById('formPublicidad'));
if(dataForm.get('url') == '' || dataForm.get... | 1 | 1,268 |
what is this error in android? | <p>what is this error ??</p>
<pre><code>02-17 22:00:54.199: ERROR/AndroidRuntime(338): FATAL EXCEPTION: main
02-17 22:00:54.199: ERROR/AndroidRuntime(338): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.dattsmoon.andFBChat/com.dattsmoon.andF... | 1 | 1,110 |
How to create a X509 certificate that prevents "server mode SSL must use certificate with associated private key" exception? | <p>I'm trying to create an X.509 certificate file that will work with the following code as found in the <a href="https://smtp4dev.codeplex.com/" rel="nofollow noreferrer">smtp4dev</a> project:</p>
<pre><code>var certificate = new X509Certificate(Settings.Default.SSLCertificatePath);
var clientCertificateRequired = fa... | 1 | 1,145 |
Android EditText does not work, android:imeOptions="actionNext" android:inputType="phone" | <p>I have tried, and only if I delete <code>android:inputType="phone"</code> the keyboard Enter can jump to the Next EditText. I don't know whether there have been some conflicts between <code>android:imeOptions="actionNext"</code> and <code>android:inputType="phone"</code> .</p>
<p>code :
<code>AutoCompleteTextView</... | 1 | 2,278 |
Maven properties tag and version for dependency | <p>When I am using version for the dependencies from the keys which are defined in properties section of the pom file then the dependencies are not getting downloaded, but when I am hardcoding the version for dependency the dependency is getting downloaded.</p>
<pre><code><properties>
<cucumber-version>... | 1 | 1,864 |
Trouble building the GCM Demo Server application | <p>Whenever I try to build the GCM Demo Server <a href="http://developer.android.com/google/gcm/server.html" rel="noreferrer">from the documentation</a> using <code>ant</code>, I get 17 compilation errors. It seems that some GCM libraries are missing. How can I resolve these issues?</p>
<pre><code> Errors:
Buildfil... | 1 | 2,481 |
Sencha Touch 2 panel not stretching to full height | <p>I have made this application in sencha touch 2<br></p>
<pre><code>Ext.application({
name: "SOMENAME",
launch: function () {
//Ext.Viewport.setLayout({type:'fit',align:'stretch'});
var mainPanel = Ext.create('Ext.Container', {
layout: 'vbox',
items: [
{... | 1 | 1,110 |
SetupDiGetDeviceRegistryProperty fails with ERROR_INVALID_DATA | <p>I'm trying to get the display names as they appear in the "Screen Resolution" window (Win8.1 x64). </p>
<p>First I tried <code>EnumDisplayDevices</code></p>
<pre><code>var deviceInfo = new DISPLAY_DEVICEW();
uint i = 0;
while (true)
{
if (!NativeMethods.EnumDisplayDevices(null, i++, deviceInfo, 0))
{
... | 1 | 1,383 |
open a popup window in mvc asp.net after submitting a form | <p>i am not able to open a modal window after submitting. What i have so far is this :
this is my View Permitions.cshtml that is calling that is
<strong>submiting to Action SalvarPermissoes In controller Admin</strong></p>
<pre><code>@using (Html.BeginForm("SalvarPermissoes", "Admin", FormMethod.Post, new { @class = ... | 1 | 1,531 |
java.lang.NoClassDefFoundError: Failed resolution of: Lio/fabric/sdk/android/services/common/FirebaseInfo; | <p>I'm having issues when trying to run my app in Lollipop, the log is the following:</p>
<pre><code>11-08 15:12:35.816 987-987/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.rocketjourney, PID: 987
java.lang.NoClassDefFoundError: Failed resolution of: Lio/fabric/sdk/android/services/common/FirebaseInfo;... | 1 | 1,391 |
Javafx TableView in a ScrollPane | <p>I'm having some issues with the Constrained Resize Policy for a TableView inside a ScrollPane.
It seems as though the headings do not line up completely with its column. On scroll or resize the columns snap to their correct position.</p>
<p>I created a small example to demonstrate:</p>
<pre><code>import java.util.... | 1 | 1,244 |
Unable to get provider | <p>I have problem with getting the provider. I search for an answer but still i can't have the right answer. Please help me with this.
Here is my manifest:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.ultramegatech.ey"
xmlns:android="http://schemas.android.com/apk/res/android"
... | 1 | 4,757 |
PHP browser and os detection showing chrome instead of opera | <p>I have a simple php script to detect browser name and os. Everything goes well, except for OPERA, that shows as Chrome.
Here is my code:</p>
<pre><code><?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
function getOS() {
global $user_agent;
$os_platform = 'Unknown OS Platform';... | 1 | 2,123 |
Primefaces dataTable instant Row Selection not working | <p>I am working with Primefaces 3.5, Spring 3.2, JSF 2.2 and Apache is my server.</p>
<p>My problem is that whenever i click on the row, the row select event is never triggered in my backing bean and my store details panel is never updated.</p>
<p>My backing bean is in request scope and contains onRowSelect method.
H... | 1 | 5,554 |
android viewpager out of memory | <p>first i would like to say that english is not my native language. So please forgive me my mistakes.</p>
<p>To my problem: I have a <code>ViewPager</code> with 10 pages and tabs. The first window is for setting and the others are questions.</p>
<p>You start with the first question and i show an image, if you click ... | 1 | 8,740 |
@PreAuthorize with hasPermission() executes code twice | <p>I want to use @PreAuthorize Spring annotation to controll access in my application.</p>
<p>The problem is, that I have a lot of conditions depends not on the request parameters, but on the database entities.</p>
<p><strong>Overview:</strong></p>
<p>I have an <code>Route</code> entity, that has <code>User owner</c... | 1 | 1,278 |
Flutter Google Maps - Move camera to current position | <p>In my Flutter project I use the Google Maps plugin to display a map in the app. On the map I want to show the current location of the user and for this I use Geolocator.</p>
<p>When the map loads it will load on a static point and when the user denies the location permissions the user can still use the map without l... | 1 | 5,981 |
HTTP Status 404 – Not Found on Tomcat server | <p>I'm creating new spring mvc Dynamic Web Project on Eclipse version 4.9.0 Java EE IDE for Web Developers. I'm setting up a new Server Tomcat version 9.0.8.
When I select <code>hello.jsp</code> and <code>right-click ->Run As -> Run on Server</code>, then <code>hello.jsp</code> works fine,and I access <code>helo.... | 1 | 1,893 |
How to display data from SQLite Database into RecyclerView | <p>I want to display data from my SQLite Database to my RecyclerView (with LinearLayoutManager). I created the RecyclerView layout for the list and a CardView layout for the single item. I created the database with Recipe table and I can save a new Recipe. My goal is to show the title of Recipe inside the CardView.</p>... | 1 | 1,401 |
R: How to aggregate some columns while keeping other columns | <p>I have a similar problem as described <a href="https://stackoverflow.com/questions/15978985/how-to-aggregate-some-columns-while-keeping-other-columns-in-r">here</a>, but none of the solutions from there which I have tried work. </p>
<p>Given a table like this:</p>
<pre><code>Date Exercise Category Weight ... | 1 | 3,340 |
How to increase the speed to load an activity? | <p>I am developing an Android application and it uses GoogleMaps. So when I click on a Button, I load a registraPosizioneActivity that shows the google maps. So I have noted that the loading speed of this activity is slow. Is there a mode for increasing the speed of loading this activity?</p>
<p>This is my code:</p>
... | 1 | 1,521 |
Boost logging, filter by named scope | <p>I am using boost log in my application, and while it has been tricky to configure it is generally working well. </p>
<p>Now however, I would like to add some more advanced filtering logic to my application, and I can't figure it out. </p>
<p>What I would like is to have two "levels" of filtering: </p>
<ol>
<li>I ... | 1 | 3,527 |
Need help getting output from Telnet to array in Perl | <p>First I want to apologize for such a silly question but I'm quite new to scripting. </p>
<p><strong>What I'm attempting to do:</strong>
At my office, I'm attempting to automate the ability to factory reset switches. Its testing equipment for developers not production equipment fyi. I'm trying to dump a list of file... | 1 | 1,118 |
Using wp_remote_post() to post multipart form data with image to iNaturalist REST API | <p>I'm developing a WordPress website that allows users to submit observations that are then pushed to the iNaturalist API. I have successfully authenticated, pushed the observation data, and received the ID of the observation from the API. I am completely hung up on pushing a photo with the <a href="https://www.inatur... | 1 | 1,726 |
AttributeError: can't set attribute, | <p>I have this vgg model. Which I am using to extract an image features. But I am getting an attribute error: I can't seem to understand the error. I am using keras 2.2.4 and tensorflow 1.13.1 with python 3.7.3. I am using anaconda with spyder as IDE. </p>
<pre><code>
import numpy as np
import warnings
#tf.compat.v1... | 1 | 3,279 |
Cannot understand go test -race : RACE: DATA WARNING stack trace | <p>I ran into a DATA RACE warning while testing my project, and was wondering if anyone would be kind enough to help me decipher the problem. I have never attempted testing go routines in the past and am finding it hard to wrap my head around data races.</p>
<p>I have provided a link in the description to the open iss... | 1 | 1,722 |
Disable service workers or workbox in nuxtjs app | <p>I'm trying to to generate a nuxt app using the <code>nuxt generate</code> command. I want to use it by opening the <code>index.html</code> file in the <code>dist</code> folder. Everything works except for one page where I've some static assets loading. I'm getting the following error: </p>
<blockquote>
<p>DOMExce... | 1 | 1,054 |
Homescreen widget, listView shows "Loading" | <p>To start off, an image says thousand words:</p>
<p><img src="https://i.stack.imgur.com/h1ugR.png" alt="enter image description here"></p>
<p>This takes place although getViewAt is called 4 items as my cursor size is.</p>
<p>Here's the code:</p>
<pre><code>public class WidgetService extends RemoteViewsService {
... | 1 | 1,176 |
Save fixed width text file from pandas dataframe | <p>I have some data stored in fixed width text file format that I can read into pandas - however, I need to be able to save it back the same way. I'm almost able to save it using numpy.savetxt() but I can't get the format string to left pad zeros thereby maintaining the right column width. I will define the problem gen... | 1 | 2,651 |
Shopping Cart tables - Feedback Database Design | <p>I am developing online shopping system.</p>
<p>This is how the product structure work:</p>
<p>There are number of categories..</p>
<p>Each Category has number of items.</p>
<p>Each Item have one or more Options</p>
<p>An Option can have extra(s) or without extra(s)</p>
<p>The following tables I have:</p>
<pre... | 1 | 1,665 |
Multiple Tables In SQlite android | <p>I wanna make a database in sqlite android ,and I wanna create 2 table in database ,and after that I wanna create tables dynamically. but my class DBAdapter just create one table and for other tables throws error "no such table" so what should I do for this? plz help me</p>
<pre><code> package com.example.asa;
... | 1 | 1,795 |
java.lang.NoClassDefFoundError: com.acme.R$layout referencing android library | <p>I have an Android library project with a custom authenticator and an Activity that provides a login screen for the authenticator. The authenticator works fine when included directly in my main app, but I would like to put the authenticator into a separate android library. When I run the main android application proj... | 1 | 4,190 |
Symfony entity field : manyToMany with multiple = false - field not populated correctly | <p>I am using symfony2 with doctrine 2.
I have a many to many relationship between two entities :</p>
<pre><code>/**
* @ORM\ManyToMany(targetEntity="\AppBundle\Entity\Social\PostCategory", inversedBy="posts")
* @ORM\JoinTable(
* name="post_postcategory",
* joinColumns={@ORM\JoinColumn(name="postId", refere... | 1 | 1,442 |
Strange BufferStrategy issue - Game runs fast only on Intel GPUs | <p>I ran into a very strange problem, I tried searching for an answer for days and days.
My game just got a new particle system, but was too slow to be playable. Unfortunately, BufferedImage transformations are very slow. The explosion effect consists of about 200 white sprites loaded from a .png file, rotated, scaled ... | 1 | 1,224 |
Generalizing *sql.Rows Scan in Go | <p>I am developing a web API using Go and there is a lot of redundant database query scan code. </p>
<pre><code>func (m *ContractModel) WorkQuestions(cid int) ([]models.WorkQuestion, error) {
results, err := m.DB.Query(queries.WORK_QUESTIONS, cid)
if err != nil {
return nil, err
}
var workQues... | 1 | 1,119 |
Cocos2dx - android apk crashes on start | <p>I'm trying to run cocos2dx sample project (the one created with create-android-project script) on Android device or emulator.</p>
<p>However the application crashes on start with the following errors:</p>
<blockquote>
<p>10-16 10:50:02.249: E/AndroidRuntime(379): FATAL EXCEPTION: main 10-16
10:50:02.249: E/And... | 1 | 1,137 |
Excel 2007 VBA: How do I copy and paste from a dynamic range on one sheet to the first empty row of another sheet? | <p>My question is similar to the question answered here ( <a href="https://stackoverflow.com/a/17071905/2506351">https://stackoverflow.com/a/17071905/2506351</a> ) except that I need the data to be pasted to the first empty row of the other sheet. I've tried using <code>lastRow = ActiveSheet.Cells(Rows.Count, "A").End... | 1 | 4,775 |
Email goes to spam because of "HTML Obfuscation" | <p>According to the spam-test available at <a href="http://www.contactology.com/check_mqs.php" rel="nofollow">this link</a> -- The automated, "Thank you for signing up" emails are going into the spam folder because : </p>
<pre><code>SPAM: BODY: Message is 10% to 20% HTML obfuscation (-32)
</code></pre>
<p>However, I ... | 1 | 1,735 |
GLSL shader flickering | <p>I'm not so sure from what this problem is arising, I never had much experience with shaders so it might be unrelated to the actual shader (most probably the problem isn't in the shader)</p>
<p>I have this result</p>
<p><img src="https://i.stack.imgur.com/DYGMM.png" alt="enter image description here"></p>
<p>Fragm... | 1 | 1,084 |
tableView's insertRowsAtIndexPath doesn't call tableView's cellForRowAtIndexPath | <p>I have a <code>UITableViewController</code> with an Edit button. When this is clicked, the user can delete or add rows to the UITableView. Deleting rows works fine. But when I want to add a new row, I get a short animation of an empty cell coming from the left and when the animation is over, the table view looks exa... | 1 | 1,058 |
android studio cannot find custom font file | <p>I am using a simple <code>TextView</code> in my activity and want to make it appear in a custom font 'Black Chancery'. I have put the <code>blkchcry.ttf</code> file at location <strong>app>src>main>assets>fonts>blkchcry.ttf</strong>. But, the android studio can't find that font. Here's my <code>AboutusActivity.java<... | 1 | 1,521 |
Keep the parent li highlighted when a submenu was accesed | <p>Hello guys how can I have all the time the parent "<code>li</code>" highlighted with a background or to give a class with some properties from css on a drop down navigation menu when a sub menu was accessed? something like will indicate in which section of menu it is navigating and that background remain all the ti... | 1 | 1,602 |
Deconstruct nested parameters with typescript and default values | <p>If I had the following in javascript:</p>
<pre class="lang-js prettyprint-override"><code>//deconstructed
({ theme: { colors: { border = '#cccccc' } = {} } = {} } => border)
//Creating similar with nested params
//Optional Chaining
props?.theme?.colors?.border ?? '#cccccc'
//bog standard js
props.theme &&... | 1 | 1,084 |
Another express.js req.session not storing data | <p>I have been staring at the same SO questions/answers for too long.</p>
<p>I am trying to set my user ID in a req.session variable</p>
<p>here is my app.js stack</p>
<pre><code> /**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, cors = require('cors')
, mongoo... | 1 | 1,307 |
Graph algorithm solution done right? | <p>I stumbled upon a problem from the last Facebook Hacker Cup (so it's NOT my homework, I just find it very interesting) and I also thought of a curious, but rather good, solution. Could you please check my thought? Here is the task:</p>
<blockquote>
<p>You are given a network with N cities and M bidirectional road... | 1 | 1,200 |
react-router - Navigate to parent route from nested router | <p>I'm playing around with <code>react-router</code>, and I have a problem when using nested routes.</p>
<p>Here is my parent router:</p>
<pre><code><Router>
<div>
<Route exact path="/" component={HomePage} />
<Route path="/account" component={AccountDashboard} />
<... | 1 | 1,547 |
Jquery Custom Rules Validation with Depends and Param Properties | <p>So i have a html drop down box with 4 values A,B,C and D. And 4 pre filled text-boxes(P1,P2,P3,P4) with some texts in them, and 4 blank text boxes(B1,B2,B3 and B4).</p>
<p>I want validations to be applied on the basis of what value is selected in dropdownbox.</p>
<p>if drop-down value is A, i want to only check th... | 1 | 1,086 |
image upload by webcam in php | <pre><code><form action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
<input type="text" name="myname" id="myname">
<input type="submit" name="send" id="send">
</form>
<script type="text/javascript" src="webcam.js"></script>
<script language="JavaScript">
... | 1 | 4,306 |
Create and write to new csv file during 'for' loop | <p>The code below is intended to create a csv file called 'file-0.csv' and start writing lines by iterating through the for loop until it reaches 100 lines. When the limit is reached, it should stop writing to 'file-0.csv', create 'file-1.csv', and <strong>continuing the for loop where it left off</strong>, start writi... | 1 | 1,617 |
Exception = The HTTP request is unauthorized with client authentication scheme 'Anonymous' | <p>Please see the app below:</p>
<pre><code>public Form1()
{
try
{
InitializeComponent();
ServiceReference1.Service1Client s1 = new ServiceReference1.Service1Client();
s1.ClientCredentials.UserName.UserName = "testuser";
s1... | 1 | 2,281 |
Mockito, jacoco and surefire causes out of memory | <p>I am using mockito 1.8.3, jacoco 0.72 and maven 3.0.5 surefire plugin (2.12.4) to execute unit test and generating coverage report, it was working fine. </p>
<p>With more and more tests are added, it starts not working. I continuously encounter out of memory error during test execution, and cannot find out a way to... | 1 | 1,255 |
MongoDB returning empty array | <p>I'm trying to populate albums with images using userid sent through params but i end up with an empty array even though there is data in database.</p>
<pre><code>"use strict"
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var Schema = mongoose.Schema
console.log('Welcom... | 1 | 1,539 |
Responsive Webdesign with Bootstrap: Equal height boxes for 3-column and 2-column grid layout | <p>I am using Bootstrap 3.2.0 and I have a grid design with 6 boxes.</p>
<p>The first three boxes have more content than the last three ones.</p>
<p>For large screens sizes I have a 3-column layout, for medium screens sizes 2-column and small one 1-column. The 1-column layout is not the problem, because all boxes wil... | 1 | 1,144 |
How to dinamically change Angular FullCalendar event color (of a specific event)? | <p>I am working on an Angular application using PrimeNG Full Calendar component, this one: <a href="https://primefaces.org/primeng/showcase/#/fullcalendar" rel="noreferrer">https://primefaces.org/primeng/showcase/#/fullcalendar</a></p>
<p>That is based on the Angular FullCalendar component, this one: <a href="https://... | 1 | 1,638 |
How send to stream video from iOS device to server? | <p>I must send video in real-time from iPhone to server. I create capture session and use AVCaptureMovieFileOutput. </p>
<p><code> NSError *error = nil;</p>
<pre><code>captureSession = [[AVCaptureSession alloc] init];
// find, attach devices
AVCaptureDevice *muxedDevice = [AVCaptureDevice defaultDeviceWithMediaTyp... | 1 | 1,745 |
What is the scope of my Ninject injected ObjectContext in my custom MembershipProvider (using Request scope)? | <p>I use Entity Framework 4 and ASP.NET MVC 3. I made a custom membership provider and use Ninject to inject an EFAccountRepository into it (Bound IAccountRepository to EFAccountRepository). </p>
<p>This account repository has an ObjectContext injected into it. I also use this repository (and others) in my controllers... | 1 | 1,139 |
Error converting byte code to dex: | <pre><code>Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE
:app:prepareCom... | 1 | 1,123 |
Records per Page Pagination | <p>I have a table with large amounts of data, and i want to be able to select how many rows i want to show per page. I have a records per page combo box, and a pagination nav at the bottom of the table, but i don't know how to do this...</p>
<p>Here's a fiddle with all the code, so you can easily see my issue:</p>
<p... | 1 | 8,584 |
C raw socket receive or sniff incoming packets only | <p>I need to set up a raw socket for incoming packets only on a specific interface (has both eth0 and eth1, eth1 only). In other words, I need only <em>incoming</em> packets on one specific interface.</p>
<p><strong>Comparing to other sniffers</strong></p>
<p>In ifconfig there is an RX Packets field for each interfac... | 1 | 1,403 |
Doesn´t refresh the carouselSlider in flutter | <p>I tried to make an app to display images, to do this I am using Firestore, Flutter... to the slider I am using <a href="https://pub.dev/packages/carousel_slider" rel="nofollow noreferrer">carousel_slider</a> plugin to display those images, but when I recived a new image from Firestore, the slider doesn´t display the... | 1 | 1,214 |
Parsing HTML Tables with BeautifulSoup | <p>I have used BeautifulSoup in the past but I am up against something new; incredibly generic/minimal HTML table markup... My goal is to grab each value and it's label (each in there own td) and print them out... They can be merged, I don't care, I just want to make sure each label is applied to the correct value. Her... | 1 | 1,057 |
Including a for each loop of array within PHP mail as HTML table | <p>This is the method I am attempting to use whilst trying to "send" a shopping cart to the admin. It may be an unorthodox method please any suggestions would be more than welcome. </p>
<p>This information is coming from a session plus a separate script which is all working well. It displays cart contents which I then... | 1 | 1,824 |
Can I listen for scrolling within a div with .scrollTop (no jQuery) | <p><strong>EDIT: SOLVED</strong></p>
<p>Here's the working code (checking for <code>perspective</code> support, and if it exists creating CSS parallax and listening for scrolling within div for the effect, otherwise it defaults to listening for <code>window.scroll</code>):</p>
<pre><code>html,body {height: 100%; widt... | 1 | 1,928 |
Android - How to show a loading image while the adapter is loading the images? | <p>I'm writing an android application that download images from a server but I want to show a loading image while the image is loading in the adapter.
This is my adapter:</p>
<pre><code>public class GridViewImageAdapter extends BaseAdapter {
Context context;
public ImageView imageView;
private Activity _activity;
priv... | 1 | 1,280 |
C++ error with classes: expected initializer before '*': | <p>I'm implementing a list (just for fun):</p>
<pre><code>#include <iostream>
template <class T>
class list {
private:
struct node {
T data;
struct node *next, *prev;
} head;
unsigned int length;
public:
class iterator {
private:
node *ptr;
public:
... | 1 | 1,181 |
CircleCi Webdriver Chrome version must be between 70 and 73 | <p>I've an error on circleci that i'm not able to understand. It says that Chrome version must be between 70 and 73 when using selenium chrome webdriver.</p>
<pre><code>[21:58:05] I/downloader - curl -o/home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.45.zip https://... | 1 | 1,246 |
Why kendo Ui -grid date is not sorting properly? | <p><strong>value is ReinsDepositAmount</strong></p>
<p><a href="https://i.stack.imgur.com/WnR3b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WnR3b.png" alt="enter image description here"></a></p>
<p>**</p>
<h2>output</h2>
<p>**</p>
<p><a href="https://i.stack.imgur.com/e1EAO.png" rel="nofollo... | 1 | 1,271 |
Elasticsearch - using the path hierarchy tokenizer to access different level of categories | <p>I'm very new in Elasticsearch and have a question about the hierarchical tokenizer of a path. Here is my code example:</p>
<p>My mapping code:</p>
<pre><code>PUT /my_index
{
"settings": {
"analysis": {
"analyzer": {
"path-analyzer": {
"type": "custom",
"tokenizer": "path-tok... | 1 | 1,375 |
Can't initialize an NSMutableData with an NSData (which contains a png) | <p>there is a error in my iPhone app. I use the CameraPicker to make and get a picture and then I give it to my methode sendPhoto, which will send the photo to TweetPhoto. Everything works great until I initialize an NSMutableDate with NSData. Here is the code:</p>
<pre><code>- (void)imagePickerController:(UIImagePick... | 1 | 1,341 |
Facing BOLDWEIGHT_BOLD cannot be resolved or is not a field and SOLID_FOREGROUND cannot be resolved or is not a field | <p>I am facing BOLDWEIGHT_BOLD cannot be resolved or is not a field and SOLID_FOREGROUND cannot be resolved or is not a field.</p>
<p>My original Generic.java file:</p>
<pre><code>package com.expertus.libraries;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOEx... | 1 | 9,837 |
JasperReports: Subreport renders multiple times, causing duplicate pages | <p>I am using <em>JasperReports</em> to generate a graph and table for a web application using two separate queries. My main <em>JRXML</em> generates the graph, and I include a subreport in the <strong><em>Detail</em></strong> band to generate the table. However, when it renders, the subreport seems to get rendered mul... | 1 | 9,886 |
How to encrypt/decrypt a password from a JPasswordField Java | <p>here's my problem, I am working on a system where user can create an account, the user launches a program, he clicks on the register button. A new page appears and he has to enter his information(username, password). Then his information is stored into a local DB. The problem is when a user create his account his in... | 1 | 2,037 |
PHP Switch Case - keeping option selected | <p>I tried multiple different answers suggested on here but all does not seem to work with what I am trying to get done. </p>
<p>I am trying to set the option in the select box to selected when picking out the option and submitting it. </p>
<p>I am using switch case because it seems a quicker way to program as oppose... | 1 | 1,485 |
Binding Command inside DataGridTemplateColumn | <p>I have View(XAML included) attached to my ViewModel with commands. I need to invoke command when Button on DataGrid's row clicked. I'm using behaviors for this (regular commanding have same issue). When I click button on DataGrid - my command does not get fired.</p>
<p>To illustrate issue - I placed ListBox on a bo... | 1 | 2,379 |
Django app deploy to Heroku, Application Error, | <p>I am struggling to get my Django 1.10 app deployed to Heroku. Just as a preface, I am using Pycharm and had to rename my project at one point, but it refactored and changed the name in all places so I'm hoping that's not related to the issue. When I push this site to Heroku, I get an application error.</p>
<p><stro... | 1 | 4,434 |
Merge Two Video files in iPhone Application | <p>In One of my application i need to add some image in video. so i cut break video in two part and also make one video from that image. now i want to combine this three video file and make one video file. but i am not get any idea to combine this three video. i see some code over here. but that is not helpful to me. f... | 1 | 3,336 |
how to set the starting tab in tab layout with Toolbar? | <p>I'm sorry I am not fluent in English.
I wanna change the starting fragment in tab layout.
There is a value from another activity that gave with intent.
so I just want to start tab layout's fragment with my selection.</p>
<p>This is main activity's <code>onCreate()</code></p>
<pre><code>public class MainActivity ex... | 1 | 1,122 |
Angular 6 Using Two Shared Module : Component is not a known element: | <p>I have two shared Moduled 'shared-candidate-login-reg.module.ts' and 'shared.module.ts', I am importing both the shared modules in my home page. I want to use 'AlertLblComponent' from my 'shared.module.ts' in side my 'WidgetLogRegComponent' component (which is a child component of my home page and also is a part of... | 1 | 1,222 |
gnutls_record_recv: The TLS connection was non-properly terminated. Assuming EOF | <p>I am attempting to use the <a href="https://gitlab.com" rel="nofollow noreferrer">Gitlab</a> pipeline ci in order to build my site and deploy it to my GoDaddy hosting via FTPS. Right now everything is being done as dry-runs. If I attempt to transfer to a new directory from my top level domain (www.mysite.com/build... | 1 | 11,995 |
async/await with thread timer | <p>I was able resolve the issue with the input form Stephen Cleary. Please see update 3.</p>
<p>I have a Windows Forms application that has a method with the async modifier. If the method is called inside a button's click event it does not block the UI thread. However, when I call it inside a timer as a callback it fr... | 1 | 1,486 |
How to print array object in table row using nested ng-repeat in angular.js dynamically? | <p>I am using angular.js for font-end and node.js for server side.</p>
<p>Now, I am having some list of values in array randomly.</p>
<p>Html code :</p>
<pre><code><html ng-app='app' ng-controller='mainController'>
<head>
</head>
<body>
<div class="container">
<div cla... | 1 | 1,755 |
XAML using radio buttons to enable and disable textbox with databinding | <p>I am trying to figure out how to enable and disable textboxes with radio buttons and data binding. It seems like I should be able to bind the textbox IsEnabled to a boolean and modify that value but I can't quite get it to work. I want to have several sets of radio buttons and textboxes so I want a generic way to h... | 1 | 1,538 |
Writing values with multiple tags into influxDB (with python) | <p>I’m writing values (floats) to an Influx database with (using DataFrameClient), along with two tags: an ID and a timestamp</p>
<pre><code>def write_to_influx(ID, value):
df = pandas.DataFrame(data=[value],index=pandas.date_range(start=datetime.utcnow(), periods=1, freq='S'), columns=['value'])
client.write_... | 1 | 1,153 |
Error S1000 trying to execute more MySql queries in a Java Application | <p>I have a problem trying to execute more than one query into my Java Application code.
I have a procedure that is called in main and is in the class "Fant":</p>
<pre><code> public void XXX(){
Connectivity con=new Connectivity(); // this class set up the data for the connection to db; if ( !con.connect() ) {
... | 1 | 1,473 |
How to clustered markers from Firebase in GoogleMaps for iOS | <p>I'm developing an app on which I want to show a lot of events on the map. The user can click on an event and see a lot of informations about it.
In another view, a user can create a new event then the location and title are stored in Firebase database.
Then when others users watch the GoogleMaps on my app, they are ... | 1 | 3,392 |
ACF filter custom posts by subfield of repeater field | <p>I'm following the official <a href="https://www.advancedcustomfields.com/resources/query-posts-custom-fields/" rel="nofollow noreferrer">guide</a> in ACF documentation but hasn't been able to get it right. I'm using Advanced custom fields and Custom post type UI plugins.</p>
<p>I have a custom post type named <stro... | 1 | 1,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.