title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Saving image from multipart/form-data using AWS Lambda (Python) | <p>I am using multipart/form-data with Ajax to send strings and upload a file. I am able to parse the strings somehow and I believe I am able to get the image file in string format as well but when I save the image to an S3 bucket and try to open it , it says "file format not supported".</p>
<p>Here is the HTML code:<... | 2 | 7,435 |
How to run Kafka with Docker on OS X? | <p>I tried to run Kafka without Docker a few days ago, again, I failed. It's very hard to setup. So, I decided to use Docker, then I failed again. What could be the problem?</p>
<hr>
<p><strong>I ran these commands:</strong></p>
<pre class="lang-bash prettyprint-override"><code>git clone https://github.com/confluent... | 2 | 2,765 |
Vue.js go back button browser detail back to lister position | <p>I have a test lister products and detail. Now when i go back with de backbutton in the browser is doesn't go back to the wright position.</p>
<p>So if i scroll down in the lister , click product to detail and back it doesn't go to the position i clicked before.</p>
<p>How can i achieve that?</p>
<p>Main.js</p>
<... | 2 | 1,556 |
Masonry add a loader at the bottom to show more images are still loading | <p>I am using masonry to load in lot's of images, I have it setup so that the images gradually load in (append) rather than having lots of white space on the page. You can see working l<a href="http://hutchcreative.co.uk/clients/pocko/talent/nomoco/" rel="nofollow">ive version here</a> to help show what I mean.</p>
<p... | 2 | 1,329 |
How to get Array inside Array data to another array in angular 7 | <p>I have a json data set with arrays.I want to retrieve data from that set to another array.</p>
<p>this is my json data</p>
<pre><code>[
{
"user": [
{
"userActivityId": "08d66e8f-0f2f-3162-4d1d-b0307df0b532",
"userId": "08d65df8-5a1c-4879-b8b6-f583bafa8084",
... | 2 | 1,198 |
How to store only the text of tweet using Tweepy | <p>I'm watching this series <a href="https://www.youtube.com/watch?v=wlnx-7cm4Gg&list=PL5tcWHG-UPH2zBfOz40HSzcGUPAVOOnu1" rel="nofollow noreferrer">https://www.youtube.com/watch?v=wlnx-7cm4Gg&list=PL5tcWHG-UPH2zBfOz40HSzcGUPAVOOnu1</a> which is about mining tweets with tweepy (python) and the guy stores the twe... | 2 | 3,070 |
Can you pass generic delegate without the type parameter? | <p>I have three projects </p>
<ol>
<li>MVC Web application</li>
<li>Service application which is kind of two layers business/repository</li>
<li>Entity framework (all EF configuration lives here)</li>
</ol>
<p><strong>MVC</strong> references > service</p>
<p><strong>Service</strong> references > EF</p>
<p>I have t... | 2 | 1,027 |
How to write XmlType for node names of classes that inherit from a base class using XmlSerializer | <p>I would like to generate the following XML from a group of C# objects:</p>
<pre><code><?xml version="1.0" encoding="utf-16"?>
<MyRoot xmlns="http://sample.com">
<Things>
<This>
<ThisRef>this ref</ThisRef>
</This>
<That>
<ThatRef>that re... | 2 | 1,259 |
Converting two simple SQL queries into Doctrine | <p>First of all, I want to apologize for the length of this question; I didn't know how to properly ask my question without a lot of background. Please bear with me.</p>
<p>I'm converting a simple application that I use to hone my skills from my own custom database access schema to Doctrine. I chose Doctrine for a n... | 2 | 3,552 |
should django modal have a separate view? | <p>I am working on an application that has a page with a table that is a list of users. Each user has a button which pops up a modal that does something. I am trying to create the modal that will get the user information when the button in clicked, additionally, I need in that modal some logic based on the user informa... | 2 | 3,212 |
Slow network access to vagrant VM when host connected to wifi | <p>I have a VirtualBox image based on Ubuntu 12.04 which is started with the following Vagrantfile:</p>
<pre><code>Vagrant.configure("2") do |config|
config.vm.box = "mybox"
config.vm.box_url = "mybox.box"
config.vm.network :forwarded_port, guest: 8000, host: 8000
config.vm.network :private_network, type: ... | 2 | 1,820 |
Horizontal Scrollbar Generated on Vertical scrollbar Overflow | <p>I'm working in a large legacy system with thousands of pages where dynamically generated tabular data is populated into html defined in the following format:</p>
<pre><code><table style="border: 2px solid blue;">
<tr>
<td>
<div style="overflow: auto; border: 2px solid or... | 2 | 1,991 |
RFID working with Arduino UNO but not with Arduino Mega 2560 | <p>I am new to arduino and recently encountered this problem. I got a starter kit and in that had an RFID module. I tried using it with the arduino they provided me, but it didn't seem to work.
Here is the code if you want to see it.</p>
<pre><code>/*
* ----------------------------------------------------------------... | 2 | 1,605 |
Grails deleting child | <p>I have a class, DigitalObject which is basically a container for a url and the date that it was last modified.</p>
<pre><code>class DigitalObject {
String url
Date lastUpdated
}
</code></pre>
<p>I have two classes that use DigitalObjects to reference different urls related to them</p>
<pre><code>class Video ... | 2 | 2,037 |
Android: Create colored TextClock widget | <p>I have been trying to make an Android widget that is simply a TextClock with a user-defined color. However, after a restart of the launcher, the color of the TextClock always reverts to white and does not retain the user-defined color. This is my first time making an Android widget, and I have been pulling my hair... | 2 | 3,603 |
Make a TDBEdit show the characters remaining | <p>The problem I'm wanting to solve is to display to the user the remaining characters left in a field as they are typing into a TDBEdit.</p>
<p>Currently I'm doing something along the lines of</p>
<pre><code>lCharRemaining.Caption := Field.Size - length(dbedit.text);
</code></pre>
<p>i.e. updating a label in the On... | 2 | 1,077 |
Using plotly express to show image and plot with animation | <p>I need some help making an animation with plotly express where each frame will include an image and a graph (preferably a plotly express graph) side by side. My goal is to have the animation be corresponding to time steps from each frame. Plotly express has an example of this with just images shown in the link below... | 2 | 1,180 |
SyntaxError: invalid syntax, when starting odoo-bin Odoo 11 | <p><strong>Upadate:</strong></p>
<blockquote>
<p>At the moment <code>Odoo-11.0</code> is not compatible with <code>Python 3.7.0</code></p>
</blockquote>
<p>I did a source install with odoo version 11.0 on Windows 10. Executing odoo-bin results in a syntax error. Previously it was running fine with <code>Python 3.6.... | 2 | 2,895 |
GitLab, Can't login in Docker registry | <p>I am a GitLab User. I produce with a groff script a book with 900 pages. The output will be stored in the output folder. When an author make some changes and push into GitLab, the Docker image will produce this book. </p>
<p>The idea is to build a docker container and store the container in the GitLab registry. Th... | 2 | 1,172 |
explanation of a rsa key file | <p>I'm making a pure math demonstration about RSA algorithm, so I made a pair of keys with the command:</p>
<pre><code>ssh-keygen -t rsa -C "my_mail@server.com"
</code></pre>
<p>so it made the files id_rsa and id_rsa.pub since these files are just for demonstrative porpoise I have no problem showing them, these are</... | 2 | 1,967 |
How to get php echo and die messages to work with jQuery notice plugin | <p>I've created a contact form and it's set up to send the form contents via a mail.php file. At the moment it brings up a success/error message on a new blank page via echo and die respectively, but I want to have some kind of notification that pops up on the current page instead.</p>
<p>The solution I'd like to use i... | 2 | 1,344 |
Keras binary classification probabilities to labels | <p>Keras predicted output for binary classification is probabilities. Not classes, i.e., <code>1</code> or <code>0</code>.
for example the following code generates probabilities.</p>
<pre><code>import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Dropout
# Generate dummy data
x_train... | 2 | 1,254 |
How to setup express route res.json(data) object and display the response in vue $HTTP call? | <p><a href="https://i.stack.imgur.com/GWhW4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GWhW4.png" alt="enter image description here"></a></p>
<p>Actual data in the collection
<a href="https://i.stack.imgur.com/afMV1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/afMV1.png" a... | 2 | 1,308 |
Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': | <p>whenever i run this code get the error are as bellow.
Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
i m also try this statement img.crossorigin= "anonymous" but not get proper output,if any one knows then help me.</p>
<pre><... | 2 | 1,406 |
Insufficient system resources exist to complete the requested service when using GeneticSharp | <p>Long story short, I'm using GeneticSharp for an iterative/conditional reinforcement learning algorithm. This means that I'm making a bunch of different GeneticAlgorithm instances, each using a shared SmartThreadPool. Only one GA is running at a time though.</p>
<p>After a few iterations of my algorithm, I run into ... | 2 | 1,344 |
Ajax on Rails How to use Ajax append method for render HTML? | <p>I am not an English speaker.I ask of your understanding.sorry</p>
<p><strong>/app/views/sale/index.html.erb</strong><br>
I want to do ajax here </p>
<pre><code><div class="col-lg-4" style="padding:5px;" id=reply_preview>
<%= render 'sale/billpreview'%>
</div>
</code></pre>
<p>this is bu... | 2 | 2,442 |
Swift 4 - URLSession | <p>I have a small issue when parsing APIs from the website www.adx.ae</p>
<p>Here are the two APIs:</p>
<p>1- List of all public companies: <a href="https://www.adx.ae/en/_vti_bin/adx/svc/Members.svc/ListedCompanies?showPrivate=false&showPublic=true" rel="nofollow noreferrer">https://www.adx.ae/en/_vti_bin/adx/sv... | 2 | 1,768 |
syslog-ng flush_lines option does not work | <p>I use syslog-ng 3.5.3 on ubuntu 14.04
I need to reduce system load.
So I would like to use flush_lines option.</p>
<p>I added flush_lines(2) to global options.
I confirm the behavior in terminal with <code>tail -h /var/log/messages</code></p>
<p>But log messages was written immediately as before.
How can I out put... | 2 | 2,295 |
How to make a textbox in c# winform to accept auto suggestions not only from starting but also from middle or any place if matching | <p>I have a simple form with a textBox in it which I am trying to make an user friendly Auto-suggest Textbox..</p>
<p>As per the current scenario I am using <code>AutoCompleteStringCollection</code>class bywhich I am able to make textbox show suggestions for the word that starts with the particular Text entered in tex... | 2 | 1,260 |
Make a UserCOntrol on a Page the same size as the MainWindow in WPF | <p>I have a WPF application. It consists of:</p>
<ol>
<li>A MainWindow which loads a Page which contains a UserControl.</li>
<li>The UserControl is simply a MediaElement with play/pause controls etc.</li>
</ol>
<p>Here is the XAML for the UserControl:</p>
<pre><code><UserControl x:Class="InstallerToolkit.UserCon... | 2 | 1,468 |
How do I get the primary Key after entity.merge | <p>I am using entity.merge from my SpringBoot JPA Hibernate to persist certain data in Oracle database where primary key is Sequence generated.
But after merge , I am not able to get the primary key which is inserted into the Oracle table. For both the cases it is returning 0</p>
<pre><code>LOG.info("Inside InsertPart... | 2 | 2,225 |
nginx yii2 tips 500 Internal Server Error when getenforce is enforcing | <p>I copied my site to Google Platform, it tips <code>500 Internal Server Error</code> (eg when I visit this page <a href="https://letsclassifieds.com/info/add" rel="nofollow noreferrer">https://letsclassifieds.com/info/add</a> ),But it runs ok on vultr and other services.</p>
<h2>Directory /htdocs/flxx/basic/runtime ... | 2 | 3,751 |
Running out of heap space when using hibernate in a Java EE application | <p>I am currently developing a Glassfish application. To allow the business EJBs to communicate with the MySQL back-end there is the following structure:</p>
<p>An interface project<br>
A domain project<br>
A JPA/ORM project (Hibernate) </p>
<p>The interface project contains interfaces of the models and an IDomainFa... | 2 | 4,762 |
Elasticsearch.js AngularJS autocomplete | <p>I'm trying to implement an autocomplete feature using Elasticsearch, angularJS and bootstrap.</p>
<p>I've got inspired by this solution :
<a href="https://stackoverflow.com/questions/26461541/autocomplete-typeahead-angularjs-bootstrap-on-elasticsearch">autocomplete/typeahead angularjs bootstrap on elasticsearch</a>... | 2 | 1,094 |
How to make submenu act like dropdown but show first value like select | <pre><code><nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle navigation</span>
<span class=... | 2 | 2,793 |
ruby on rails I need to build an object from api data | <p>I want to create an object from data API. At first, the user will have to enter his immaticulation number. Once registration typed him return the following data in the view show</p>
<h1>vehicles_controller:</h1>
<pre><code> @vehicle = Vehicle.new
@vehicles = []
vehicle_number = params['immatricule'].capital... | 2 | 1,920 |
goJS lock nodes | <p>I have simple python flask app where I send JSON data to my HTML and with goJS I display my graph which looks like this:</p>
<p><a href="https://i.stack.imgur.com/fg2Rv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fg2Rv.png" alt="enter image description here"></a></p>
<p>Users can add new nod... | 2 | 6,173 |
Java mouse picking on diamond tiled map | <p>Ok, im at my wits end. I am trying to create a small isometric tile map thats bigger then the screen witha viewpoint i can modify with mouse dragging.
I got the drawing right (i think), i got the dragging working, just do't seem to be able to get the mouse picking right.
I have made it so far that i get the tile nea... | 2 | 3,986 |
Reuse a Google Maps street view inside of a modal | <p>I am developing a web app in Rails. When I open a marker, a modal pops up with a street view in a box. I can open one or two markers, but after that I get an error that WebGL has hit a snag. I have tried to look online for resources but nothing makes sense. See below pics for more info. Any help would be greatly app... | 2 | 3,978 |
Adjusting height of the panels in jquery Accordion widget | <p>I am using jquery accordion widget. I want the height of the panles in the widget to get adjusted according to their contents. For that I tried using "setter" method of options we have and also while instantiating I tried setting the value of 'heightStyle'. It even works for one of the accordion widget instance but... | 2 | 7,056 |
Re-positioning items on navbar collapse in Bootstrap | <p>I am working on a navbar for a webpage. I was able to make a navbar with data aligned left and right, and Brand in center. However, when the navbar collapses, the alignment of the items becomes <strong>Left (over) Brand (over) Right</strong>. I want the Brand to stay up at top and other items to collapse.</p>
<p>He... | 2 | 1,439 |
Jquery datepicker multiple rows button image | <p>I used datepicker in multiple rows. Its working correctly. Now I placed the button image in the datepicker textbox. I need to activate the button image to click and show the calendar. After using the "showOn:'button',", i got the following problem. when i add more rows by clicking the "Add new" button, button images... | 2 | 2,035 |
Capturing video with AVCaptureSession, no visible output with EAGLContext | <p>I'm capturing live video with the back camera on the iPhone with AVCaptureSession, applying some filters with CoreImage and then trying to output the resulting video with OpenGL ES. Most of the code is from an example from the WWDC 2012 session 'Core Image Techniques'.</p>
<p>Displaying the output of the filter cha... | 2 | 1,716 |
MapView google maps NullPointerException? | <p>I'm trying create a <strong>How to get</strong> using MapView. I created a Fragment and a XML to use that. The problem is when I try open the MapView throws a <strong>NullPointerException</strong> but I can't undertand why. </p>
<p>How could I solve it ?</p>
<p><strong>XML</strong></p>
<pre><code><LinearLayou... | 2 | 1,720 |
Laravel API not working without CSRF token (and Headers globally messing around with me) | <p>I am trying to setup an API in my Laravel project, which I would like to consume with Javascript in my own project. The API is stateless, thus my understanding was that CRSF tokens become irrelevant when requesting the API. I am encountering the two following issues:</p>
<ol>
<li><p>when I try sending requests with... | 2 | 1,383 |
What should I do when it says "Syntax error, insert "}" to complete ClassBody" | <p>I'm having trouble with the error "Syntax error, insert "}" to complete ClassBody"
and i don't know what to do.
This is my code:</p>
<pre><code>import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.... | 2 | 2,407 |
GridBagLayout - How can I make this cell fill the space below it? | <p>I'm creating a JFrame with 4 JPanels. Using GridBagLayout, I create three rows and two columns, two panels per column. By changing the blue panel's cellheight from 1 to 2 I can make it cover the cell below it. I'd like to do the same for the green panel, to fill the space below it. Here's what my code currently ... | 2 | 1,194 |
pip3 install gdal ERROR: Command errored out with exit status 1 | <p>Premise:
I have a macbook-pro with Catalina (10.15.4), I have installed: python 3.7 and the GDAL 2.4 and Qgis 3.12 library. (I don't use anaconda or miniconda and I installed homebrew)</p>
<p>Everything stems from the difficulty of executing a particular project that takes data on Corona Virus Italia from Github an... | 2 | 6,640 |
How to reschedule a Liferay task dynamically? | <p>I have created a portlet (extending <code>MVCPortlet</code>), with a class that extends <code>MessageListener</code> to perform certain automated tasks. Let's call this class <code>SessionCollector</code>.</p>
<p>The file <code>liferay-portlet.xml</code> contains the following configuration snippet:</p>
<pre class... | 2 | 1,203 |
ASP.NET MVC - setting custom IControllerFactory has no effect | <p>I really dont understand what I'm doing wrong here - for some reason the <code>IControllerFactory</code> i register is not being used, and I end up with a <code>System.ArgumentException</code>:</p>
<blockquote>
<p>Type 'Company.WebApi.Controllers.AController' does not have a default
constructor</p>
<p>at S... | 2 | 2,492 |
ASP ImageButton in Repeater not firing | <p>I have a usercontrol that contains a repeater. Within this repeater there is an ImageButton, that when clicked is supposed to call an expand method. However, the ImageButton is not firing anything, not even a PostBack.</p>
<p>AutoEventWireUp on the usercontrol is set to true. the Repeater ItemDataBound is set in Ma... | 2 | 17,196 |
FFmpeg adding 0.05 seconds of silence to transcoded AAC file? | <p>In Java, I'm using FFmpeg to convert a WAV file to AAC with the function:</p>
<pre><code>-i input.wav -ac 1 -ab 64000 -ar 22050 output.aac
</code></pre>
<p>When I open these two files in Audacity, I can clearly see that the AAC file is 0.05 seconds longer, with 0.05 seconds of silence added to the beginning.</p>
... | 2 | 4,168 |
WSDL: Can't figure out the parameter for method | <p>I've been googling around for two days with no luck, hoping directly asking the question would shed light!</p>
<p>I'm working on a stock level update system with a fulfilment company. I've been given the wsdl address and the following instructions:</p>
<blockquote>
<p>When calling a command, the website must pas... | 2 | 1,578 |
Filter Values which are greater than its AVG value in Pig/Hive | <p>This is my sample data:</p>
<pre><code>+---------------------------+------+-----------+--------------+------------+--------+--------------+-------+------------------+
| Car | MPG | Cylinders | Displacement | Horsepower | Weight | Acceleration | Model | Origin |
+--------------------... | 2 | 1,155 |
How to sort and search BST by name(string)? | <p>I have to write a program that reads a .txt file into the tree and then it allows to perform specific operations with it. I'm stuck on the part where I need to sort tree by names and search by name as well, any input would be awesome. So, my input file is in the format :</p>
<pre><code>3800 Lee, Victor; 2.8
3000 B... | 2 | 1,230 |
implement flask-healthz for python3 | <p>I am trying to implement flask-healthz (<a href="https://pypi.org/project/flask-healthz/" rel="nofollow noreferrer">https://pypi.org/project/flask-healthz/</a>) for my python application to get return on liveness and rediness probes. But somehow it doesn't work for me. Below is my code snippet :</p>
<pre><code>from ... | 2 | 1,335 |
Problem with Literals and ViewState | <p>I am trying here to create a module linked to a webhosting cart process.</p>
<p>The first step should have a textfield with an "add" button. This button checks the availability of a domain and add it to a list.</p>
<p>The goal here is to basically display the list of domain verified and give proper action as radio... | 2 | 1,426 |
Sorting date using KnockoutJS | <p>Firstly, I'd like to thank you for reading this post.</p>
<p>I have a small problem, I am trying to sort my posts in descending order of date created. It sorts the date in descending order by the posts created today and yesterday get mixed up.</p>
<p>For example: Posts created show as;
Created: Today, Created: Ye... | 2 | 1,466 |
How to reduce read operations on Firebase Cloud Firestore? | <p>As a passionate high-school teacher, I am using Firebase Cloud Firestore & Flutter for my read-only app. My data is about 2000 image.png files with some tags as categories and subcategories. Categories, subcategories and images have an order among themselves. Reason of me using Cloud Firestore is, I can change (... | 2 | 3,496 |
How to filter by a column in exceljs with Javascript before transcribing results to Google Sheets API via Node | <p>I have written a script which uses the following:</p>
<pre><code>// https://nodejs.org/
// https://developers.google.com/sheets/api/quickstart/nodejs?hl=en
// npm install googleapis@39 --save
// https://www.npmjs.com/package/exceljs
</code></pre>
<p>I need to somehow map or filter results to end up with all rows in ... | 2 | 3,627 |
Pygame buttons not working | <p>I have created some sort of menu navigation system in my game. All the screens are blitted in. The "Play" and "Quit" and "Controls" button works just fine but when I try to press menu from the controls screen, nothing happens. On the controls screen, you can faintly see the first menu screen from before. That might ... | 2 | 1,082 |
NPM Error when adding package as a peer dependency | <p>I've 2 projects, where I use the same global components, and I decided to create a private npm package, when I moved my dependencies to peer dependencies it gives errors. I want to install packages without error, and when I try to install the npm package in my projects, I want to install it without npm i --legacy-pe... | 2 | 3,488 |
Populate Bootstrap Table with data from json source | <p>I,m new in working with bootstrap and json files and I came to the following problem:</p>
<p>I've got the following code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code... | 2 | 1,510 |
android image rotating, imports error | <p>Hi to all.</p>
<p>I'm having a problem with the imports. It's showing me errors on the imports and if I remove them the <code>JpegImageMetadata</code>, <code>Sanselan</code>, <code>ImageReadException</code>, <code>TiffImageMetadata</code>, <code>ExifTagConstants</code> can't be resolved to a type.</p>
<p>I'm using... | 2 | 1,577 |
Define constants before init in ant/netbeans | <p>I have a webapp to be ran on Tomcat6/JbossAS 5 and, for versioning purposes, I have several AND targets that will perform a set of operations to define a constant with version number and build datetime.</p>
<p>The targets perform the following:</p>
<ol>
<li>Delete the Release.java</li>
<li>Copy the Release.templat... | 2 | 1,143 |
storages in OpenCV with Python | <p>I want to find contours in an image and further process them e.g. drawing them on the image.
To do that I have two functions running in different threads:</p>
<pre><code>storage = cv.CreateMemStorage(0)
contour = cv.FindContours(inData.content, storage, cv.CV_RETR_EXTERNAL, cv.CV_CHAIN_APPROX_SIMPLE)
</code></pre>
... | 2 | 3,604 |
DPDK compiler error on fedora 23 | <p>Attempting to build DPDK 16.04 and am getting an error. I've done a little hunting around and some of the solutions are "update the kernel" I am currently running Fedora 23. There is a uname -a below with the exact version. I think what I am really looking for is more information about what is wrong. The error... | 2 | 2,136 |
App keeps freezing,Android studio error? | <p>In this app i am trying to get a small <code>Button</code> to move accross the screen, and am getting the user to try and avoid the blocks that are slowly falling across the screen.</p>
<p><strong>XML layout:</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="htt... | 2 | 6,513 |
Google Sheets Apps Script On Edit Remove Editors From Protected Range Very Slow / Not Completing | <p>I am relatively new to Google Apps Script and am having difficulties with my code below. Basically, it is bound to a sheet that acts as a workflow. I use the installed onEdit trigger, it loops through to see what cells have changed, then either timestamps, sends an email, or protects a range, given the cells that ... | 2 | 3,370 |
Changing GCP IAM roles for multiple users | <p>I have over one hundred GCP users that have mixed roles. These users were manually created via IAM console by different admin personnel. We would like do some clean up to the project. The roles needed for these users are simply project viewer, bigquery user, bigquery data viewer and bigquery jobuser. I would like ... | 2 | 1,314 |
Insert data from multiple textfields into MYSQL Database | <p>Basically, I am able to display the DIVs based on the selection of drop box. now my problem is :
I am able to insert data when there is only single text field. When there are 2 text fields, the submission is a success, but the data cannot be found in the database. 1 row in the database is taken though. </p>
<pre><... | 2 | 1,687 |
Using pam_python in a script running with mod_python | <p>I would like to develop a web interface to allow users of a Linux system to do certain tasks related to their account. I decided to write the backend of the site using Python and mod_python on Apache. To authenticate the users, I thought I could use <a href="http://packages.debian.org/squeeze/python-pam" rel="nofoll... | 2 | 1,376 |
MySQL java servlet and JPA | <p>I tried to access MySQL database using java servlet and jpa. I created MySQL database using phpmyadmin. My database contains some data but after running the java project on Tomcat 7 server it can't fetch data from the database. Here I post my Entity class Servlet jsp and persistance.xml and screen capture of the res... | 2 | 3,217 |
Fatal error: Call to a member function query() on a non-object in .php file | <p>I'm new to PHP and SQL, but I'm trying to create a login script for my webapp.
For some reason I'm stuck. When the username or password-field is empty, there is an alert, but when they are both filled in correct or incorrect, there is no alert.</p>
<p>When I open the website in my browser (Chrome) and inspect the p... | 2 | 1,578 |
How to retrieve a text value in a kendo drop down list within a kendo grid cell but still pass the ID in CRUD | <p>I'm having a problem finding a solution related to the Kendo Grid.</p>
<p>I am rendering a kendo dropdown list within a cell of a Kendo Grid. It appears to look fine and all, until the user focuses off or tabs off of the dropdown within the cell. The red hash shows that a change was made, but it's showing the data-... | 2 | 6,121 |
http: read on closed response body - httptest.NewServer | <p>I am trying to get to grips with testing using the httptest.NewServer and I am hitting a roadblock.</p>
<p>In my code I am making a GET request to an external API and I want to write a test for this using httptest.NewServer.</p>
<p>Here is my code making the request (main.go):</p>
<pre><code>package main
import (
... | 2 | 1,062 |
Angular 'values is undefined' subscribing to mapped http response (request not being made?) | <p>I have a simple login form component (<code>LoginComponent</code>) that calls the <code>submitLogin</code> method.</p>
<pre class="lang-js prettyprint-override"><code>import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/rou... | 2 | 1,926 |
React Dev Build: The Operation Is Insecure With Safari or Any Mobile Browser | <p>I have a React app. The app works as expected everywhere except, Safari for Mac and any mobile browser. All the solutions I find online are outdated and not relevant to my versions.</p>
<p>I've tried playing with the browserlist to no avail as well. The workarounds I've seen for webpackHotDevClient have been impleme... | 2 | 1,533 |
Getting SQLiteException: no such column | <pre><code>public class MyDBHandler extends SQLiteOpenHelper {
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "winkelskortrijk.db";
private static final String TABLE_USERS = "users";
private static final String TABLE_FAVOURITES = "favorieten";
public sta... | 2 | 4,517 |
Canvas Asteroids game | <p>I'm making Asteroids game in html5 with canvas. I've made moveable ship, which can rotate right and left and can move forward. I've added friction to slow it down when keys aren't pressed. Next thing to do is shooting bullets/lasers. I have yet only one shot and bullet goes forward, but it follow the movement of shi... | 2 | 2,506 |
Assigning different materials to different meshes on the same object | <p>I initially had a function that created a rectangular mesh given a specific height/width:</p>
<pre><code>void BoxMesh(float width, float height)
{
MeshFilter mf = GetComponent<MeshFilter>();
Mesh mesh = new Mesh();
mf.mesh = mesh;
//Verticies
Vector3[] verticies = new Vector3[4]
{
... | 2 | 1,634 |
Is it possible that fireEvent.click from @testing-library/react re-renders the component with its initial state? | <p>I have a React Component (Comp) with an input element and a button element. I wrote a test to verify that empty input is parsed correctly.</p>
<p>Problem:</p>
<p>1) input's value is assigned to be "" (input has <code>onChange={ e => this.setState({ inputValue: e.target.value }) }</code>)</p>
<p>2) <code>fireEv... | 2 | 1,160 |
Tensorflow bazel quantization build error | <p>I am trying to build tensorflow tools package with bazel 0.18.0</p>
<p>following steps are ok</p>
<pre><code>git clone https://github.com/tensorflow/tensoflow
bazel build --config=cuda //tensorflow/tools/pip_package:build_pip_package
bazel build --config=cuda //tensorflow/examples/label_image:label_image
</code></... | 2 | 1,408 |
Could not resolve this reference: NuGet on CI server | <p>I'm running a CI build on a TFS build controller, connected to VS Online. I've got a 'Could not resolve this reference' problem for a NuGet package and I've observed behavior that I haven't seen before:</p>
<p>Locally the pacakage is downloaded to <code>packages\FluentValidation.5.5.0</code> whereas on the server, ... | 2 | 1,148 |
Using MockedProvider results in error "No more mocked reponses for the query" in jest-react | <p>I have been trying to test a react functional component , which uses apollo-react to fetch data. I am constantly getting the error : <strong>No more mocked reponses for the query</strong> . I have tried various solutions and nothing worked. Here is test case :</p>
<pre><code>import { mount } from 'enzyme';
import P... | 2 | 12,363 |
Failed to cast result of Marshal.GetActiveObject for COM interop wrapper | <p>I'm struggling to work out how to access a COM interface provided by a C++ application and use it from a C# .NET application.</p>
<p>I try to access my COM object (which is provided by a running process) from my C# app like this:</p>
<pre><code>object obj = Marshal.GetActiveObject("MyLibrary.Application");
MyLibra... | 2 | 1,742 |
Unable to attach multiple files to an email in Android | <p>I want to attach multiple files to an email.</p>
<p>First I am preparing list of <code>Uri</code>'s.</p>
<pre><code>void prepareListOfUri()
{
listOfUri = new ArrayList<Uri>();
File fileTemp = new File(android.os.Environment.getExternalStorageDirectory(), "BuyNowImages");
fileTemp.mkdirs();
f... | 2 | 1,144 |
Curl, file_get_contents and Instagram's CDN | <p>After two days of research I didn't manage to find the answer/solution to my question/problem. So, here I am. Pardon me if it's already posted somewhere, I would appreciate the link. So...</p>
<p>I have an app that fetches instagram content/images based on hashtags. I need to copy the selected images from the insta... | 2 | 1,114 |
Sphinx4 - Allocation of search manager resources failed | <p>I'm working on a project using sphinx4. I tried running the app helloworld but i keep getting the following error</p>
<pre><code>Exception in thread "main" java.lang.RuntimeException: Allocation of search manager resources failed
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBr... | 2 | 6,102 |
extjs 3.4 data not displaying from a popup grid to the main grid | <p>I have a grid in which I want to filter some results. For filtering the result a popup is opened and the user can select the search criteria and filter the results. The php file is executed as well as the result is returned to the popup, but it is not displaying in the main grid. Here is my code.
This code displays ... | 2 | 6,096 |
symfony 4 error when uploading file | <p>I am trying to upload a file, very much following the instructions on <a href="https://symfony.com/doc/current/controller/upload_file.html" rel="nofollow noreferrer">Symfony's cookbook</a>, but it doesn't seem to work.</p>
<p>The specific error is as follows, but the background reason is that the file as such does ... | 2 | 1,113 |
Keras: Multi-label classification with U-net architcture for effective background/foreground image segmentation | <p>I have a series of cell images (+ masks) similar to 'D' in the following picture:</p>
<p><a href="https://i.stack.imgur.com/43RM9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/43RM9.jpg" alt="enter image description here"></a></p>
<p>However, I'm trying to set up a two-label classification net... | 2 | 2,341 |
Django UpdateView with related model | <p>I have the following situation and I don't know how to do an update:</p>
<pre><code>#models.py
class Task(models.Model):
creation_date = models.DateField(
default=None,
)
name = models.CharField(
max_length=255,
)
description = models.TextField(
max_length=500,
bl... | 2 | 1,187 |
connection to a web service on https:// in android | <p>working on an event manager application , connecting to an http:// web service to retrieve JSON response storing events in local sqlite DB and so forth everything was going alright , until we moved the web service to https://, i started receiving ssl certificate error every time i tried to connect to the service .
u... | 2 | 2,079 |
How to load google custom search onclick | <p>This is maybe a stupid question, but I'm a newbie with javascript...</p>
<p>I have a static website that uses google custom search (V2). The script provided by Google loads asynchronously and that is good, but there are just a few searches a day, so I'm looking for a solution to load custom search "stuff" only if a... | 2 | 1,026 |
Type Error google.visualization.DataTable is not a constructor | <p>I am trying to create a table using google chart, but it is returning the error of the contruct of the table method. I saw several references, but I think the error is something that is giving in the jsapi library, so google is not defining. </p>
<pre><code>> Uncaught TypeError: Cannot redefine property: Map
... | 2 | 1,091 |
django rest framework 3 ImageField send ajax result “No file was submitted.” | <p>I have an API endpoint with Django Rest Framework to upload an image.
Can you spot what I'm doing incorrectly?</p>
<p><strong>#models.py</strong></p>
<pre><code>class test(models.Model):
...
upload_path = 'upload/'
image = models.ImageField(upload_to=upload_path, null=True, blank=True)
...
</code><... | 2 | 1,065 |
Multiple destructor definition for no reason | <p>I have a project which I'm migrating from VC6 to VS2013. While I was building the project, I'm getting this error. </p>
<blockquote>
<p>error LNK2005: "public: virtual __thiscall CMemDC::~CMemDC(void)"
(??1CMemDC@@UAE@XZ) already defined in GameBoard.obj</p>
</blockquote>
<p>Following are the files that might ... | 2 | 1,900 |
Snake game: how to check if the head collides with its own body | <p>You may have played Snake, a game where you have to eat food to grow and you fail if you collide with the snake's body or certain obstacles. The first part was easy, but the latter seems impossible to achieve.</p>
<p>I have tried to make a <code>for</code> loop check if the last element of my snake array is collidi... | 2 | 1,879 |
BUG in WPF? TextBlock inside Adorner display inverse text when FlowDirection is RightToLeft | <p>I'm using adorner to display a watermark inside my textbox. but when i set FlowDirection of window to RightToLeft, text inside adorner (which is textblock) is inverse!!!</p>
<p>Is that a bug or i should change something?</p>
<p><img src="https://i.stack.imgur.com/yxVjm.png" alt="enter image description here"></p>
... | 2 | 1,555 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.