title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Resolve ActivatedRoute in Angular2 for Dynamic Component by ngComponentOutlet directive | <p>I want to create Dynamic Component by <a href="https://github.com/angular/angular/blob/master/modules/@angular/common/src/directives/ng_component_outlet.ts" rel="nofollow noreferrer">ngComponentOutlet</a> directive.
I have searched almost all of the web for an issue I am facing but could not find anything specific.... | 2 | 1,573 |
Hide <TD> when there is nothing in gridview in ASP.NET using VB.NET | <p>I am trying to hide a TD named ImportnatInfo in a table when the gridview is empty. This gridview has one column from a table in a database to show. When this gridview is empty I want to hide the TD.</p>
<p>The following is the asp code:</p>
<pre><code><td runat ="server" ID="ImportnatInfo"
sty... | 2 | 1,206 |
Rails 4 subdomains does not work on production | <p>I've created an Rails 4 application with 3 sub-domains.</p>
<p>Development domains:</p>
<ul>
<li>mydomain.dev</li>
<li>api.mydomain.dev</li>
<li>account.mydomain.dev</li>
</ul>
<p>Production domains (Ngnix with Passenger):</p>
<ul>
<li>app.mydomain.com (www.mydomain.com and mydomain.com show other page, not the ... | 2 | 1,532 |
Can the maven-shade-plugin create a shaded pom for a module with packaging type pom? | <p>I have a multi module maven project with a seperate xyz-distribution module that contains multiple assemblies. This module depends on all artifacts that go into the assemblies. </p>
<p>In my parent pom I have disabled deployment per default as I want only my distribution assemblies deployed. </p>
<p>Since there wi... | 2 | 2,295 |
Java Heap Space Error due to add function | <p>Whenever I am calling the getFriendList function from the xhtml page I am getting an exception. The page keeps on loading and after that I stop the browser. I get the given stackstrace. Its is telling me that there is an error at line no.78 <code>friends.add(friend);</code> . I think there is something wrong with my... | 2 | 4,723 |
Why doesn't the Bcc message header on an email work when using SmtpDeliveryMethod.SpecifiedPickupDirectory? | <p>We have an email job that uses <code>System.Net.Mail</code></p>
<p>Emails get sent to a folder, and a job runs to copy the files to the Pickup folder on our Exchange server at a specified time of day. A copy of the email gets sent to an internal mailbox by using the Bcc field.</p>
<p>There is a <a href="http://con... | 2 | 1,336 |
How to make angularjs unique list all results? | <p>I'm using AngularJS to list and filter a task board. I'm also using <code>unique</code> to remove repeated strings in <code>ng-options</code>.
When I load the page, angular is listing well all json, but when I try to use <code><select></code> to filter contents, it returns me only 1 result.</p>
<p>For example... | 2 | 1,085 |
how to create RDLC report using multiple sql columns with same values to count in vb.net | <p>basically i m creating <strong><em>vb.net window application</em></strong> which can show the result in <strong><em>rdlc report...</em></strong></p>
<p>at the back end it is <strong><em>SQL server 2008.</em></strong></p>
<p>Is there any easy way to fill RDLC tablix based on row and column grouping.</p>
<p>The sit... | 2 | 1,666 |
Couldn't read row from CursorWindow | <p>I'm doing an Android application in which I want to implement a registration feature where a new user is added.</p>
<p>At first I have created an activity called Registration, and when the button is pressed it calls a method that add a user:</p>
<pre><code>public User createUser(String username, String password, S... | 2 | 3,139 |
Using XSL compare two files and generate an output file | <p>Using XSL I want to compare two file and generate an output file.</p>
<p><strong>File 1:</strong></p>
<pre><code><SalesExtractProcess>
<PackageFormatVersion>3</PackageFormatVersion>
<VersionComments></VersionComments>
<CreatorName>Demouser</CreatorName>
<Creator... | 2 | 1,127 |
Action Extension to Handle Images From Safari | <p>I've got an iOS action extension that should support opening images and URLs (specifically webpages). However, the action extension does not appear in the list of available extensions when sharing an image from within Safari. For example, visiting <a href="https://en.wikipedia.org" rel="nofollow">https://en.wikipedi... | 2 | 1,215 |
How to get a particular link from a specific class? | <p>I'd like to extract this <strong>href</strong> from that particular <strong>class</strong></p>
<pre class="lang-html prettyprint-override"><code><tr class="even">
<td>
<a href="/italy/serie-a-2015-2016/">Serie A 2015/2016</a>
</td>
</code></pre>
<p>This is what I wrote... | 2 | 1,473 |
In wpf Clear ListBox items at Runtime | <p>I am using wpf <code>listbox,</code> i cannot able to clear the list when am calling the reload data function, i just want to reload new data at runtime,while page loading it loads the data correctly, when i refresh the new data is fetched in itemsource i can see that in debug mode, but no new data in listbox, old d... | 2 | 1,748 |
How to set Animation WPF Border without setting a name | <p>I have this:</p>
<pre><code><Border.Triggers>
<EventTrigger RoutedEvent="Border.MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard TargetProperty="Background">
<ColorAnimation From="Re... | 2 | 1,772 |
ASP.NET Core - getting a message from AuthenticateResult.Fail | <p>Can not get an error message in HTTP response.</p>
<pre><code> if (!string.IsNullOrWhiteSpace(checkTokenResponse.Error))
{
Logger.LogError(checkTokenResponse.Error);
return AuthenticateResult.Fail(checkTokenResponse.Error);
}
</code></pre>
<p>respons... | 2 | 2,092 |
The Python assignment operator, function definitions, and variable definitions | <p>Well... I was having a terrible time getting part of my code working, but I rearranged things and it suddenly started working correctly. Not sure what I did to be honest, so I guess that will be the subject of this question. I'm building a simple text-based card game that uses decks uploaded from two .txt files. ... | 2 | 1,052 |
Capistrano: RSolr::Error::Http - 404 Not Found when reindexing Solr | <p>I have not found any concrete examples that could possibly help address my problem. I previously had the sunspot gem working with Capistrano before my update to Rails 4 and Ruby 2. Any help sorting this error out would be greatly appreciated.</p>
<p><strong>Gemfile:</strong></p>
<pre><code>gem 'sunspot_rails', :gi... | 2 | 1,698 |
Terraform - unable to define security groups with terraform-aws-modules/security-group/aws | <p>I am trying examples from this module
<a href="https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws/3.10.0" rel="nofollow noreferrer">https://registry.terraform.io/modules/terraform-aws-modules/security-group/aws/3.10.0</a></p>
<p>The main.tf:</p>
<pre><code>module "vpc" {
source = "ter... | 2 | 1,408 |
Unit Testing JsonResult anonymous type in .Net Core | <p><strong>UPdated: Solution at bottom</strong></p>
<p>In .net core JsonResult does not have a "Data" property.
Many of the existing answers us that property to retrieve the needed values for unit testing.</p>
<p>I can't seem to wrap my head around the problem here:</p>
<pre><code> public async Task<IActio... | 2 | 1,060 |
phpmailer and php5.6 not working with office365 | <p>I have a site hosted with rackspace and upgraded my site technology from php5.4 to php5.6. Now I can no longer send emails from the site. The worst part is I'm not even getting any errors and the logs show nothing. I am using phpmailer 5.2.14.</p>
<p>Here is my mail script</p>
<pre><code>require 'phpmailer/PHPMail... | 2 | 4,211 |
Using Linq to Entities to find the best match in table | <p>I have a table with two columns that will be used as filtering criteria. Using Linq to Entities, I want to pass in two values and always return the closest match. For example, (1,2) should return (1,2) not (null,2) as the closest. If neither value finds a match, then the Null, Null column match is used.</p>
<p>Belo... | 2 | 1,398 |
ERROR: Could not load file or assembly 'Microsoft.Identity.Client | Powershell Azure Function | <p>I am currently working on a powershell script in Azure Function and keep being blocked by this error :</p>
<pre><code>[2021-03-12T16:13:43.484Z] ERROR: Could not load file or assembly 'Microsoft.Identity.Client, Version=4.23.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Le fichier spécifié est introuvable.... | 2 | 3,813 |
How to make phone input with country code in React JS | <p><a href="https://i.stack.imgur.com/7ox2N.png" rel="nofollow noreferrer">For reference you can see this image I need something like this </a></p>
<p>I am new and learning React JS and I want to take the phone input in +917896541230 or +91 78965412330 in this format, not in this +91 (123)789 654 0 or not in any other ... | 2 | 2,355 |
How to make a bash script to take input from command line (positionals), stdout (pipe), and process substitution? | <p>I wrote a script that takes a bunch of options (<code>-d</code>, <code>-v</code>, <code>-l</code>, as well as <code>--version</code>, <code>--leader</code>, etc...) and then the rest of the text (<code>$*</code>) can be anything. The script processes the text and spits it out reformatted. It's quite long, so here's ... | 2 | 1,688 |
iOS Swift 3 Storing Values To Realm | <p>In my app I'm using realm to store and retrieve data's. Here is my API result. I need to store this values to realm database.</p>
<pre><code>{
"cc": [
{
"id": 142,
"firm": 2,
"specialization_id": 2,
"specialization_name": "Alternative",
"number": "234",
"title": "Push test"... | 2 | 2,578 |
How can i pass array values in different pages in React? | <p>I try to passing code {array} from one page to another,</p>
<p>this is my code:</p>
<pre><code>import React, { Component } from 'react';
import "./App.css";
import SimpleStorage from "react-simple-storage";
import ViewUsers from './ViewUsers';
export class AddUser extends Component{
constructor(props) {
... | 2 | 1,976 |
Roles Permissions and Navigation | <p>I'm stuck on knowing what is the most efficient method of performing the following:</p>
<p>I have a CMS with different types of users. All users have access to the same CMS however the links in the sidebar(navigation) would be comprised of what the user has permission to access.</p>
<p>I'm trying to figure out how... | 2 | 2,753 |
I want to use camera on background service using mobile vision | <p>I make a android app for my project.
My application's purpose is detection for blinking of eye.</p>
<p>I use a mobile vision api.
I am using a sample code about face detection of mobile vision with blink detection code.</p>
<ol>
<li><p>My first question is that mobile vision api can be working on background servic... | 2 | 5,063 |
fast computation of Tomek link in R | <p>i want to implement tomek's link for dealing with unbalanced data.
This code is used for binary classification problem, where the 1 class is the majority class and the 0 class is the minority. X the imput, Y the output
I've written the following code but i'm looking for a way to speed up computation.</p>
<p>How can... | 2 | 1,299 |
How to refresh/reload WooCommerce checkout page after adding a coupon code (wordpress)? | <p>I need to reload the entire WooCommerce checkout page after adding a coupon code.<br />
I tried the following code but it doesn't reload it.</p>
<p>The reason why I need this function:<br />
Prices of the review table turns to defalut language prices after adding the coupon code.<br />
When I refresh the page, it sh... | 2 | 2,653 |
Spring Boot Runs on Tomcat 8.5.x but not 8.0.37 java.lang.NoClassDefFoundError: org/apache/coyote/UpgradeProtocol | <p>relatively new to Spring so I am guessing I am not doing something correctly. I have been converting an older java soap service to spring. I am able to run it locally on tomcat 8.5 and up, but when I run it on tomcat 8.0.37 (which is what the server I will deploy it to is on) I get the error below. I came across th... | 2 | 3,360 |
VueJS: Why parent components method unable to delete/destroy child's child (`vue2-dropzone`) component entirely? | <p>I am creating a slider in vuejs and am using <a href="https://rowanwins.github.io/vue-dropzone/docs/dist/#/installation" rel="nofollow noreferrer">vue2-dropzone plugin</a> for file uploads where each slide (<code>slide-template.vue</code>) has a <code>vue2-dropzone</code> component.</p>
<p>When app loads, image file... | 2 | 6,334 |
Make Span Class Responsive + Spacing between divs | <p>Im currently making a site, and I had a problem with viewing my element with Mobiles.</p>
<p>A little bit of it bugs out of the screen, which makes it look horrible.</p>
<p>This the element code:</p>
<pre><code><span class="irs js-irs-0 irs-with-grid">
<span class="irs"><span class="irs-line" ta... | 2 | 7,561 |
How to add arrow bootstrap navbar brand | <p>How do you add an arrow using css to the navbar brand (see image example)</p>
<p><a href="https://i.stack.imgur.com/D5s1N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D5s1N.png" alt="enter image description here"></a></p>
<p>The arrow should not be visible when in mobile view.</p>
<p>The fol... | 2 | 2,095 |
not supported by the language | <p>I code regularly in C++, and for the specific project I'm working on right now, I'm writing a C++ lib whose methods are to be used in a C# lib, whose methods are to be used in a C# app.</p>
<p>I use Microsoft Visual Studio 2017 on Windows 10. </p>
<p>I created a solution with 3 projects : </p>
<ol>
<li>A C++/CLI ... | 2 | 1,259 |
Rename from CSV Script renames files but trys to repeat process | <p>I have a script which renames files taken from a CSV but it throws an error when it trys to re-rename files after it has already carried out the successful proceedure</p>
<p>CSV file is like:</p>
<pre><code>old new
AC100 DC100
AC101 DC102
</code></pre>
<p>Code tried:</p>
<pre><code>$sourceDir = read-h... | 2 | 1,037 |
Why does Spring Boot MVC always return null values from my form? | <p>I've been researching for days and none of them worked for me. Most of what I got from the Internet was jsp, but I'm using Thymeleaf. What I'm trying to write is a generic type of CRUD which takes in any class and its variables to become the view page's field labels and inputs. </p>
<p>However, every time I try to ... | 2 | 1,534 |
nginx comet long polling with jquery | <p>Recently I have been trying to set up a comet server for my application on a Ngnix server using this plugin:<a href="https://github.com/wandenberg/nginx-push-stream-module" rel="nofollow">https://github.com/wandenberg/nginx-push-stream-module</a></p>
<p>due to the restrictive nature of GNU/GPL I am unable to use th... | 2 | 1,139 |
Error When Deploying Webapp on Tomcat | <p>I am having some trouble deploying a webapp on tomcat. I keep getting the following error. </p>
<pre><code>SEVERE: Error deploying web application archive /var/lib/tomcat7/webapps/SadScary.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to s... | 2 | 1,479 |
Add menu items to admin menu | <p>I am attempting to add several menu items to the Magento Admin area. The following code displays the "Local Access IPs" sub menu item, but not the "Remote Access Logs" sub menu item.</p>
<pre><code><?xml version="1.0"?>
<config>
<menu>
<VMR_Whitelist_menu translate="title" module="VMR_Whit... | 2 | 1,336 |
Obout Combobox selected Index changed event not working | <p>My problem is that the selected index changed event of Obout Combobox doesn't fire at all.</p>
<p>See my code below :</p>
<pre><code> <obout:ComboBox ID="ddPractice" runat="server" Width="350" MenuWidth="650" Height="180"
DataTextField="LocationText" DataValueField="LocationID" EmptyTex... | 2 | 1,737 |
Vue, Axios and Google Maps Place API CORS error | <p>I've looked at the other answers, but unless I'm not getting the answer, they don't answer my question.</p>
<h3>Environment</h3>
<p>NodeJS <strong>12.19.0</strong>
VueJS <strong>2.6.10</strong>
Axios <strong>0.15.3</strong></p>
<p>Current config for Axios:</p>
<pre><code>axios.defaults.headers.common['Authorization'... | 2 | 1,311 |
Change wallpaper with service | <p>I'm trying to use a service installed to run as a specific user (me in this case) to change the wallpaper.</p>
<p>Here is my <code>Wallpaper</code> class which has a <code>SetWallpaper</code> function:</p>
<pre><code>public sealed class Wallpaper
{
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError=t... | 2 | 1,273 |
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function but got: undefined | <p>I have a parent Component as <strong>app.js</strong></p>
<pre><code>import React, { Component } from 'react'
import { Route, Link, BrowserRouter, HashRouter} from 'react-router-dom'
//import BrowserHistory from 'react-router/lib/BrowserHistory'
import {Scholarships} from './scholarships'
class App extends Componen... | 2 | 2,135 |
Android Https Connection with self signed certificate : hostName not verified | <p>Hi I am testing Android connecion with certificate.
I have created a default ssl server on my ubuntu desktop. Enabled ssl and created the default self-signed certificate. I have then connected to <code>https://localhost</code> with firefox, added certificate to exceptions and then I used Firefox to save cerificate a... | 2 | 2,719 |
Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContexte.xml] | <p>I have this problem !</p>
<pre><code> java.lang.AssertionError: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContexte.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: UP_GAB] Unable to build Entit... | 2 | 2,612 |
How can Javascript access data sent from Python Flask's render_template() function? | <p>Problem: I am trying to access data I send (when the user navigates to the landing page of the site) from Javascript code so I can display it when the document is ready. This data is a dataframe.</p>
<p>Python Code: </p>
<pre><code>from flask import Flask, render_template, jsonify
import pandas as pd
import numpy ... | 2 | 1,140 |
GCM for Android 2 | <p>I follow this tutorial <a href="http://www.programming-techniques.com/2014/01/google-cloud-messaging-gcm-in-android.html" rel="nofollow">enter link description here</a> When I run my apps and click register button but not save registration id in db. I am using local host. I change my Sender id, and create project an... | 2 | 8,397 |
Adding an header to a custom navigation drawer | <p>I created this header and i want to add it at the top of my listview in my navigation drawer the problem is that i don't know where to add it</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_pare... | 2 | 8,124 |
wildfly 10 database login module | <p>I am trying to get the database login module to work with my project in the Wildfly 10 container.</p>
<p>I have followed this tutorial: <a href="https://www.examsmyantra.com/article/119/javaee/form-based-login-authentication-in-javaee7-with-wildfly-and-mysql" rel="nofollow noreferrer">https://www.examsmyantra.com/a... | 2 | 5,680 |
Dagger with FragmentPagerAdapter - android | <p>I am using from Dagger in my <code>ViewPager</code> like bellow.</p>
<p>My <code>ViewPagerAdapter.java</code>:</p>
<pre><code> public class ViewPagerAdapter extends FragmentPagerAdapter {
private final List<Fragment> mFragmentList; // note: this can cause crashes
private final List<String... | 2 | 1,892 |
Find Middle points(Computational geometry c++) | <p>This program should read for input an integer N then the x and y coordinates of the N points
and return the number of points that are the middle points of any two other points in the set.
First the program stores the points in an array then we loop throgh the points and calculate the distance between points[i] and e... | 2 | 1,107 |
how to wrap div elements boxes with responsive | <p>How to wrap div boxes into main div along with images with responsive.?
Am trying to achieve below layout.
<a href="https://i.stack.imgur.com/KRXUS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KRXUS.png" alt="layout"></a></p>
<p>When i use <code>float:left</code> the boxes are aligned perfect ... | 2 | 1,150 |
How to fix the `warning: File listed twice` notice? | <p>Have just built my first RPM-package per steps on <a href="https://tecadmin.net/create-rpm-of-your-own-script-in-centosredhat" rel="nofollow noreferrer">https://tecadmin.net/create-rpm-of-your-own-script-in-centosredhat</a>. Everything worked as described with the following output:</p>
<pre><code>Executing(%prep): ... | 2 | 2,003 |
Text doesn't wrap in IE 11 flex layout | <p>On IE 11 some of the text of a section is getting mangled. </p>
<p><a href="https://i.stack.imgur.com/PtVQ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PtVQ8.png" alt="Mangled text"></a></p>
<p>It should look like this and does on every other browser I've tried (Chrome, Firefox, safari, edge... | 2 | 2,019 |
React - add or remove class on click | <p>I want to add the "active" class on the hamburger div when its clicked so my sidebar to be visible when its clicked on smaller devices and remove the class "active" it from the close div. I understand that I have to use usestate but I'm not sure how because my code keeps breaking.</p>
<p>my cod... | 2 | 2,777 |
PCL with Kinect (OpenNI Grabber) | <p>**Hi , I just want a point cloud from kinect device. I followed the below link to do so.
<a href="http://pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber" rel="nofollow">http://pointclouds.org/documentation/tutorials/openni_grabber.php#openni-grabber</a></p>
<p>But I am getting the followin... | 2 | 1,193 |
Syntax error: identifier not found... But i have included it? C++ | <p>I have a Game class -</p>
<p><strong>Game.h</strong>:</p>
<pre><code>#pragma once
#include "D3DGraphics.h"
#include "Mouse.h"
#include "Screen.h"
#include "Script.h"
class Game
{
public:
Game( HWND hWnd, const MouseServer &mouseServer, const ScreenServer &screenServer );
void Go();
void Confi... | 2 | 2,212 |
How to click an href within HTML table if cell value within same row equals value in Excel workbook | <p>I'm attempting to automate the population of a webform based on values in an excel template. I've successfully been able to access the site and navigate through a few clicks with the VBA code below. Next, I need to tackle an HTML table. I'm needing to click the href containing inner text "reconcile" if a cell in ... | 2 | 2,953 |
XSD schema attempt to make attribute value unique | <p>I have been trying to use xs:unique with no success so far. I have the following simple schema:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://testuri/test.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://testuri/test.xsd"
... | 2 | 1,556 |
Get methods and attributes from dll assembly | <p>I'm trying to get a small plugin mechanism running by reflecting an dll file providing my class <code>Plugin</code> (implementing my <code>Plugin</code>-Interface shared among dll and main project / sorry for naming both the same) offering an attribute of type <code>string</code> and a main-method <code>activate</co... | 2 | 2,171 |
Show an Alert Dialog when a server socket accept a connection | <p>I need to created a class that implements a server socket that wait a connection request from a client (in this case the web browser). After that I have accepted the connection, I want to show an alert dialog with two buttons to the user. So, at the moment, I have the class ready to use for the server socket, and a ... | 2 | 1,695 |
Set state of href or passing as props to new component in React | <p>A bit new to React, so sorry if I don't explain this too well. I'm making a react project that allows users to search for artist tracks from the Spotify API. The search result renders a bunch of cards with artist information, and with a click on an tag (href is a url to a song preview) I would like to render an aud... | 2 | 1,565 |
Android Media Controller hides when loses focus | <p>I'm using a media controller associated with a media player to play a sound. The issue is that the media controller is hiding as soon as it loses focus. I have a button which when pressed, the sound is played and the media controller shows up at the bottom of the screen. </p>
<p>But when life pause is pressed, afte... | 2 | 2,862 |
How to affix a LinearLayout at the bottom of a screen in coordinator layout? | <p>I have a situation where linearlayout doesn't stay fixed at the bottom of the co-ordinatorlayout but moves with respect to the scrollview contents above. </p>
<p>I have tried all solutions on StackOverflow but still no luck (ex:<a href="https://stackoverflow.com/questions/46354035/keep-linearlayout-at-the-bottom-of... | 2 | 13,774 |
Mysql adapter ActiveRecord in Ruby throwing: 'Packets out of order' | <p>Ruby version: 1.9.1
Mysql version: 5.0</p>
<p>code written was:</p>
<p><pre><code>
require "rubygems"
require "active_record"
puts "1"
class Source < ActiveRecord::Base
puts "2"
establish_connection(
:adapter => "mysql",
:host => "localhost",
... | 2 | 2,289 |
Obj-C UIActionSheet Memory Leaks iPhone | <p>I'm coding a popup screen that will show up if a the value for <code>mulValue</code> in the settings is <code>nil</code>. Here is the code:</p>
<pre><code>#import "FirstViewController.h"
@implementation FirstViewController
@synthesize myHelpfile = ivHelpfile; //UIAlertView
@synthesize myAboutfile = ivAboutfile; /... | 2 | 1,987 |
Async functions in C# deadlock when called from javascript aspx page via PageMethods | <p><strong>Problem Summary:</strong><br/>
I'm trying to use PageMethods to call a C# function from an HTML page. The problem is that the C# function I'm calling is marked as async and will await the completion of other functions. When the nested async C# functions are called by PageMethods, the C# code seems to deadl... | 2 | 1,116 |
Jest/Enzyme: How to handle an async function being called inside another? | <p>I am trying to run Jest/Enzyme async tests for <code>fetchTemperatures</code> and I've run into a bit of unfamiliar ground. If I define longitude and latitude and comment out <code>getUserCoordinates</code> I am able to pass my tests. Question is, how can I write my tests to allow/mock that an async function inside ... | 2 | 1,842 |
K3s ingress TLS enabled accessing TLS enabled backend, how to? | <p>I have a local K3s kubernetes cluster with its traefik ingress controller.</p>
<p>(Mac OSX, Multipass Hyper-V based local VMs: <code>v1.18.3+k3s1 Ubuntu 16.04.6 LTS 4.4.0-179-generic containerd://1.3.3-k3s2</code>)</p>
<p>what I want is <strong>having an ingress that is tls enabled</strong> AND forwarding t... | 2 | 2,471 |
Issues retrieving special characters from OPENJSON SQL Server | <p>I'm parsing data from a JSON File and am having issues when I finally load into my table, the data where there's special characters such as ñ shows as ñ instead.</p>
<p>The code is in NVARCHAR and I'm not sure why it's not pulling correctly</p>
<pre><code>INSERT INTO @recordsInfo
(
messageId,
... | 2 | 1,051 |
SceneKit - Rotating around a point causing strange rotation | <p>I want to be able to rotate a camera around a cube (a collection of cubes), but for some reason, when I rotate, the rotation goes in multiple directions.</p>
<p>I have an object that I wish to rotate around and set this as a look at constraint. This object is in the middle of the cubes.</p>
<p>I have a swipe gestu... | 2 | 3,733 |
Add or remove specific cart Item based on WooCommerce cart total | <p>I am trying to add a free product to the cart if the order total is above $199.99</p>
<p>I have achieved this and it is working. The issue is that I need to remove the product if the user then deletes an item from the cart and goes below $199.99 again (to prevent gaming the system).</p>
<p>What I have seems to be ... | 2 | 1,234 |
Ray Tracing Reflection,Reflecting on the the wrong side | <p>Hey i am currently writing a ray tracer and i am try to add reflections.
I have two questions.Is my ray direction calculation correct because it does not seem wrong.My second question is how would i implement reflections because this is not working to good.</p>
<p><img src="https://photos-2.dropbox.com/t/2/AAAbC8iQ... | 2 | 4,135 |
Spring hadoop Mapper configuration | <p>I'm using Hadoop 1.2.1 and Spring Hadoop 1.0.2</p>
<p>I wanted to check the Spring autowiring in a Hadoop Mapper. I wrote this configuration file:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchem... | 2 | 2,632 |
Cannot Evaluate Module : Configuration with name 'default' not found | <p>To start things off, yes I know there are multiple other threads with the same title addressing the same error, however after 3 full work days, I haven't been able to fix this error.</p>
<p>Project Structure:
BaseDir/
-build.gradle</p>
<pre><code>+App/
+ LibProject1/
-build.gradle
-build.gradle... | 2 | 1,560 |
Codeigniter, getting ajax to run on button press | <p>My original goal was to get a php file to execute on a button press. I used ajax. When the javascript was in the view, it worked.</p>
<p>However, I tried to switch the javascript to its own .js file and include it in the header. It doesn't work anymore. I am confused. </p>
<p>the model code: </p>
<pre><code>pu... | 2 | 1,189 |
Run pip in python docker | <p>I am completely new to docker (on windows 10 machine). I intend to setup a python development environment as a docker container. And most of the reading that I did involved the use of Dockerfile. I want to do it from scratch instead purely using commands.</p>
<p>What I intend to do is very basic requirement: To have... | 2 | 1,108 |
Add leading zero within a character string | <p>One column of my data.frame looks like the following:</p>
<pre><code>c("BP_1_CSPP", "BP_2_GEGS", "BP_3_AEAG", "BP_4_KPAP", "BP_5_TAKP",
"BP_6_GGDR", "BP_7_MQQP", "BP_8_EEEE", "BP_9_RSDP", "BP_10_APAS",
"BP_11_KRGG", "BP_12_RSQQ", "BP_13_QQLS", "BP_14_EPEV", "BP_15_AAPS",
"BP_16_SDVT", "BP_17_GQQQ", "BP_18_AETP",... | 2 | 1,160 |
XML encoding error, but both XML and input text encoding are utf-8 in php | <p>I'm generating a XML Dom with DomDocument in php, containing some news, with title, date, links and a description. The problem occurs on description of some news, but not on others, and both of them contains accents and cedilla.</p>
<p>I create the XML Dom element in UTF-8:</p>
<p><code>$dom = new \DOMDocument("1.... | 2 | 1,403 |
Dynamic change-making algorithm that returns actual list of coins used | <p>I'm trying to adjust the code from the wikipedia:</p>
<p><a href="https://en.wikipedia.org/wiki/Change-making_problem#Implementation" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Change-making_problem#Implementation</a></p>
<p>To also output the list of coins used, not only the number of coins used. Tha... | 2 | 1,556 |
JSP GlassFish error | <p>I'm trying to create a regsitration app using netbeans java web project.I've created a database called testdb and created a table called users.Unfortunately received a mistake and couldn't new add datas to table.Mistakes listed from Glassfish Output below.Here's what i tried</p>
<p>Index.html</p>
<pre><code><ht... | 2 | 3,136 |
Text input inside a radio button? | <p>Gravity Forms for WordPress has an option for its radio button sets called 'Enable "other" choice'. This option adds a text input nested inside the option.</p>
<p>GF's radio buttons are a problem to begin with since they have no fieldset, but ignoring that, this other choice causes problems with keyboard accessibil... | 2 | 1,253 |
Using Vuelidate with v-for and props | <p>How are you all using Vuelidate with <code>v-for</code>. I can't seem to get it to work correctly. It either validates each of the <code>text-fields</code> in my form, or it throws an error. I only want it to validate the field that is being entered, and not other fields that are created from <code>v-for</code>.</p>... | 2 | 1,075 |
Bootstrap modal showing multiple times | <p>I have a .NET application using C#, Bootstrap 2.3.2 and the latest version of jQuery.
In my Javascript file, I show a Modal everytime the user clicks a button, by making an Ajax request to the server which then returns the HTML for the modal with all the information:</p>
<p>Sounds complex, but in reality is quite ... | 2 | 2,558 |
Google-Map-React Marker on Dark Mode Not Rendering | <p>I'm using an npm module called google-map-react in order to create a custom map on my website. This site shows how to make the basic marker work (<a href="https://levelup.gitconnected.com/reactjs-google-maps-with-custom-marker-ece0c7d184c4" rel="nofollow noreferrer">https://levelup.gitconnected.com/reactjs-google-ma... | 2 | 2,287 |
Reload this javascript file after an ajax page load (YITH Infinite Scroll) | <p>I have a woocommerce shop that has an ajax page load navigation. So a user clicks next page and more products are loaded via ajax.</p>
<p>However, I have a javascript file that manipulates the colors on each product on a page load. But since I have introduced this ajax page load, the script no longer loads after a ... | 2 | 2,870 |
Cosmos DB Aggregation Pipeline incompatible (Mongo API)? | <p>Perhaps somebody has a good idea how we can fix or workaround something which looks like a bug in the current implementation of Aggregation Pipelines for MongoDB in Azure Cosmos DB (so yes: We have switched on the feature on our instances).</p>
<p>Short version is: It seems to us that a <code>$match</code> aggregat... | 2 | 2,691 |
How to retrieve selected data from Django Choice Field? | <p>I want to retrieve the <code>question_description</code> <code>answer_descritption</code> and <code>question_image</code> <code>answer_image</code> if found in the database according to topic and question type using two <code>ChoiceField</code> for both: Topic and Question Type.</p>
<p>However, I don't know how to ... | 2 | 2,453 |
Android instrumented unit test will not run on one physical device | <p>I have one device that throws an exception when I try to run unit tests on a project recently converted to use the androidX support libraries. The tests have run on emulators and other physical devices. </p>
<p>The device it will not run on is a Pixel 2 running 9.</p>
<p>App crashes with this exception:</p>
<pr... | 2 | 1,204 |
EF code first migrations, DB generated GUID keys | <p><strong>The question as a one liner</strong></p>
<p>How do I get EF to generate as part of a code first migration</p>
<pre><code>ALTER TABLE [DMS].[Forms] ADD CONSTRAINT [DF_DMS.Forms_Id] DEFAULT (newid()) FOR [Id]
GO
</code></pre>
<p><strong>More detail of the problem</strong></p>
<p>I'm to build out a simple tab... | 2 | 1,103 |
Time based data analysis with Python | <p>I've got a project where physical sensors send data to the server. Data is send irregularly - after something activated a sensor, but not less often than every 20 minutes. On the server data is stored in a Posgresql database. </p>
<p>Data structure looks like:</p>
<pre><code>Sensor Table
sensor name - string
... | 2 | 1,157 |
How to construct a cubemap texture using QOpenGLTexture? | <p>I want to construct a cubemap texture using QOpenGLTexture using 6 images. I think I have placed them right.</p>
<p>I am using the following code to construct the cubemap</p>
<pre><code>const QImage posx = QImage(":/images/posx.jpg").mirrored().convertToFormat(QImage::Format_RGBA8888);
const QImage posy = QImage("... | 2 | 1,649 |
How to set Homepage in WebView from edit text? | <p>i have a webview in which i want to add the functionality of changing the homepage through edit text field. like all the browsers do, but from other activity (i want to have this and all the other settings in another activity). is it possible to do so? Thanks</p>
<pre><code> package com.example.app;
... | 2 | 5,972 |
Ruby on Rails Approve / Reject buttons | <p>My form is simple:</p>
<pre><code> <%= form_for(@shop, remote: true, data: { confirm: "You sure?"}) do |fa| %>
<%= fa.hidden_field :status, :value => 1 %>
<%= fa.submit "Approve", class: "btn btn-large btn-success" %>
<% end %>
<%= form_for(@shop, remote: true, d... | 2 | 1,295 |
How do I show details view in iPhone App using Sqlite | <p>I am trying out iPhone Apps, coming from C#, I am finding very difficult to grasp the iPhone dev environment.</p>
<p>So far, I am able to get my 'Makes' listed in a TableViewController. I now wish to get by 'Models' listed when a Makes is selected. <strong>Can someone help me with sample code.</strong></p>
<p>Can ... | 2 | 1,075 |
Processing with tuio | <p>hi i am new to processing and i'm trying to figure out how to make the sphere move from left to right using a marker instead of the mouse. can you help me please? i can use the marker to shoot but i cant move the sphere by shooting</p>
<pre><code>import TUIO.*;
TuioProcessing tuioClient;
HashMap symbols=new HashMap... | 2 | 1,601 |
Adding an image to an info window markerOptions in Google Maps API | <p>I have an array of points I want to add:</p>
<pre><code>var arr1 = [
[40.664171,-73.983886,"410 7th Ave, Brooklyn, NY, 11215", '<IMG BORDER="0" ALIGN="Left" SRC="images/ShotGlass.png">'],
[40.661113,-73.990103,"652 6th Ave, Brooklyn, NY, 11215", '<IMG BORDER="0" ALIGN="Left"... | 2 | 2,730 |
B2C custom policy login - "The username or password provided in the request are invalid" | <p>We have a legacy system that we are upgrading to Azure B2C. Users need to be able to log-in using their usernames or emails. In legacy system multiple users can have the same email address.
We created custom policy (based on <a href="https://github.com/azure-ad-b2c/samples/tree/master/policies/username-signup-or-sig... | 2 | 6,317 |
How to optimize performance when repeatedly looping over a big list of objects | <p>I have a simple file that contains two integer values per line (a source integer and a target integer). Each line represents a relation between two values. The file is not sorted and the actual file contains about 4 million lines. After sorting it may look like this:</p>
<pre><code>sourceId;targetId
1;5
2;3 ... | 2 | 1,928 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.