title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Flexbox Header Match Other Rows Content
<p>I'm just beginning to figure out Flex box, is there any way to get the header row in a flex box to match the automatic width set by the next X-many rows? I need all the element in the row to be grouped together so I can't use columns.</p> <p>Perhaps a column with rows inside?</p> <p>Looking for something similar t...
3
1,150
Display an article with its category
<p>I have this code : </p> <pre><code>function x_shortcode_recent_posts_v2( $atts ) { extract( shortcode_atts( array( 'id' =&gt; '', 'class' =&gt; '', 'style' =&gt; '', 'type' =&gt; 'post', 'count' =&gt; '', 'category' =&gt; '', 'offset' =&gt; '',...
3
2,057
Python, Multiple plots into one PDF page
<p>I have four nice charts that I can save as a PDF file but on 4 pages instead of only 2. I have a 2 charts with financial data of the company and another 2 charts with the prices of stock. I would like to have a one page in PDF with financial date of one company and price of stock. Of course, on the second page I ne...
3
1,812
Handling Touch Events to Multiple Objects via Custom UITableViewCell and UITableView
<p>I am working on a UITableView that will contain two different types of custom UITableViewCells, each cell is set to a different section of the UITable. I would like the cells to highlight to a different color upon touch, and then revert to its previous color after the touch ended. Since this doesn't follow the stand...
3
1,460
Nextjs: The page does not render when the URL is entered directly from the browser, 404 error
<p>My problem is as follows.</p> <p>I made a project with Next.js. My project works fine on Local, Local Docker, Heroku and Vercel. However, I have a problem when I go to production environment and publish Docker under the domain. When the address is entered from the browser, the page corresponding to the Router gives ...
3
1,482
JToken "becomes" null during iteration
<p>I am developing a sort of gateway API for an Ionic mobile-app, which has to talk to some online API that doesn't accept front-end calls.</p> <p>One call returns a JSON object, with a "data"-array of JObjects. A response of the server looks like this (below JSON just shows one result, to give an idea of what the ser...
3
3,329
Angular reset form not working
<p>I am developing an application where I am using bootstrap and angular together. Form validation using angular and bootstrap is working fine but I have a problem to reset the form. I call $setPristine() but it doesn't seem to be doing anything.</p> <p>Here is my html.</p> <pre><code> &lt;div class=&quot;cl-xs-12&quot...
3
2,504
Translating code from matlab to c#
<p>I am trying to implement image noise reduction using MRF. I used this <a href="http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/AV0809/ORCHARD/" rel="nofollow noreferrer">article</a>. It also provides <a href="http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/AV0809/ORCHARD/restore_image.html" rel="nofo...
3
1,768
post increment inside an if statement
<p>My output is always 10 even though half of my answers are wrong.</p> <pre><code>package LabExercise; import java.util.Scanner; import java.util.InputMismatchException; public class LabExer5B { public static void main(String[] args) { Scanner input = new Scanner(System.in); try { ...
3
1,558
HTML form action doesn't find my PHP file
<p>I'm building a simple message sending service with HTML, PHP, and MySQL.</p> <pre><code>guestbook --- directory ㄴ addMessage.php ㄴ guestbook.php ... index.php </code></pre> <p>at index.php, I included <code>guestbook.php</code> to use functionality in that file.</p> <pre class="lang-php prettyprint-override"...
3
1,134
Using HTML over canvas, nothing has worked
<p>I'm trying to get my OVERLAY tag to appear on top of my canvas javascript. I've gone through all the questions on here but nothing has worked!</p> <p>Please help! Code:</p> <p>page.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;link rel="stylesheet" href="style.css...
3
3,831
R - retrieve correct objects from google maps API and save to data frame
<p>for a work project I'm trying to weight bulk twitter data by geographic distribution of the tweets. Currently, I'm planning to achieve this by running the <code>location</code> information provided in most tweets I've collected through the Google Maps API and retrieving detailed information on this location as far a...
3
1,997
Troubleshoot printing macro
<p>So with the help of the Stack Overflow community some time back, I created a printing macro for a worksheet that would read the worksheet and only print the number of pages that had information in it. It would read certain sections of rows and if not data had been entered, would print the correct number of pages. Th...
3
1,771
Mesh doesn't get drawn if it's added from certain method of a certain class (OpenGL ES 2)
<p>So, I'm trying to make a simple 3d engine based on OpenGL ES 2 (Android). First (apart from many tutorials and such), I copy-pasted code from <a href="https://developer.android.com/guide/topics/graphics/opengl.html" rel="nofollow" title="developer.android.com tutorial">developer.android.com tutorial</a> step-by-step...
3
3,695
Buttons under listview in android application
<p>I need to have buttons appear below a listview. Any help will be greatly appreciated. I've tried different ways to get this specific layout to appear correctly on android, but so far I haven't been able to figure this out. I want to be able to display a listview in the middle of the app and have buttons under the li...
3
1,644
Issue passing back dynamic string array
<p>I have a form inside a modal popup, The user can enter text in a text box and click a plus button which dynamically adds the text they have typed in to a div so they can then proceed to add another one.</p> <pre><code> &lt;div class="form-group"&gt; &lt;label class="control-label col-sm-4" for="prefix"&gt; ...
3
2,017
firebase upload stuck at 0.0% - no error given
<p>I'm trying to write a function that:</p> <ol> <li>Compresses an image on the local disk and puts it into a cache folder. (using <a href="https://www.google.com/search?q=sharp+js&amp;oq=sharp+js&amp;aqs=chrome.0.0i512l5j69i60l3.708j0j7&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow noreferrer">sharp.js</a>)</li> <li...
3
1,637
How to convert a variable number of columns per row to multiple rows in R?
<p>Here is my problem: I have an individual database: 1 row = 1 person. For each person, there is a unique identifier (&quot;INAMI_key&quot;), individual variables (&quot;code_qualif&quot; in the example below) and one or several addresses filled in through different columns. The number of addresses is indicated in the...
3
8,073
I was trying to reinstall Eclipse and an unexpected error showed up
<p>So I was trying to reinstall Eclipse through the installer.previously removed the folders (that's what I read on how to uninstall it) and a problem showed up.</p> <p>I was trying to remove Eclipse and removed all the folders (searched "eclipse" in my disk and deleted it all). And now while reinstalling it through t...
3
2,865
Firebase iOS notification - Flutter
<p>I have the following error:</p> <pre><code>W0210 18:59:44.855086 1 commandlineflags.cc:1503] Ignoring RegisterValidateFunction() for flag pointer 0x102ff2690: no flag found at that address 2020-02-10 18:59:44.919282-0300 Runner[369:11564] Metal GPU Frame Capture Enabled 2020-02-10 18:59:44.919645-0300 Runner[...
3
1,065
How to remove duplicate object property in Javascript array
<p>I have an array of messages between me and different other users, I am trying to filter this array to only contain a single occurrence of a user (e.g In this array there are 10 messages between me and John, where I've been either a sender or a receiver), I'm trying to get a new array containing only a single occurre...
3
4,546
Copying dependencies into local repo as a Jar and including the Jar as classpath using appassembler-maven-plugin
<p>I'm using latest version of Maven, and earlier I was trying to include a particular dependency (call it dependency <code>A</code>) into a multi-module project (Java Web App using Tomcat and another Java project) in Windows by testing it locally, and create the normal Java project to be runnable using a <code>.bat</c...
3
1,590
error with launching minecraft from cmd
<p>simple: i put in this:</p> <pre><code>@echo off cd\ set MCDIR=%APPDATA%\.minecraft cd %MCDIR% java -Xmx1024M -Djava.library.path="%MCDIR%\versions\1.7.10-LiteLoader1.7.10\1.7.10-LiteLoader1.7.10-natives" -cp "%MCDIR%\libraries\org\apache\logging\log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar;%MCDIR%\libraries\or...
3
1,510
Bootstrap3 - Columns Touching
<p>I am trying to make a WordPress theme using bootstrap (i know not many people like this) and I am having a problem with building my grids up. The margin top is perfect, 10px. but the margin on the sides is incorrect and if I try to change it in CSS it drops onto a new row. I am using 2 divs:</p> <pre><code>&lt;div c...
3
1,610
Read .xlsx File from Drool Engine Dynamically without restarting spring project
<p>I am trying to read my excel file using drool I am able to successfully read the file from s3 but the problem comes when I make changes to that file and replace the existing file with new file my rule engine still reads old file values can anyone tell what can be done to resolve this issue</p> <p>Dto</p> <pre><code>...
3
1,642
Image is getting skewed after resizing android
<p>Hello i am resizing the image after capturing from native camera.. image resizing is working fine but i have only one problem and that is the image is getting skewed after resizing.</p> <p><strong>here is the code that i am using to resize the image.</strong></p> <pre><code> File f = new File(Environment.getExtern...
3
1,400
Django reverse error
<p>Iam working on this project for listing patient details and updating them getting error Reverse for 'update_patient' not found. 'update_patient' is not a valid view function or pattern name. help to fix the error</p> <p>patient.html</p> <pre><code> {% extends 'patient/base.html' %} {% block content %} &lt;p&gt;P...
3
1,087
How to Implement a general Save() Function in a Base Class
<p>As an assessment, I received the following Testcase so I can implement the code behind:</p> <pre class="lang-cs prettyprint-override"><code>[TestCase] public void ProgrammerTest() { var address = new Address(&quot;56 Main St&quot;, &quot;Mesa&quot;, &quot;AZ&quot;, &quot;38574&quot;); var customer = new Cus...
3
1,352
SDL2 does not generate KEYDOWN and KEYUP events for accent key
<p>I want to use the keys as a game control not to write text.</p> <p>I have tried <code>SDL_StopTextInput();</code> but this only disables the <code>SDL_TEXTINPUT</code> event and does not create <code>SDL_KEYDOWN</code> and <code>SDL_KEYUP</code> events</p> <pre><code>#include &lt;GL/glew.h&gt; #include &lt;SDL2/SDL....
3
1,457
Cannot read property 'totalQty' of undefined
<p>I've created a cart object, which can store the products in a cart. The problem is before an item is put into the cart it is undefined. How do I make the cart defined even when nothing is in it during the session? I'm using ejs. </p> <p>Here is my Error </p> <pre><code>/home/ubuntu/workspace/views/partials/header...
3
2,346
Why are some of these Monotouch.Dialog cells appearing empty?
<p>I have what I believe is a pretty straightforward Monotouch.Dialog class.</p> <pre><code>public partial class EditAccountDialog : DialogViewController { Section emailSection; Section passwordSection; Section profileSection; Section addressSection; EntryElement emailEntry; EntryElement passw...
3
1,315
ImageButton is overlapping another ImageButton
<p>I have this layout on preview</p> <p><img src="https://i.stack.imgur.com/c2ovv.png" alt="enter image description here"></p> <p>With this code:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="50dp" android:backg...
3
1,250
What is the proper way of add babel core-js conditionally
<p>I was checking my site with google page speed insight and it showed &quot;Avoid serving legacy JavaScript to modern browsers&quot;</p> <p>I have babel-env set up something like this, which seems not working properly.</p> <pre><code> [&quot;@babel/preset-env&quot;, { &quot;useBuiltIns&quot;: &quot;usage&quot;, &q...
3
1,073
TypeError: changeChecked is not a function
<p>I am trying to pass changeChecked as prop from parent to this child component to capture the input element id but I am getting this error. I have mentioned the child component and parent component. Please help me to solve this error.</p> <p>Child Component</p> <pre><code>import { useState, useEffect } from 'react'; ...
3
1,197
React Webpack3: You may need an appropriate loader to handle this file type
<p>I am trying to use Webpack3 with Babel to compile ES6 assets, but I am getting an error "You may need an appropriate loader to handle this file type." Below is the exact error that I am getting:</p> <pre><code>ERROR in ./node_modules/use-global-hook/index.js Module parse failed: Unexpected token (2:18) You may need...
3
1,073
Extract min max date of a row with multiple dates
<p>How can I split the min and the max date which is located in a row with multiplate dates</p> <p>This is in Power Query</p> <pre><code>8/31/2018, 8/29/2018, 4/9/2018, 8/29/2018, 8/29/2018 </code></pre> <p>Result in different Columns </p> <pre><code>min max 29/8/2019 4/9/2019 </code></pre> <p>Can ...
3
1,311
I am getting status 404 while running Spring MVC app on server
<p>My files are as shown below. I am not able to figure out. The error is: HTTP Status 404 – Not Found</p> <p>Type Status Report</p> <p>Message /onlineshoppingrks/</p> <p>Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p> <p...
3
1,099
How to display data in ( materialBetterSpinner ) different from data included in source
<p>I Use (materialBetterSpinner) in my app to select the data that I will save in the database .. Now I have two data in materialBetterSpinner to choose from it. The problem now I store number in materialBetterSpinner as (String[] SPINNER_DATA = {"1", "0"};) because I need to save a number in my databases but users no...
3
1,161
How to read /proc/self/net/tcp?
<p>My program's <code>/proc/5812/net/tcp/</code> file looks like this:</p> <pre><code>sl local_address rem_address st tx_queue rx_queue tr tm-&gt;when retrnsmt uid timeout inode 0: 3500007F:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 101 ...
3
2,497
How Calling Web Service in HTML/PHP from java use Javascript/AJAX
<p>I have simple method service in java eclipse, use database postgresql but, i want to call the method in html php use javascript or ajax? I want to do insert data into database use this service and get data, how can I calling this method in html/php?</p> <p>this is my Controller</p> <pre><code>import java.util.Date...
3
1,881
Child image not growing in parent
<p>I've got this social card on my website (I use <a href="https://tailwindcss.com/" rel="nofollow noreferrer">tailwindcss</a>):</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">...
3
8,778
Creating Listview programatically without xml : not showing any cell
<p>I'm trying to create listview programatically in android. </p> <p>My goal is to create a dynamic view where if i click one button it will change the content inside the layout from listview into another view or vice versa. </p> <p>Everything seems good i successfully put the listview inside a linear layout from the...
3
2,342
Issues while running Django web app and wordpress on the same apache server
<p>I am working on building a wordpress blog for my website. I am deploying the whole application on an AWS instance. I want to see my website when i am redirecting to the PublicDNS of my instance and when i use PublicDNS/blog i want to see my blog. I have my web app developed using python. I am trying to setup a rever...
3
1,572
how to enable multiple select picker
<p>I am trying to use this bootstrap select picker where multiple values can be selected, by default I want it to be disabled. So in order to enable it a button must be pressed. Problem is that pressing the button will not re-enable this specific field, other fields linked to it work fine.</p> <p>Anyways the code not w...
3
2,288
Table filter/search for two columns
<p>Í'm trying to make this search/filter function filter by looking at data in col0 or col1. What I'm trying to change the JS, to look at <code>td = tr[i].getElementsByTagName(&quot;td&quot;)[0];</code> and <code>td = tr[i].getElementsByTagName(&quot;td&quot;)[1];</code>, but can't make it work.</p> <p><strong>Code wor...
3
1,525
Match with OR clause after Unwind in MongoDB aggregate query
<p>I have a MongoDB aggregate query like this</p> <pre><code>[{ &quot;$match&quot; : { &quot;isDeleted&quot; : false } } , { &quot;$match&quot; : { &quot;$or&quot; : [{ &quot;arrayCol.col_1&quot; : &quot;Yes&quot;, &quot;arrayCol.subArrCol.col_2&quot; : 10 }, { &quot;arrayCol.subArrCol.col_3&quot; : 2000 }] } } , { &qu...
3
1,754
Excel-created Outlook appointment only notifies me
<p>I am trying to set up an Outlook calendar at work, from Excel data sheets.</p> <p>I run a query to get data, then treat it, and fill Outlook calendar events.<br> The problem is, when I enter my required attendees, via my olAppointmentItem, it only notifies me and fills my calendar, not my colleagues' calendars.<br>...
3
1,147
Form validation issue in HTML
<p>People, I am having a problem in my HTML form validation. Currently I am using JSP (at the back end) to extract the form data and jquery to validate the data in my HTML file. Problem is that when i run my HTML on server (apache tomcat), my jquery validation snippet doesn't work and data simply gets passed to the JSP...
3
6,892
Send another message if are more than 25 field Discord NodeJS
<p>I am making a discord bot <a href="https://github.com/ThatZiv/FiveM-Bot" rel="nofollow noreferrer" title="ThatZiv FiveM Bot (Original)">(Here is the original one)</a> in javascript of my GTA V RP server, the bot has a command that tells you the name, id and ping of the players but when there are more than 25 players...
3
1,750
Xcode - iOS app - refactored and now have bizarre, cascading directory structure
<p>This is an odd one.</p> <p>I recently did some refactoring and one of my images was failing to load. I did a search on the filesystem only to find Xcode has now generated the following cascading directory structure:</p> <pre><code>./myIcon.png ./MyApp/myIcon.png ./MyApp/MyApp/myIcon.png ./MyApp/MyApp/MyApp/myIcon....
3
1,044
How to union result in drools
<p>I want to get one result only in drools.</p> <p>I tried to use <strong>"from"</strong> and <strong>"from accumulate"</strong> but It did not work.</p> <p><strong>Main.java</strong> // Main class</p> <pre><code> KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); KnowledgeBase kbase =...
3
4,533
MySQL Online DDL changes completing, but not persisting
<p>I have a very large table (&gt; 6 bn rows &amp; &gt; 3tb of data) that I'm trying to alter.</p> <p>Example schema:</p> <pre><code>CREATE TABLE `huge_table` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `col1` int(11) unsigned DEFAULT NULL, `col2` int(11) unsigned DEFAULT NULL, `col3` int(11) unsigned N...
3
1,134
Why is `handleChangedUser` function in Form not working?
<p>I'm trying to edit users information. But when I do <code>handleChangedUser</code> function it doesn't work but if I change it to <code>handleNameChange</code> function it does work.</p> <p>How can I fix it?</p> <p>This is my github repo to that project: <a href="https://github.com/gumutzkn/test" rel="nofollow noref...
3
1,569
React-native 0.61.5 release build android crashed after navigation on a specific route
<p>React-native 0.61.5 android release APK is being crashed every time, when I try to navigate to a specific screen. It is working fine on debug mode (<code>react-native run-android</code>) but after building release signed APK the crash occurs. I've tried many stack overflow answers and suggestions but still unable to...
3
10,403
Scrollbar height in userform frame doesn't update right away. I need to click it to update it
<p>So I have an <strong>Excel userform that contains a frame</strong>. In this frame, there may be a X amount of dynamically added objects that fill it's content until it overfills. Of course I added a <strong>vertical scrollbar</strong> to compensate this issue, this is not the problem.</p> <p>The bottom frame with c...
3
1,295
Add class name dynamically using angular.js
<p>i need to add class name dynamically inside controller page when state will change using angular js.I did some coding but its working only after page refresh.I am explaining my code below.</p> <blockquote> <p>dashboard.html:</p> </blockquote> <pre><code>&lt;div id="navbar" class="navbar-collapse collapse"&gt; ...
3
1,997
error when pass data between fragments through the mainActivity
<p>in the below code, i have a mainActivity that hosts two <code>fragments</code> <code>Frag1</code> and <code>Frag2</code> as shown below, <code>Frag1</code> implements <code>sensorEventListener</code> and when the <code>button</code> in the <code>Frag1</code> is clicked the sensor reading should pass to <code>Frag2</...
3
5,254
(node:19677) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'find' of undefined
<p>I am currently working on a backend to a wishlist and I have been having this issue with my code</p> <pre><code>(node:19677) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'find' of undefined </code></pre> <p>I have tried redefining the wishlist import and even the user import but to no fix.</p> <...
3
1,048
Error CS1705 randomly being thrown while building docker image
<p>The solution that I'm working on contains following projects:</p> <ul> <li>Few ASP.Net core web applications with target framework netcoreapp3.1.</li> <li>1 BLL class library project with target framework netstandard2.1.</li> <li>1 DAL project that can be build as a standalone exe or class library with target framew...
3
1,267
Valid JSON throwing JSONArray[0] is not a JSONObject
<p>I have valid JSON as validated by <a href="https://jsonlint.com/" rel="nofollow noreferrer">JSONLint</a> and <a href="https://jsonformatter.curiousconcept.com/" rel="nofollow noreferrer">JSON Formatter and Validator</a>. I have seen the other posts on SO like:</p> <ul> <li><a href="https://stackoverflow.com/questi...
3
2,554
Jackson @JsonAnySetter ignores values of duplicate key when used with Jackson ObjectMapper treeToValue method
<p>I am using the Jackson library to deserialize JSON. In the JSON I have a few custom fields whose values can be anything, so I am trying to use the <code>@JsonAnySetter</code> and <code>@JsonAnyGetter</code> to obtain the values. The fields and values within the JSON can be duplicated and I would like to obtain every...
3
2,150
Fading effect in d3.js
<p>I'm animating the paths in an SVG file using <code>D3.js</code>. I want to fade out other parts of the SVG when I'm blinking the path.</p> <p>How to achieve it?</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-j...
3
8,935
Database schema for dynamic pricing and many variables - Booking system
<p>I got stuck with the following problem: For my booking system I want to save the prices for all possible combinations at night, so I don't have to calculate them on the fly. I choose for this solution to improve performance and for the fact that these prices only change one time per day, at night. My first try was g...
3
1,418
Searching Multiple Google Maps on 1 Page and Zoom issue
<p>I have been getting great help today on Google Map questions and as I work through my code more stuff pop's up. So here is another question I am hoping to get help with. </p> <p>There are 2 parts</p> <p><strong>1)</strong> I have tweaked my code to show 2 x Google Maps on the same page. My Google Maps works like t...
3
1,915
Anaconda Spyder cannot find Qt WebEngine ICU
<p>After an update, my spyder installation no longer starts. I currently have 5.1.5 installed and have also tried the latest version of 4 with the same issue.</p> <p>Here's the error message it returns:</p> <pre><code>ERROR conda.cli.main_run:execute(41): `conda run spyder` failed. (See above for error) Fontconfig erro...
3
2,618
ListBox.SelectedItem and ListBoxItem.IsSelected get out of sync
<p>I have a listbox defined in a WPF window as follows:</p> <pre><code>&lt;ListBox ItemsSource="{Binding Values}" SelectedItem="{Binding SelectedValue}"&gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;Border BorderThickness="1" BorderBrush="Black" Margin="5"&gt; &lt;St...
3
1,187
Graphic Only Moves 1 Pixel to the Right With KeyListener
<p>I'm fairly new to Java programming and I'm working on my first 2D game. I followed one of Oracle's tutorials on Key Listeners in order to figure out how to make my player move with the WASD keys. The example already had a mouse listener. I decided to remove the mouse listener and add a KeyListener. I added the a...
3
1,671
Error adding New User to database with Next.js | Prisma | Heroku
<p>I'm working on my first full-stack app project following along with an online course. I've hit a roadblock that I've been unable to resolve after hours of troubleshooting. The error occurs when attempting to add a new user to a Postgres DB via the command line.</p> <pre><code>import bcrypt from 'bcrypt' import jwt f...
3
1,429
Issue loading rxjs bundle with SystemJs
<p><strong>Versions</strong></p> <p><code>npm: 3.10.9</code><br /> <code>systemjs: 0.19.41</code><br /> <code>typescript: 1.8.10</code><br /> <code>rxjs: 5.0.3</code></p> <p><strong>Background</strong></p> <p>I have a project (that's written in typescript) that i'm trying to add <code>rxjs</code> to, but have come acro...
3
1,681
C# TCP connect, client cannot send message to server
<p>Why I cannot send message to server, can anyone help me? programming language is C#, I have turned off my firewall but it's still not work.</p> <p>Why I cannot send message to server, can anyone help me? programming language is C#, I have turned off my firewall but it's still not work.</p> <p>Here is my server</p> <...
3
1,520
How can I keep expand item of a column control in Compose?
<p>The Code A is from the official sample code <a href="https://developer.android.com/codelabs/jetpack-compose-basics#10" rel="nofollow noreferrer">here</a>.</p> <p>And author told me the following content:</p> <p><em>If you expand item number 1, you scroll away to number 20 and come back to 1, you'll notice that 1 is ...
3
1,534
How can I add a swipe gesture to my side menu controller?
<p>I made a side menu with some controls and I can dismiss it when the user taps outside of the side menu or if he/she selects a row inside the side menu. Now I want to add a swipe gesture to the left so that the user can dismiss it that way too.</p> <hr> <pre><code>extension MenuViewController { @objc func dismissC...
3
1,176
Change href in custom template
<p>Wonder if someone could spare a few minutes to help to me out:</p> <p>In my cshtml page I have a 'hidden-template'</p> <pre><code>&lt;script id="hidden-template" type="application/x-custom-template"&gt; &lt;a href="#" class="qualURL course"&gt; &lt;div class="course_wrap"&gt; &lt;h2&gt; ...
3
1,169
Update array when found same value in Javascript
<p>i have two array. And i want update second array with first array data if found same data. Here is my first array :</p> <pre><code>var namaFile = [ { billingID: "90009388", customerID: "C20121121221327_249", name: "201409011141106_082895250262" ...
3
1,259
Running NiTE and OpenNI on Java - Handviewer Java Sample Crashes
<p>I am trying to get the Handviewer java sample project running. When running the application crashes after (1-2 sec) and firing the following exceptions!</p> <p>Please note that I have managed to run the UserViewers.java sample without problems. and I am running on OSX 10.8.3, NiTE-MacOSX-x64-2.2, OpenNI-MacOSX-x64-...
3
1,108
How to word wrap text with HTML in it, in javascript?
<p>I have a long text, which also has html content in it. something like - </p> <pre><code>Dell World Newsletter #7 December 3, 2012&lt;br&gt;&lt;br&gt;Dell World is Only One Week Away!&lt;br&gt;The organizers of Dell World are putting the finishing touches on thr ee days of exciting keynotes, sessions and entertainme...
3
2,110
AJAX content loader only works with half my links
<p>I'm working on a site using an AJAX content loader to bring in one div from all my HTML pages. It works on the links in my <code>#menu</code> section, but not in my <code>#thumbs</code> section.</p> <p>Even when I switch the links to opposite sections, they only work in the <code>#menu</code> and still not the <cod...
3
1,698
ClassCastException if placing Button above a view
<p>I have a problem with placing a Button above a separator line created in a <code>View</code>. In the following code I place buttons and text as you can see in the picture:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:...
3
3,320
JSF&primefaces after dialog closed background buttons don't work
<p>I have a button to open a dialog:</p> <pre><code>&lt;p:commandButton id="addbutton" value="Новая контрольная точка" oncomplete="dlg_add.show();" rendered="#{controlPointBean.selectedSubject != null}"/&gt; </code></pre> <p>And a dialog with wizard in it:</p> <pre><code>&lt;p:dialog widgetVar="dlg_add"&gt; &lt;p:wi...
3
2,090
Saving new row in database deletes previous row
<p>I have a products Entity like:</p> <pre><code>@Entity('products') export class productsEntity extends BaseEntity{ @PrimaryGeneratedColumn() id: number; @Column({nullable: false, unique: true}) title: string; //..other columns @Column({type:&quot;inte...
3
1,146
minor issue with fork() and pipe()
<p>I 'm writing a little program that implements pipes like they work in the shell. ie: </p> <pre><code>ls -hal | sort | grep p | wc </code></pre> <p>it works fine, with the minor issue that on one line, when CMD_NO=n, the comparison i biggerthan CMD_NO does not work, but i!=(CMD_NO-1) does. I'm trying to figure out...
3
1,301
How can I get all IDs by grid grouping?
<p>I have a Kendo UI grid that is populated by Ajax query to an api. The grid has column for sample IDs, status (if document is generated or not) and a button to generate the document (if not already).</p> <p>I am implementing a button to generate documents for all sampleIds in one go and need to fetch the IDs of remai...
3
1,056
Looping an array received from service
<p><strong>JSON from service</strong></p> <pre><code>{ "firstname": "Utku", "lastname": "Dalmaz", "photos": [{ "src": "image", "post_id": "69" }, { "src": "image", "post_id": "74" }, { "src": "image", "post_id": "133" }, { "src": "image", ...
3
1,071
Error in Map function: Cannot read property of 'map' undefined
<p><a href="https://i.stack.imgur.com/MrQNr.png" rel="nofollow noreferrer">Error in Map function: Cannot read property of 'map' undefined</a></p> <p>While using the map function, I went through each documentation but and also copied the same exact code whjich was actual running on the github but was unable to run in th...
3
1,083
java: Make multi level dynamic jtree from database table
<p>i have make a database table like the following, but the rows can be more</p> <pre><code>id Name parent 1 color null 2 red 1 3 white 1 4 green 1 5 dark 4 6 light 4 </code></pre> <ul> <li>To retrieve the table from database i ...
3
1,512
How can I resolve bootstrap CSS issue?
<p>This is the actual output <img src="https://i.stack.imgur.com/3uZDN.png" alt="enter image description here"></p> <p>How to remove the highlighted section in red, in the actual output?</p> <p>This is my expected output</p> <p><img src="https://i.stack.imgur.com/ExLQS.png" alt="enter image description here"></p> <...
3
2,720
MySQL with Typescript doesn't store multiple data - discord.js
<ul> <li><strong>Query</strong></li> </ul> <p>I'm working on a messages tracking discord bot using <strong>typescript</strong> with <strong>discord.js</strong>. I've provided my code below. The issue here, is that it doesn't save the data. When a user sends messages, it stores his message count, but when another user s...
3
1,099
Puppeteer-PDF: Node hangs when I try to generate a PDF
<p>I using Puppeteer to generate a PDF file. In my laptop (Windows 10) it works very well, but in the server (Windows Server 2012 R2) it hangs when it try to generate the PDF and it ends with time out error.</p> <p>Here I set the variables and I call generatePdf() function</p> <pre><code>let html = '&lt;html here....&g...
3
1,092
Custom CSS on ASP.Net menu not applying
<p>I am working on a custom menu control in ASP.Net.</p> <p>I've created a separate new project on ASP.Net webform c# for menu and finally get the desire output which I want.</p> <p><strong>Desire Output</strong></p> <p><a href="https://i.stack.imgur.com/hK1Th.png" rel="nofollow noreferrer"><img src="https://i.stack...
3
1,747
how to handle text div in different screen resolutions according to parent div
<p>Hi i am designing a website.. Here is the url <a href="https://ifixandrepair.com/ifar/ifixandrepairwellington/" rel="nofollow">https://ifixandrepair.com/ifar/ifixandrepairwellington/</a></p> <p>I have designed it on 1366*768, 15 inch screen as u can see here on screenfly <a href="http://quirktools.com/screenfly/#...
3
1,520
Unable to push the input data into my Firebase database
<p>I am currently working on the Sign Up module for our project and it's the first time I program using firebase as a backend. here's the code for my Sign Up form in HTML:</p> <pre><code>&lt;form class="innerContent"&gt; &lt;div class="inputTxt mdl-textfield mdl-js-textfield mdl-textfield--floating-label"&gt; ...
3
2,242
Adding local thumbnail to Discord embed and send it to a specific channel with Pycord
<p>Im trying to send an embed with a thumbnail attachment to a different specific channel.</p> <p>Sending on the local channel with interactions or DMs works but not to a specific channel</p> <pre><code>import discord from interactions import Attachment, User from discord.ui import Select, View, Button from discord.uti...
3
1,145
Inlining Typescript generic gives different behavior
<p>I'm pretty new to Typescript but I found some very surprising behavior with generics that I cannot find a reasonable explanation to. Basically, I have a object of the form</p> <pre class="lang-js prettyprint-override"><code>const data = { &quot;a&quot;: { include: true, }, &quot;b&quot;: { ...
3
1,147
Realm deadlock condition
<p>Actually in my application i have notification service extension from their updating my realm db which is in shared group folder and main application also write on same.</p> <p>Some time my app stops working due to deadlock arises and app always fails to write. App have db write code in main app initialisation proc...
3
1,625
AngularJS UI-Bootstrap Modal Dialog gets covered by main.html
<p><a href="https://i.stack.imgur.com/6XGMh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6XGMh.png" alt="enter image description here"></a></p> <p>How can I use bootstrap modal dialogs with AngularJS using ui-bootstrap with angular-ui-router? I am new to AngularJS and tried searching the document...
3
2,249
Background Image XAML
<p>I am trying to incorporate a background image into my App using Xaml. I have tried various different methods but none seem to working. My code at the minute is </p> <pre><code>&lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns...
3
1,122
What is the best method to fill in missing months in a list using datetime?
<p>The main purpose of the program I am trying to make is to be able to fill in (insert) a list of objects with have a price and a datetime, if there is a missing month, and if there is, insert a duplicate object but with the correct month, and the last day of that specific month with the same price (no change)</p> <p>...
3
1,316
Tensorflow: working tf.while_loop does not work as part of Dataset API input pipeline
<p>My problem is an image keypoint recognition task on images of snails. I have found that although there are many prewritten image augmentation functions for classification tasks (such as Keras' ImageDataGenerator), there are none that I can find suitable for this problem, which requires changes to the output keypoint...
3
2,044
Python mkdir wrong owner
<p>I am baffled by this issue, please help:</p> <p>Running DJANGO, Python 2.7, Apache [mod_wsgi] for DJANGO. When mkdir or a file write happens then the user/group is always root:root. The parent directories are all owned by the Apache UID/GID.</p> <ol> <li>How in the world could Python to do something so dangerous t...
3
1,533
When I load an image in background, it works fine, crashes when I load it into an ImageView inside a ListView
<p>I am trying to load images in the background to populate the images in a ListView. If I load an image in the background and load it into an image that is not in the ListView it works fine. When I try to load the bitmap in an ImageView that is in the ListView it crashes. </p> <p>This is what I do:</p> <ol> <li>Cre...
3
1,284