title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
how to remove p tag from wrapping every html element in shortcode | <p>In my <a href="http://109.74.4.178/svenskkinesiska/" rel="nofollow noreferrer">wordpress project</a> I used shortcode to show the product listing. I have added html as below.</p>
<pre><code><article class="teaser product tepr prio ">
<a href="http://localhost/svenskkinesiska/resor/sichuans-parlor/">
<... | 3 | 1,256 |
Getting crash on android 23.0.1 | <p>I tested this code on an emulator which has android marshmallow, there is no crash on emulator . I can't see logcat error because i am sending debug apk to my friend and he is telling me there is a crash . Can you guys guess whats the problem. its simple two lines code. crash happens on button click and code inside ... | 3 | 1,057 |
php code showing up on webpage | <p>I am new to php. Currently I am following the tutorial on this website:<a href="http://www.tutorialspoint.com/php/php_validation_example.htm" rel="nofollow noreferrer">tutoialspoint</a>. The code is also on that website.</p>
<p>The problem I am facing is with the action tag on line 66. I am getting extra characters... | 3 | 2,675 |
Concept of Inserting at last in LinkedList | <p>I have <code>Link1 class</code> to create the link and display link data,
<code>LinkedList1</code> to create the list and inserting elements in LinkedList.And <code>singleLinkedList</code> class to call the methods of <code>addFirst</code> and <code>addLast.</code>
Implementation details are below.<strong>The only i... | 3 | 1,653 |
Problem in removing a list of nan from Pandas dataframe using Python | <p>I have a dataframe which has 4 columns- Name, Size, Text Extracted, Score.
The score column contains a list with nan in it
something like this</p>
<pre><code>[nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
nan nan nan ... | 3 | 2,548 |
Android studio - PrinterThermal/ESCPOS - image from url | <p>I'm trying to print qr code like image, on a thermal pos bluetooth printer in android studio,the printer is connected - bluetooth, I can print the text and image as Drawable, but I can't I can't print the image from url, I would be grateful if someone can help.</p>
<p>i want to send qr code as image to printer</p>
<... | 3 | 2,192 |
How to display sidebar collapse content without overflow: visible? | <p>I'm using fixed left <code>.navbar</code> and want to show <code>.collapse</code> content when my <code>.navbar</code> toggled (stacked to left). I managed to do this, but when I want to scroll the <code>.navbar</code> while the .navbar is stacked to do this I have to set <code>.navbar</code> to <code>overflow: auto... | 3 | 1,949 |
Export Fusionchart to PDF using iTextSharp | <p>I would like to export my FusionChart to PDF using iTextSharp. I am able to export to PDF by use of setting the charts exportEnabled = '1', but I want to be able to export the fusionchart from my controller. </p>
<p>I have my entire fusionchart in a str variable and tried the following :</p>
<pre><code>public File... | 3 | 4,998 |
How to combine 2 images to form hybrid image? | <p>I am implementing hybrid image with ImageJ and stuck at merging low filter image and high filter image to form a hybrid image. </p>
<p>This is what I already done.I have 2 images from Gaussian Blur and Laplician of Gaussian filer. I need to merge these 2 images by layer after that. Any idea how to achieve it?</p>
... | 3 | 5,307 |
Laravel Passport no authentication | <p>I have some strange problems with my laravel app.
I have created an authentication system with Passport, I have installed everything as needed but I can't authenticate the user. When I log in it's creating a token correctly and everything seems to work fine, but when I want to add authentication in postman, it's alw... | 3 | 2,588 |
importing pyautogui on python 3.9.6 not working | <p>I tried to import pyautogui on python 3.9.6 and I got these error messages. I tried installing pyobjc and more but its still not working. Any ways to fix this? Also this is my error message:</p>
<pre><code>Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.... | 3 | 1,872 |
base64 encoding removing carriage return from dos header | <p>I have been trying to encode the binary data of an application as base64 (specifically boosts base64), but I have run into an issue where the carriage return after the dos header is not being encoded correctly.</p>
<p>it should look like this:</p>
<pre><code>This program cannot be run in DOS mode.[CR]
[CR][LF]
</cod... | 3 | 1,129 |
How can I make my app read my contact list? | <p>My <code>MainActivity</code> has a <code>getContactList()</code> method that does what it's suppose to. I also have recyclerViews and adapters and all that work when viewing <code>activity_main.xml</code> in an emulator, so the problem isn't there. The problem I'm having is making the app read the arrayList of conta... | 3 | 1,346 |
Adjust CGPath size | <p><strong>Introduction</strong></p>
<p>I have a <code>CGPath</code> I create from a <code>SVG</code> file using <code>PocketSVG</code> API. It all works fine.</p>
<p><strong>The Problem</strong></p>
<p>The problem is that the shape stretches for some reason, please take a look on this picture (the blue color is jus... | 3 | 1,058 |
Set start day of the week to be Friday in JQuery UI date picker | <p>I saw another question that sets the first day to Monday by setting the first day to be 1.</p>
<p>While I want to set the first day to be Friday.</p>
<p>I tried to set the first date to 5, but not working as expected.</p>
<p>When I click on 1/2/8/9/15/16/22/23 it gives wrong start date, while if clicked other tha... | 3 | 1,375 |
Using array index/variables in Animated Google Barchart Labels | <p>I have a series of tables in my database, and want to use google charts to show this data. I'd also like it to animate nicely, and I found a good code snippet from somewhere that helps out with this, and I'm modifying it.</p>
<p>As the tables in my database are different I don't know how many columns each table wi... | 3 | 1,248 |
Canvas tag doesn't work if CSS formatting is used | <p>I have created a simple web app using canvas HTML5 tag and JavaScript which allows to draw along the line mouse is moved while pressed. This works fine when I don't use any CSS formatting. However, when I use the CSS formatting, this doesn't work properly: the line is drawn far away from where the mouse is positione... | 3 | 1,875 |
How do I fix this encoding error in Google App Engine | <p>I'm new to Google App Engine and Django forms. I'm getting an encoding error when I try to run the follow code:</p>
<pre><code>import webapp2
from google.appengine.ext import db
from google.appengine.ext.webapp import template
from django import newforms as forms
from google.appengine.ext.db import djangoforms
i... | 3 | 1,445 |
What is wrong with my JS webassemblity player? | <p>I am trying to port a C++ program to WASM using emscripten.</p>
<p>The compilation process has been mastered, but so far with the presentation, which is bad ... I have
problem:
Uncaught ReferenceError: request is not defined</p>
<pre><code>request.onload = function() {
</code></pre>
<p>Here is my script:</p>
<pre><c... | 3 | 1,303 |
Error when using usercentrics (via gtm) and id's in some components | <p>we try to switch from our own implemented CMP to usercentrics. Therefore we integrated usercentrics via gtm on our page. I realized that the element is only shown on our subpages and is not visible on our root page.
After two days of removing and adding components again. I found out that usercentrics was able to loa... | 3 | 1,929 |
How to turn a screenshot bitmap to a cv::Mat | <p>I currently am trying to take a screenshot of the screen, and then get it into a format editable by OpenCV. The code I'm using is from the microsoft website, <a href="https://docs.microsoft.com/en-gb/windows/win32/gdi/capturing-an-image" rel="nofollow noreferrer">https://docs.microsoft.com/en-gb/windows/win32/gdi/ca... | 3 | 1,298 |
Could not find function within ShinyApp while using source | <p>I have a shiny app which contains two files: app.R and functions.R</p>
<p>app.R:</p>
<pre><code># Setup ----
pacman::p_load(shiny, tidyverse, shinydashboard, lubridate, scales, DT)
source('functions.R', local = T)
# UI ----
header <- dashboardHeader(title = 'Velocity Spend & Return Calculator')
HTML("A... | 3 | 3,536 |
Restricting bandwidth of mp4 video streaming to certain limit | <p>I am using the following mp4 streaming script for streaming mp4 videos on html5 player.</p>
<pre><code>private void RangeDownload(string fullpath,HttpContext context)
{
long size,start,end,length,fp=0;
using (StreamReader reader = new StreamReader(fullpath))
{
size = reader.BaseStream.Length; ... | 3 | 1,412 |
How to reference a value of a constant from a different view Swift | <p>I would like to reference a value of a constant from a different view. I looked online how to do so but most of the search results are outdated or don't work.</p>
<p>I would like to reference the value of <code>oneRepMax</code> in a <code>struct ProgressiveOverload</code>.</p>
<p>I want to import <code>oneRepMax</co... | 3 | 2,621 |
I have three lists with a vector of values, how can I put all three list's values at the same index into an existing dataframe? | <p>A fully reproducible example. The problem is now the new columns created is in c() of all the values instead of each value being in it's individual row.</p>
<pre><code>date = seq(as.Date("2019/01/01"), by = "month", length.out = 48)
productB = rep("B",48)
productB = rep("B",4... | 3 | 2,080 |
Change property of object in another view controller | <p>I have a <code>UITabBarController</code> (as initial view controller) which checks connectivity status of the device. Everytime the connectivity status changes, a checkmark in a child UITableViewController cell (<code>.accessoryType</code>) should be set (<code>.checkmark</code>) or removed (<code>.none</code>)</p>
... | 3 | 1,197 |
Why does executing SparkR jobs give Permission denied using Oozie? | <p>I am running sparkr through shell script with oozie. When i run the job i am facing permission issue:</p>
<pre><code>Caused by: org.apache.hadoop.security.AccessControlException: Permission denied: user=yarn, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x
ERROR Utils: Uncaught exception in thread delete Spa... | 3 | 1,034 |
Save a Value outside of Dropdownlist EF6 | <p>I wish to save an id field called AssetAssignmentID the value of "2" everytime a new modelname is saved.</p>
<p>I was looking to see if i could do the following; </p>
<p>That was if the Modelname was not null, then save both the ModelName and AssetAssignmentID to = "2"</p>
<pre><code> public ActionResult Create(... | 3 | 15,083 |
invoke an integer and double in JFrame.JTextField().setText(); | <p>I just learn a ORM with MVC. I make a class.</p>
<pre><code>public bookController {
private static final Connection Connection = null;
JFramebookstore frameBookstore;
Bookimpl bookimpl;
List<book> listbook;
// and i just add a function to show a books that choose from JTableBooks
public void sh... | 3 | 1,439 |
Word 2007 Add-in Task Pane doesn't work in one specific case | <p>I am just starting out with a Word VSTO Add-in. I want to add a group to the ribbon, which has a button to toggle a custom task pane. I want each document to have it's own independent task pane. I have this mostly working, but there is one situation that doesn't work:</p>
<ol>
<li>Start Word - new document opened, ... | 3 | 1,778 |
Handle async operation in Redux | <p>I am trying to render <code>post.paragraph</code> coming from the Redux store.</p>
<p>This is the code I am using:</p>
<pre class="lang-js prettyprint-override"><code> const postDetails = useSelector((state) => state.postDetails);
const { loading, post, error } = postDetails;
const editorContent = ... | 3 | 1,949 |
How to make inverted rounded corners and "bend" content to follow curved container | <p>The carousel is designed with a rounded bottom, and the captions should follow that... I'm lost on how to achieve this.</p>
<p>The curved bottom comes from this code on my carousel:</p>
<pre><code>.round-carousel {
height: 600px;
border-bottom-left-radius: 80% 20%;
border-bottom-right-radius: 80% 20%;
... | 3 | 2,248 |
Docker build fails to fetch packages from archive.ubuntu.com inside bash script used in Dockerfile | <p>Trying to build a docker image with the execution of a pre-requisites installation script inside the Dockerfile fails for fetching packages via apt-get from <a href="http://archive.ubuntu.com/" rel="nofollow noreferrer">archive.ubuntu.com</a>.</p>
<p>Using the <code>apt-get</code> command inside the Dockerfile works... | 3 | 1,212 |
I'm very new to javascript, Can you please write a code to close the menu button in the mobile section | <p>The below code is working for me but I facing one problem here, in a responsive mobile view, when I clicked on the client menu it is opening but I'm unable to close the clients. Can you please guys help me in this situation.The below code is working for me but I facing one problem here, in a responsive mobile view, ... | 3 | 1,711 |
Clean and performant way for iterating over an ArrayList | <p>First of all, note that there already are lots of similar questions on stackoverflow, e.g. <a href="https://stackoverflow.com/questions/99164/iterate-with-for-loop-or-while-loop">this</a>, <a href="https://stackoverflow.com/questions/1879255/performance-of-traditional-for-loop-vs-iterator-foreach-in-java">this</a>, ... | 3 | 1,139 |
Display json data in Angular.js | <p>I am using the below code, I only get Question Ids, but what I need is when I click <code>Save</code> button I want to display <code>questions.id</code>, <code>option.id</code> and <code>selected</code> : <code>true</code> or <code>false</code> below the textbox. Below code is correct but want to make it as like <co... | 3 | 1,996 |
Parsing Cool Language with antlr, cant print the desired out put | <p>I'm a writing a parser/lexer for COOL ( classroom object-oriented language ). u can see the grammar in the following link: ( LAST PAGE OF THE MANUAL )</p>
<p><a href="http://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf" rel="nofollow">http://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf</a></... | 3 | 1,865 |
Getting json works on localhost and some websites, but not working on my real server | <p>I have an application that is getting information from my server (online), I have a version of that website in my computer (localhost),</p>
<p><strong>The application is working on localhost can get the json, But I can't have access to the website that is on server.</strong></p>
<blockquote>
<p>new
HttpAsyncTa... | 3 | 1,693 |
Server Crash - Optimizing Mysql queries | <p>I've been on shared hosting for a long time and have been running the same queries for months without a problem. All of the sudden I get an email from my host saying they put a block on my database because "The database was found to be consuming an inordinate amount of processor time". What I don't understand is w... | 3 | 1,446 |
How can I properly configure Yarn 2 PnP on a monorepo with TS References configured? | <p>Short: <strong>For the project described below, how can I best configure things so that the two applications (client+server) run?</strong></p>
<p>I am working on a longer running project that over time evolved into a mono repo. I cannot share the full code as the project is private, but the project has roughly the f... | 3 | 2,450 |
html canvas clipping noisy edges | <p>I found some issue during clipping canvas area.
something like antialias i dont know.
There are some fuzzy pixels </p>
<p>I tried turn off alpha and antialias may be globalCompositeOperation can help.
Also i tried reverse clipping.</p>
<p>Image here is describing place of issue
<a href="https://imgur.com/a/sslqaZ... | 3 | 1,115 |
Error when persisting doctrine entity with OneToMany association | <p>New entities in a collection using cascade persist will produce an Exception and rollback the flush() operation. The reason is that the "UserGroupPrivilege" entity has identity through a foreign entity "UserGroup".</p>
<p>But if the "UserGroupPrivilege" has its own identity with auto generated value the code works ... | 3 | 1,059 |
XML- Denormalizing repeating siblings | <p>We send out target files to vendors and they can contain 0-30 optional fields. Our XSD works to transfer to normalized DB but it isn't so good for a low tech print vendor. So I wanted to use an XSLT to create a denormalized view of the data that even a basic user could decode with Excel. The trick is not every re... | 3 | 1,794 |
need help on operator << overloading functions | <p>The error I'm getting right now is:</p>
<blockquote>
<p>multiple definition of <code>operator<<(std::ostream&, SingleSequence& s)</code></p>
</blockquote>
<p>the error location is at one of the overload operator function:</p>
<pre><code>std::ostream& operator<<(std::ostream& os, cons... | 3 | 2,211 |
Retaining dropdown values after submitting form using GET method | <p>I am using dropdown to select values, and after I click the submit button, my values change. Please help me retain the selected values. Using POST method I have got the solution, but I want to use with GET method. Is it possible?</p>
<p>1.) 1st select stmt:</p>
<pre><code><form action="" method="GET">
<... | 3 | 1,060 |
Liquid not rendering on seperate pages | <p>I've recently been having this problem where includes on separate pages that are not loading correctly.</p>
<p>This is my <code>downloads.html</code>:</p>
<pre class="lang-html prettyprint-override"><code>---
layout: default
---
{% if site.downloads %}
<div class="my-6">{% include downloads.html... | 3 | 3,473 |
Can't prevent Trigger recursion in Android Room Database | <p>I've been unable to prevent recursive triggers in my room database. I am trying to update a column is_updated in my RecipeEntity table to false whenever RecipeEntity has a value change through an Update trigger.</p>
<pre><code> // prevent recursion
db.execSQL("PRAGMA recursive_tri... | 3 | 1,319 |
C++ multithreading stopping threads using concurrent variable | <p>Trying to make a simple multithreading example using for loops. I'm trying to make them loop in block like this:</p>
<pre><code>Thread 1 printing 0
Thread 2 printing 0
Thread 3 printing 0
Thread 4 printing 0
Thread 1 printing 1
Thread 2 printing 1
Thread 3 printing 1
Thread 4 printing 1
</code></pre>
<p>This means... | 3 | 1,108 |
SQL query CTE or while for case to split lines with correct quantity | <p>We have an issue that we don’t know how to solve, help is very welcome or an example how to fix such cases.</p>
<p>This concerns purchase needs that have been combined into one purchase line. On receipt, the lines can be split due to multiple batch numbers. Below we have described the case. should there be a recursi... | 3 | 2,386 |
Why am I getting undefined method `model_name' for NilClass:Class? | <p>I get this when I visit a user's profile page. so localhost:3000/users/1 for example...</p>
<p>I get it here in line 1</p>
<pre><code>1: <%= form_for(@micropost) do |f| %>
2: <%= render 'shared/error_messages', object: f.object %>
3: <div class="field no-indent">
4: <%= f.text_area :co... | 3 | 1,511 |
serverless deploy Error: Error: Cannot find module './lib/core' | <p>I am getting an error on the command serverless deploy and I can't find any documentation on the source of this error. It works on my local machine which means I must have something else installed that makes it work but I cant figure out what.</p>
<p>I am trying to build on AWS.</p>
<p>my serverless.yaml:</p>
<p><di... | 3 | 1,272 |
Change Container widget background color on press | <p>I am trying to change the background color of my container widget inside the Expanded when a button is pressed in BottomNavigationBar.</p>
<p>I am using a list of color and a variable index to traverse the list front and back.</p>
<p>Even though I used setState(() {}), the color is not changing.</p>
<p>h(double x) a... | 3 | 1,117 |
SelectedIndex mat-tab doesn’t work in ngif | <p>Good day, I need initialize my mat-tab in the first tab, but I can´t when I use *ngIf.</p>
<p>This is my code :</p>
<p>html</p>
<pre><code><mat-tab-group dynamicHeight>
<mat-tab label="RENT" *ngIf="showRent">
<div class="rc-result" >
<mat-card ... | 3 | 1,087 |
Problem when using several functions in the mouseover event handler | <p>I am working with d3v5 and currently trying to make a node of a force-directed graph:</p>
<ol>
<li>fade out the nodes which are not directly connected to the 'mouse-over'ed' node</li>
<li>enlarge the node at hand</li>
</ol>
<p>So far I have managed the former but I can not manage for any function to get triggered al... | 3 | 1,141 |
FeatureUnion , pipeline categorical features with tfidf features throwing error | <p>I am trying to concat features from tfidf and other categorical features to perform classification on the resultant dataset. From various blogs I understand that FeatureUnion can be used to concat the features and then pipeline the same to algorithm (in my case Naive bayes). </p>
<p>I have followed the code from th... | 3 | 2,092 |
Add custom validation message in jquery Ui-dialog plugin(without jquery validation plugin) | <p>I am using jquery ui dialog plugin.I want to add custom validation message (without using the jquery validation plugin).Currently the input box border changes to red when error occurs.Is it possible to add messages for validation?</p>
<pre><code> $('.passwordpopup').dialog({
moda... | 3 | 1,497 |
snake does not catch the fruit when i increase the snake_block to 20. I don’t understand what code should I change | <p>I’m new in python and have used pygame to make this snake game. But it lacks when i increase the snake_block and keep it as 20. The snake does not eat the fruit. It works well when the snake_block is 10. I tried to find the solution but didn’t find any... Also want know how can i add highscore and levels to this gam... | 3 | 4,157 |
Instantiation of User Controls dissapearing on InitalizeComponent() when modifiyng Form | <p>Hi everyone and thank you in advance.
I have created a User Control named PanelOption that is a panel with a CheckBox and a TextBox, and these are inside a FlowPanelLayOut.
It runs well and everything works perfectly.</p>
<p>The problem comes when I modify the form where these PanelOption are. They dissapear from th... | 3 | 2,205 |
memory exception while training SVM | <p>to train SVM classifier i use features extracted from different images ( each image have number of features =! of other images beacause i use SLIC superpixeland from each region i extract 20 features) after preparing the TraingMatData and LabelsMat i got this <a href="https://www.dropbox.com/s/wxn1ltn3tjy8x58/traini... | 3 | 1,274 |
JavaScript doesn't run in any browser & is enabled - Have replaced document.write for alert and still wouldn't work | <p>I'm trying this seemingly simple snippet where the only var 'numero' must return a random number as if it were a dice so the range must go from 1 to 6 and it works BUT it only runs when I insert the whole JavaScript code inside the HTML like a <code>script</code> like this:</p>
<p><div class="snippet" data-lang="js... | 3 | 1,316 |
Simple lightbox for my flex gallery | <p>I have made a flex gallery with a bunch of photos in it, what I want to do is make a simple lightbox (I thibk thats the term) where when an image is clicked it will be displayed bigger. No need for next or prev buttons.</p>
<p>I would like to do this with jquery but bear in mind my js skills are that from a complet... | 3 | 2,207 |
d3js bars not updating properly | <p>I created this bars with a tooltip. I need to get them update after the <code>$('.quarter-increase, .quarter-decrease').on('click', function() {</code></p>
<p>I don't get any errors but nothing gets updated...</p>
<pre><code> $(document).ready(function() {
$('#prof-rendi').click(function() {
$('.gr... | 3 | 2,380 |
Fill vertical space between two views (+scroll) | <p>I have 3 views.<br>
1. View A has a fixed height and aligned to the top of the screen.<br>
2. View B has a fixed height and aligned to the bottom of the screen.<br>
3. View C has to fill a vertical space between views A and B but has to be minimum X height. <strong>If the vertical space between A and B is less than ... | 3 | 1,026 |
Pass keys from array from bash into jq -- output all nulls | <p>I'm trying to do something akin to this:</p>
<pre><code>jq -r '. | ."Time Series (Daily)"."2020-12-02" | ."1. open"' newdata.json
</code></pre>
<p>...but with the key coming from a variable, as in:</p>
<pre><code>jq -r --arg key "$key" '. | ."Time Series (Daily)".&q... | 3 | 1,427 |
How do I get rid of this WPF/XAML ListBox Padding? | <p>I'm having some trouble learning WPF, I've set up a custom UserControl like so:</p>
<pre><code><UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compat... | 3 | 1,264 |
Java.lang.NumberFormatException error: empty string- Exchange Rate application | <p>I'm writing a program which gets daily exchange rates from <a href="http://www.tcmb.gov.tr/kurlar/today.xml" rel="nofollow noreferrer">http://www.tcmb.gov.tr/kurlar/today.xml</a> and saves them to the List. Here is my code: </p>
<pre><code>public class Par... | 3 | 1,313 |
Visitor pattern and constness | <p>I am running into a problem concerning the visitor pattern and constness.</p>
<p>Assume a visitor pattern implementation in C++ for a small game in which you draw stuff on the screen (depending on the internal state of the drawable objects) and at the same time run a logic that can change their internal state (pret... | 3 | 2,036 |
xamarin forms Android How to add Metadata to an image being copied to a Public Directory | <p>In our Xamarin Forms app, I have to</p>
<ol>
<li>take a picture and save it locally.</li>
<li>add a variety of metadata to it.</li>
<li>make a copy of the picture, complete with all metadata, available on a globally accessible location so that it can be easily added to an email or shared some other way.</li>
</ol>
<... | 3 | 1,314 |
How to perform a data migration with Alembic and two versions of my Table? | <p>I'm trying to refactor a database model; separate one column out of a table into another new one. I'd like to do this using existing SQLAlchemy Core models & Alembic. I'd also like to use server-side <code>INSERT ... FROM SELECT ...</code>-style query to migrate data (<a href="https://docs.sqlalchemy.org/en/14/t... | 3 | 1,116 |
`git status` including files in the parent directory of my repo. Can't figure out why | <p>Sorry if this is a newbie/weird question, I'm trying to figure out how to properly word it.</p>
<p>I'm having trouble getting git to only work in my current directory. What I mean is that when I run <code>git add .</code> or <code>git status</code>, I want git to add all the files in my current directory, or show t... | 3 | 1,269 |
Failed to start application after deploying to tomcat | <p>I developed an application using spring-boot.After creating the war i have deployed it to tomcat using tomcat manager app but when i try to start it it gives me error</p>
<pre><code> FAIL - Application at context path [/webstore-v2] could not be started
</code></pre>
<p>I checked catalina.out. it is showing an error... | 3 | 3,028 |
`NGINX` reverse proxy does not work in `DOKCER` (502 bad gateway) | <p>I have a VPS, my problem is that <code>proxy_pass</code> does not work, I get the <code>502 badgateway</code>([error] 23#23: *1 connect() failed (111: Connection refused) while connecting to upstream,)</p>
<p>I saw similar questions but each case is different, please help me if you can.</p>
<p>The following is my co... | 3 | 1,125 |
UIScrollView not scrolling w/ programmatic autolayout constraints | <p>I am trying to understand how to use a <code>UIScrollView</code> programmatically.</p>
<p>When I give my content a size that does not fit on screen though, it does not scroll.</p>
<pre class="lang-swift prettyprint-override"><code>
final class ProfileView: UIView {
private var isIpad: Bool {
return UI... | 3 | 1,430 |
.Net Core Identity Password does not recognize Turkish Characters as UpperCase or LowerCase | <p>I defined a class called TurkishIdentityErrorDescriber which inherited from Microsoft.AspNetCore.Identity IdentityErrorDescriber to translate Identity error descriptions to Turkish language. When I try to register userManager's CreateAsync with a password include turkish upper case letters "ÇÇÇÇÇÇ1" passwo... | 3 | 1,451 |
Authentication problems within Google Cloud AutoML | <p>I was doing the Google Cloud AutoML demo for entity extraction and I ran into a few authentication problems. I created the model using the examples they gave us, and I have my model created and deployed. However, I can't seem to actually seem to get my data. Here's the <a href="https://cloud.google.com/natural-langu... | 3 | 1,170 |
Spring Boot publish REST & SOAP parallel | <p>I can't connect to my SOAP-Service listening on Port 9000 running a Spring-Boot application. The application is run in a docker container. The problem is that the soap-endpoint is listening on localhost instead of 0.0.0.0.</p>
<p><strong>I want to bind the soap services on 0.0.0.0:9000 not 127.0.0.1:9000. How can I... | 3 | 1,580 |
Error else without if | <p>I'm having an error in my program: <code>else without if</code> however, I think that I have a perfectly good <code>if</code> and <code>else</code>. I think the problem is because i have a ton of <code>try/catches</code>. I only have one error and thats it. Heres my code:</p>
<pre><code> BufferedReader br = nul... | 3 | 1,113 |
Can't get the absolute position of TextBlock in Windows 8 XAML with c++/CLI | <p>Iam trying to get the absolute position of a textblock but instead I just get the relative position to the element before.</p>
<p>Here is my XAML code:</p>
<pre><code><Grid Style="{StaticResource LayoutRootStyle}" x:Name="grid_wrapper">
<Grid.Background>
<ImageBrush ImageSource="Assets/ba... | 3 | 2,861 |
Unknown Error trying to add Pricing to a In App Purchase String | <p>I am trying to automated the upload of In app purchase string via the new iTunes Connect API endpoints. I have successfully called the Create InAppPurchase but now trying to add the pricing tier with a call to inAppPurchasePriceSchedules ( <a href="https://developer.apple.com/documentation/appstoreconnectapi/add_a_s... | 3 | 1,698 |
dokan store products Category Layout woocommerce | <p>I'm using astra team with WordPress and dokan for multivendor,</p>
<p>I had woocommerce shop page layout by category which still works fine, but for some reason it does not apply to dokan store product listing.</p>
<p>the php code for woocoomerce shop page</p>
<pre><code> <php?
add_action( 'woocommerce_no_prod... | 3 | 1,149 |
How do I connect multiple EventListeners so they work together as a filter system? | <p><a href="https://i.stack.imgur.com/D09rA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D09rA.png" alt="enter image description here" /></a>I am trying to build a filtering system using select tags. So I decided to go with removing and adding classes to my elements. Every filter works fine by the... | 3 | 1,585 |
How do I start a Unity Android app via ADB? | <p>I'm trying to figure out how to start a Unity app from ADB, ideally so I can pass custom intent parameters for automated device testing. So far, I'm stuck just on <em>starting</em> a Unity app via ADB. I am well aware that this is possible, and it <em>MUST</em> be possible because apps like Sidequest are able to acc... | 3 | 2,423 |
Why does maven ignore the add-source-goal? | <p>This is the build-section of my pom.xml. I have only one pom.xml for the whole project.</p>
<pre><code><build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</... | 3 | 2,830 |
realloc() use-after-free address sanitizer issue with recursion | <p>I wrote a small program to in-order traverse a binary tree, I wanted to practice <code>realloc</code> and wrote the following code to dynamically fill an array with the elements of a binary search tree:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
struct TreeNode {
... | 3 | 2,884 |
bluebird npm TypeError: Cannot read property 'call' of null | <p>I am using bluebird npm,I am getting the above error</p>
<p>I am calling three different function & doing some database operation, but I am getting this error.</p>
<p>If I tried with two functions, it is working but with three function it is throwing error, TypeError: Cannot read property 'call' of null.</p>
... | 3 | 1,200 |
How can I parse stdclass objects from Amazon Product Advertising API? | <p>How would I parse the following to get the <code>description</code>, <code>title</code> , item number etc...of a product retrieved from Amazon's <a href="https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html" rel="nofollow noreferrer">Product Advertising API</a>?</p>
<p>I've used the following bu... | 3 | 13,986 |
Preloading Images working on Chrome, not Firefox or Safari | <p>Currently have this solution for a background image change on :hover, using the ::before element to preload to hover image. It works on Chrome perfectly however does not on firefox or safari, I've done some looking around a tried a few things but it never worked out.</p>
<p>Thoughts?</p>
<p>Code:</p>
<pre><code> ... | 3 | 1,145 |
Push Notification to Android using FCM (c#) | <p>I would like to send a Push Notification to Android Using FCM and implementation in C#.</p>
<p>I have used the following code and it give me the id in Response which seems all ok.</p>
<p>But i didnt received any notification in my device as the device id is correct and received notification if i send it through th... | 3 | 1,038 |
Mulitple threads are trying to write with milliseconds as key, but instead of one key many keys are created in ConcurrentHashMap | <pre><code>ConcurrentHashMap<Long, CopyOnWriteArrayList<Observation>
mostRecentObservationDB = new ConcurrentHashMap<Long,
CopyOnWriteArrayList<Observation>(524288, 0.75f, 32);
</code></pre>
<p>This is my map. I am trying to read and write with multiple threads at the same time, but somehow it al... | 3 | 2,193 |
Twitter Authentication In Fancybox Or lightbox | <p>This is a question i think is worthwhile to know and useful for others, because i think a lot of people love those fancybox and lightbox pop ups rather than the normal window pop ups you usually get.</p>
<p>I am asking a question if this is possible to put the twitter authentication inside a fancybox/lightbox, so o... | 3 | 1,432 |
ElasticSearch highlight showing wrong field | <p>If I insert this data in ElasticSearch:</p>
<pre><code>PUT /a/b/1
{
"content": "<a>Mussum<a> ipsum<a> cacilds<a>",
"content_processed": "Mussum ipsum cacilds",
"content.processed": "Mussum ipsum cacilds",
"content.processed.x": "Mussum ipsum cacilds"
}
</code></pre>
<p>And perfo... | 3 | 1,060 |
iOS App keeps crashing for reviewer, but works fine in field tests | <p>my iOS app keeps crashing for the iOS reviewer team, but works fine on all kind of test flight devices (~10). I am unable to reproduce the problem.</p>
<p>The crash log the reviewer team sent me states</p>
<pre><code>Incident Identifier: 6686BE5C-DCC1-48C1-9AC2-FCFF85F3EBC2
...
Version: 4 (2.1)
Code Ty... | 3 | 1,659 |
Cannot get css to move my little text box into center | <p>I am trying to get a little box into the center of my screen, I had just text centered fine and just floated my aside, but I added a little box to make my text more visible using opacity. Now the text and the translucent box it sits on is over my aside and float won't work and margins leave like a weird box where th... | 3 | 1,318 |
custom colorpicker not working in android | <p>I have made a Simple drawing application in android for the learning purpose..In that i have taken diffrent colorbuttons just like a colorpicker in horizontalscrollview,Now i need is when one of them is clicked that particular color should be chosen and pencolor od drawing pen should be changed..I have tried as belo... | 3 | 2,881 |
Php curl in foreach check status | <p>How to make a foreach or a loop when checking multidimensional array like ? What am i doing wrong ?</p>
<p>I am trying to get status from BKM with vkn or tckn;</p>
<p>Also i want to insert as 1 if merchant is blacklisted and as 0 if merchant is not blacklisted</p>
<p>I have tried to find answer from a lot of forums ... | 3 | 1,764 |
How to make adding controls in a WPF application faster | <p>I'm working on a WPF app that lets users edit data records.</p>
<p>For a test, I'm adding 50 rows to a tree view and this takes ~200ms.
This creates noticable stutter as the application isn't interactive during that time.
This is only the time for creating and populating controls, no data loading or any work that co... | 3 | 2,011 |
Memory use in foreach grows until failure but object.size() shows no change | <p>I am running a large parallel R function, which contains a for-loop to be executed on each core. The function starts running fine, but as the loop progresses, so does the computer's memory usage, until eventually it runs out of RAM and the process fails. I don't understand why this is happening, given that the loo... | 3 | 1,584 |
Why does my array empty out after it's loaded? | <p>I must be missing something basic, but I can't seem to keep my array loaded. It loads successfully, but it turns up empty when it appears in another function. </p>
<p>My goal is to randomly pick a city from the locations array. The mapview loads with all my annotations, but then my locations array empties out whe... | 3 | 1,398 |
CSS3 Animations and IE11 don't work in html file but on jsfiddle fine | <p>I'm trying to figure out why <code>css3</code> animations aren't working in my local website in <strong>Internet Explorer (10)</strong>. In any other browser everything is fine (Chrome, Firefox).
Read a lot about scoping issues in <strong>ie</strong> with media queries and so on. So I tried to reduce the source of e... | 3 | 1,107 |
getting url param value encoded in some format | <p>I wrote below C code to get the value of url parameter.</p>
<pre><code>char *param(char *attribute_name) {
char *query_str = getenv("QUERY_STRING");
urlDecode(query_str);
printf("qstr = %s<br/>", query_str);
int i;
char *param_value;
char *temp = malloc(strlen(attribute_name) + 3);
... | 3 | 1,324 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.