title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to create SSL certificate & implement in Spring Boot? | <p>Following spring security book, I try to create SSL certificate through the following commands but getting an error which I mention in the last. grateful for the help. I've tried openssl as well as with wimpty:</p>
<pre><code>openssl req -newkey rsa:2048 -x509 -keyout key.pem -out cert.pem -days 365
openssl pkcs12 -... | 3 | 1,378 |
How to create a multiple options from a single data coming from the API for displaying it as a select/dropdown in VueJS | <p>I am trying to display the select drop down using vs-select, the options are taken from the API. Here is my scenario I have made all my components dynamic, i have 3 cards in my front page, if I click any of the card respective contents are displayed.</p>
<p>Here is the response that I get from the <code>/my-project<... | 3 | 1,294 |
MySQL query: split quarter results in different columns | <p>I would like to divide the quarterly product sales results into 4 columns (one for each quarter).
My table is as follows:</p>
<pre><code>CREATE TABLE `tcustomerscontracts` (
`contract_id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL DEFAULT '0',
`contract_quantity` decimal(8,2) NOT NULL DEFAU... | 3 | 1,044 |
Google fit activity not giving any 'Still' type of activity from Android device | <p>For the past few days, around 20th Jan onwards for a lot of user we are not getting any ‘Still’ from Google fit activity type. We are using Google-fit data since more than 2 years but have never experienced something like this where users are not getting any sedentary data.</p>
<p>It is practically impossible for a ... | 3 | 8,655 |
IConfigureOptions<T> with an AuthenticationBuilder | <p>I've used IConfigureOptions in the past and have a new project that I'm working on using OAuth introspection. </p>
<p>I tried to set up the options pattern with a class:</p>
<pre><code> public class
ConfigureOAuth2IntrospectionOptions : IConfigureOptions<
OAuth2IntrospectionOptions>
... | 3 | 1,113 |
How to set a dictionary based off of subprocess.check_output | <p>This is a confusing question, however I will try to make it as clear as possible.
Currently when I build my app, if I run it via the .py file it works perfectly. However, once I compile it some parts of my app aren't functioning, specifically this code here.</p>
<pre><code>def ffprobe_run():
global output
global aco... | 3 | 4,021 |
Connecting Pipes with Consumers and Producers that return different values | <p>I am writing a streaming function with the pipes ecosystem, and pipes-concurrency in particular, which is based on the operational library to allow me to quickly make little program snippets which I yield commands to a server over the network or to the stdin/out of a shell command and then read back the response. ... | 3 | 1,655 |
Reducing time complexity of bilinear interpolation | <p>I use bilinear interpolation in my android application. It runs perfectly, but takes a lot of time to get the result. </p>
<p>I test it when xi = 259,920, and yi also = 259,920. The time to response was: Galaxy Note 4 takes 3 sec,
and HTC One M8 takes about 8 sec !. So what I can change o... | 3 | 1,856 |
Disadvantage of setting html through jquery html() | <p>is there any disadvantage on setting html of say for example the content of a div through jqyuery's <code>html()</code> function?</p>
<p>Because I have a static content inside a <code>div</code>, it is a progress bar which is made by <code><li></code>. Now, it displays perfectly fine, each bar has its gap wit... | 3 | 1,361 |
evaluation version of monotouch failing to build to native code | <p>this is Ajit.
I tried downloading the trial version of monotouch from the website but all the links were broken.
So I downloaded the following by digging from google.
(<em>)MonoDevelop-3.0.3.5
(</em>)MonoFramework-MRE-2.10.9_11.macos10.xamarin.x86.dmg
(*)Monotouch-eval-5.1.0.pkg</p>
<p>but after doing so when I run... | 3 | 1,298 |
whole canvas to pan while scrolling mouse up, down, left and right instead of only background image | <p>When pinching from trackpad I need to zoom in and zoom out but when user scrolls up, down, left and right from trackpad then I need to pan it accordingly. Currently, the panning works but the panning happens only on background image instead of whole object so that while panning the border box wont be visible and ima... | 3 | 1,552 |
I2C read error while getting data from sensor with pigpio | <p>i have a Tkinter GUI and the acceleration sensor MMA8452Q. I set up the sensor that if a threshold is reached, a interrupt flag gets set and data for a specific period of time gets collected and plotted through the GUI.</p>
<p>Sometimes when I read the data or at any other point of using an I2C read function to read... | 3 | 3,117 |
EF Dynamic type - The SqlParameter is already contained by another SqlParameterCollection | <p>I have a stored procedure will will give a dynamic result set</p>
<pre><code>(Eg1. storedProcedureNameXX 4 - sql server result may be 5 columns)
(Eg2. storedProcedureNameXX 1 - sql server result may be 3 columns)
</code></pre>
<p>Lets assume i have added the dynamic columns in the Type Builder:</p>
<pre><code>T... | 3 | 1,557 |
how to remove the whitespace around images in a table | <p>So I want to remove the extra spaces highlighted in red ink shown here:
<a href="http://i.stack.imgur.com/d7Kwo.png" rel="nofollow">http://i.stack.imgur.com/d7Kwo.png</a></p>
<p>When I remove the top images the table width becomes correct: 800px</p>
<p>but what I wanted is this:<a href="http://i.stack.imgur.com/XP... | 3 | 1,079 |
CSS Animation not firing with Knockout code on click of a button - and not dispatching click event | <p>I'm running into an issue with some Knockout code firing off a CSS3 animation. It works with one block of code, and doesn't on another. The idea is to show an animation when you add an item to the cart. The object in the code not working is coming up empty, where as the one working displays the product notification'... | 3 | 1,108 |
Add two tabs group in same page | <p>I'm trying to add two tabs group in same page ,but it works as one tab ,If i select first tab from tab group one it inactive the selected tab in other group,How anyone help me to fix that?</p>
<p>tab group one</p>
<pre><code> <div>
<ul class="nav nav-tabs">
<!-- <span class="... | 3 | 2,133 |
OpenGL and GLUT/ C++ Odd texture looping issue | <p>I am working with textures in OpenGL and have came across a strange issue. Sometimes an image that's loaded in is pushed over to the right slightly. I will supply code and screen shots below.</p>
<p><img src="https://i.imgur.com/Gny9Xir.jpg" alt="Image"></p>
<pre><code>#include <gl/glew.h>
#include <gl/gl... | 3 | 1,998 |
How to make nested functions work inside a class in python | <blockquote>
<p>When I click on the button (Report_But) the report function runs but when I select a date object from the tkcalendar, the m_upd function remains silent (does not run). When I remove the class, the code runs perfectly</p>
</blockquote>
<p><em>Please how can nested functions run inside a class</em></p>
<p... | 3 | 2,443 |
Weather widget not fetching JSON data from API | <p>I am attempting to build a weather widget based on geolocation. I came across a code snippet that I would like to re-use, however, it is jQuery and I haven't been able to fully translate it to JavaScript.</p>
<p>The issue begins at the beginning of the function <strong>weatherWidget()</strong> already, where I am fe... | 3 | 4,563 |
Why is Flutter adding borders to my containers? | <p>For some reason on my darker theme, I am getting these odd borders around my containers. I have a <code>Column</code> made up of <code>ProfileMenuItem</code>'s. There is nothing about any borders in this code. I have a divider I've made to split sections of the menu, but that's showing up correctly. Below is a bit o... | 3 | 2,431 |
Running maven goals clean install in Intellij IDEA getting error Invalid initial heap size: -Xms=256m | <p>I'm running Maven clean install from IntelliJ IDEA 2019.3.21 and it's terminated almost immediately after starting it: </p>
<pre><code>"C:\Program Files\Java\jdk1.8.0_231\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\beniregev\workspace\tool-elastic-search-injector -Xms=256m -Xmx512m "-Dmaven.home=C:\Program... | 3 | 5,037 |
How to add custom task to android gradle build for mergeJniLibFolders | <p>A bit of background, I have a custom android build type called "prebuilt" which is intended to be deployed to an android system image. I need custom gradle tasks to modify the assets and jniLibs folders so that these are delivered separately from the apk (e.g., my-app-prebuilt.apk, my-app-prebuilt-assets.zip, my-app... | 3 | 1,072 |
mongoDB how to query array | <p>is it posibale to query something like this:</p>
<pre><code>db.translations.find({'key'["select_trip_type_title","select_trip_type_title"]}})
</code></pre>
<p>my translations collection looks like that</p>
<pre><code>{
"_id" : ObjectId("5c8e6a53134bdd79eadb081e"),
&quo... | 3 | 1,205 |
CSS Grid does not display | <p>Starting to practice CSS grid for the 1st time but it does not display at all in Chrome.
When I launch the .html, only the margins are displayed but every other element are displayed as a block like : </p>
<p>panenka</p>
<p>accueil</p>
<p>maillots</p>
<p>survêtements</p>
<p>coques</p>
<p><div class="snippet" ... | 3 | 1,036 |
Exception while testing my application on device by connecting divce with usb | <p>It gives exception whenever app is installed and launched . And somtime it suddenly through <strong>exception</strong> and my gets <strong>crashed</strong></p>
<blockquote>
<p>java.lang.RuntimeException: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerExce... | 3 | 2,837 |
odd value of "this" in javascript | <p>In the code below this gets as value [function()] according to firebug, instead of the object returned by the define. </p>
<hr>
<pre><code>define(["dojo/dom",
"dojo/dom-construct",
.......,
"dojo/domReady!"],
function(dom,
construct,
........){
return ... | 3 | 1,096 |
implementing transactions in c# ASP.NET Visual Studio 2013 | <p>I'm writing a program that takes a webservice that gives many records.
I wanted to implement a transaction so that if ever there will be an error, the "inserted" records will be rolled back.
Here is my code but it is not working.
Please help me. Thank you in advance. </p>
<pre><code>string findID = "SELECT e.ID, e... | 3 | 1,779 |
Ionic Saving Image From Camera With Some Information And Get From Gallery | <p>I am working on Ionic mobile application my task is if a person clicks an image from camera the picture get saved with his latitude and longitude and he can choose the image and upload it so the saved picture will have its coordinates with it.</p>
<p>The issue I am facing is when I take picture from camera it saves... | 3 | 2,437 |
Bootstrap carousel uses two rows when slide changes | <p>I have a problem with a over a year old website. At the beginnning of this year I made few modifications and at the same time did npm install, because for some reason all the packages were not found when starting angular (version 5, same problem now with 9). After the npm install I had several issues, most annoying ... | 3 | 1,126 |
Copy data from cells in sheet1 to different non-continuous columns in sheet2 with google apps script | <p>In a google spreadsheet document I have two sheets, one called BD Products and another called Add product.</p>
<p>The first sheet (BD Products) is a table with all the information of the products (by rows). Some cells contain formulas to make calculations automatically. Other cells are empty fields that must be fill... | 3 | 2,039 |
What is the right way to install APK for each Android version? | <p>I'm making an APK Install app and I've been through a lot. Especially, versioning.
to do that, i looked up some posting and StackOverFlow. but All the postings make me more confused now. So, What is the right way?</p>
<p>first of all, please check my code below about installing for each version. and Let's talk about... | 3 | 2,062 |
tkinter - how to make separate hyperlink button in my loop? | <p>I'm trying to make some simple program to open url if the condition fits.</p>
<p>Here's the minimal reproducible example.</p>
<pre><code>from tkinter import *
import requests
from bs4 import BeautifulSoup
import webbrowser
import time
def call_back(event):
input_id.delete(0,END)
return None
def open_browse... | 3 | 1,059 |
Changing the Data Format that is received from the backend in ReactJS | <p>I'm currently receiving date from the backend where I'm showing it on the UI.</p>
<p>These are how the dates look on the backend:</p>
<p><a href="https://i.stack.imgur.com/gHjPD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gHjPD.png" alt="enter image description here" /></a></p>
<p>And this is ... | 3 | 1,419 |
Editor goes behind the keyboard when it resized using Wordwrap in Xamarin.Forms (iOS)? | <p>I am proceeding further and generating new ticket as it is quite different from this issue <a href="https://stackoverflow.com/questions/56427967/how-to-prevent-editor-to-go-behind-the-keyboard-in-xamarin-forms">How to prevent Editor to go behind the keyboard in Xamarin.Forms?</a></p>
<p>I have chat page and autosiz... | 3 | 1,778 |
loop returning inadequete records from database | <p>I have a list that is taking data from a database. It is always <strong>leaving</strong> one record that meets my database search query. when i change the database details to increase or decrease the records, it still leaves one record. out of say 8 records that meets a search criteria it returns 7, out of say 5 it ... | 3 | 1,292 |
Parser does not return anything in terminal | <p>I'm trying to write a parser for the Proc language, which is an extended version of the While language. When complete it should be able to take input such as:</p>
<pre><code>"/*fac_loop (p.23)*/\ny:=1;\nwhile !(x=1) do (\n y:=y*x;\n x:=x-1\n)"
</code></pre>
<p>and produce:</p>
<pre><code>(Comp (Ass "y" (N 1)) (Wh... | 3 | 2,295 |
Wrong (old) columns when creating new tables | <p>I'm writing an simple app in Xcode.
There is a problem I can't solve:</p>
<p>When I want to create a new table with sqlite3 I use:
<code>create table if not exists %@(some values...)</code></p>
<p>the table is created just fine, but it is not creating the correct columns.
Instead, it keeps some old columns.</p>
<... | 3 | 1,899 |
R - summarize and mutate by two columns incl. date | <p>I'm trying to summarize a data set based on the time between, within a group. Basically what I have is, like this example, a data set where students buy a course, the courses have levels : 1 till 5, every course is about 2 months and students can just follow the courses from 1 till 5. I want to analyze when students... | 3 | 2,720 |
Why is my n-body simulation not producing orbits (using Earth and Venus around the Sun)? | <p>I am trying to make an n-body simulation in python. I have chosen to test the algorithm on a 3-body system, consisting of Earth, Venus, and the Sun, over a duration of 10 years using a time-step of one day. My algorithm will run to completion, but the output does not seem correct; I am expecting Earth and Venus to h... | 3 | 2,611 |
How to close datetimepicker after date selection? | <p>I am using <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Functions/" rel="nofollow">datetimepicker</a></p>
<p>I cant figure out how to close the widget once I have selected a date value.</p>
<p>My code:</p>
<pre><code> $(settings.target).datetimepicker({
useCurrent: "hour",
minDat... | 3 | 1,319 |
null reference exception on view mvc .NET | <p>I have a populated database, But when I want to return a single value in a view Visual studio pointer to a System.NullReferenceException' occurred in App_Web_qoycb13m.dll but was not handled in user code. Why is this happening ?</p>
<p>The line of error is:</p>
<pre><code><h2>@Model.Name</h2>
</code></... | 3 | 1,164 |
Making an AlertDialog with Dropdownbuttons in Flutter scrollable | <p>I have an AlertDialog in Flutter that shows some various filtering & sorting options via dropdownbuttons. However, I want it to be scrollable as soon as there are too many elements to display. Putting a Listview into it results in a grey box for the Dropdownbuttons (see pictures). How can I get this scrollable?<... | 3 | 3,060 |
Wrong Tasklist ID from Google Tasks API | <p>Spent hours and cannot seem to understand what went wrong with my Google Tasks API.</p>
<ol>
<li>Created new project in GCP</li>
<li>Enable Google Tasks API</li>
<li>Added a key and downloaded services-account.json</li>
<li>Using the official Google Client PHP library</li>
<li>Managed to authenticate and getting a r... | 3 | 2,772 |
Spark Streaming with Neo4j hangs while running with Docker | <p>I have created a docker image of my application when I simply run it from the bash script, it works properly. However, when I run it as part of the docker-compose file the application hangs on the message: </p>
<pre><code>18/06/27 13:17:18 INFO StateStoreCoordinatorRef: Registered StateStoreCoordinator endpoint
</c... | 3 | 1,504 |
Ionic: $cordovaSocialSharing cannot read property of undefined | <p>I want to use this plugin: <a href="http://ngcordova.com/docs/plugins/socialSharing/" rel="nofollow">$cordovaSocialSharing</a> since it's the only plugin I've found for native social buttons on Ionic...</p>
<p>I get this error when I'm running my code in Chrome console:
"Cannot read property 'socialsharing' of unde... | 3 | 1,674 |
Email in laravel shows variable instead of the value | <p>I'm not sure what im missing here. So im working on emailing the client whenever there's an update however it doesnt show the value of variable or array passed here. So there's 3 files. First we start in the
controller.</p>
<pre><code>$details = [
'title'=> "[Helpdesk] Your ticket #{$ids[0]} has an u... | 3 | 1,799 |
Exporting html to Excel / CSV using tableExport, the exported file loses its formatting | <p>i am to trying export a report data / html to excel / csv using tableExport with this code logic </p>
<pre><code>$('#tblRpt').tableExport({ type: 'csv', escape: 'false', tableName:
'yourTableName' });
</code></pre>
<p>this code works in other reports which has simple html structure. The report which i am trying t... | 3 | 9,273 |
How to redirect from my asp.net website to payment form of authorised.net Payment Gateway | <p>I have created an asp.net webform. One button is there on the form when I click on the button I need to redirect overpayment form authorized payment gateway with the amount and need to capture the response with the transaction id but I don't understand how to redirect over the gateway.</p>
<p>I read their developer... | 3 | 1,964 |
how to make javascript data into Php value? | <p>I want to convert my data on javascript to a php value, and my code on script is like this:</p>
<pre><code><script type="text/javascript">
$(document).on("click", ".open-image", function (e) {
e.preventDefault();
var _self = $(this);
var image = _self.data('img');
$("#img").val(image);
$("#img").attr('src'... | 3 | 1,198 |
Is JPQL not the way to go for projections? | <p>Here's my Repository method that I'm trying to call.</p>
<pre><code>@Query(value = "select ise from InquirySession ise " +
"inner join ise.inquiryRequest.inquiryRequestFacilities irf " +
"left outer join ise.inquiryResponses ire on ire.facilityId = ?2 " +
"left outer join ire.responseActions... | 3 | 1,576 |
C# TCP Server/Client Object Transmission/Serialization/De-Serialization Increasingly Using Memory Help Required | <p><strong>First and Foremost,</strong></p>
<h2>Thanks in advance to all who may provide help, criticism, advice.</h2>
<p><strong>Language:</strong> C#</p>
<hr>
<p><strong>Objective:</strong> TCP Server/Client For Image And Object Transmission.</p>
<hr>
<p><strong>Server Scenario:</strong>
Server will listen for... | 3 | 3,475 |
Calling splice on an extended Array causes an Error and I have no idea why | <p>When I call <code>Remove</code> in my class it throws an error when it comes to <code>this.splice</code>. Please note, <code>this.index</code> works fine. Do you have any idea why? And do you have a workaround?</p>
<pre class="lang-cs prettyprint-override"><code>export class DefaultReorderableList<T> extends A... | 3 | 1,525 |
Plotly : can't create subplots the right way | <p>I have currently chart where I display the price of an asset and add some moving average traces. Now I want to add other indicators to the chart ( OBV, MACD, RSI ). Every time I call one of these three I would like my current chart to be fractioned in subplots. Let say I add OBV, my display will 2 subplots ( the pri... | 3 | 3,229 |
Taking user input for the objects | <p>Question : Create a two objects of class Employee and check both are same or diffrent</p>
<p>Below code gives an error : <strong>Exception in thread "main" java.util.InputMismatchException</strong></p>
<p><strong>Only object e1 accepts values</strong></p>
<pre><code> class Employee {
String name;
... | 3 | 1,032 |
Angular reactive forms are passing hidden field to component? | <p>When I select dropdown Jobs it is hiding all the client forms as expected. When I pass fields to components it is still passing client fields, which is implemented wrong here.</p>
<p>main.html</p>
<pre><code><form class="needs-validation" novalidate [formGroup]="form" (ngSubmit)="saveClie... | 3 | 1,345 |
How to give custom colors to rectangles in react-d3-treemap based on a field in json dataset? | <p>How to give custom colors to rectangles in react-d3-treemap based on a field in json dataset? d3 treemap should change color according to data passed in json. here iam using the npm module react-d3-treemap to generate the treemap, everything works fine except this usecase. Suppose the name field in dataset is analyt... | 3 | 1,721 |
How to properly remove a ball from an HTML-5 canvas when the player hovers on it? | <p>I've developed a small game that requires the player to "eat" only the green balls in an HTML5-canvas in order to succeed.</p>
<p>I've come to the part where when you hover on the ball, it gets eaten. But some REALLY weird behavior arises. Instead of only one ball getting eaten, A WHOLE LOT OF THEM JUST SUDDENLY DI... | 3 | 3,503 |
How to use the escape key to control whether a form is fullscreen or not | <p>I am attempting to make a form in visual studio using the windows form application and designer, but when I try using the escape key to maximise/minimise and remove/add the border it does not cover all of the taskbar.</p>
<p>I am simply testing the functionality of being able to enter and exit fullscreen for any fo... | 3 | 1,076 |
RodCutting: when the rod is bigger than the array length | <p>How can I modify the methods cutRod and bottomUpCutRod to hold lengths that are bigger than the array length. For example, currently p has length 11, how can I cut the rod of length 15, 20 , etc, having this same array. For example</p>
<p><code>p = {0, 1, 5, 8, 9, 10, 17, 17, 20, 24, 30};</code></p>
<p>if I call c... | 3 | 1,594 |
chrome loads my page, firefox doesn't | <p>I'm trying to echo php in a web page via an HTML form (<code>test_form.php</code> --> <code>test.php</code>). The form allows users to pick a date and time. I'll show the code for <code>test_form.php</code> and <code>test.php</code> below.</p>
<p>This works in Chrome (linux) -- my script checks that the date and ho... | 3 | 3,199 |
JQuery Cycle not working right | <p>I am trying to do a function after my first slide has shown. I basically want to do the same function after each slide, but my 2nd slide is just still. Nothing is fading in or coming in.</p>
<p>Here is my JQuery</p>
<pre><code>$("#slideshow").cycle({
fx: 'scrollHorz',
pager: '#slideshow-nav... | 3 | 1,117 |
State Not Getting Set As Required (React, Hooks) | <p>I am having trouble setting up a state of my component. Kindly check the details as below</p>
<p>Codesandbox link - <a href="https://codesandbox.io/s/goofy-glade-z32zp" rel="nofollow noreferrer">https://codesandbox.io/s/goofy-glade-z32zp</a></p>
<p>This is my App Component containing 4 sub components</p>
<pre><code>... | 3 | 5,177 |
Update to androidx.appcompat:appcompat:1.3.0 causing 'indexOutOfBounds' crash | <p>I recently updated my dependencies, including updating <code>androidx.appCompat</code> from <code>1.2.0</code> to <code>1.3.0</code>. It took some digging to figure out that this is what was causing my crash.
The crash doesn't occur until the user clicks on a MaterialCardView to transition to a new fragment on the h... | 3 | 1,073 |
How to correctly implement State Pattern? | <ol>
<li>An Account could have various states such as Frozen, Active, NotVerified, Closed. </li>
<li>And Account could perform following actions: Deposit(), Withdraw(), HolderVerified(), Close(), Freeze()</li>
<li>These implementation of these actions could vary depending on current state of the account. </li>
</ol>
<... | 3 | 1,433 |
Paddle with Nuxt/Vue.js | <p>Has anyone implemented Paddle with Nuxt? Trying to run this within a Nuxt app page (component):</p>
<pre><code><script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
Paddle.Setup({ vendor: 1234567 });
</script>
</code></pre>
<p... | 3 | 1,971 |
User defined function for reading and manipulating frequently used data from excel and SQL | <p>It feels like this should be a simple problem but for whatever reason I am not getting it.</p>
<p>I've got a bunch of tables I have to get at from SQL and other places and the code gets long. It's cumbersome and I'd just like to condense it by making functions() for each table so that when I call lets say load_tabl... | 3 | 1,146 |
Mouse event when clicking data title in JavaFX | <p>I have created a simple horizontal barchart using JavaFX in Java 1.8. This displays correctly with a bottom legend, list of paths on the left and bars showing data grouped into 3 series. I would like to open a page that is dynamically populated based on the path chosen with the path on the left used as the link but ... | 3 | 1,058 |
How to select a specific element according to a text | <p>I want to change the css of an element based only on the title value. I would like to be able to change only the css property of the button where the title is <strong>This one</strong>. I can't modify the HTML.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div... | 3 | 5,350 |
Proper way to transition to other ViewController | <p>I've been learning swift for one week now and after creating my first app which uses Weather API I wanted to create simple animation: there is an image in LaunchScreen.storyboard with background and I wanted to animate the image to shrink to 0 so that my other ViewController would appear as normal. I've made somethi... | 3 | 1,119 |
Html Form, when submitted, send straight to email | <p>I am using Dreamweaver to create a website, my website has a form, but when I click on the submit button it opens my outlook application, with the information I want. I was just wondering if it was possible to send the email to my account without going through my email client. This is my code...</p>
<p>BTW I am usi... | 3 | 2,692 |
Changing values of elements using SASS based on HTML classes | <p>Assume I have two html pages in the same website, as follows:</p>
<p><em>This is the first page</em></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-css lang-css prettyprint-override"><code>.theme1 {
backgrou... | 3 | 1,164 |
Assembly is not loading in main project when it is called from unit test project | <p>I am facing an issue where unit test is failing.</p>
<p>I have kept all resources in resource dictionary in one assembly. I am referencing that assembly in one of my project. I am resolving that resources using pack. Now, I written unit test to my project.</p>
<p>When I run my tests. It is failing saying</p>
<pre... | 3 | 1,680 |
Inherit subframes in widget creation auto sizing (tkinter, python 3) | <p>What I am trying to do is:</p>
<ol>
<li>Create a main frame (pc_gui) and two sub frames (video_frame) and (side_frame) respectively.</li>
<li>Allow the user to be able to resize the application window to suit and have all frames, widgets, images, etc. resize accordingly.</li>
<li>Reference frames elsewhere in the gu... | 3 | 2,826 |
Add Sum Subtotal to multiple layers of pandas pivot | <p>I am looking to add subtotals as done in <a href="https://stackoverflow.com/questions/63866792/adding-subtotals-to-multiple-layers-of-pandas-pivot-table">adding subtotals to multiple layers of pandas pivot-table</a> but ONLY including the sum aggregate, no others. I want to group by 'city', then 'name'.</p>
<p>When ... | 3 | 1,171 |
Combining predicates in a functional way and allowing short-circuiting to work | <h2>Foreword</h2>
<p>I asked <a href="https://stackoverflow.com/questions/64259413/combining-predicates-in-a-functional-way">a similar</a> question: say I have a predicate <code>auto p1 = [](int x){ return x > 2; }</code> and a predicate <code>auto p2 = [](int x){ return x < 6; }</code>, how do I combine <code>p1... | 3 | 1,627 |
SwiftUi Load Local Json Data | <p>I actually learning SwiftUi, and at the moment i don't get into my problem.</p>
<p>I try to load Json Data from my local Json File !</p>
<p>I have searched many many many Post but nothing really helped me, that is why i have chosen to make this post.</p>
<p>I show you how i possible tried it.</p>
<p>Path: Data/test.... | 3 | 1,558 |
Angular 4 - service data is not persistent | <p>I am having some trouble figuring out where I went wrong and would really appreciate some help with this.</p>
<p>I have a component: <code>AudioComponent</code>, which captures an html5 tag as a <code>@ViewChild</code>, then registers itself with a service: <code>AudioService</code>.</p>
<p>Here is the <code>Audi... | 3 | 1,525 |
How to make print invisible (web creating)? | <p>I'm making a movie website for my assignment, but I've been given codes I haven't learnt yet. </p>
<p>I'm using 3 files so I can utilize my learning in class objects.</p>
<p>I have a problem in one of them. (shown below).</p>
<p>I use this code to go through and process all the details (arguments) for the movies ... | 3 | 3,660 |
Impose sorted order on C++ template parameters | <p>Recently, I've been attempting to solve a problem using template parameters. The problem can be simplified as follows:</p>
<p>Say I have three descriptive types: Name, Age, and Occupation. Each instance of these types is stored in a static vector with all other elements of its type. I also have a list of items, ide... | 3 | 1,150 |
Placing Animation in a Page-Based Application | <p>I have taken the Page-Based Application template in Xcode and turned it from a calendar booklet to a comic book. Each page has a grid of 12 views - 3 across & 4 down. Each view has a .png file showing my character as he struggles with his existence. I'll briefly cover the code and then explain what I want and ma... | 3 | 3,388 |
Putting Async functions into useEffect() hook in React | <p>I'm finishing up an app in which I want to hide my GoogleMap API key behind my secure API. My intention is to call for the API key once I verify that I have an authenticated user. The problem is that between the async calls, changes are not reflected with the state change.</p>
<p>This is what I am doing:</p>
<pre>... | 3 | 1,050 |
How to set cookie without response in Django or DRF? | <p>I tried this <code>response = Response()</code> method but it is not set in the browser cookie
Because my function return user and token instead of <code>response</code>.Any possibility to set cookie in browser without response or <code>httpResponse</code>?..</p>
<p><strong>views.py(It does not work):</strong></p>
<... | 3 | 1,886 |
Remove the last element in the json | <p>I want to remove the last element from the json.I have the object username,Geo,status,month,week2.
I want to remove week2 in my json</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... | 3 | 1,302 |
from google.cloud import speech ImportError: DLL load failed: Не найдена указанная процедура | <p>I want to create a telegram bot to convert audio to text format and store it in google cloud storage, for that I've imported google coud libraries
If you could see, other libraries are imported successfully and with no error, unless google-cloud-speech/-storage
When I run the script, it returns error message like:</... | 3 | 1,912 |
android spinner to load json crashes | <p>I am trying to fetch an array list using volley and display it in a spinner but my app crashes.
here is the main activity of the app</p>
<pre><code>package com.example.shivadeeps.webservice;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppC... | 3 | 10,869 |
Problems in running marble example offline | <p>I'm trying to run this example on my computer without the help of the Blockchain implementation from Bluemix.</p>
<p><a href="https://github.com/IBM-Blockchain/marbles/blob/master/tutorial_part1.md#confignetwork" rel="nofollow">https://github.com/IBM-Blockchain/marbles/blob/master/tutorial_part1.md#confignetwork</a... | 3 | 2,337 |
UITableView Cell Selecting Errors: Cell Changes Text, Can't Deselect Row? | <p>I'm trying to create a simple <strong>matching game</strong> in swift using a UITableView where you have to match the boat type with the definition of that boat type. Basically, everything is messed up with the game right now. The style of the cells are set to <strong>plain</strong>. Here is the code for the methods... | 3 | 1,357 |
How to round long number and show it as string in android? | <p>Hi I have a list of files. I want to show file length of each file. I create own method for getting file length and right unit(base value). </p>
<p><strong>Source</strong></p>
<pre><code>public String getFileLength(long lengthBytes){
Log.i("", 1 + " -- FILE INFO -- " + lengthBytes);
String lengthString;
... | 3 | 1,341 |
How do I get my screen to update before going into the win and lose methods? | <p>I am trying to build a hangman game for a web dev course. I got it mostly working, but when you put in the last letter, it shows to the console, but not on the screen and gives the alert that you won. Similarly, if you run out of guesses, it never shows 0 guesses remaining. It just goes into the alert that you lost ... | 3 | 3,419 |
SQL - How can I rewrite this request without many SELECT | <p>I want to have the number of open requests for each month before the 1st of each month. I use ComboChart and my orange line is, at the moment, the average for the 6 past months, I want to change this data for the opened requests.</p>
<p>Exemple : for April, I have 2 new requests and 1 closed request and I want the t... | 3 | 1,271 |
Laravel How To Update Nested createMany | <p>Been having a hard time on figuring out how to implement updating records on a nested createMany based on the store method. I have these models and relations:</p>
<p><strong>User Model:</strong></p>
<pre><code>class User extends Model
{
public function orders() {
return $this->hasMany(Order::class);
... | 3 | 1,055 |
Flutter `itemBuilder` not called when controller.rx data changed [ListItem.builder] [GetX] | <p>This is a follow up question to the <code>Obx/Streams version</code> of the answer provided in the Question here:</p>
<p><a href="https://stackoverflow.com/a/65745977/474330">https://stackoverflow.com/a/65745977/474330</a></p>
<p>I am using similar structure, but inside my <code>itemBuilder</code> I am calling a con... | 3 | 1,298 |
Creating an object with hooks as property | <p><strong>Description:</strong> <br/>
I am using Radix-UI and I want to create a service for creating toasts:
<a href="https://www.radix-ui.com/docs/primitives/components/toast" rel="nofollow noreferrer">https://www.radix-ui.com/docs/primitives/components/toast</a></p>
<p><strong>Problem:</strong><br/>
I am unable to ... | 3 | 2,162 |
Why does my panorama stitch black images instead of actual images? | <p>I want to stitch some images(identical resolution) into a panorama using openCV(without using the Stitcher class). I tried the algorithm <a href="https://stackoverflow.com/questions/24563173/stitch-multiple-images-using-opencv-python">described here</a>, but instead of the desired panorama i get an image that is mad... | 3 | 1,080 |
How to pass a search term back into an ajax-generated div? | <p>Entering text to a textbox is firing an ajaxRequest to look up the Db for results. Those results should be outputted in a list, beneath the textbox and when one of the possible matches is clicked upon, its value is moved into the textbox for submission via the submit button. </p>
<p>The submit button then fires to ... | 3 | 1,950 |
How to make signature in the middle of the text where the cursor is placed? | <p><a href="https://i.stack.imgur.com/9Dt9P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Dt9P.png" alt="I made a functionality for creating a signature in react-CKEditor but I am able to make a signature only after the end of the text if text exits. I cant able to make the signature based on the ... | 3 | 10,352 |
Unable to load a form in codeigniter from a controller | <p>I have a simple sign up/Login registration project in php/codeigniter</p>
<p>and I always get this particular error while clicking on the Sign in or the Register button </p>
<p><strong>Error: "The requested URL /CI/user/login was not found on this server."</strong></p>
<p>Here is the Controller file user.php</p>
... | 3 | 2,364 |
Repeating UIFont and UIColor on Scroll UITableView | <p>I`m having a problem and I created a simple mvp to show for you guys.</p>
<p>When I scroll on the table other index gets the color and the font.</p>
<p><strong>Exemple:</strong></p>
<pre><code>import UIKit
class ViewController: UIViewController,UITableViewDataSource,UITableViewDelegate{
var texto: [String] =... | 3 | 1,171 |
getting single row query by name | <p>I have a problem getting single row query by name. Here is my code in <em>main.java</em></p>
<pre><code> String companies=company.getText().toString();
Cursor port=myDb.getRowLasttran(companies);
</code></pre>
<p>in String companies i have value "Ace Development Bank Ltd"</p>
<p>and in my <em>Dbaadapter.java</e... | 3 | 1,865 |
Angular CDK: Make cdkDropList items draggable? | <p>Recently, I'm working on a scenario which allow user can drag item from one container into drop zone to store items. It would be a way like draw.io does.</p>
<p>However, the items in cdkDropList is sticky. It would not be able to move around.</p>
<pre><code><div class="left-panel">
<h6>... | 3 | 1,074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.