title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
HTML table in php foreach loop where the cell data is only populated if an element is equal to the table column head name | <p>I have created my column headers in my table by using:</p>
<pre><code>if (count($round) > 0): ?>
<table>
<thead>
<tr>
<?php foreach ($round as $colhead): array_map('htmlentities', $colhead); ?>
<th><?php echo implode('</th><th>',$colhead); ?></th&... | 3 | 2,937 |
How to configure Shovel plugin for two instances of RabbitMQ running on same machine | <p>Sorry if this is repeated question but I am having hard time getting this to work even after doing a lot of search. Thanks for any help in advance!!.</p>
<p>I have two instances of RabbitMQ running inside docker container running on my machine as shown below.</p>
<pre><code>C:\WINDOWS\system32>docker ps
CONTAINER... | 3 | 1,028 |
combining 2 columns using ifelse dropping a variable R | <p>I am trying to combine the male and female columns I have created into one column. I tried using some answers I found on stack, but the second sex I queried was excluded.</p>
<p>Build Data Frame:</p>
<pre><code>ID <- 1:10
SPAYDT <- c("", "2011-12-01", "", "2006-05-01", "", "", "", "", "", "")
SPAYDTU <- ... | 3 | 1,054 |
Error in executing *.msi file created using Visual Studio | <p>I have created a window service using c# in visual studio 2013.
Windows service is working fine.</p>
<p>When i create a setup project and run the .msi file in different computer it gives me an error </p>
<p><a href="https://i.stack.imgur.com/oRjQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | 3 | 1,242 |
Updating RecyclerView in a Fragment - Xamarin Android | <p>I have a 3 fragments on my view pager. On my 3rd fragment is a recyclerViewer which contains contact list. Now, i am finding it difficult as to how to update my contact list (recycleViewer with data) from my database. <code>recycleview</code> in Fragment.axml is inflated from Fragment 3.cs.</p>
<p><strong>Fragment ... | 3 | 5,801 |
jquery check checkboxes within an element only | <p>I have these audience groups with audiences hidden under it. When a user clicks on the audience group name, the hidden audiences will appear. now, what i want to do is when a user clicks on the audience group checkbox, only the audience checkboxes under it will be checked also. </p>
<p>currently i have the followin... | 3 | 1,931 |
2d Square to rectangle collision detection and action(physics) | <p>so I made this way to detect and react to squares moving and touching other squares. It uses Pythagorean theorem to make a third parameter so you don't get two true if statements when squares touch. I recently have been attempting to use this method on a square to a rectangle, and cannot seem to get it working. I ha... | 3 | 3,448 |
How to ignore the click made in row of a listview | <p>Scenario : I have n number of tabs each tab is having its own listview. I am using a Array adapter to generate a listview. The array which is passed to arrayadaper is having array of objects. Each object has a "menu" and "menu type" . Now based on the menu type, if the menu type is "menugroup" i will draw using a di... | 3 | 1,059 |
Bash: Find and delete duplicate files from different folders base on name and size of each file | <p>I have merged several old folders of mp3 together via MusicBrainz Picard <a href="https://picard.musicbrainz.org/" rel="nofollow noreferrer">https://picard.musicbrainz.org/</a><br>
It did an amazing job identifying mp3 and properly organise them in a structured folder which I want.</p>
<p>But now I am finding sever... | 3 | 2,275 |
How to make the widgets on the popup window widgets stay with the popup window when the root window is resized | <p>The widgets on my popup window do not resize when the root window resizes. The popup window and the labels on the popup window stay where they are. Does it have something to do with the size_hint and size of the popup window itself? It seems that the widgets(icons) are independent of the popup window.</p>
<p>main fi... | 3 | 2,266 |
Jailbreak detection mechanism not detecting jailbreak device | <p>In my app I wanna detect whether the device is Jailbroken or not. If it is jailbroken, it should not allow user to use the app. I added a function to detect but its not detecting jailbroken devices</p>
<p>Attaching the code for reference</p>
<p><em>JailbrokenDetector.swift</em></p>
<pre><code>func isJailBroked() -&... | 3 | 1,402 |
Amcharts.js doesn't draw chart properly | <p>I'm trying to create a chart which shows prices for product from different shops. The problem is that it shows only the first value of every shop instead of all values (cca 10 for every shop).</p>
<p><a href="https://i.stack.imgur.com/SZ7dv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SZ7dv.pn... | 3 | 3,088 |
How to call $this->get('security.context')->getToken()->getUser() in Android | <p>i am new to android and i am working on one application ,In which i have to add books by posting all book details to pHp server,here i am using httpPost call to send all book details,but in pHp server there is a line,</p>
<pre><code> $this->get('security.context')->getToken()->getUser()
</code></pre>
... | 3 | 1,644 |
Oracle query only runs consistently when adding a random comment | <p>Edit: Solved! thanks to @kfinity.</p>
<p><a href="https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:9525821800346131704" rel="nofollow noreferrer">AskTom </a> suggests using select /*+ opt_param('_optimizer_use_feedback' 'false') */ at the start of your query to disable the feedback usage. This has... | 3 | 7,419 |
API Platform - onPreSerialize with MediaObject URI Resolver in normalization group | <p>I have a MediaObject exposed as a subresource within a normalization context group "modules": </p>
<pre><code>/**
* @ApiResource(
* attributes={"access_control"="is_granted('ROLE_ADMIN')"},
* collectionOperations={
* "get",
* "post",
* "allData"={
* "method"="G... | 3 | 1,734 |
Powershell ForEach-Object column variables | <p>Kind of have a strange problem. I have a large JSON file that needs to be processed. Based on another question I need to stream the file since it will otherwise gets me problems because of memory: <a href="https://stackoverflow.com/questions/67368729/json-powershell-memory-issue">JSON Powershell memory issue</a></p>... | 3 | 1,152 |
Carrierwave undefined method `[]' for nil:NilClass during Capistrano deployment | <p>I am trying to deploy a new release using Capistrano and I am getting an error during asset:precompile task</p>
<p><code>undefined method []' for nil:NilClass</code></p>
<p>The full stacktrace is as follows:</p>
<pre><code>/home/deploy/bikeramp/releases/20190108123149/config/initializers/carrierwave.rb:5:in `bloc... | 3 | 3,093 |
Thread safety / Invoke method causes StackOverflowException | <p>This is an app that uses WMI to fetch Local Administrator group members on a remote computer. In an attempt to make threadsafe calls to update my main UI from within Background Worker I am getting a StackOverflowException. I have copied the example from another thread on Stack. Could someone help me to identify the ... | 3 | 1,356 |
updating selectbox using ajax in rails | <p>I am trying to update a selectbox of a form using ajax after creating a record but I get the following error:</p>
<pre><code>ActionView::Template::Error (undefined local variable or method `f' for #<#<Class:0x89d20be8>:0x89d05118>):
1: <%= f.label :Sector, "Sector:", class: "control-label col-md-... | 3 | 2,867 |
JDialog size not suitable, why isn't the PreferredSize used in BoxLayout? | <p>I have a JDialog with only a few simple components, one JTextArea, one JtextField and one JRadioButton. I just want it displayed with a suitable size.</p>
<p>The PreferredSize of the components seems reasonable but everything gets truncated. I'm using BoxLayout with Y_AXIS.</p>
<p>I don't want to have to set expl... | 3 | 2,239 |
RavenDB connection issues | <p>We have seen a noticeable uptick in problems related to RavenDB connections. We're using the IIS server connection method.</p>
<p>I've checked the index errors and I don't see anything listed.</p>
<p>This server is replicated with a MySQL server and there is one error related to replication in the log from today. ... | 3 | 1,063 |
Django like button dosen't increment and redirect me to the same page | <p>I have a problem with like button it doesn't work at all. In the template I use
<code>{{ post.likes }}</code> to show likes count and for the button I use <code><a href="{% url 'post_like' pk=post.pk %}" class="btn btn-block hvr-bounce-in"></code></p>
<p>This is views.py</p>
<pre><code>from django.http.res... | 3 | 1,672 |
Android mic audio, not getting expected frequency | <p>I have a code which detects Android mic audio and calculates frequency.
Though, the frequency what I'm getting is not the same as tested.
E.g. sound 260Hz is outputted as 62Hz.<br>
I have no clue why I'm not getting the expected frequency.<br>
FFT I'm using is from the website
<a href="http://jfftpack.sourceforge.ne... | 3 | 2,019 |
Having trouble fetching data from database for chart in ASP .NET Core | <p>I have troubles with loading data from my Azure SQL database to a chart I'm creating using chartJS. I am trying to fetch data from columns "hrPlan", "hrSub" and "hrFact" for the year 2021 from the "workTS" table, but it is currently working incorrectly.<br/>If I try to get val... | 3 | 4,069 |
Tesseract with PHP performance | <p>I have implemented an API with Laminas and Mezzio (former Zend Expressive). There I have a handler which uses the thiagoalessio\TesseractOCR library (<a href="https://github.com/thiagoalessio/tesseract-ocr-for-php" rel="nofollow noreferrer">https://github.com/thiagoalessio/tesseract-ocr-for-php</a>) to call Tesserac... | 3 | 1,539 |
Prevent website from scrolling when actuating JQuery Knob | <p>I have a DSP application which can be controlled through a web interface. To allow the user to set certain numeric values, such as gain, sensitivity, volume, frequency limits of filters, etc., I use the <em>JQuery Knob</em> element from <em>Anthony Therrien</em>.</p>
<p>The <em>JQuery Knob</em> element may be actua... | 3 | 2,369 |
Getting OSSystemExtensionErrorCodeSignatureInvalid After Codeless DEXT is Activated | <p>I built a codeless DEXT to replace a working codeless KEXT - <a href="https://stackoverflow.com/q/63212902/275657">Migrating a codeless KEXT to a codeless DEXT</a>. I referenced a few sites and GitHub repositories to put it together and had help from other SO users.</p>
<p>I am running with SIP turned off, developer... | 3 | 1,701 |
apache.hadoop.mapred.JobClient.runJob failed | <p>I done test with standard alone mapreduce job in Ubuntu.
But the following error appeared, then failed.</p>
<p>conf.myconf is created from conf.empty copy</p>
<pre><code>ubuntu@ip-172-31-20-2:/etc/hadoop/conf.myconf$ hadoop jar /usr/lib/hadoop-0.20-mapreduce/hadoop-examples-2.0.0-mr1-cdh4.7.0.jar grep ~/hadoop/inp... | 3 | 8,319 |
How to add next and prev controls to a slideshow | <p>I'm still relative new to coding in general. I need to create a slider with controls but I'm having problems writing the script for the next and previous button. I'm pretty much clueless.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
... | 3 | 1,098 |
Many-to-many mapping with LINQ | <p>I would like to perform LINQ to SQL mapping in C#, in a many-to-many relationship, but where data is not mandatory.<br>
To be clear:<br>
I have a news site/blog, and there's a table called <code>Posts</code>. A blog can relate to many categories at once, so there is a table called <code>CategoriesPosts</code> that l... | 3 | 1,453 |
Linking issue with dev-c++ on Windows | <p>I'm taking over a C++ project developed with Dev-C++ (yeah, I know...): it compiles fine but it won't link and the error message is not very indicative:</p>
<pre><code>Compiler: Default compiler
Building Makefile: "S:\Spirale 2\spiral2\conditionnement\trunk2011\Makefile.win"
Finding dependencies for file: S:\Spiral... | 3 | 1,577 |
Error trying to consume exchanges from multiple Camel endpoints | <p>I am newer to the Camel world and I'm not sure if I'm using the wrong classes for what I want to accomplish. I have two route definitions designed to go to two different direct endpoints. My goal is to process a product and check the message when it ends at an endpoint, resulting in a NPE.</p>
<pre><code> RouteDe... | 3 | 1,233 |
Intent Mediastore.ACTION_VIDEO_CAPTURE refuse putExtra arguments | <pre class="lang-java prettyprint-override"><code>final File root = new File(Environment.getExternalStorageDirectory() + File.separator + "MyDir" + File.separator);
root.mkdirs();
final String fname = "img_"+ System.currentTimeMillis() + ".mp4";
final File sdImageMainDirectory = new File(r... | 3 | 1,082 |
Add FormControl accroding to the data returned from backend but got two different error in Angular app | <p>This is one of the page of my Angular app.</p>
<p>Inside the ngOnInit method, I call the api twice to get different data I need and loop through the data by using forEach method to build reactive form, but somehow, I encountered one of two different error.</p>
<p>This</p>
<p><a href="https://i.stack.imgur.com/M0r... | 3 | 3,734 |
Create Winform controls dynamically - VB.NET | <p>I want to create a simple <strong>Winform</strong> application that contains multiple blocks . </p>
<p>Each block is a <strong>FlowLayoutPanel</strong> container that holds the following form controls: <em>(Image attached for reference)</em></p>
<ol>
<li><strong>Label</strong></li>
<li><strong>TextBox</strong></li... | 3 | 1,867 |
Is it possible to append a list item by locating the list container by class name? | <p>I have this nested list in html:</p>
<pre><code> <ul>
<li > Group One(<span id = "amount1"> 0 </span>)
<ul class = "names"> </ul> </li>
<li> Group Two (<span id = "amount2"> 0 </span>)
... | 3 | 1,141 |
jquery mobile - navigate through pages using drag and swipe gestures | <p>I would like to navigate to different pages using the swipe gestures. And what I mean by that is when I tap and drag the page, the page should slide/drag with the swipe gestures but only change the page when it reaches a certain point, like the facebook app or whatsapp.</p>
<p>I saw these post:</p>
<p><a href="htt... | 3 | 1,928 |
JavaFX Gridpane search returns null nodes | <p>I want to implement my own custom dialogs in <code>JavaFX</code> from FXML files and I want to change the title and messages of the dialogs programmatically. My <code>.fxml</code> file has this structure for a typical dialog (I used an error one for this example):</p>
<pre><code><StackPane prefHeight="140.0" pre... | 3 | 2,277 |
MAC OS - Error: Cannot find module postgres driver | <p>I just change my computer from windows to mac and tried to start my server app that based on
postgresql and got this error: Error: Cannot find module '../driver/postgres/PostgresDriver' .
i installed typeorm and pg and installed postgres and yet i get this message.</p>
<p>hope somebody can help me.</p>
<p>Full error... | 3 | 3,484 |
onCreateOptionsMenu() override not being called in BaseActivity | <p>My base activity displays the toolbar but has no title, burger or overflow menus on the bar. I can not figure out how to get the menus to show. Any help would be much appreciated! onCreateOptionsMenu() is not being called in the base activity when I debug.</p>
<p>BaseActivity</p>
<pre><code>public abstract class B... | 3 | 1,398 |
Mobilefirst server returns error 403 after session timeout handling in a native ios application | <p>I'm using <a href="https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.0/authentication-security/adapter-based-authentication/adapter-based-authentication-native-ios-applications/" rel="nofollow">Adapter-based authentication in native iOS applications</a> to connect my native ios application (swift) t... | 3 | 1,772 |
the codes are not working in the second xml file | <p>i am just working on a test app.</p>
<p>this is the xml file of the home page.</p>
<pre><code> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
a... | 3 | 1,849 |
PHP Parse error: syntax error, unexpected end of file on line 59 | <p>i get the following error:</p>
<p>PHP Parse error: syntax error, unexpected end of file on line 59</p>
<p>Here is my code:</p>
<pre><code><?php
require_once("FormFunctions.php");
require_once("ValidationFunction.php");
$errors = array();
$message = "";
if (isset($_POST['submit'])){ // form was submitted
... | 3 | 1,189 |
Perl Mojolicious unable to connect to server | <p>I am attempting to run a Mojolicious server (using Morbo or Hypnotoad) on my VM, but I am unable to connect to my server remotely. Here is my code</p>
<pre><code>use Mojolicious::Lite;
use strict;
use v5.18;
app->config(hypnotoad => {listen => ['http://*:80']});
get '/' => sub {
my $c = shift;
... | 3 | 1,186 |
Conversion of C# Code to LINQ C# but list adding same items | <p>programmers, I am trying to filter the list. I did with foreach loops and it's working fine but when I converted it to LINQ it's not working properly because the filtered list is adding the same items while I need different items picked from another list according to my condition.
I did the following code with loops... | 3 | 1,149 |
CLIPS PROGRAMMING: How to count how many facts that are 'yes'? | <p>I'm new to clips programming and I'm currently developing an expert system for mental health illness (anxiety). The way how my system works is after the user has answered all the questions such as " Do you have excessive worry? ", "Do you feel lonely ?", "Do you have difficulty breathing?&qu... | 3 | 8,711 |
Reactive shiny modules sharing data | <p>I'm trying to create a shiny app using modules. Two dataframes (tables a and b) are reactive and can be modified, a third dataframe (table c) is also reactive and is based on tables a and b. </p>
<p>I tried following this <a href="https://stackoverflow.com/questions/46555355/passing-data-within-shiny-modules-from-m... | 3 | 2,416 |
Div above responsive image map | <p>I am trying to add an arrow over a image that has an image map. It uses <a href="https://github.com/etienne-martin/Mapify" rel="nofollow noreferrer">mapify</a> to make the image map responsive.</p>
<p>I already tried implementing the code in every place I could think of on this page: <a href="https://sporedev.ro/pl... | 3 | 4,467 |
No 'Access-Control-Allow-Origin' header is present on the requested resource error when [Authorize] is placed on any method in a controller | <p>I have been following the tutorials <a href="https://damienbod.com/2016/03/02/angular2-openid-connect-implicit-flow-with-identityserver4/" rel="nofollow noreferrer">here</a> to build my application. Everything works well at the authentication side. Now, the problem I am having is when I move to the resource server t... | 3 | 9,014 |
javascript cannnot detect same element in array | <p>I have the code below:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var classCode = "";
var colorUsed = [];
var classes = [];
var color = ["yellow", "lightblue", "lightg... | 3 | 1,062 |
onItemClickListener is not working, not getting event when i click | <p>I am using custom Adapter for the <code>ListView</code>, setting row every time in the <code>ListView</code>.
in row i want to have two view clickable, i want the click event from both.
setting <code>OnItemClickListener</code> to the <code>ListView</code>, but not working,<br>
i want the functionality exactly same a... | 3 | 1,778 |
.animate() working just one time | <p>I have <a href="https://dl.dropboxusercontent.com/u/187738698/Temporary%20Files/costume-page.html" rel="nofollow">this site</a> (See in Full Screen).</p>
<h3>Aim:</h3>
<p><strong>On click of <code>"#cos_next"</code></strong>:</p>
<ol>
<li>The image <code>"#img_1"</code> should move to the left beyond the page , a... | 3 | 2,560 |
Android - Multilevel Listviews | <p>I am relatively new to Android and working with an online API. I have two activities. The first activity is bringing up a list of search results and placing them into a ListView. This is not a problem. I am trying to select an item from this ListView and pass it to the next activity and fill another ListView in this... | 3 | 5,834 |
Excel: Problems w. INDIRECT, Arrays, and Aggregate Functions (SUM, MAX, etc.) | <p><strong>Objective</strong></p>
<p>I have a Microsoft Excel spreadsheet containing a price list that may change over time (<code>B2:B5</code> in the example). Separately, I have a budget that too may change over time (<code>D2</code>). I am attempting to construct a formula for <code>E2</code> to output the number ... | 3 | 2,743 |
Graphs not being produced | <p>first time posting on here so I'm sorry if I've missed something.
I'm currently using code from my old boss, who said I would simply have to put the new csv into the existing script and everything should run smoothly. This has not been the case. My goal is to have graphs produced for each fish species, comparing wet... | 3 | 1,095 |
PostgreSQL: create temporary table, added to main select query and avoid more than one row error | <p>Again, I'm struggling to understand how SQL works. Hence, I'll explain to you what data I have and what I've done so far.</p>
<p>I have 5 tables:</p>
<p>loan</p>
<p><a href="https://i.stack.imgur.com/bGFDC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bGFDC.png" alt="loan"></a></p>
<p>loan_r... | 3 | 1,469 |
Mapping array of string inside array of objects | <p>I have this json object that I'm trying to map:</p>
<pre><code>{
totalresults: 1,
results: [
{
sources: [
"The Blog",
"The website",
],
description: "Some description."",
... | 3 | 1,917 |
How to make checkbox in alert dialog align left? | <p>It is possible to modified the checkbox align left in alert dialog?</p>
<h2>this is activity.java file</h2>
<pre><code>AlertDialog dialog;
final CharSequence[] items = {" Easy "," Medium "," Hard "," Very Hard "};
// arraylist to keep the selected items
final ArrayList seletedItems=new Ar... | 3 | 1,026 |
Sorting objects in array by highest value | <p>I have a foreach loop which finds comment replies and stores them in <code>$child_comments</code> </p>
<p>After </p>
<pre><code><?php echo '<pre>';
print_r($child_comments);
echo '</pre>'; ?>
</code></pre>
<p>I get a separate array for each of the parent comments:</p>
<pre><code>Array
(
[0... | 3 | 1,472 |
Query on ADLS Gen2 parquet using Synapse ServerLess SQL pool from C# | <p>Scenario:
I have a parquet file on ADLS Gen2, and is able to query via Synapse Serverless Pool.
I want to use Synapse Serverless pool in C# and execute the query and show result in my c# app.</p>
<p>Something like:</p>
<pre><code>static void Main(string[] args)
{
string col1;
string co... | 3 | 1,150 |
How to remove DT_TOOLCHAIN_DIR from LD_RUNPATH_SEARCH_PATHS via Podfile | <p>I'm trying to workaround a bug with Cocoapods (<a href="https://github.com/CocoaPods/CocoaPods/issues/10954#issuecomment-1214226181" rel="nofollow noreferrer">incorrect addition of LD_RUNPATH</a>)</p>
<p>Rather than writing some other script to fix up the app and framework loader paths after I've built, I thought I'... | 3 | 1,143 |
Instantly update front end with new array value | <p>I'm creating an app where users will send messages. I have the messenger working but the front end isn't updating instantly when a new comment is entered. You have to back out and then come back in to get it to show up.</p>
<p>I've researched examples and got the code from a course I took on udemy. I've tried wi... | 3 | 2,717 |
How to encapsulate an unchecked cast to only allow unchecked generic type conversion? | <p>I'm looking for a "proper" way to reduce the Java boilerplate involved in retrieving/modifying the generic type arguments at compile time. Usually, this boilerplate involves:</p>
<ul>
<li>Using <code>@SuppressWarnings("unchecked")</code>.</li>
<li>Spelling out explicitly the target generic type arguments.</li>
<li>... | 3 | 1,587 |
Inheritence using java generics not working as expected | <p>I am trying to use inheritence and generics to create my application, but it doesn't seem to work the way I expect it to. I'll show you what I mean (TL;DR at the bottom):</p>
<pre><code>public interface IModel extends Serializable {
public int save();
public void update();
public void delete();
}
// &l... | 3 | 1,096 |
How can i make content of an css table responsive | <p>I am trying to make the contents of a css table to be responsive and I'm not having any luck.
Sorry if i made any mistake in this trade, I am new to stack overflow.
This is my html table:</p>
<pre><code><div class="branduriTable">
<div class="bodyTable">
<div class="randTable">
<div... | 3 | 1,889 |
Android: Issue with displaying SQLiteDatabase in a tablelayout | <p>The app runs. There are no errors. Until you try to run the DatabaseTableLayout.java activity, then the app crashes.</p>
<pre><code>public class DatabaseTableLayout extends Activity{
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tablelayout1);
... | 3 | 3,866 |
How to avoid default date 1900-01-01 in SQL Server 2008 R2 during join statement | <pre><code>SELECT IsNull(cmg.[Advertiser],
con.[Advertiser]) as [Advertiser] ,
IsNull(cmg.[AdvertiserID],
con.[AdvertiserID]) as [AdvertiserID] ,
con.[FloodlightConfiguration] ,
IsNull(cmg.[Campaign],
con.[Campaign]) as [Campaign] ,
IsNull(cmg.[CampaignID],
con.[CampaignID]) as [Campaign... | 3 | 1,203 |
Cannot access Strapi in a container using AWS Lightsail, Ubuntu, Docker and NGINX | <p>I'm trying to practice and I have created an instance using AWS Lightsail with Ubuntu 20.04 LTS, also I've installed Docker and Docker Compose.</p>
<p>I would like to run this applications:</p>
<ol>
<li>MariaDB</li>
<li>Strapi CMS</li>
</ol>
<p><em>Let's assume that my public IP is: 1.20.20.20</em></p>
<p>When I try... | 3 | 1,949 |
Handler does not delay - Android Studio Java | <p>I am working on a project. My program shows a video by videoview and get values from an excel file. I am having difficulty in showing the values one by one. I am trying to use some delay methods. I have used Thread.sleep and SystemClock.sleep methods but they freeze the entire app and phone. Now I am trying to use h... | 3 | 1,815 |
React - Request Fetch Parse Issue | <p>I've been dipping my toe into React and am stuck on an issue as I've tried to use my own examples from a past project.</p>
<p>For this question I will use the following API url <a href="https://webservices.rrts.com/TrackWebApi/api/values/443974522" rel="nofollow noreferrer">https://webservices.rrts.com/TrackWebApi/... | 3 | 3,524 |
Generating Flat file output in specific order using XSLT | <p>I am trying to convert XML to a flat file. The XML input is:</p>
<pre><code><PartsPriceListLine>
<PartsProductItem>
<ItemID>1234</ItemID>
<PartName>abcd</PartName>
<PartItemDescription>test</PartItemDescription>
</PartsProductItem>... | 3 | 1,368 |
Dissecting a permutation algorithm in swift | <p>I was looking for a string permutation algorithm and I found this one. </p>
<pre><code> import Foundation
func permuteHelper(_ str:String, _ chosen:String){
var chosen = chosen
var str = str
if str.count == 0 {
print(chosen)
} else {
for index in str.i... | 3 | 1,149 |
JavaScript is setting variables for partial to be appended before Rails actually sets them | <p>I have a form which I use to create a list. I want to give the user the ability to create new forms for new items to be saved for future list making. I want to have a "+" button to add create a new form via JavaScript. It was working great on my test user, but things were getting cluttered so I made a new user to st... | 3 | 2,791 |
Can I setup my dojo dijit form ComboButton to do a onClick or something similar when the user selects a value in the drop down list? | <p>I think I may be using the wrong <code>dojo</code> widget. I just need a dropdown list really, but currently have setup a <code>ComboButton</code>. Can I setup an <code>onClick</code> or onSelect of some sort when the user picks an option inside the <code>ComboButton</code> down down menu? My current <code>onClick</... | 3 | 1,431 |
Cleaner way to maintain virtual keyboard on orientation change | <p>I have the following EditText in my XML:</p>
<pre><code><EditText
android:id="@+id/searchField"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="What do you want to eat?"
android:imeOptions="actionSearch"
android:inputType="text"
android:maxLines="1"
... />... | 3 | 1,124 |
Android:Getting a value recyclerview item value without using `getAdapterPosition()` | <p>I have a recyclerview that populate the json data which is coming from an api.
Here are the items in each recylerview item <code>project_id</code>,<code>title</code>,etc, with each recyclerview i have <strong>checkbox</strong> associated with it.</p>
<p>Here is the code for populating the data in recyclerview.</p>
... | 3 | 3,133 |
Android: FirebaseMessaging.getToken() on a null object reference | <p>I'm having problems using onesignal. I tried to use onesignal on another project and it worked but on this project i get error. I guess some libraries are causing this problem.</p>
<p><strong>App Gradle</strong></p>
<pre><code>plugins {
id 'com.android.application'
id 'kotlin-android'
id 'androidx.navigation.safearg... | 3 | 3,882 |
How to create mixin pattern to bubble events up the inheritance hierarchy? | <p>I am writing an Angular 6 + NodeJS socket.io application front and backend. I am using Typescript 2.7 from the ng6 package but this question is purely backend server.</p>
<p>Is it possible to write a mixin pattern to bubble socket events up the mixin hierarchy chain?</p>
<p>Below is desired pseudo-code:</p>
<pre>... | 3 | 1,334 |
JavaFX change node generated by FXML to another node | <p>I have a complicated UI defined by the fxml file. There are a lot of stock <code>TextField</code>s that I would like to change to more advanced versions (clearable text field) provided by <a href="https://github.com/controlsfx/controlsfx" rel="nofollow noreferrer">ControlsFX</a> library.</p>
<p>The problem:</p>
<p... | 3 | 1,185 |
Can't get my method to work to be able to access another method in it's native class | <p>The purpose of my assignment is to generate a report based on data read in from a file. The file is properly read in, and the values are calculated correctly. However, one of my linked lists, StudentList, throws a NullPointException that's marked at the getCourse() at other times, and I'm not sure of how to actually... | 3 | 2,844 |
Modifying UINavigationController corrupts navigation stack | <p>I've got a standard UINavigation controller and push my screens with push and pop as normal. However, i have one screen that switches between two view controllers on a button press so the screen flips over top reveal the other viewcontroller and visa versa. You can switch between them at will. </p>
<p>Now, I want t... | 3 | 1,942 |
suddenly notifications not arrives in Android from java server | <p>I´have been sendind notifications withouth problem for years, and suddenly doesnt not works.</p>
<p>The google response is:</p>
<blockquote>
<p>com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 400</p>
</blockquote>
<p>The method that I use is:</p>
<pre><code>@POST
@Path("sms")
@Consumes... | 3 | 2,013 |
AngularJS- some of my scope variables not displaying | <p>I'm a new developer using Angular JS to create an orders page for an app I created in Ruby on Rails. I would like to get a few Angular variables to display: </p>
<ul>
<li>order.id <em>(displays)</em></li>
<li>order.user.email <em>(does not display)</em></li>
<li>order.total <em>(does not display)</em></li>
<li>ord... | 3 | 1,589 |
PyQt: viewing query results in a document or .txt file | <p>Is it possble to view results of this query (and queries alike) in a .txt or .doc or any printable file, which user can then save wherever he likes and prints if he wants to? </p>
<pre><code>query.setQuery(""" SELECT * FROM "%s" WHERE METAPHONE("%s", 3) = METAPHONE('%s', 3) OR LEVENSHTEIN("%s", '%s') < 4 """ % (... | 3 | 1,892 |
NextJS: Render Markdown with table | <p>In my Nextjs project, I'm receiving some markdown through and API, and I need to display it in the Nextjs page.</p>
<p>My code looks as follows:</p>
<pre><code>import React from "react"
import { GetServerSideProps } from "next"
import ReactMarkdown from "react-markdown"
import gfm from ... | 3 | 1,038 |
nginx allow sending redirect from app to client | <p>I am trying to redirect a user back to my mobile-app after successful login. (linking back to the app)</p>
<p>For this, I send a <code>307</code> response with this link: <code>exp://192.168.178.33:19000?steamId=76561198154889373</code></p>
<p>My server code written in go looks like this:</p>
<pre class="lang-golang... | 3 | 1,553 |
two separate observe() functions watching two different elements don't watch them | <p>I can't think of a better title but this is the situation:</p>
<p>I want to watch two different elements in an intersection observer. On page has one element </p>
<p>My code at first looked like below:</p>
<pre><code> // page 1 element to watch
const titleEl = document.querySelector('.table-header')
// page... | 3 | 1,129 |
Migrating Swift Codable Class to Realm | <p>So I have some JSON data that I pull from an api using alamofire. When the data comes back the structure looks like this</p>
<pre><code> {
"sneakers" : {
"brands" : {
"Adidas" : [ {
"brand" : "adidas",
"category" : "lifestyle",
"colorway" : "Cream White/... | 3 | 3,974 |
How to make Android UI that looks exactly the same in every screen? | <p>I'm currently working on an Android Application development. I have written a UI Code that looks perfect in Android Simulator But when the same App is run on my Android Smartphone, the UI gets distorted. </p>
<p>I have tried my layouts including LinearLayout, Relative Layout & Constraint Layout but the results ... | 3 | 1,229 |
How to pipe ppm data into ffmpeg from blender frameserver with while loop in PowerShell | <p>Blender 2.6 manual features this little <code>sh</code> script for encoding a video from the Blender frameserver via <code>ffmpeg</code>. It works great on Windows with Cygwin, but only without <code>-hwaccel</code> hardware acceleration flag.</p>
<pre class="lang-sh prettyprint-override"><code>#!/bin/sh
BLENDER=ht... | 3 | 1,506 |
JDBC INSERT ... SELECT Prepared Statement quietly failing to update database | <p>Very much a beginner, this relates to a college project and as such I understand if you are unwilling to solve the problem for me, but I would appreciate being pointed in the right direction if possible.</p>
<p>The below code is a snippet from my database management class for a project.</p>
<p>I'm keeping an ArrayLi... | 3 | 1,145 |
Unexpected result while using lowess to smooth a data.table column in R | <p>I have a data.table <code>test_dt</code> in which I want to smooth the y column using <code>lowess</code> function.</p>
<pre><code>test_dt <- structure(list(x = c(28.75, 30, 31.25, 32.5, 33.75, 35, 36.25,
37.5, 38.75, 40, 41.25, 42.5, 43.75, 45, 46.25, 47.5, 48.75,
50, 52.5, 55, 57.5, 60, 62.5, 63.75, 65, 67.5,... | 3 | 1,443 |
How can I update my Balance whenever I deposit or withdraw? | <p>I would like my <strong>Balance updated</strong> whenever I deposit or withdraw. I'm still new to Java, GUI, ArrayList. I would like to create a simple bank program with just simple login showing options(withdraw, deposit, balance). Did I use a wrong code to get the Balance updated whenever I deposit or withdraw? I ... | 3 | 12,034 |
"No view found for id 0x7f0b0056" when working with fragments | <p><strong>Unable to create the starting view</strong></p>
<p>this is the logcat stash and related codework</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>01/04 17:06:19... | 3 | 4,264 |
How can remove HTML “<a href=” tags using perl | <p>How can I remove the links of an HTML file?</p>
<p>I want remove the links:</p>
<p><li>Typography</li>
<li>Shortcodes</li>
<li>Tables</li>
<li>FAQ</li></p>
<p>I wan't remove the links:</p>
<pre><code><ul class="dropdown-menu">
<li><a href="index_fixed.html">... | 3 | 6,120 |
Shake gesture works on simulator, but not iPhone | <p>I have some code in my app which I use to detect shake, once the device is shaken the background image is changed, some elements on screen are hidden & some are unhidden. If you shake it again it returns back to the original display... this works perfectly on the simulator, but not at all on my actual iPhone 5S!... | 3 | 2,210 |
Can't output billing address when not using get_address | <p>i'm using woocommerce wordpress. I have a question.</p>
<p>How to show billing address with get_address but in state output not abbreviated. Because i can't use get_formatted_billing_address to show the output.</p>
<p>The output without get_product function (using get_formatted_billing_address)</p>
<p><a href="https... | 3 | 1,918 |
How can change code in Model.tt in Entity Framework to put attribute of key over the first integer property of class of database in Entity Framework | <p>I am writing an OData project in Asp.Net and I have a database with too many tables (more than one thousand) and none of these tables have a primary key. I'm not allowed to change the database and I must call the tables of database with Entity Framework in Visual Studio. </p>
<p>When I run the program then in brows... | 3 | 9,940 |
Why does my code break when I change the URL in the Tableau sample to another URL? | <p>Why does my code break when I change the URL in the Tableau sample from
<a href="https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_sample_basic_embed.htm" rel="nofollow noreferrer">https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_sample_basic_embed.htm</a>
to the below URL?... | 3 | 1,065 |
Two spinner issue | <p>I'm trying to use two spinners at the same time but to no avail. I've created two spinners and used the if statement to differentiate the two.</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
spinner = (Sp... | 3 | 1,329 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.