title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Working with webinpectord
<p>I just want to communicate with Mobile Safari using 'webinpectord' (hobby project). My aim is to just display an alert 'hi' on Mobile Safari. I know I can do this using Safari's debugging console. At the moment what things I know is Mobile Safari ('webinpectord') listen to port 27753 on localhost using IPV6 protocol...
3
1,464
View is not replacing when going from portrait to landscape
<p>I have a little subview that is not replacing when going from landscape to portrait. You can see it over here.</p> <p><img src="https://i.stack.imgur.com/sjx3L.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/8fy9a.png" alt="enter image description here"></p> <p>The code for the view is...
3
1,669
Add case Statement to large query to allow result set to be more dynamic
<p>I have the following MS SQL query using SSMS 2012. I've been fine tuning and tweaking this for a while. You can learn more about it here.</p> <p><a href="https://stackoverflow.com/questions/21069783/case-statement-in-monster-query">CASE statement in monster query</a></p> <pre><code>WITH Data AS ( SELECT b.Report...
3
1,786
How to "save" string variable from settings menu
<p>I'm new about coding so i'm sorry for my "basic" questions.</p> <p>I'm coding an Android app with Android studio; very simple, only webview that show my website but i need to have in settings menu an editText where i can modify my website url.</p> <p>I made two activitys(Main and Settings) that i post; Could anyon...
3
1,055
how to bind user cookie with user agent in drupal 8
<p>i am using drupal 8 with mysql database. but using cookie editor i am able to get user cookie and reuse them. this also provides other users access, looked at drupal community for resolution but not found drupal 8 fix of this. i want to bind user cookie with browser user agent to make it more secure even user get c...
3
3,193
Better usage or alternative for starts-with in xpath
<p>I'm having a problem with a xsl transformation on a extended xml JUnit report file. I've extended the file as follows:</p> <pre><code>&lt;testcase classname="net.luminis.osgitest.test.adhoc.AdHocTest" name="testGetExportedPackagesByPackage" osgi-vendor-name="felix/1.8.0" time="3.212"&gt; &lt;osgi-specs&gt; &lt;os...
3
1,124
How to Create an MVC Widget in Kentico 12 Page Builder
<p>Previous question for context (the previous question was going nowhere, so I created this new one to start fresh): <a href="https://stackoverflow.com/questions/62947063/unable-to-create-new-mvc-widget-in-kentico-12">Unable to Create New MVC Widget in Kentico 12</a></p> <p>I'm trying to create a widget called &quot;I...
3
2,057
Parsing conditions in a custom DSL using a tokenizer
<p>I am trying to parse a "rules string" provided over an API in PHP. </p> <p>Given that I have an array of items such as</p> <pre><code>$items = [41, 42, 51, 54, 65, 12]; </code></pre> <p>I wish to evaluate this expression</p> <pre><code>({41} AND {51}) OR ({31} AND {42}) </code></pre> <p>In this instance it shou...
3
1,428
PHP Curl Download Issues
<p>I have a function that takes as input an array of url's. I have verified that the url's are correct and I can loop through them perfectly. I also verified using curl_getinfo that curl is downloading the correct pages. However, the output of curl (html) is the same for every page. Here is my code:</p> <pre><code> ...
3
1,526
MongoError: Document failed validation - not sure why
<p>currently working on a basic CRUD application using MongoDB as my database, and keep getting the error <strong>MongoError: Document failed validation</strong> and can't understand how to fix it.</p> <p>my data seems to be posting from the front-end to the express server successfully as i can see user data in the re...
3
1,318
problem handling Gridview_SelectIndexChanging event with an UpdatePanel ASP.NET
<p>i will try to explain what i have, what i'm trying to do and what is my problem</p> <p>what i have: i have a modal with and update panel (i need it because the postback closes my modal) that has two text box, a button and a gridview. in the textbox i write the name and the surname of a person and with the button i r...
3
4,517
How to solve 'Entry Point Not Found' error in a Vulkan project (CMake 3.21/VisualStudio/C++20/VMA/shaderc)
<p><em>(firstly I'm a chinese, so there might be some syntax errors. I'm sorry for that)</em> So yesterday I just update my VulkanSDK version to the newest (version 1.3.216.0) as well as VMA, but there's a runtime error occured when I try to run the code which was like : <a href="https://i.stack.imgur.com/ofJqk.png" re...
3
1,038
Save deep network and change its central layer in Tensorflow
<p>I built an autoencoder in TensorFlow. It has 5 hidden layers. I trained the network and I now wish to save it on some external file.</p> <p>Later, I would like to load the autoencoder back and modify its central layer. Then I would like to run the autoencoder on some input data.</p> <p>Here my code for the autoenc...
3
1,046
Authentication token doesn't have enrollment level access
<h2><strong>Background</strong></h2> <p>I am making a restful API call to Microsoft's Azure Consumption endpoint as detailed below.</p> <p><a href="https://docs.microsoft.com/en-gb/rest/api/consumption/reservationrecommendations/list" rel="nofollow noreferrer">https://docs.microsoft.com/en-gb/rest/api/consumption/res...
3
1,290
Rails 4.2.4, link_to not working with put method
<p>I have two links (upvote and downvote) with method put like this</p> <pre><code>&lt;%= link_to 'upvote', comment_upvote_path(comment), method: :put, remote: true, id: "comment_upvote_link" %&gt; &lt;%= link_to 'downvote', comment_downvote_path(comment), mthod: :put, remote: true, id: "comment_downvote_link" %&gt; <...
3
3,662
I can't figure out the .FieldName
<p>I am trying to create my first VBScript that creates an Excel spreadsheet. </p> <p>I got most of the code from an Excel Macro but the project changed so now the VBScript needs to live on the outside.</p> <p>I was crashing on rStart = .Range but I changed the code to </p> <pre><code> Set rStart = objExcel.Range("A...
3
1,027
"The ScrollController is attached to multiple scroll views." I don't get this error
<p><a href="https://www.youtube.com/watch?v=33_0ABjFJUU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=33_0ABjFJUU</a></p> <p>I was watching above Decoding Flutter video. According to the explanation of this video, if there are two ListViews on the same screen in the case of a mobile application, (both List...
3
1,491
Getting None even after selecting option in Django?
<p>What I want to do is get the option that the user selects from my <strong>Html</strong> select form and then work with it. I've tried accessing those values like <code>print(request.POST.get('variations', None))</code> and even after selecting option, it's returning <code>None</code>. I am not really understanding w...
3
1,077
Redshift - First value over a percentile
<p>It has been few days trying to figure it out but I'm at a loss.</p> <p>I have number of sessions for different groups and I want to get the IDs of the groups that amount to 80%. Of course it's very improbably that certain groups will align in a way so that one group ends at exactly 80%. </p> <p>What I'm trying to ...
3
8,352
Breadth First Search falling one index short of desired outcome
<p>I'm trying to implement a bread-first search algorithm in Python to find the shortest path from the top left corner of a matrix (2d list) and the number 9, wherever it may fall in the matrix. For some reason when I run the code below with the included print statements, my x coordinate will outcome correctly (reached...
3
1,322
How to efficiently specify a large predictor matrix for stan data block
<p>I would appreciate any help to create a large predictor matrix for stan data block.</p> <p>I want to use variables <code>w_1</code> to <code>w_K</code> from the data below as predictor "matrix" <code>real&lt;lower=0&gt; weights[N, W];</code> in my model. <code>K=W</code> is the number of variables weights (columns ...
3
2,829
Impossible to select all_day_slots with fullcalendar
<p>I am using <a href="http://fullcalendar.io/">fullcalendar</a> to create a calendar where my user can indicate his disponibilities. I have set up the calendar so there are allDaySlots available. They appear correctly on the calendar, but I can't select them. Is there anything special to specify in the select callback...
3
1,638
php login session handling issue
<p>this is my login form php codes. in my knowledge this code is ok but there is a issue with session handling. I think there is no session creating in my code. but can't see any error be course I research it many resources many of them proof this. any help must be appreciated. </p> <p><strong>home page -</strong> ...
3
1,188
Issue with react router dom 6.2.2
<p>i have some problem with url. When i write url or when i refresh then i get 404. For example when i write: .../oferta then i get 404. NavLinks works fine. I don't know what i do wrong :)</p> <p>error displayed is:404 Not Found The resource requested could not be found on this server!</p> <p>&quot;react-router-dom&qu...
3
1,094
C++ Unidentifiable Memory Leak
<p>I have 2 files, one of which is my testing class. My code compiles and executes, but there is still one memory leak concerning my allocating and freeing of my memory. I haven't created any objects personally while writing this code so I am confused as to how a memory leak exists.</p> <pre><code>#include &lt;algorit...
3
1,970
ERROR in Maximum call stack size exceeded production build error after upgrading from CLI 1.6.6/Angular 4.4.6 to 1.7.2/5.2.9
<p>I followed these steps to upgrade my project.</p> <blockquote> <p><strong>Get latest of branch to a clean folder.</strong></p> <p>Package.json (shouldn't be necessary, just confirm) Update all angular versions to ^5.2.9 Update typescript to ~2.4. Update angular material to ^5.2.4</p> <p><strong>In t...
3
1,066
Location class from @angular/common doesn't work in unit tests
<p>For some reason Location.normalize() and other functions doesn't return correct response when I run tests:</p> <pre><code>import { Router } from '@angular/router'; import { Location } from "@angular/common"; import { TestBed, async, tick } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/...
3
1,414
Reducing code complexity to increase readability and get conditional logic working
<p>I am trying to reduce code duplication in my controller which I have mocked up to test both on my browser and device. The core functionality works at the moment, but it currently violates the DRY principle. I attempted to add the following functionality which dictates what should be displayed on the home screen but ...
3
2,992
Openvswitch create queue can't reach bit rate limitation
<p>all: I'm new to SDN and also new to stackoverflow.</p> <p>Here is my topology: <a href="https://i.stack.imgur.com/rPsU5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rPsU5.png" alt="mytopology"></a> When I setting the queue for mytopo, I notice that when the maximum bit lower than 300000, the i...
3
1,068
orchard IRepository.Create error
<p>I'm working on <a href="http://www.ideliverable.com/blog/writing-an-orchard-webshop-module-from-scratch-part-9" rel="nofollow noreferrer">http://www.ideliverable.com/blog/writing-an-orchard-webshop-module-from-scratch-part-9</a> </p> <p>my orchard version is 1.9</p> <p>OrderRecord.cs</p> <pre><code>public class O...
3
4,086
Import Excel to Database
<p>I'm trying to import an excel document into a database.</p> <p>I have successfully done this, however, the problem that occurs is that, the data I'm trying to insert, gets inserted four times instead of once. </p> <p>Here is my code: </p> <pre><code>private void upload_button_Click(object sender, EventArgs e) { ...
3
1,093
vega-lite: how to add timeFormatLocale to vega editor?
<p>In <a href="https://vega.github.io/editor/?#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAKyUAVhDYA7EABoQspAjhoQmAE5xBwiAH0mSLYLgBPRSAAmcaFpo5M7eegAqOvTQhXnmM2igmHAAHpgaAJKyZDoQEDQABLRsWirCcA4JNLIJbhlIODRICVHBsvHExQAUbhEAlAnFUHIAZlpymGwJzTkOzaSZnZhIwlk5tVbNgikaAMQAjABsABwAwqs...
3
1,677
Why does my app crash when i use start button in main activity to access login activity?
<p>When i click button START on main activity, crashes before it opens the login activity. What do i do to stop the app from crashing?</p> <p>I have connected the application to firebase and written the code i think is right. Kindly help solve the code wherever i might have mistaken.</p> <p>I expect when i click butt...
3
3,365
Prolog cousin once removed and half sister/brother rules
<p>Am working on a prolog genealogy project and cannot figure out how to make the rules for cousin once removed and half sister/brother rules. Below is what I have and cannot get it to work. Any help or suggestions would be appreciated. I have placed in bold what I have tried. I'm sure its something simple in the way I...
3
2,092
How to transform a XML using XSLT only modifying a node that's required?
<p>I'm trying to transform an XML only to replace a node name with another, but the XSLT that I framed is messing up the transformed XML. This might be a small issue that I might have overlooked, but am stuck with this from a long time.</p> <p>Input XML that I have:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF...
3
1,588
PDO disconnect and PHP variable reference
<p>I'm new to PHP high level. But not new to programming.</p> <p>We have a software (in dismission but still active) that is killing our DB.</p> <p>Inside is used PDO the problem after a lot of spent time is PDO disconnection mode and the useof PDO inside a wrap class.</p> <pre><code>public function connect() { ...
3
1,032
Why my layout shrinks while in viewpager but looks fine in the separate layout xml?
<p>I am using a fragment in a viewpager and when i run it on emulator/device it shrinks and certain text views disappear. But when i view the resource layout of the fragment separately then it just looks fine</p> <p><strong>This is how it looks while running on emulator/device : Activity</strong> <a href="https://i.st...
3
8,425
Modal with embedded pdf
<p>I am trying to put a modal on a website I am making that has an embedded PDF.</p> <p>The pdf shows up really small. I did not write this code from scratch. I found it on another site. Can anyone help?</p> <p>I'm using the Zurb Foundation framework, FYI.</p> <p><a href="https://jsfiddle.net/8ryeqfbc/" rel="nofollo...
3
1,650
WPF XAML defined MenuItem reuse starts working, then disappears
<p>The following simple code attempts to reuse a MenuItem defined in the Window.Resources on two separate Menus. </p> <pre><code>&lt;Window x:Class="WpfApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...
3
1,030
Create a repetitive loop so the program will ask the user if another entry is desired until the user indicates “No.”
<p>This is what the assignment requires: I need to create a Java program to accept input for the following two variables: (a) Students and (b) Scores. I need to also create a repetitive loop so the program will ask the user if another entry is desired until the user indicates “No.” I need to include a variable that wil...
3
1,203
Using Multiple @XmlAnyElement in JAXB to manually handle </> Characters in Multiple Strings
<p>We are using JAXB to unmarshal pre-stored XML that can't be changed by us. Unfortunately, the pre-stored XML contains some HTML brackets, <code>&lt; and &gt;, without CDATA.</code>. For instance, we have to unmarshal this with JAXB (note there is no CDATA):</p> <pre><code>&lt;Article&gt; &lt;ArticleTitle&gt;Note ...
3
1,068
Rescue partition in Yocto image
<p>I need to create an image using Yocto that includes a rescue partition. That is, another root partition which is selectable in grub menu.</p> <p>I am currently creating an image which I dd to our target Intel board's internal SSD chip after booting from USB. This is working, but I now need to duplicate the current ...
3
1,148
how do i create a virtual keyboard that can be used to insert values in different jtextfields
<p>So I am trying to create a virtual keyboard that can insert values in a Jtextfield of another Jframe. The problem is that the data is overlapping when editing other text fields. So, I tried renewing the object but it replaced the first Jtextfield value as well. what should i do with this, should i start from scratc...
3
2,201
My sc5-styleguide doesn't update anymore
<p>So yesterday it was working like a charm, I went home, got to work this morning and it didn't work. I'm creating a styleguide for a website. I hope that some of you guys can help me. Here's my code</p> <p>gulpfile.js</p> <pre><code>var paths = { styles: 'assets/scss/source/**/*.scss', cssDest: 'frontend/cs...
3
1,089
Big Issues with getting a profile update page to update the databse
<p>I've got a big issue with my website. I've made a profile page which will allow users to amend their details, and then submit. Upon submitting the details should be updated in the database, however I just get a blank page and nothing happens. I've been up for 30+ hours trying to figure things out but no luck. It...
3
3,514
I have a problem with decimals adding weirdly
<p>My code is working well until I get to the program with my output now falling in acceptable perimeters.</p> <p>I am adding like this:</p> <pre><code>using System; namespace ITSS131 { public class Program { public static void Main(string[] args) { Console.WriteLine(&quot;hello wha...
3
5,649
Can't manage to get correct area selection for ImageGrab.grab() even when copying online code that is supposed to work. Multiple exemples tried
<p>Fixed: Solution at the end.</p> <p>I am trying to export/save a tkinter canvas by using the ImageGrab.grab() method. However the saved image is always off by a bunch of pixels. I tried many exemples as well as my own tries.</p> <p>Question: Can you try to run this code and tell me if you get the whole visible canvas...
3
2,345
Filldown does not populate cells
<p><strong>Problem:</strong></p> <p>I'm experiencing a problem in VBA for Excel 365 where the range.filldown function does not fill the specified cells in my worksheet.</p> <p><strong>Code Description:</strong></p> <p>My code inserts a row above the currently selected cell if the row is greater than 20. (My workbook h...
3
1,054
Fullcalendar 3 change draggable events when changing week
<p>I work with fullcalendar 3 with laravel.</p> <p>The draggable events are courses and should be different every week. I want to dynamically change the courses when I change the week in the calendar.</p> <p>At the moment in the controller I have a function that give me every course:</p> <pre><code>public function i...
3
1,140
Java Script Function Not Returning Value
<p>I have a java script function that return a string value, when i call this function on button click it return nothing.</p> <p>Here is my function code:</p> <pre><code>function PlotMap(StartLat, StartLog, EndLat, EndLog) { var map; var directionsDisplay; var directionsService = new google.maps.DirectionsService();...
3
1,289
Animate scrolling to top of element within an overflow div
<p>I am struggling to figure this out. I have a div that is set to <code>overflow: scroll;</code>. I want to be able to click a link and have the content in that div scroll to the top of the linked element. For some reason it always seems like it scrolls until the top of the element hits the top of the body. I need it ...
3
1,261
Asp.net Gridview Rowdata is coming empty and Unchecked
<p>I have a requirement where i need to add column names and rowdatabound values dynamically .I has managed to get Column names dynamically .According to my need i want values to be displayed in the form of checkboxes in the rows of the grid either in checked form or unchecked based on condition but here every thing is...
3
1,128
Why alt modifier does not trigger key release event the first time you press it in maya?
<p>In autodesk maya 2019, I want to capture keypress/release event for keyboard modifiers, but after adding a QPushButton to maya's workspaceControl, Alt key behaves different than other modifiers.</p> <ol> <li>press alt key, keyPress event fires</li> <li>release alt key, no key release event</li> <li>press alt key ag...
3
1,887
SQLite stopps working when clicking on AccButton (AcceptButton)
<p>I have two activities one is Database helper and other is main activity. There is no sytax error but whenever I press Accept button (accButton), my app stops working. Please help me out thanks.</p> <p>Code in DBhelper class</p> <pre><code> @Override public void onCreate(SQLiteDatabase db) { db.exec...
3
1,065
R How to do a simple vector/matrix calculation with conditions applied?
<p>I have a vector i.e. change_vector (where dates are rownames)</p> <pre><code>2012-07-30 2012-08-06 2012-08-13 2012-08-20 100% 100% 150% 100% </code></pre> <p>and a matrix:</p> <pre><code> 2012-07-30 2012-08-06 2012-08-13 2012-08-20 2012-05-28 1.0 2.0 3.0 2.0 2012-06-04 1.0 2.0 3.0 2.0 2012-06-...
3
1,169
Read method return values from constructor without parameters
<p>This is my superclass Masina that contains a constructor without parameters, one with parameters and a copy constructor</p> <pre><code>package proiect; import java.util.Scanner; public class Masina { int NrDeLocuri,Putere; float Pret; String Culoare; String Producator; public Masina(){ ...
3
1,193
selenium-webdriver error for just opening IE
<p>So, I am using - </p> <pre><code>gem 'watir-webdriver', '0.5.4' gem 'selenium-webdriver', '2.21.1' </code></pre> <p>and JRuby - 1.6.5</p> <p>All I am trying to do is open IE. I have IE version 8.</p> <pre><code>&gt;&gt; require "rubygems" =&gt; true ?&gt; require "watir-webdriver" =&gt; true ?&gt; @b = Watir::...
3
1,455
use kiiObject to save user data
<p>In my app, every KiiUser has one hash table of data. But I have some problems using KiiObject to save data and get it next time. I want to create an KiiObject with a specific URI when user registers so every time he logins I can import it with </p> <pre><code>KiiObject.objectWithURI(&lt;URI&gt;) </code></pre> <p>A...
3
1,966
Generate .wav audio file with "ulaw" encoding in Android
<p>I'm trying to generate a wav file with ulaw encoding from raw pcm data. I have tried some of the solutions by finding in google and here, but I can't seem to make the audio nicely playable. Its noisy and sort of screenching sound. May be the audio is playing too fast, not sure.</p> <p>So, here is the code that I ha...
3
8,835
trigger fetching and updating parent data from separated component using userContext in react native
<p><a href="https://i.stack.imgur.com/Hrc40.png" rel="nofollow noreferrer">enter image description here</a></p> <p>Above is the image description of what I want to achieve. I already implemented all the layers but I have a problem in automatically updating userContext. I have to refresh the userContext.js page manually...
3
4,379
jquery anything slider, multiple instance....problem
<p>I am trying to use the anything slider from: <a href="http://theodin.co.uk/blog/development/advanced-jquery-slider.html" rel="nofollow">http://theodin.co.uk/blog/development/advanced-jquery-slider.html</a></p> <p>Now I need to create multiple sliders in my page, so I rewrote the html like:</p> <pre><code>&lt;!DOCT...
3
10,669
Deserialise JSON from a solar inverter API
<p>I have JSON data from a Fronius solar inverter. I'm trying to read it into VB.NET classes so I can then work some other magic on it (add to a DB, use the info to control household devices etc). I've parsed the JSON through some online resource that all say it's ok.<br /> When running my code the classes are coming b...
3
2,378
get attachment from Bot user and store for future use
<p>I am working on a bot where I need to collect some information from the user to create an order along with the attachment. I am using form flow to collect the information and using the information for creating the Ticket/Order. How can I receive attachment from the receiver and use it with other infoirmation for pro...
3
1,914
Sum weekly totals of values from one data frame based on dates in another data frame in python
<p>I want to sum the values in one column of a dataframe for certain dates that are defined by another dataframe. </p> <p>My first dataframe of dates looks like this:</p> <pre><code>import numpy as np import pandas as pd start_date = ["2-22-16 00:00:00", "2-29-16 00:00:00", "3-7-16 00:00:00", "3-14-16 00:00:00", "3-...
3
1,199
Chaquo with scapy
<p>i'm trying to make arpspoofing with android studio and python. This is the python script:</p> <pre><code>from scapy.all import * from scapy.layers.l2 import ARP,Ether import os def spoofarpcache(targetip,targetmac,sourceip): os.environ[&quot;PATH&quot;] = &quot;:&quot;.join([p for p in os.environ[&quot;PATH&q...
3
1,561
Multiple Beacon Consumer and beacon is not detecting using AltBeacon
<p>I am using altbeacon library in one of my android projects. In that project BeaconConsumer is already implemented in one of the activities. When I try to implement beacon detection in my part of the code beacon is not detecting.</p> <p>But when i remove the BeaconConsumer code from the previously written code, then ...
3
2,194
req.isAuthenticate() always return false after deploy on Firebase
<p>I've created the classic to-do app with a registration and login. All works fine, except authentication, but only after deploying on firebase (on localhost is perfect).</p> <p>For this app, I use these dependencies</p> <pre><code>const functions = require('firebase-functions'); const express = require('express'); co...
3
1,037
How do I set a new cell after the last existing column?
<p>I need to set a new column called <code>Status</code> after the last existing column, but my code is some columns before and using getLastColumn displays nothing.<br> How do I set a new cell <b>after the last column</b> ("Link especificação")?</p> <pre><code> private Workbook setStatus(Workbook wb, Map&lt;String, I...
3
1,546
How can I send this params (parent,level,expanded,isLeaf) to server in jqGrid Tree Grid?
<p>I can't send this params to server using jqTreeGrid and Java with Struts2:</p> <ul> <li>level</li> <li>parent</li> <li>isLeaf</li> <li>expanded</li> </ul> <p>I have created a jqGrid TreeGrid using this documentation <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3atreegrid#treegrid" rel="nofollow">tre...
3
1,905
Getting null when I send file reactjs to express server
<p>I am trying to send files using react js to express the server. but when I send a file from the frontend I got a null value into the server.</p> <p>Frontend: I have consol log into the frontend everything is ok into the frontend.</p> <pre><code>const ProductImport = function () { const [file, setFile] = useState...
3
1,177
How to group by all properties in PowerShell?
<p>I'm planning to remove duplicate firewall rules on Windows. I know there are a set of firewall cmdlets like <code>get-netfirewallrule</code>, but it's too slow when I try to pass a firewall rule to get additional information like <code>Get-NetFirewallRule -displayname xxx | Get-NetFirewallApplicationFilter</code>. S...
3
1,118
Extracting and breaking Down a date from a Material Date picker
<p>So im trying to figure out how I can &quot;Properly&quot; separate the dates im getting from the Date range selector.</p> <p>I've managed to separate them into a start and end value but Id need to more then likely use some kind of regex to separate the dates into a D/M/Y because I have 3 variables I need to fill as ...
3
1,241
navbar doesn't show correctly
<p>I am currently teaching myself web based languages and I am a bit stuck on my bootstrap/html code. Currently I am running into some trouble with bootstrap. I am trying to make a navbar and I have copied code I found online and pasted on Atom and then ran the local site.</p> <p>Here is the code</p> <pre><code>&lt;!...
3
1,388
Rows and columns alignment affecting each other [Android Studiuo]
<p>I've got a problem with TableLayout. I'm trying to place my objects in columns but every next row affects previous ones and destroys them. Here's some code</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://s...
3
1,262
My program doesn't load my functions from my personal lib
<p>I am a technology management student and I fell in love with the C Language. I also enjoy interpretation games and decided to develop a small C program with a small dungeon embedded in it.</p> <p>I made the codes and when left in a single file, they worked, but I decided to divide them into multiple files and create...
3
3,806
python parse XML with lxml giving the right parser parameters
<p>I am parsing xml data with lxml in python</p> <p>The data looks like this:</p> <pre><code>string='''&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;/n &lt;div type=&quot;request&quot; xml:base=&quot;/k-api/7728&quot; xml:lang=&quot;en&quot; &gt; &lt;div n=&quot;&quot; type=&quot;request&quot;...
3
1,156
collectionView Animates Color on Reload
<p>Whenever collectionView reloads, firstColor and secondColor mixes for a moment then get back to how they should be. For some reason adding gradient caused that problem. without gradient and with only one color this problem does not occur.</p> <p>Here is the video link to the problem. <a href="https://vimeo.com/7399...
3
1,239
How to remove index,php from CI project url to make clean url in nginx Hostwinds server, when CI project is inside subdirectory?
<p>"I'm setting up an Nginx server on Hostwinds for CI project which is in a subdirectory. Where I want to make a clean URL by removing index.php. Initially, this project was running on Apache server and with the help of .htaccess file, I have made a clean URL by removing index.php. But .htaccess file not works on the ...
3
1,533
Why are the links in this news ticker unclickable?
<p>I've attached my <strong>code</strong> below:</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>.scroll_news_label { position: absolute; /* margin-left: 1em; */ ...
3
1,126
BX slider images not loading properly
<pre><code>&lt;?php $x = $_GET['house_id']; ?&gt; &lt;?php include 'connection.php';?&gt; &lt;?php $queryz = "SELECT * FROM photos WHERE id = $x"; $link = mysqli_query($conn, $queryz); $lattitude = "SELECT latitude FROM location WHERE id=$x"; $lt = mysqli_query($conn,$lattitude) ; $longitude = "SELECT longitude FROM lo...
3
5,030
I can't get my web page to navigate trhorugh URLs located in selection list in JScript
<p>I have a JavaScript homework assignment that needs to navigate to a selected URL located in a selection list. I thought I had this one down but am stuck. I will list the directions for the assignment so somebody might be able to pinpoint my mistake(s) according to the lesson plan. Any help would be greatly appreciat...
3
5,864
How to add a unique div ID in php 'foreach' loop and use that within JavaScript to show hide elements
<p>I have a simple php 'foreach' loop which works fine when there is only one loop. The php code displays a simple select box which shows or hides a div based on the selection value. The select box and div's are then repeated within each loop. The problem is that when there is more than one repeat of the code in the lo...
3
1,313
How do I centralize the text inside a button
<p>I'm building my new website on SquareSpace, and wanted something a bit more fancy for my landing page.</p> <p>I got this button here (&quot;Button 49,&quot; from <a href="https://getcssscan.com/css-buttons-examples" rel="nofollow noreferrer">https://getcssscan.com/css-buttons-examples</a>).</p> <p>My problem now is ...
3
1,341
How to generate a new random number and transpose the matrix?
<p>Thanks for all helped me before. But I still have some questions about the program. How to generate a new random number while the new random number is equal to the previous random number? Also how to transpose the matrix? </p> <pre><code>#include "stdafx.h" #include "stdlib.h" #include "time.h" int _tmain(int...
3
1,317
Getting `TypeError: __new__() got an unexpected keyword argument 'deny_new' even though Discord.py is on 1.4.1
<p>I'm trying to deploy a python bot to Discord via the heroku server, however I keep getting the <code>TypeError: __new__() got an unexpected keyword argument 'deny_new'</code> error when trying to deploy. Here are my full Heroku logs:</p> <pre><code>2020-08-16T20:25:13.659787+00:00 heroku[worker.1]: State changed fro...
3
1,986
How to get all events from SQlite database in Alamkanak Android-Week-View library ? (i keep getting single Event)?
<p>I am trying to add events dynamically from the my SQLite database , but i get a single event in my Week-view which it is the last event i add in the database , i am using Alamkanak Week-View , i stuck with problem and try many ways , please help guys .</p> <pre><code>mWeekView.setMonthChangeListener(new MonthLoade...
3
1,447
Some issue with Hexagon shape of Imageview in Android?
<p>I do many thing for give hexagon shape to <code>ImageView</code> but it's not work. I have some issue that is show in given bellow image.</p> <p><a href="https://i.stack.imgur.com/w65Ek.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w65Ek.png" alt="enter image description here"></a></p> <p>I tr...
3
1,991
What is the proper way to make an object with unpickable fields pickable?
<p>For me what I do is detect what is unpickable and make it into a string (I guess I could have deleted it too but then it will falsely tell me that field didn't exist but I'd rather have it exist but be a string). But I wanted to know if there was a less hacky more official way to do this.</p> <p>Current code I use:<...
3
1,717
destroy datepicker on after select sepesific value
<p>i want to remove class <code>datepicker</code> in my code after change the select option, but its but its not working properly this my code</p> <pre><code> &lt;?php for ($i = 0; $i &lt; $anak; $i++) { # code... $b = $i + 1; ?&gt; &lt;div class=&quot;card shadow mb-4&quot;...
3
1,471
Unit test for checking automapper mappings
<p>I using automapper and want to write unit test to check if mapping working correctly</p> <p>Here is my automapper profile</p> <pre><code> public class MappingsProfile : Profile { public MappingsProfile() { #region CompaniesHouse CreateMap&lt;CompanyHouseDto, InputCompaniesHouseSearchResult&...
3
1,060
Gradle Build failed Unity
<p>trying to build for android 30 using unity 2019.4.26f1, followed this link :<a href="https://developers.google.com/ar/develop/unity/android-11-build" rel="nofollow noreferrer">https://developers.google.com/ar/develop/unity/android-11-build</a></p> <p>Error: CommandInvokationFailure: Gradle build failed. C:\Program F...
3
6,684
Unable to serialize object having Hashtable as a property in Jersy restful service
<p>I am using sun jersey to implement restful services using java. But it seems jersey framework is unable to serialize an object having <strong>Hashtable</strong> as its property.Below is code snippet.</p> <p>Rest service code:</p> <pre><code>@Path("/get-test-infos") @POST @Produces(MediaType.APPLICATION_JSON) @Cons...
3
4,642
NullPointerException when trying to log in to Firebase with Twitter
<p>I am creating an app that requires signing in with a Twitter account as an authentication method. Then it links the Twitter account to Firebase.</p> <p>I think the signing works fine but there is a problem with linking with Firebase, like some data are not retrieved properly which causes the NullPointException.</p>...
3
7,000
Ajax request php file result without refresh
<p>I have a html file with a search form:</p> <pre><code>&lt;form id="twit" method="post"&gt; &lt;div class="col-md-6"&gt; &lt;input type="text" name="venue" class="search-query form-control" placeholder="Venue Name" /&gt; &lt;/div&gt; &lt;div class="col-md-6"&gt; ...
3
2,048
Jssor Thumbnail Slider don't go back to 1
<p>I have the Jssor Scrolling-Logo Thumbnail-Slider in my code and i want that the slider don't go back to one, when i switch to the last picture. Is there any command that disable this? Here the code: </p> <pre><code> jQuery(document).ready(function($){ var options = { $AutoPlay: true...
3
1,701
Two events, one click, no jquery
<p>I've been learning about events and event bubbling recently and I was trying to test myself with a little code and I've stepped a little father than I can handle.</p> <p>What I'm trying to do is when one <code>&lt;div&gt;</code> is clicked, it toggles down to reveal an extended section. When you click on this <cod...
3
1,106
Possible? Rust macro to define a bunch of constants?
<p>Let's assume, we want a bunch of constants, associating each square of a chess board with its coordinates, so we can use those constants in our Rust code.</p> <p>One such definition could be:</p> <pre><code>#[allow(dead_code)] const A1: (usize,usize) = (0, 0); </code></pre> <p>and there would be 64 of them.</p> <p>N...
3
1,154
jinja2.exceptions.UndefinedError: 'predictions' is undefined
<p>I have a flask website. I was to make prediction images using the model that I build in Google Collab. In this, I have 25 classes and I took 3 classes for testing its work or not. I have already run it but when I go to the predict pages it seems to get the error '<strong>jinja2.exceptions.UndefinedError: 'prediction...
3
1,672
How do you wrap synchronous network I/O trivially with Tokio?
<p>There is an evident lapse in my understanding on concurrent development in Rust unfortunately. This question stems from weeks repeated struggles to solve a seemingly &quot;trivial&quot; problem.</p> <hr /> <h1>Problem Domain</h1> <p>Developing a Rust library, named <a href="https://github.com/JuxhinDB/twistrs" rel="...
3
1,543
Node/Express Route 'Show' presenting too many results
<p>This is for the backend of a MEAN site.</p> <p>I am currently trying to create several search functions based off of different params in the same mongoose model. For the Controller I have </p> <pre><code>show:(req,res) =&gt; { Activity.findById ({_id: req.params._id}).then(activity =&gt; { ...
3
1,592