title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SpringBoot/Swagger: Correct the classpath of your application so that it contains compatible versions
<p>i am getting the following error after i start my spring boot application including swagger:</p> <p>Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.hateoas.server.core.DelegatingLinkRelationProvider and org.springframework.plugin.core.PluginRegistr...
3
1,575
UWP C# How to Use Routine From Different Page
<p>I am intending to write a UWP with <code>navigationview</code> where I use <code>rs485</code> to communicate to some devices.</p> <p>I have a <code>DS3231 RTC</code>, which I have made it work previously in earlier app.</p> <p>My <code>SettingPage</code> is where I configure the time, when I set the time, i ran into...
3
3,432
Verify Python socket is encrypted
<p>I've made a TCP echo client/server with bits from <a href="https://pymotw.com/2/socket/tcp.html" rel="nofollow">here</a> and <a href="http://carlo-hamalainen.net/blog/2013/1/24/python-ssl-socket-echo-test-with-self-signed-certificate" rel="nofollow">here</a>. How can I verify that the socket is encrypted and cannot ...
3
1,077
HTML5 Itunes drag drop app look alike
<p>I want to make custom <strong>WEBSITE</strong> menu that <strong>looks like</strong> Itunes when moving apps in iphone (something like this <a href="https://www.youtube.com/watch?v=ySx-rLJ0Ng0" rel="nofollow">https://www.youtube.com/watch?v=ySx-rLJ0Ng0</a>). basically I'll have 1 list as source and 1 grid as destina...
3
1,712
Looking for a .NET ObjectReflector that will help me simplify reflecting an object
<p>I've got a class that receives an object from other unknown modules and so I have to do reflection on the object to get its data, call its methods, etc.</p> <p>To simplify the code to reflect on the object, I'm building this class:</p> <pre><code>using System; namespace ApplicationCore.Helpers { class ObjectR...
3
1,082
How can I stop printing a string at a varying index?
<p>As a starter project, I'm making a code that writes out digits of pi. The code prompts for an int, and prints that many decimal places of pi, which uses a predetermined string. The problem is that each individual digit is on a separate line, like this:</p> <blockquote> <p>3<br> .<br> 1<br> 4<br> 1<br> 5...
3
2,937
graph beta /groups/$id/channels Authorization has been denied for this request
<p>i want to get all channels from an azure group. Querying the groups works and return all azure groups. however, query the group channels result in an error</p> <pre><code>Authorization has been denied for this request </code></pre> <p>Code:</p> <pre><code>$appID = "f9....22" $appSecret="FH..8=" $tokenAuthURI = "h...
3
1,271
SQL with no matches found causes MsgBox
<p>My form takes the data the user entered, constructs a SQL statement and returns the results. I would like to have a message box pop up when there are no matches found.</p> <p>My current code/idea:</p> <pre><code>If qdf.sql = 0 Then MsgBox "No clients matching your information." &amp; _ vbCrLf &amp;...
3
1,349
Web cam image capture
<p>I am trying to write an application to capture an image from a webcam. I have written a C++ console application and whilst I can get an image, I have difficulty setting the resolution, I want to get higher resolution images and would like to be able to get 4k from a logitech brio webcam for example. On Windows 10 wi...
3
1,743
How can I insert the array value into my table by using Laravel Eloquent ORM?
<p>Below is the array. I would be like to insert the array into my "sells" table by Laravel eloquent ORM system. but </p> <pre><code>$data = [ 'products' =&gt; [ 'product_id' =&gt; ['1', '3', '4'], 'quantity' =&gt; ['5', '5', '4'], 'product_di...
3
1,183
Railo to talk to XMPP/Jabber/Google Talk from within Railo?
<p>I have implemented ColdFusion XMPP Event Gateway in coldfusion server 10 and it is working fine with google talk. The same thing i want to implement in Railo server but no luck to find something.</p> <p>Please suggest something to "Railo to talk to XMPP/Jabber/Google Talk from within Railo"</p> <p><strong>Used cfc...
3
1,820
Geting error while posting data to different domain
<p>I am developing a website in which I need to post data to create a record.My server side code is on different domain. I need to call the method from that domain. My ajax code to call that method is as- </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="se...
3
3,371
Rails Engines with problems in Foreign keys
<p>I'm developing a rails engine and this is my <code>gem.gemspec</code></p> <hr> <pre><code>s.required_ruby_version = '&gt;= 2.0.0' s.add_dependency 'rails', '&gt;= 4.2.0' s.add_dependency 'enumerate_it' s.add_dependency 'slim-rails' s.add_dependency 'bootstrap-sass' s.add_dependency 'jquery-rails' s.add_developme...
3
3,594
Increment the name attribute of each input but keep radio buttons grouped together after using jQuery clone
<p>I have several different types of input that I am cloning using jQuery clone. Can the number at the beginning of the name attribute be incremented for each input when they are cloned? I have been trying to figure this out while keeping the Radio button's name's the same after each increment so that they remain gro...
3
1,627
Will there be a memory leak in this Linked list
<p>Hi Currently i have been honing my skill in the data structure so that i can become a good Game Developer, i am Learning Linked list and made a Linked list Program with Insertion ,Deletion and Recursive insertion and Reversing a Linked list Can you Guys tell me am i here Clearing the assigned memory Created with the...
3
2,008
terraform get isn't compatible with git ssh
<p>I want to load module from gitlab through ssh. I have configured ssh correctly so that "git push" with ssh works</p> <p>module is constructed with the following code</p> <pre><code>module "elasticsearch_security_group" { source = "git::ssh://git@ssh.git.tech.rz.cb.de:Username/tf-module-aws-security-group.git" ...
3
1,264
BLUETOOTH_CONNECT permission
<p>I have a problem, I try to activate Bluetooth but first I check for BLUETOOTH_CONNECT runtime permission (required by the BluetoothAdapter.enable()). Every time I request the permission is denied without displaying any dialog box, I tryed to request another permission and it works fine (displays dialog box with opt...
3
1,749
C# - Determine which class an object should use on instantiation?
<p>I have 2 classes: Entity and Control.</p> <p><strong>Entity:</strong> </p> <pre><code>public class Entity { public float Rotate {get; private set;} readonly Control m_Control public Entity(float rot) { Rotate = rot; m_control = new Control(); } public void Update(float time) {...
3
1,327
Global Variable not affected in JQuery Ajax Success Function
<p>I have a recursive function that populates a list until the bottom of the screen is reached, then stops. </p> <p>Each time the recursive function is called, the "start" global variable increments by the limit (5). For example, after 3 times, the "start" variable should be 15. This shows up correctly in the conso...
3
1,900
How to find size of largest subset of a sub-sequence equal to a sum
<p>I have <a href="https://www.hackerearth.com/challenge/college/hbc-2018-semi-finals/algorithm/d03a689c4cec4ec393a6e5df79e8b322/" rel="nofollow noreferrer">this</a> problem from hackerearth</p> <blockquote> <p>Given an array of N integers, C cards and S sum. Each card can be used either to increment or decrement ...
3
1,797
Is there a way to specify the domain of a variable when defining it using an array?
<p>My program reads the constraints from a smt2 file, and all the variables are defined as an array. For example</p> <pre><code>(declare-fun x () (Array (_ BitVec 32) (_ BitVec 8) ) ) (declare-fun y () (Array (_ BitVec 32) (_ BitVec 8) ) ) (assert (bvslt (concat (select x (_ bv3 32) ) (concat (select x (_ bv2 32)...
3
1,837
Android facebook force logout
<p>I wan't to force logout from facebook when I exit the application so I have to login every time I start the application. If that is not possible I need help with checking if a user is already logged in.</p> <pre><code> private FacebookCallback&lt;LoginResult&gt; mCallback = new FacebookCallback&lt;LoginResult&gt;()...
3
1,645
Jquery - Highlight all divs with same class when link clicked
<p>I am trying to setup something using jQuery which will allow me to select a color from a list of links and have it highlight all divs that have this color as a class. This is what I have so far...</p> <pre><code>&lt;ul class="mybuttons"&gt; &lt;li&gt;&lt;a href="#" class="link red"&gt;Red&lt;/a&gt;&lt;/li&gt; ...
3
1,191
display echo msg within same div tag
<p>I am making contact form which sends form data into database as well as into mail(both working fine) but when submitting form, I want to display thank you message within .mail_middle class and hide the form. </p> <p>Right now I am getting message "Thank u for your comment!" instead of "Thank you for quote request" ...
3
1,176
Spring Boot QueryDSL BooleanExpression - "OR" condition depending on the value in table
<p>I use Spring Boot and QueryDSL to combine a sql query and predicate. The problem is that I have to create a predicate to fetch data from table based on email BUT:</p> <ol> <li>email can be in Freight.sender.email</li> <li>OR in Freight.message.senderAddress</li> </ol> <p>where Freight, Message, Sender are of course ...
3
2,038
Adding a language field to the login template in Django
<p>I have to start a project in Django, which should be able to translate in three languages (Spanish, English and Italian).</p> <p>I have the 3 languages defined within the settings.py file, as it looks:</p> <pre><code>LANGUAGES = [ ('es', _('Español')), ('en', _('English')), ('it', _('Italiano')), ] </cod...
3
2,047
video chat application on node.js with webRTC( socket.io) works fine on localhost but gives error on network
<p>I am making a video chat application on node.js with WebRTC(socket.io). This application runs fine on localhost but gives error while running on my network with my IP address. Also, I tried it on Heroku but error remained same</p> <hr /> <p>Only Top of my server looks like</p> <pre><code> const express = require(&...
3
1,587
How to ouput the log of Apache Mina SSHD?
<p>I am building a demo base on Apache Mina SSHD, and i import log4j by maven and config log4j,the configuration of log4j like this:</p> <pre><code># priority :debug&lt;info&lt;warn&lt;error </code></pre> <h1>you cannot specify every priority with different file for log4j</h1> <p>log4j.rootLogger=debug,stdout,info,...
3
1,314
Endless circular redirect with IdentityServer4
<p>I'm developing multi-tenant ASP.NET MVC application using <strong>Finbuckle.Multitenant</strong> and <strong>IdentityServer4</strong> (using standard classes and controllers from their tutorials). My app uses route strategy for tenants (<a href="https://host/tenant1/controller/action" rel="nofollow noreferrer">https...
3
2,250
Prepared statements and class inheritance in PHP
<p>I have a problem when doing a prepared statement in PHP. My main goal is to create two classes, the first one for connecting (Conexion) to the server and the database and the second one to do prepared statements (RealizarConsultas).</p> <p>I have decided that the class used to do statements should inherit from "Con...
3
1,102
Google Drive can't access data from another device
<p>Ok I have two device both have same gmail account and both have a same app but signed with different keys. SHA1 Keys are configured in Google console. </p> <p>I am uploading some text files from one device and want to import these files in another device. Now I can upload the files and also get the files in same de...
3
1,030
React widget based api async data fetch - Invalid hook call. Hooks can only be called inside
<p>new at React and i am trying to build a widget based dashboard. But i cant get pass this error. No matter what i try and how i try go get the api data for a widget just added to dashboard by the user.</p> <p>I wanted to make the Api requests in a separate file &quot;StatsService.js&quot; and fetch data in &quot;Layo...
3
4,890
WPF XAML Local (child) styles are being overwritten. Why?
<p>I wrote a simple dialog (XAML/WPF) and a test app and the dialog looks fine. In particular the buttons in the ListView have rounded corners. I've posted a picture and the code below. The problem? When I use this dialog inside a much larger program (codebase too large to share), <strong>the rounded corners</strong> a...
3
4,669
How to detect and run a loading function when scrolled to the bottom in customScrollView
<p>I am trying to run a load more when the user scrolls to the buttom of the list inside a customScrollView.</p> <p>I am doing a some sorting with sticky headers so had to use slivers with a <a href="https://pub.dev/packages/flutter_sticky_header" rel="nofollow noreferrer">flutter_sticky_header</a> package.</p> <p>this...
3
1,431
How to save data from dynamically created text box to database
<pre><code>&lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;div&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;asp:GridView runat="server" ID="gv" AutoGenerateColumns="false" class="table table-striped table-advance table-hover" BorderWidth="2px"&gt; &lt;Columns&gt; ...
3
4,878
Named parameters in Scala annotation
<p>I have a Scala annotation with parameters, some with default values:</p> <pre><code>case class A(x: String, y: Option[String] = None, z: Option[Boolean] = None) extends scala.annotation.StaticAnnotation </code></pre> <p>The goal is to annotate classes with this, and collect annotation parameters at runtime.</p> ...
3
3,334
How to prevent duplicate entry of user id and also rating field when both are already exist in a row?
<p>I am facing a problem in PHP star rating when the user logged in and given a rating in a product, the data is entered into the table, in that time I also update the ratings, but the problem is when I logged out and then again enter using my session id, the data row is not updated,rather it will the product rating ag...
3
1,560
Approaches for reducing rate of resource file growth as dialogs are enhanced/extended
<p>As part of extending the functionality of a dialog in an old Windows WinAPI GUI application written in C, I was faced with once more adding multiple check boxes for each line of a six line data entry dialog. I just could not bear the hassle of repetitive resource file and source code file changes and decided to borr...
3
4,174
condition check for null field on radio button selection
<p><a href="https://i.stack.imgur.com/pnO4W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pnO4W.jpg" alt="enter image description here"></a>I have a sign up page where i have <strong>two radio buttons</strong> I am <strong>a company</strong> or I am <strong>an individual.</strong> If i selects a co...
3
13,320
Asynctask doesn't stop after cancelling it in doInBackground
<p>I'm trying to code a progress bar, that increases depending on a timer (starts at 0 and goes up to a certain time I choose). When I click on a button, the progress bar decreases (decreases from values[0] - 5). When the progress bar value is 30, I want to stop the progressbar, so stop asynctask, and restart it so the...
3
1,478
NSURLSesssionDelegate NSURLSessionDataDelegate functions not triggering with dataTask
<p>I have a class to measure the bandwidth of the network using <a href="https://stackoverflow.com/a/14584397/3401923">this answer</a>. I tried to rewrite the class in Swift using the same functions:</p> <pre><code>class BandwidthChecker : NSObject, NSURLSessionDelegate, NSURLSessionDataDelegate { var startTime = NSD...
3
1,346
Android listview doesn't scroll in emulator mode
<p>I cannot get my listview to scroll in emulator mode in Android. I try using the mouse wheel and the pagedown key but nothing works. Here is my layout below. The device target uses the Google APIs. The listview is dynamically populated from server data. Any help is appreciated.</p> <pre><code> &lt;LinearLayout ...
3
1,556
Fetch all records before a particular event in SQL
<p>I have a table like this <code>DATA</code></p> <pre><code>+--------+--------+----------+------+ | TranID | CustID | TransSeq | Type | +--------+--------+----------+------+ | 1 | 100 | 1 | A | | 2 | 100 | 2 | A | | 3 | 100 | 3 | B | | 4 | 200 | 1 |...
3
1,266
Android - Changing colours in override methods
<p>I'm making a drawing app. I have two brushes <code>(img_brush and img_brush2)</code>. The initial colour is set to black in <code>PaintView()</code> <code>(on the line 'this.colour = Color.BLACK;')</code>. What I want to do is set different colours for both brushes in the override '<code>(onClick</code>) methods, fo...
3
1,493
Rails deployment to staging using capistrano generates the following error
<p>I get the following when I try to deploy to server using capistrano gem from my local machine(MAC) {Rails app}. I am new to rails</p> <pre><code>user-mbp:xp user$ cap staging deploy Server password: ******** DEBUG [c6110f69] Running /usr/bin/env [ -d ~/.rbenv ] as deployer@server.com DEBUG [c6110f69] Command: [ -d...
3
1,293
Sending data from android phone to PC by bluetooth using C#
<p>I haven't asked many questions on here so please forgive me as I am still learning all the conventions of posting. </p> <p>I am trying to build an Android mobile app, that will allow the user to control a PC mouse via the touch screen over bluetooth. The plan is to have a C# program on the PC which will recognize t...
3
2,164
MYSQL Stored procedure throwing Error [1644] [45000]: Variable MESSAGE_TEXT can't be set to the value of NULL
<p>Every time i execute mysql stored procedure i getting <strong>SQL Error [1644] [45000]: Variable 'MESSAGE_TEXT' can't be set to the value of 'NULL'</strong></p> <p>To understand what exact i tried all the option but no luck</p> <p>Issue :</p> <ol> <li>Execute stored procedure first time - Success</li> <li>Execute st...
3
4,795
How to cancel a scheduled mail in SendGrid in nodeJS?
<p>I'm working on a React app for a user to create reminders, and when the reminder is created, an e-mail will be sent to the user. my problem is that if the usur set the date to a later time and then wants to delete the reminder, I need the mail to be cancelled. I looked through sendgrid docs, and just couldn't make i...
3
1,123
Inputting/overwriting information in arrays with PHP
<p>I have a small PHP page which takes data from MySQL and displays it via PHP in a monthly calendar. I'm having trouble arranging the data properly within an array to get the desired output.</p> <p>First, I will describe what I would like to happen:</p> <ul> <li>students come to classes on regular days of the week</...
3
2,420
resizeQuality function of dropzone.js is not working
<p>I am uploading multiple images but before uploading i want to compress them all at client side and then want to upload to the server for that i am using dropzone.js (programmatically) as below but the function <code>resizeQuality</code> is not working. All images are uploading with original size.</p> <p>Where i am ...
3
1,124
How to get an effective ScaleTransform factor in WPF?
<p><strong>UPDATED:</strong> Memory leak eliminated</p> <p>GDI <code>System.Drawing</code> is a way faster than WPF <code>DrawingContext</code> in many cases, so I extended <code>FrameworkElement</code> with the following overload of <code>OnRender</code>:</p> <pre><code>protected abstract void OnRender(Graphics grap...
3
1,416
missing data from mysql database
<p>I have a mysql database that is used by a php script to display data... the problem i have is, at what appears to be random occurrences it misses results and I can't see a pattern to establish why it might be doing it...</p> <p>all the data appears to be fine when i check the database.</p> <p>here is my initial se...
3
2,481
How can i do an ng-repeat by a given select option value
<p>So my problem is as follows, i have this HTML</p> <pre><code> &lt;div class="col-sm-4"&gt; &lt;p&gt;&lt;span&gt;Teste A/B:&lt;/span&gt;&lt;/p&gt; &lt;label class="label-radio"&gt; &lt;input type="radio" class="radio" name="ab-test" value="true" ng-model="isTestAvailabl...
3
1,109
Why is an if condition totally useless in an onPostExecute() in AyncTasks?
<p>I have an AsyncTask class in my application but what I noticed is that whatever the result passed on to to the onPostExecute function is, it will still direct the application to go to the else{} even though it perfectly fits the if statement. Why is that happening?</p> <p>Here is the AsyncTask I am running :</p> <...
3
1,188
std::variant of std::string inside any class in constexpr context fails to compile
<p>The following code</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;optional&gt; #include &lt;string&gt; #include &lt;variant&gt; constexpr bool USE_VARIANT = 1; using T = std::conditional_t&lt;USE_VARIANT, std::variant&lt;std::string&gt;, std::string&gt;; struct S { T t; }; constexpr int fu...
3
3,781
No authorization token was found - Express-JWT and Auth0
<p>I'm working on integrating Auth0 into a MERN Stack app. The flow should look like this:</p> <ol> <li>User clicks the login button which triggers Auth0Lock.show()</li> <li>User fills in their credentials and clicks the submit button</li> <li>The callback URL of the API is hit which logs the user in and redirects the...
3
1,129
MVC EF Setting up relationships
<p>I'm trying to map the following:</p> <p>User to Admin 1 to 0..1 relationship. One user can be one kind of admin status or no admin status</p> <p>Users can open multiple tickets but a ticket can only be assigned to one User. User to Ticket 1 to Many </p> <p>Admin (A user with admin status) has tickets assigned to ...
3
3,506
Jqgrid filter is not working with Dropdownlist in Asp.net
<p>hii Guys !! I implemented filter with dropdownlist in jqgrid but grid is not showing the values of the column on which i added filter neither is filtering the data..</p> <p>Here is my code...</p> <pre><code>&lt;script type="text/javascript"&gt; var categoriesStr = ":All;1:vikas;2:Ankur"; $(f...
3
1,459
Jquery PrettyPhoto Submit button
<p>I am using a Jquery lightbox solution called Pretty Photo. I am opening up a form in the light box and having the user click the submit button that sends an email. When the button is clicked, I receive the email fine, but there is no information in it. Can someone please help?My code is below for the ASPX and ASPX.C...
3
2,128
Properly access ChangeNotifierProvider from Consumer Flutter
<p>I can't access my <code>ChangeNotifierProvider&lt;QuestionProvider&gt;</code> from <code>Consumer&lt;QuestionProvider&gt;</code> but I don't understand why, it's defined deeper in the widget tree compared to its provider.</p> <p>I defined my provider here :</p> <pre><code>body: GestureDetector( onTap: () =&g...
3
1,072
NamedPipe WriteFile blocked (C++ server C# client )
<p>I created NamedPipe C++ server and C# client. The Client and server successfully connected and read awaiting for data at both side.</p> <p>Now I want to send data from server to client but server is not able to write data due <strong>WriteFile</strong> API blocked. </p> <p>Can you Help me where i am missing? Or ...
3
2,057
Many active QTimers timekeeping causing GUI lag
<p>I have created a simple app for monitoring the connected devices. This app shows the connection status of 25 client devices. </p> <p>This app implements a TCP server and listens at port 7777 and as many as 25 clients can be connected to this application. If no data is received from a client for 30 seconds, the app ...
3
4,260
How to make mPDF wait for my JS to finish
<p>I am working with mPDF and Highchart. Both are working, but sometimes the PDF is created before the chart has finished loading (the chart tooks about 2 secods to load). I was wondering if it is possible to delay the mPDF execution, so it waits for the chart.</p> <pre><code>var chart = new Highcharts.Chart({ chart...
3
1,057
Socket Programming Error in Connect
<p>I am trying to do Socket programming. I've google and looked at problems like mine. However, I can't see to figure out my error.</p> <p>Whenever I run my code, I get an error in <code>connect()</code> in <code>main</code> in <code>client.c</code>. The error is <code>invalid argument</code>. </p> <p><strong>Server....
3
10,258
Batch processing versus Single row transactions for atomicity
<p>I have two tables; one to hold records of reports generated, and the other to update a flag that the reports have been generated. This script will be scheduled, and the SQLs have been implemented. However, there are two implementations of the script:</p> <p>Case 1:</p> <pre><code>- Insert all the records, then - U...
3
1,310
Issue with Producer Consumer in Java - Missing synchronization?
<p>I guess I have not used synchronization properly. I get the below output .</p> <p>I have consciously chosen not to use BlockingQueue OR java 5 concurrency features. I had written this so that I could learn synchronization and some basics.</p> <blockquote> <p>Producer Thread: PRODUCER-1 adding item 0-Name-0 to q...
3
2,006
Signature Mismatch ocaml
<p>First the code: </p> <pre><code>module type ENV_CORE = sig type variable type 'a environment exception Unbound_variable val empty : unit -&gt; variable val bind : 'a -&gt; 'a environment -&gt; 'a environment val unbind : variable -&gt; 'a -&gt; 'a environment -&gt; 'a environment val is_bound : variable -&gt; 'a ...
3
1,026
Creating a chore wheel for a household
<p>Kind of a goofy problem, but an interesting one, one that should be, in my mind, a "solved problem". I'm mostly just interested in the algorithm, I can handle the implementation myself.</p> <p>The specs are:</p> <ul> <li><p>Assume a house of n people.</p></li> <li><p>Assume m chores.</p></li> <li><p>For now, for s...
3
1,033
SVG <animateTransform> is not loading when i use as a background image
<p>Hi here I added SVG as a background image the code inside the path which is <code>&lt;animateTransform&gt;</code> is not loading so, the SVG animation is not working. what might be the issue can anyone suggest to me. <a href="https://i.stack.imgur.com/0IMrO.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
3
1,305
Why don't discriminated unions in typescript work in this way?
<p>Why can't typescript discriminate based on a common property like this? After reading <a href="https://www.typescriptlang.org/docs/handbook/advanced-types.html" rel="nofollow noreferrer">the docs</a> I thought this would work.</p> <p>Heres a <a href="https://www.typescriptlang.org/play/index.html#src=type%20Mammal%...
3
1,192
How to calculate temperature departure from normal using a 30 year average - R 4.0.0
<p>I have added my entire code below, so what have I verified is working:</p> <ol> <li><p>I know for a fact I can download any climate station from the NCDC website for the specific time range I want. On a side note, if you can look at my 'bind_rows()` command and make it less messy, I could not find a better way to do...
3
4,379
Why does the file add white space when I add an image to my file?
<p>I've been working on a website using Bootstrap 4 where there are three images inside a .row div. The problem I'm having, however, is that I want all the images to have the same height, so I created my own class where I set <code>height: 20%</code> and <code>width: auto</code> The images look exactly how I want the...
3
4,384
How to get the value from the return function and send it to the html element
<p>I have been working on a code to save the coordinates of bounding box over the image. I was able to retrieve the coordinates from the bounding box. But what I like to do is place them individually under each HTML element.</p> <p>The image below shows the coordinates collected from the bounding box:</p> <p><a href="h...
3
1,113
Error learning with perceptron 1 Layer
<p>I need help with my perceptron 1 layer, I use a function sigmoide to transfert function and the algorithme back propagate for the learning. I want to do a simple neural network for compute A and B(logical and). My problem is after the learning i put 2 value (for exemple 0 and 0) and my IA give me always 0.99. I see ...
3
2,328
How to write this iteration?
<p>I want estimate the strategy I make: buy- where the K_Class is 1 sell- where the K_Class is 0 all prices is refered to Close Column at the time</p> <p>for example: Suppose that I have the amount of money 10000, the first time I buy is 2017/03/13, the first time I sell is 2017/03/17. The second time I buy is 2017/0...
3
1,686
Getting error while iterating through a list of items and display it on page in Ionic 3, Firebase and Angular
<p>I am getting following error while iterating through a list of items and displaying it on page in Ionic 3, Firebase and Angular.</p> <p>The connection to the DB is working fine as I am able to add todo items into the DB successfully. The listing of items on the page is the problem.</p> <p><strong>Error:</strong></...
3
1,865
JS OnMouseOver-Event (DIV2) change BackgroundImage (DIV1)
<p>i got a fullscreen-bg div which in my case got the ID #background-change.</p> <p>In that fullscreen-bg i got 3 Divs called .fullscreen-column-1, .fullscreen-column-2 etc.</p> <p>now i want to change the background-image of #background-change while the mouseoverevent is called on the columns.</p> <p>My code looks ...
3
2,098
How can I show labels inside stacked charts (bar-line) with chartjs?
<p>I am working from the backend side (express in nodejs) to generate pdf reports using puppeteer, and to generate the html I am using handlebars, in one of the reports I am adding a chart using chartjs through cdn.jsdeliver.</p> <p>What I do is that I generate the html and then I pass it to it with the help of handleb...
3
2,428
vscode - ofstream not creating a new file, .exe works normally
<p>I cannot create or read files using vscode with fstream. Program run from .exe works normally (creates a file empty.txt). main.cpp:</p> <pre><code>#include &lt;fstream&gt; int main() { std::ofstream file(&quot;empty.txt&quot;); } </code></pre> <p>The above program does not create a file when run with vscode.</...
3
1,824
TicTacToe how to count wins, counter - help needed
<p>I'm stuck. What I need is counter to wins values. I did tictactoe by this tutorial : <a href="http://hubpages.com/technology/tictactoe" rel="nofollow noreferrer">http://hubpages.com/technology/tictactoe</a>. I've complete it and now I'd like to add something by myself, and it's just a counter of how many times someo...
3
3,730
Using Square API, how do I get my orders to appear in the Sandbox Dashboard?
<p>The following code seems to work in producing an order. In the API explorer, I can Batch Retrieve Order by that order ID and I get the right response but It doesn't show up in my Sandbox dashboard. I'm definitely using my sandbox credentials and my env has PROD set to false.</p> <p>How do I get orders to appear in ...
3
2,688
Python Django: Minimal Django + Cassandra local application
<p>I am trying to put together a minimum Django application that uses Cassandra as the database. </p> <p>Here is what I tried: </p> <ol> <li>Started a brand new Django project in PyCharm. Checked that <code>python manage.py runserver</code> works as expected. </li> <li>Installed Cassandra using the instructions <a...
3
2,359
Checkbox asp.net c# Grid
<p>I currently have a Data Grid that </p> <pre><code>"SELECT * FROM table WHERE Hentet = 'nej';" </code></pre> <p>under that grid I have a exact copy of it, but </p> <pre><code>"WHERE Hentet = 'Ja';" </code></pre> <p>as you will see in the code.</p> <p>Both grid's work fine and get the data they are supposed to ge...
3
2,482
Random images getting color changes in listview
<p>My activity is a <strong>listView</strong>, which I am inflating using <strong>MyAdapter</strong> which extends <strong>BaseAdapter</strong>. My list view shows multiple images and I want to add a color filter effect,i.e. a change in color, to the images which have been already clicked.</p> <p>At first all the imag...
3
1,266
Is it possible to write windows and directx code with language extensions off?
<p>I've got extensions off on my project but have to turn them on for any cpp file that includes directx or windows headers. </p> <p>If I turn extensions off on those cpp files it won't compile. Is there a way to get this to work?</p> <p>With language extensions on it compiles fine.</p> <p>I'm using VS2012 express...
3
1,167
Cakephp 2.0 form helper issue
<p>I am new to CakePHP 2.0. It has too many changes from its previous version. I have many problems with implementing basic functionality in CakePHP 2.0. I did the same code in CakePHP 1.3 and 2.0 but the output is different so it creates a problem for me.</p> <p>I have created one form as shown below:</p> <pre><code...
3
1,404
Working with 2 UINavigationControllers inside a ViewController as Child causes only 1 to respond, the other does not respond
<p>I'm working with a project where I start with a ContainerViewController having 2 controllers added as a child:</p> <pre><code>func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let scene = (scene as? UIWindowScene) else { return } ...
3
1,037
CardView and other elements are not being displayed in my xml file
<p>I am using an <code>AppCompatActivity</code> and at the moment, I am trying to add a navigational drawer to the toolbar.</p> <p>Problem is, now the cardview is not being displayed and the navigational drawer is also not working.</p> <p>This is my code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &...
3
1,065
R read data from a txt space delimited file with quoted text
<p>I'm trying to load a dataset into R Studio, where the dataset itself is space-delimited, but it also contains spaces in quoted text like in csv files. Here is the <code>head</code> of the data:</p> <pre><code>DOC_ID LABEL RATING VERIFIED_PURCHASE PRODUCT_CATEGORY PRODUCT_ID PRODUCT_TITLE REVIEW_TITLE ...
3
1,463
OpenGL evaluating a plane
<p>I want to evaluate a plane using 4 control points which they are at four corner of the plane. so I have declared them like this :</p> <pre><code>GLfloat ctrlpoints[4][3] = { { -3, 0, 3 }, { 3, 0, 3 }, { 3, 0, -3 }, { -3, 0, -3 } }; </code></pre> <p>Then I had used this three functions to do evaluation process ...
3
1,340
bar chart with multiple bars and 1 label
<p><a href="https://i.stack.imgur.com/UbdCx.jpg" rel="nofollow noreferrer">Sample grouped stacked bar chart</a></p> <p>Above is a sample chart. The colored parts of the bars are tickets opened. The diamond part of the bars are tickets closed. I only want 1 label for tickets closed.</p> <pre><code>var ctxMonthly = ...
3
3,613
Tensorflow: fill tensor inside a function
<p>What I'm trying to define is the following idea:</p> <p>Consider whe have these tensors</p> <pre class="lang-py prettyprint-override"><code>a = tf.constant([1., 1.5, 1.2]) # tensor with shape [3,] b = tf.constant([1., 2., 3.]) # "" c = tf.constant([3., 0., 6.]) # "" t = tf.constant([0.5, 0.6, 0.7, 2., 4., 5.,...
3
1,339
My Email Design Isn't Responding to Mobile Devices
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;&lt;html&gt;&lt...
3
10,100
OpenSSL Encryption in Debug and Release
<p>I have the following code (modified <code>ik</code> and <code>iv</code>, of course):</p> <pre><code>#include "openssl/evp.h" #include &lt;iostream&gt; #include &lt;sstream&gt; #include &lt;string&gt; using std::cout; using std::endl; using std::string; using std::ostringstream; void Encryption(bool encrypt, cons...
3
1,498
ShowDialog Widget isn't return on (.CatchError)
<p>I am creating a simple Shop app where I implement logic of CircularProgressIndicator() When user add new product. And beside that to show AlertDialog When some error occurred. But the problem is Whenever I pressed Okay button on AlertDialog instead of going back to Products page the CircularProgressIndicator() keeps...
3
8,217
How to get data from a widget to the model in flutter?
<p>I am new to flutter. I am working on a simple application where you select a date from the calendar and below you see the information of what happened on that day.</p> <p>I only have one screen:</p> <ul> <li>Above is a widget containing a DateRangePicker (<a href="https://pub.dev/packages/syncfusion_flutter_datepick...
3
1,429
How to remove the status row in data grid table?
<p>Goal:<br /> Not displaying the status row in the bottom.</p> <p>Problem:<br /> How do you do it?</p> <p><a href="https://i.stack.imgur.com/jVuOC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jVuOC.png" alt="enter image description here" /></a></p> <p>CodeSandbox:<br /> <a href="https://codesandb...
3
1,951
Append data to proxied response in Actix-web
<p>I would like to append user's request data to peroxided response in <code>actix-web</code>, but <code>type mismatch resolving</code> error will happend.</p> <p>I think it's about rust futures but I don't have idea about this problem and how can I fix it.</p> <p>Sample Code :</p> <pre><code>use actix_web::*; use f...
3
1,633
Using the stack trace from IDE to correct failing app
<p>I request help making use of the following stack trace. Although this is a Groovy/Grails application, it still boils down to Java. In working along with the book 'Grails in action', I built an application in G/G, Grails v1.3.7. I imported this into the 'Spring Source Tools Suite', which uses Grails v2.2.3. It compil...
3
1,479
Controllers Not Mapping on WebApplicationFactory for TestClient .NET 6
<p>So I'm upgrading a bunch of our APIs and migrating them to the new shiny top-level statement style of startup.</p> <p>These projects all also have integration tests that rely upon a <code>WebApplicationFactory</code> to create a <code>TestClient</code> for them. For the most-part, retargetting that at <code>Program<...
3
1,997