title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Uncaught SyntaxError: Unexpected token '<' when navigate to route with 2 or more path element after ci deployment
<p>After ci deployment, I try to navigate to '/records/:id' or other routes with 2 or more path elements and will get this error in the console. This error never comes out when running in local.</p> <p><code>Uncaught SyntaxError: Unexpected token '&lt;'</code></p> <p>I had used <strong>webpack</strong> for configuratio...
3
1,381
Hidden Markov Model, Clarification on a Previous Implementation
<p>I'm experimenting with hidden markov models. I really have no prior experience working with them so I decided to check out a few examples of implementations.</p> <p>Looking at the below implementation, I was a bit confused about the purpose of the Baum-Welch algorithm (found under the train method) taking a variabl...
3
1,622
Zip_Longest Returning One Result
<p>in my confirmAck function I am trying to use the file_date_l list in my SQL query. The thing is its only returning one &quot;file_date_l&quot;. When i do a seperate for loop that is not in my zip_longest then it returns 3 or 4 results. Why is it that when i use it with zip_longest it returns only one query?</p> <p>r...
3
1,172
What line is causing the 'operator==' error
<p>This program allows for a user to add an items storage location and search for an item by name to find it later. I am getting a weird error when I try and run my code. Everything was working fine until I added in a <code>search</code> function for the vector. Any ideas on what is going wrong since I don't see a lin...
3
1,711
SUMIFS formulas are somewhat slow
<p>I am trying to create some sumifs formulas. The raw data has three columns: one for Batch ID, the second for Dates and the third for Amounts. I have used a helper column to get the month and the year in column O (to match them with the headers in another sheet) Here's my attempt</p> <pre><code>Sub Test() Dim sBa...
3
1,150
jQuery script doesn't work when moved into a file with plain javascript
<p>I have functioning <code>javascript</code> and <code>jQuery</code> files. I tried copying the <code>jQuery AJAX</code> into my other file, but It doesn't work. Instead of <code>AJAX</code>ing, it shows me the <code>JSON</code> info returned without the the template it was in. ?</p> <p>View</p> <pre><code>def custo...
3
1,636
Spring boot + JWT Authorization header is not persisting to provide to subsequent requests
<p>I'm developing an application with Spring boot and implemented authentication with JWT. When I test the API with postman I can see it creates the Authorization header and when manually post it to header subsequent rest calls work without any issue. But when I do the rest calls from my JavaFX application, I can see t...
3
1,303
How to add a third text view to list view elements using custom list adapter
<p>I followed <a href="http://www.ezzylearning.com/tutorial/customizing-android-listview-items-with-custom-arrayadapter" rel="nofollow">this</a> tutorial on how to add a header, a text view <code>id/txtTitle</code>, and an image view <code>id/imgIcon</code> to individual list elements within a list view. </p> <p>I mod...
3
2,069
Add collison detection to enemy sprites?
<p>i'd like to add the same collision detection used by the player sprite to the enemy sprites or 'creeps' ive added all the relevant code I can see yet collisons are still not being detected and handled, please find below the class, I have no idea what is wrong currently, the list of walls to collide with is 'wall_lis...
3
11,587
property keeps throwing an ArgumentOutOfRangeExpection
<p>My code keeps getting stuck whenever I continue after the first pause before changes are made. I can't figure out what else is the problem due to the fact I can't get past this, I have tried debugging but every change I make only seems to make the code not run. What is supposed to happen is after the original librar...
3
3,056
Springboot test not return expected result
<p>all developers, my team is creating a microservice to get the property information using springboot. We have a test suite to mock up the process of making a Http request and verify the response which returns a property information in a stub class. Here is the test:</p> <pre><code>@WebAppConfiguration @RunWith(Sprin...
3
2,525
How to mask a data frame by the month?
<p>I have a dataframe <code>df1</code> with a column <code>dates</code> which includes dates. I want to plot the dataframe for just a certain month. The column <code>dates</code> look like:</p> <pre><code> Unnamed: 0 Unnamed: 0.1 dates DPD weekday 0 0 1612 2007-06-01 23575.0 ...
3
1,504
show selected Firebase-object elements in a ListView
<p>I've a complex FirebaseDB Datamodell with ListAdapters for selected object-elements to be shown in a ListView in Android. Data is already on firebase.</p> <p>When adding the complete object I get an exception because relating Android-ListView-Elements are missing ... so I have to add only the required DB elements.<...
3
3,532
UWP BitmapEncoder SetProperties is not supported
<p>So I'm creating a UWP app and need to write text and images to an image file and save them. I've currently created a D2D wrapper in C++ using <a href="https://code.msdn.microsoft.com/windowsapps/How-to-add-wartermark-f6313fad/view/SourceCode" rel="nofollow">this source</a> and then a C# wrapper that simply lets you ...
3
1,154
Am I communicating between my android app and php hosted on server correctly?
<p>I keep getting the following error:</p> <pre><code>W/System.err: java.io.FileNotFoundException: http://zeuspower.xyz/createCus.php W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186) W/System.err: at com.zeuspwr.zeuspower.backgroundWorker.do...
3
1,729
JFrame not running properly inside a thread
<p>I am trying to run a simple game where there is a server and a client talking to each other to do updates, at the moment I am not doing much between the server and the client just sending some meaningless stuff. My problem is that my 'clientframe' which extends <code>JFrame</code>, is not displaying properly when I ...
3
2,073
matrix multipication in c
<p>i know there are similiar questions but i tried the suggestions there and it still does not work, here my complete code;</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;math.h&gt; void ludec(int N, double lu[N][N]){ double temp; int k,i,j; for(k=0;k&lt;N;k++){ for(i=k+1;i&lt;N;i++){ ...
3
1,915
Scaling image on top of VideoView gets cropped
<p>I am trying my hands at Android App Development and facing some issues related to VideoView. I am using animator to scale my image. Code is as below:</p> <blockquote> <p>MainActivity.java</p> </blockquote> <pre><code>private MediaPlayer mediaPlayer; private SurfaceHolder vidHolder; private SurfaceView vidSurface...
3
1,517
Code was working but now doesn't work all of a sudden - Dataframe issues
<p>I am not very proficient at python but my aim was to extract data from my share dealing website with the intention of analysis further down the line. The below code worked for me once and now i get an error about arrays not being the same length but they already are. this literally worked for me with no modification...
3
1,295
How to Create a Draggable Line in HTML5 Canvas using ionic?
<p>How to drag lines in canvas?</p> <p>I am able to add lines in canvas using this <a href="https://stackoverflow.com/questions/5559248/how-to-create-a-draggable-line-in-html5-canvas">answer</a>.</p> <p>In this, <a href="https://stackoverflow.com/questions/5559248/how-to-create-a-draggable-line-in-html5-canvas">answer<...
3
2,439
Menu get hides when I toggle it in responsive mode
<p>I have a responsive menu that in responsive mode you can toggle it with a button in jquery. The problem is when I make screen small and toggle menu (open and close it) when I return to desktop mode menu still stay hidden and this time there is no button to toggle it because it is in desktop mode and there is nothing...
3
1,723
After Using CSS animation other element not showing on the page
<p>Good day, guys, I tried to work on my code and I wasn't able to fix it on my own, the class .hello2 and .more are not showing on the page whereas it should appear below the id="flip" content, which happened it disappear the .hello2 and .more class element, it was my first time to use animation this time guys. here's...
3
1,564
Why is this log gamma numba function slower than scipy for large arrays, but faster for single values?
<p>I have a function to calculate the <a href="http://mathworld.wolfram.com/LogGammaFunction.html" rel="nofollow noreferrer">log gamma function</a> that I am decorating with <a href="http://numba.pydata.org/" rel="nofollow noreferrer"><code>numba.njit</code></a>.</p> <pre><code>import numpy as np from numpy import log...
3
1,342
Ajax file upload not working in Chrome
<p>I tested this script in Safari, and there it works, but I tried in Chrome, and there it does not work, and doesn't print the <code>$status</code>. What's the problem?</p> <p>HTML file:</p> <pre><code>&lt;script src="https://code.jquery.com/jquery-3.1.1.min.js"&gt;&lt;/script&gt; &lt;span id="success"&gt;&lt;/span&...
3
1,372
Android ViewPager Loading fragments in wrong sequence
<p>I have a spinner having values from week 1 to 12. On selection of any week from spinner, 7 fragments(starting from sunday to monday) are loaded in my viewpager and tablayout. The only difference is in data for each week and day. </p> <p>Now the issue is for each week correct data is populated in sunday fragment. Wh...
3
1,659
there is no error but ListView not showing up
<p>why my listView didn't show up.. what is wrong with my coding? the listView supposedly showing up the data from my database.. here is my coding... it didnt showing up any error.so i don't know where is the mistake.</p> <p>Faculty.java</p> <pre><code>package com.example.prototype; import android.app.Activity; impo...
3
6,529
Testing React components with Jest
<p>I'm trying to get started on TDD on Node.js and React, just installed and made Jest work, however my first test is failing with some error code that I can't understand.</p> <p>Here is the error I get when I run 'npm test':</p> <pre><code>Using Jest CLI v0.4.14 FAIL __tests__/Search-spec.js (1.714s) Warning: Reac...
3
4,645
WPF Dispatcher issue
<p>I'm attempting to update my app to use WPF instead of WinForms and have a problem I need a few pointers as I can't figure out what is wrong....</p> <p>The code below is from my Winform app which works fine</p> <pre><code>private delegate void LoginAsyncCallbackDelegate(IAsyncResult result); private void LoginAsync...
3
1,228
GCM encryption built in MAC check failure
<p>I am trying to write a couple functions that can encrypt and decrypt text using AES/GCM encryption in conjunction with PBKDF2 key generation. I am transitioning my code from CTR (SIC) encryption, and the MAC check failure is killing me when all else is working.</p> <pre><code>fun encryptAESBasic(input: String, passw...
3
1,332
React-parent component is taking input children's value 1 character missing
<p>I created an Input component like this:</p> <pre><code> import React, { useState } from 'react' const Input = ({ name, placeholder, type, className, inputRef, defaultValue, preventDefaultBehavior, style, timeout = 2000, onChange, onDoubleClick, onFocus, onBlur }) =&gt; { const [value, set...
3
1,100
SwiftUI: Double picker wheels with system behavioral
<p>I want to recreate system picker behavioral with two options in wheels with SwiftUI and faced ton of problem. Some of this I solved but some still unsolved. I have pop-ups with different views inside. One of the view it's a <code>DatePicker</code> with <code>displayedComponents: .hourAndMinute.</code> And other one ...
3
1,515
Application not show Android Pie
<p>I have Created an application in android, and hosted in play store the application works fine in all version except android 9. when i search my application in android pie version using playstore, it is not showing my application, I had set the sdk version to 28, but it is not showing my application. I don't know wha...
3
1,245
Jquery: second modal does not active
<p>I get some problem that I cannot solve: 1. first modal at #exampleModal is working fine. 2. second modal does not work when post data to save at food_action.php but data already save into database but #modal_confirm does not toggle. I do not know why. I try to debug and console.log which lines are error. Please help...
3
5,494
Laravel how to make top menu display only in one row
<p>I develop under Laravel 5.4. There is a top menu show as in the picture 1. <a href="https://i.stack.imgur.com/Zd6c7.png" rel="nofollow noreferrer">top menu</a> However, I want to the menu show like picture 2 <a href="https://i.stack.imgur.com/zGOMh.png" rel="nofollow noreferrer">ideal top menu show</a>,show in any ...
3
1,074
order displayed before my labels in D3
<p>I am new to programming and new to D3, I am learning it using the book "Getting started with D3" and all the examples I can find around the internet.</p> <p>To start practicing I am trying to create a column chart but am encountering two problems with my x-label: </p> <ul> <li>The labels displayed below my x-axis...
3
1,070
EF Code First CTP 5: Validation of an Entity That Depends Other Entities (eg Unique Constraints)
<p>What are some best practices for handling validation of domain entities that depends on other domain entities using POCOs that one creates when implementing an ORM based off of the EF Code First?</p> <p>Here's the situation I am trying to work through: I have a class that represents a client computer, and there is ...
3
1,069
in the response on the site gives out incomprehensible hieroglyphs
<p>when you try to display a get request in the text, it gives out incomprehensible characters, I would like it to produce normal text</p> <p>Code:</p> <pre><code> headers = { &quot;authority&quot;: &quot;www.ozon.ru&quot;, &quot;method&quot;: &quot;GET&quot;, &quot;path&quot;: &quot;/product...
3
2,405
Complex Print Statement
<p>So far what i have:</p> <p><strong>A directory which has two folders:</strong> </p> <ol> <li><p>..\Data\BeforeModern</p></li> <li><p>..\Data\AfterModern</p></li> </ol> <p>Each Folder(BeforeModern and AfterModern) has 4 JSON files namly (<strong>AU,UK,US,IND</strong>);</p> <p>The <strong>Json</strong> file contai...
3
1,354
Unable to login to firebase using cli
<p>I'm currently following the <a href="https://codelabs.developers.google.com/codelabs/firebase-web/#4" rel="nofollow noreferrer" title="firebase-web_app-tutorial">tutorial</a> for creating a web app with firebase, and I'm unable to login using <code>firebase login</code>. I've followed the steps up to that point. <co...
3
1,945
C++ SFML Sprite not being drawn through classes
<p>(No, I do not mean the very basics of displaying a sprite. I simply could not think of a better title since I do not fully understand what is going wrong.)</p> <p>Simply put, I have a sprite that, when being drawn to the screen, will not show up, but if I do some tests by making temporary sprites in <code>int main(...
3
1,958
C# WCF - Sending Custom BindableDictionary<string,CustomObject>() Over The Wire
<h3>EDIT</h3> <ul> <li>Ok, I've got it, it's not serializable.........so, how do I go about serializing it?</li> </ul> <h3>Scenario</h3> <ol> <li>I have a custom BindableDictionary that I use to bind with a grid control for automatically updating the grid when the underlying datasource changes.</li> <li>I now want to e...
3
2,797
C++ uses twice the memory when moving elements from one dequeue to another
<p>In my project, I use <a href="https://github.com/pybind/pybind11" rel="nofollow">pybind11</a> to bind C++ code to Python. Recently I have had to deal with very large data sets (70GB+) and encountered need to split data from one <code>std::deque</code> between multiple <code>std::deque</code>'s. Since my dataset is s...
3
1,833
returning something from a linked list
<p>Can anybody tell me why my main program is printing out 9460301 instead of 350? I'm just trying to insert a struct as a single item into a linked list. The struct has atrributes x and y. I then wish to print out the x attribute of the struct in my linked list. I have a huge program written out, and I tried stripping...
3
1,776
Associate the NSG with the subnet
<p>I am confused as how to associate the NSG with the subnet within my configuration.</p> <p>Created a data and azurerm_subnet_network_security_group_association block but I'm sure the config is not correct.</p> <p>Is someone able to review my code and give me some guidance. Thanks</p> <p><strong>app1-data.tf</strong><...
3
3,026
Ldap access forbidden spring security
<p>My SecurityConfig:</p> <pre><code>@Configuration @EnableGlobalMethodSecurity(securedEnabled = true, jsr250Enabled = true) @EnableWebSecurity public class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity httpSecurity) throws Exception { // @fo...
3
1,401
Prevent brute force with php
<p>I have a php script and would like to add protection against brute force, can anyone help? I don't want a captcha, but something in which the client is prevented from making further attempts for a certain time after several failed login attempts. And if possible without a database.</p> <p>Another question by the way...
3
1,995
Angular getting Authorization token asynchronously before HTTP calls
<p>before posting this i went to many other similar questions and not able to find solutions. like <a href="https://stackoverflow.com/questions/39373645/angular-2-inject-authorization-token-before-each-http-request">Angular 2 - Inject authorization token before each Http request</a></p> <p>I am using AWS session whic...
3
1,024
Broken loop in Python
<p>I am working on learning python (version 3), and as you are probably aware, one of the exercises is to create a game of rock paper scissors lizard spock (rpsls) I was required to start with the if statements featured below, then modify the code to include loops and use a random function to add a computer player. I h...
3
1,080
Why do i get Error Code 1215?
<pre><code>CREATE TABLE speler ( scode INT(5) NOT NULL AUTO_INCREMENT, naam CHAR(20) NOT NULL, adres CHAR(50) , postcode CHAR(6) , woonplaats CHAR(15) , tel_num INT(11) NOT NULL, email CHAR(40) NOT NULL, bekend...
3
1,896
Response object value comes in array and some time object , how identify in my code?
<p>My response have many values, but one is filter object that are coming some time in array nad some time in object.</p> <ul> <li>How to find this one is object or array, i am using Gson in android. </li> <li><p>Comming in array like this,</p> <pre><code>"filter": [ { "id": 3, ...
3
1,273
Handle Django Rest Framework permission when creating related objects
<p>The <code>has_object_permission</code> method of a Permission on DRF obviously does not get executed on Create, since the object does not exist yet. However, there are use cases where the permission depends on a related object. For example:</p> <pre class="lang-py prettyprint-override"><code>class Daddy(models.Model...
3
1,130
How to avoid extra mat-form-field-underline in Angular material
<p>I am having an issue finding why I get an extra mat-form-field-underline when using a component.</p> <p>My page uses this markup:</p> <pre><code>&lt;mat-form-field class=&quot;col-md-6&quot;&gt; &lt;app-mat-select-all [data]=&quot;tractList$&quot; formControlName=&quot;tractList&quot...
3
4,417
Rails 3.2.1: Calling undefined method in view causes test to hang for 30+ seconds
<p>I'm upgrading my app from 3.0.9 to 3.2.1 (ruby 1.9.3-p0, rvm, bundler) and one thing that I haven't been able to track down yet is this problem. I have a controller spec (in spec/controllers) that renders views for each example. The template that it renders can have any undefined method (like calling "- blahblah" in...
3
1,487
How to send data from Windows to HID keyboard?
<p>I am trying for days to send data from Windows to my STM32F103C8T6 CustomHID keyboard with Visual Studio in c#.</p> <p>I tried many libraries and stuffs that did not work. Like this one, which was the easiest to implement: <a href="http://www.florian-leitner.de/index.php/2007/08/03/hid-usb-driver-library/" rel="nofo...
3
2,319
How can I save event array into iCalendar
<p>I've some code for insert event</p> <pre><code> for event in events { for ct in 0..&lt;self.holidayArray!.count { if self.dateFormatter2.string(from: event.startDate) == self.holidayArray?[ct].start?.date &amp;&amp; event.title == self.holidayArray?[ct].summary { ...
3
1,172
how to close previous dropdown list and open the one on which we are clicking?
<p>I want to close the dropdown that is currently open when clicked outside of it. I have implemented the logic but I am facing some issues.</p> <p>I have 5 dropdowns on nav-bar initially everything is working fine the dropdown that is open is closing when clicked outside or when clicked on another dropdown. But after ...
3
1,578
Fatal error: Call to a member function bind_param()
<p>I am getting the following error message:</p> <blockquote> <p>Fatal error: Call to a member function bind_param() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/ict136/aaregistration/register/register.php on line 89</p> </blockquote> <p>Here is my code:</p> <pre><code>&lt;?php include('header.php'); ?...
3
2,803
LongListSelector centered items unexpected position change
<p>I have a LongListSelector control on a page in my Windows Phone 8 app. For this control I set a GroupHeaderTemplate and a ItemTemplate and both contain a TextBlock. If I align the TextBlock controls to center I have some weird behavior (maybe not weird but unexplainable to me at the moment). When I open the page on ...
3
1,284
echo out image in mysql while loop not working?
<p>i have a message type system set up and i am using a mysql while loop to echo out the contents from my table and am also trying to echo out the users profile image so that it appears next to each result being echoed. since this is a 2 way message system their is the photo of 'to_user_id'/recipient and 'from_user_id'...
3
1,652
Connect Oracle DB with Entity Framework with Code First in VS2022
<p>I need to connect with oracle database using entity framework in my MVC WebAPI project. I am using VS2022 with .Net Framework 4.8. I prefer working with code first approach and need to auto create the Database and Tables if not exists.</p> <p>The packages I have added in my project for oracle are <a href="https://i....
3
5,158
MongoDB saving one correct one wrong
<p>This is my first project with these technologies and English is not my native language forgive me for all mistakes. </p> <p>I am making Real-time Arduino NodeJS MongoDB project. My main goal is getting humidity, temperature and gas values from arduino. Storing them in Mongodb and publish these values on web site (l...
3
2,239
wpf virtualizingstackpanel different behavior on different Win10 machines
<p>My WPF application is using VirtualizingStackPanel for ListView. Scrolling this list is working fine on two different machines: my host machine (Windows 10 v1803 build 17134.228) and one virtual machine (Windows 10 v1607 build 14393.2312 ). If I run the same application, exact the same copy, on my other VM (Windows...
3
2,466
Deploying meteor to Heroku serve : Application error
<p>As a beginner with those tools, i followed tuto i found on the web to help me starting my app.</p> <p>Here are the exacts commands i runned on ubuntu to deploy the todos example app from meteor and testthe whole thing.</p> <pre><code>meteor create --example todos cd todos git init git add . git commit -m "my first...
3
6,624
using ng-file-upload to upload file from client to node and multer at node js to upload file on server, get req.file undefined always
<p>I am using ng-file-upload to upload file from angular client to node js and at server side I am using multer to upload, Problem is I am not getting any error in multer but file is not uploaded, I found req.file is undefined always.Thanks in advance. I am sharing my code: </p> <p>view: </p> <pre><code> &lt;form na...
3
1,433
Subscription to Message through Microsoft Graph API Without User Interaction
<p>I am trying to create an application that subscribes to mail events (New mails, Create,update) in office 365 using Microsoft Graph APIs without user interaction. If there is a new email I want to send a notification to my app which has been built using C# MVC5 and .Net 4.5. An example I am following is in Github her...
3
3,062
insert comma seprated values to database with validation models
<p>i have a input fields to insert names to the database at the moment it works like every time i enter one name it inserts and does not allow duplications the name but i want to enter multiple names comma separated this si what i have at the moment</p> <p>front end</p> <pre><code>&lt;form method="POST" action="{{ro...
3
1,310
How to add a search button action in autocomplete search
<p>I'm having problem in one issue. Blogger autocomplete search. I'm novice in programming. I want to add a button in the bottom which will work as a search submit / action button.</p> <p>Here's my code:</p> <pre><code> &lt;style type=&quot;text/css&quot;&gt; #searchForm { display: inline-block; position: ...
3
3,358
Python sequence cluster exercise
<p>I am working through an exercise in my textbook and am implementing the code in Python to practice dynamic programming. I feel like I am right on the edge of figuring it out, but after many hours, I come here for help. </p> <p>Basically my code is going through a list of values <code>x</code>, and given a <code>k</...
3
1,371
Read data from an Azure blob container into the Computer Vision service
<p>I'm using the Azure CV module to process images, so far I have only used local images or images freely available on the web. But now I need to use the images I have stored in a storage account container.</p> <p>I don't see how to do this in the documentation, E.G: this code allow to use local images:</p> <pre><code>...
3
1,263
POST don't work on select
<p>I have this modal and I want to get the 'select' value with $_POST['select'] in my link when pushing on the button, but it don't works (there is no id in the link), thanks you.</p> <pre><code> &lt;!-- Modal --&gt; &lt;div class="modal fade" id="myModal" role="dialog"&gt; &lt;div class="modal-...
3
1,135
UWP - Make flyout part of SplitButton smaller
<p>I have a <code>SplitButton</code> in UWP, which looks like this: <a href="https://i.stack.imgur.com/srdym.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/srdym.png" alt="own SplitButton"></a></p> <p>It's noteable that there is a huge gap between my icon and the arrow for the flyout, since the fly...
3
15,063
What is causing my image to corrupt during transfer via Bluetooth RFCOMM using FTP?
<p>I'm developing two separate applications for data transfer over Bluetooth RFCOMM using the Obex File Transfer protocol. On one side, a Windows C# Console Application running on a PC listens for incoming bluetooth connections and sends an image whenever a client makes a request. On the other side, an Android applicat...
3
2,931
SQL Server How to properly create a view upon dependent tables?
<p>Given the following tables (see below) I need to create a View that shows each code (SOC, HLGT, HLT, PT AND LLT) from table <code>MedDRARelations</code> and his respective value (Soc_Value, HLGT_value, HLT_Value, PT_Value and LLT_Value) from the table <code>MedDRANames</code>.</p> <p>I've tried by joining multiple ...
3
1,840
Is there a more idiomatic way to keep an optional argument string from being freed?
<p>I want to take command-line arguments in a Rust program and pass them to a C function. However, these arguments are optional and the program should behave differently if no arguments are supplied. I have read the docs for <a href="https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_ptr" rel="nofollow nor...
3
1,141
Connect inputs with spans
<p>I've made a small input validation. The problem now is, behind every input field it says: "email can't be empty". The intention is that he picks the names of the input fields and puts these names before the messages. So you get: "userName can't be empty, password can't be empty, passwordCheck can't be empty". In thi...
3
2,361
How can I select children of html tag in html page?
<p><strong>My html file</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt; &lt;title&gt;@ViewBag.Title&lt;/title&gt; &lt;link href="../../bootstrap/css/bootstrap.css" rel="styl...
3
1,597
How can I show alert dialog on base of a stream in case network request fails
<p>Here goes the code I have so far. <code>_mBlock.mSpotStream</code> is a network request. I am interested how can I show alert dialog in case <code>_mBlock.getSpots()</code> fails with a network error, while keeping list on screen. I have tried returning alert dialog as a widget, but in this case I can't close it.</p...
3
1,736
Can my bot server retrieve any information in the app manifest?
<p>I am adding a new static tab to an existing teams app. One of the new features is that the chat will publish a deep link to the static tab. This is creating a dilemna when I am contemplating deployment.</p> <p>Obviously I can’t put my entire application up here, but we can assume a situation like this:</p> <p>The ma...
3
2,517
Copy elision on Visual C++ 2010 Beta 2
<p>I was reading <a href="http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/" rel="nofollow noreferrer"><em>Want Speed? Pass by Value</em></a> on the <a href="http://cpp-next.com" rel="nofollow noreferrer">C++ Next blog</a> and created <a href="http://pastebin.com/f39c826c6" rel="nofollow noreferrer">this pr...
3
2,366
go build doesn't recognise methods
<p>I try to setup a small Golang Microservice for users with Gin and Mongodb.</p> <pre class="lang-golang prettyprint-override"><code>package main import ( &quot;context&quot; &quot;fmt&quot; &quot;github.com/wzslr321/artiver/entity&quot; &quot;github.com/wzslr321/artiver/settings&quot; &quot;go.mo...
3
1,185
Mapping results of the repositories to the AGGREGATION ENTITY in DOMAIN layer
<p>I'm working in a project with .NET core 3 and C# as language. I'm trying to use Clean Architecture approach, CQRS and Repository Patterns. I chose DAPPER as ORM.</p> <p>I have 3 layers:</p> <ul> <li>DOMAIN : with my entities, aggregation entities, value object;</li> <li>APPLICATION : here I'm implementing the log...
3
1,141
Prestashop module remote API request
<p>I have a problem with my Prestashop module. I'm trying to send post with order products in hookActionValidateOrder. But if I get an error in API, or it just not working, the customer "confirm order page" is not loading(because it's waiting for API to answer). </p> <p>The question is: Can I somehow make request send...
3
1,072
When algorithm is placed inside loop it produces different results, C++
<p>I create the following algorithm in Rcpp and compile it in R.</p> <pre><code>// [[Rcpp::depends(RcppArmadillo)]] #include &lt;RcppArmadilloExtensions/sample.h&gt; // [[Rcpp::export]] arma::colvec Demo(arma::mat n, int K){ arma::colvec N(K); for(int j=0; j&lt;K; ++j){ for(int i=0; i&lt;(K-j); ++i){ ...
3
1,417
Maya2020 Pyside2 QAbstractItemView.edit is converting int to unicode
<p>Upon upgrading to <code>Windows10</code> <code>Maya2020</code> and <code>Pyside2</code>, I am finding that <code>QAbstractItemView.edit</code> is now converting <code>ints</code> to <code>unicodes</code>.</p> <p>In Maya 2019 editing a field containing an <code>int</code> would load up a <code>QSpinBox</code>and keep...
3
1,166
How to define array
<p>I get error that "cannot set property xx of undefined to xx" when try to save a value to a multidimensional array. I had this code working a few weeks ago and now it doesn't. I am not sure what changed but I believe the error is related t how the array is defined.</p> <pre><code>function iterateSheets() { v...
3
1,442
SocketStream::read crashes
<p>We use an in NSInputStream to receive data from an IMAP-server. We see a stange crash in Xcodes Crashes that we are not able to reproduce. The InputStream is initialized like this (i omitted some sanity-checks):</p> <pre><code>- (void)getStreamsToServer:(NSString *)hostName andPort:(NSUInteger)po...
3
1,237
Round UIView bottom corners inside custom UITableViewCell
<p>I'm trying to round the bottom corners of a custom view inside a tableview cell. The code I'm using it's not working and I don't understand why...</p> <p>So, I have a <code>UItableViewCell</code> and inside the <code>contentView</code> there is a custom view <code>containerView</code>. Inside that, on top, I have t...
3
2,828
Comparing array and get another array value on the selected array
<p>Please help me. I'm stuck on my array case. I'm newbie on this. Espesially to get array more than 2 variables. I had already browsing into google but i didn't got what i want, and now I've got stuck on it :(</p> <p>I have array like this </p> <pre><code>string[] receive = receiveattachment.Split(new char[] { ',' }...
3
1,475
Jquery populate second select item with options greater than first select
<p>I have been trying to make a simple drop down select for time selection and am stumbling on populating the second list with the options from the first list. I am trying to make a start and end top drop down. So first select has all available times and the second select would have only times available after the first...
3
1,798
How change radio button of Radio Button Group in cell of Table programatically?
<p>I want to change the selected radio button in group of radio button in cell table programatically. I try to recreate table after change the status in piece object but if I have many records it becomes slow.</p> <p>I have the next code:</p> <pre><code>import sys from PyQt5.QtWidgets import QTableWidget, QTableWidget...
3
1,591
Protecting Images using PHP and htaccess
<p>i found this code after long research on internet for image protection with PHP. the demo was working perfectly when come to do in my localhost a facing the problem. i test the code with some php code checkers then i found the error: syntax error, unexpected '&lt;', expecting end of file. </p> <p>can any one pleas...
3
2,634
UIImage * is a __NSCFArray instead of a UIImage
<p>My app has a user select a photo from the picker. I apply the selected image to a view and then I save it to a file and reference that file in user defaults so when the UserProfile is created that avatar is loaded in.</p> <p>When I close the app and then start it again, the app loads the image from the file. After ...
3
1,195
Hibernate binding returns null on insert
<p>I'm here to get help because I've been searching the internet for a few hours without finding my answers. Maybe someone here will have a solution to my problem.</p> <p>I'm new with spring boot, so don't be too mean to me, I probably missed some information in the documentation. I'm trying to add data to my database ...
3
2,239
Layout does not exist in the current context
<p>I'm trying to include the layout in one of my views and it's saying it doesn't exist in current context along with viewbag.</p> <pre><code>@{ ViewBag.Title = "About Me"; Layout = "~/Views/Shared/_Layout.cshtml";} </code></pre> <p>I've looked at other solutions saying I need this or that in the web.config, though n...
3
1,793
Vaadin: spacing with vertical scrollbar
<p><strong>Environment:</strong></p> <ul> <li>Vaadin 7.6.2</li> <li>no custom CSS rules so far besides for the headline</li> <li>Default theme in place: 'valo'.</li> </ul> <p><strong>In a nutshell</strong></p> <p>I have trouble with spacing while showing vertical scroll bars. Let me show some pictures to demonstrate...
3
1,243
How do I structure this medium sized flask application?
<p>Using the FLASK framework in Python, my application needs to:</p> <ol> <li>register and log in users (with either a sqlite or postgres database) </li> <li>access a specific google spreadsheet that the logged in user owns and output that data in a json format. <strong>I am required to have my own authorization &amp;...
3
2,004
Sunpot search not searching. "rake sunspot:solr:reindex" aborted
<p>I'm attempting to use Sunspot/Solr to search all User name and content associated with their profile (named 'bio'). The search box is at <code>http://localhost:3000/users</code>. I'm clearly not doing something right because when i search a name i get taken back to page 1 of Users with the full list i.e no search ha...
3
3,207
How can I extract the random effects information from lmm and lqmm models using multiple imputed data?
<p>Continuing from this question: <a href="https://stackoverflow.com/questions/72514230/is-it-possible-to-use-lqmm-with-a-mira-object">Is it possible to use lqmm with a mira object?</a></p> <p>I have tried to get the random effects for the mixed models (lmm and lqmm), and it has been hard.</p> <pre><code>library(lqmm) ...
3
1,632
Ignite FileAlreadyExistsException during WAL Archival
<p>We are using Gridgain Version: 8.8.10 JDK Version: 1.8</p> <p>We have Ignite cluster with 3 nodes in Azure Kubernetes. We have enabled native persistence. Some of our Ignite pods are going into the CrashLoopBackOff with the below exception</p> <pre><code>[07:45:45,477][WARNING][main][FileWriteAheadLogManager] Conten...
3
2,531
Why Wemos D1 not respond after working for a while
<p>I’m trying to build a feeder machine on a pig farm by using the Infrared photoelectric switch Sensor E18-D80NK to control relay then send notifications to line and mqtt broker when it’s working. I have been testing for 2 days, it’s working normal, but third day, it’s not responding then I just press reset so it’s wo...
3
2,176