title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
ChartJS TypeError: document.getElementById(...).getContext is not a function | <p>I am working with Symfony 2 and Twig Template. In Twig I want to draw <strong>two</strong> charts with Chart.js. </p>
<p>So I included the following <code>js</code>:</p>
<pre><code>{% block javascripts %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script>
<... | 1 | 1,169 |
How to send an email with mail gem in ruby on rails | <p>I am trying to send an email using <a href="https://github.com/mikel/mail" rel="nofollow">mail gem</a>. But Unfortunately it is not working.
This is my controller.</p>
<pre><code> def create
fn = params["firstname"]
ln = params["lastname"]
email = params["email"]
file = params["file"]
... | 1 | 1,461 |
Check if there's been data copied/pasted from a excel file (VBA) | <p>Im going to start by telling what my intention was with this code</p>
<p>In my job we have to open every sales order that will be sent in that day and check for the itens to be shipped manually.
Since its very time consuming i tought in creating a worksheet that it will look for the itens in every sales order and c... | 1 | 1,522 |
Receiving ORA-06531 Reference to uninitialized collection error | <p>I am running a function that imports a file and I am receiving the following Oracle error:</p>
<p>ORA-06531: Reference to uninitialized collection
ORA-06512: at "BANINST1.SZKPERT", line 186</p>
<p>I have read on other answers that I need to initialize a collection to avoid this error. However, I am unsure what co... | 1 | 1,969 |
Multi Select fields in Woocommerce backend | <p>I am trying to create 4 multi-select options at Woocommerce product variations. </p>
<p>For example: I am selling trees and want to display the season the tree is available. So we have 4 seasons (spring, summer, autumn, winter), Some trees are available in two or tree seasons.</p>
<p>I added this code to my functi... | 1 | 1,523 |
Issue with anime js ( Complete Function ) | <p>I am trying to replicate the animation mentioned out in this link . </p>
<p><a href="http://tobiasahlin.com/moving-letters/#13" rel="nofollow noreferrer">http://tobiasahlin.com/moving-letters/#13</a></p>
<p>The difference is, once the fade out and over animation is complete i need to change the content and replace... | 1 | 1,350 |
Error in Google Tag Manager: this language feature is only supported for ECMASCRIPT6 mode or better | <p>I'm getting the following error message in Google Tag Manager:</p>
<blockquote>
<p>Erro na linha 3, caractere 13: This language feature is only supported for ECMASCRIPT6 mode or better: const declaration.</p>
</blockquote>
<blockquote>
<p>Erro na linha 3, caractere 32: This language feature is only supported for ECM... | 1 | 1,256 |
Could not resolve file or directory webpack | <p>I am getting continuous error from webpack. I am pretty new to this. But I have no clue whatsoever why is it no finding the main.js file which is inside src while running webpack command. </p>
<p>Here is my webpack.config.js</p>
<pre><code>var path = require('path');
var config = {
entry: {
main: [
... | 1 | 1,277 |
Firebase Deeplink not calling application:continueUserActivity:restorationHandler function of AppDelegate in Swift 3 | <p>I am using firebase Deeplink URL to open my app's specific section. It is working well when app running in background but when I killed the app and click deeplink url from outside than I don't know how to handle that case, I mean where I should write my condition to get the parameters of url.</p>
<p>This method of ... | 1 | 1,287 |
JAVASCRIPT - how to make a function that works when a wrong password is entered thrice? | <p>Doing this for a school project. Our task is to make a working log-in form without a server. I'm done with most of it, but there's one more requirement for the form. Using only HTML, Javascript, and CSS.</p>
<p>The requirement is that when the user inputs the incorrect username/password three times, there should be... | 1 | 1,439 |
Jquery animation show div from top to bottom | <p>I need change an animation code in jquery. The code open a div with an animation from left to right and I need that this happen from top to bottom. </p>
<p>I put a link to share the code for more information.</p>
<p><a href="http://jsfiddle.net/HDWVH/" rel="nofollow">http://jsfiddle.net/HDWVH/</a></p>
<pre><code>... | 1 | 1,451 |
PokeAPI - querying additional pokemon info | <p>I'm currently learning how to use onsen.io and I'm using the PokiAPI to learn. I had helped earlier using "https://pokeapi.co/api/v2/pokemon?limit=151" to display the names of all 151 Pokemons in an ons-list thanks to @sandeep joshi.</p>
<p>I didn't know I need to make another query to be able to grab addi... | 1 | 2,075 |
Unmarshall xml list of objects to java list without class list | <p>With JAXB, I would like to unmarshall an xml document that contains several serialized objects like this :</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<Users>
<User>
<firstName>first name value 1</firstName>
<lastName>last name value 1</lastName>
<a... | 1 | 2,768 |
Access denied when trying to deploy jars to a Nexus 3 repository using Maven but able to download dependencies | <p>I have installed Nexus 3 on a server with the following repositories:</p>
<p>First repo:</p>
<pre><code>Name: maven-central,
Type: proxy,
Layout policy: Permissive,
URL: http://ip:port/nexus/repository/maven-central/,
Remote storage: https://repo1.maven.org/maven2/
</code></pre>
<p>Second repo:</p>
<pre><code... | 1 | 1,795 |
PHP fopen: failed to open stream: Success + how to save fetched content to a file? | <p>I have programmed a "proxy.php" script (listed below), which would fetch an image specified in the <strong>?img=</strong> parameter and print it to the STDOUT. This is needed for my Flash app to circumvent a missing crossdomain.xml at some sites.</p>
<p>It works, but I have 3 questions please. Also I'm coming to PH... | 1 | 1,292 |
Telerik RadGrid Add/Edit Row Performance Issue | <p>In a Telerik RadGrid, the user has the ability to add a row and edit an existing one. It appears that the grids actually force a postback to occur before the UI controls are rendered on the screen. I'm noticing a second to two seconds delay from the time the button is clicked to the time the controls appear. This... | 1 | 3,313 |
How can I create a custom StumbleUpon button? | <p>StumbleUpon publishes a <a href="https://platform.stumbleupon.com/1/widgets.js" rel="nofollow noreferrer">Widget script</a>, and <a href="http://www.stumbleupon.com/help/business-tools/badges#article4" rel="nofollow noreferrer">documents</a> how to use it to insert a stumbleUpon button (they call it a <em>badge</em>... | 1 | 1,380 |
Java Telegram API RpcCall Timeout | <p>I have a Problem regarding the Telegram API<br>
Whenever I do a RpcCall, it always give me a TimeoutException except when I do a NonAuth Call.</p>
<p>I can SignIn with a Number already and I set Authenticated to true in my AbsApiState and still can only do NonAuth Calls</p>
<p>Here is my Code:</p>
<pre><code>priv... | 1 | 2,414 |
How to Edit data in nested Listview | <p>I am using listview to display a list of items and a nested listview to show list of features to each item. Both parent and child listview need to able Insert,Edit and delete operation. It works fine for parent listview. But when I try to edit an child item, The edit button does not take it into Edit mode. Can you p... | 1 | 5,825 |
Google Sheets Script: email with a HTML Table that only has a set of | <p>In Google Spreadsheet I want to be able to send a email with a HTML Table within the Email. I have accomplished this below and would like to now extend the functionality more. Now I am trying to understand / find a way on how to filter the getRange based on a variable. </p>
<p>Example:
If Column C = Todays Date I w... | 1 | 1,607 |
Downloading GitHub issues to .csv file | <p><em>GitHub issues download using eclipse egit doesn't return anything.</em></p>
<p>Recently, i've been attempting to create a java desktop application (for windows), that will download GitHub issues from a specific GitHub issue repository, and save them in a .csv file.</p>
<p>I've created a simple GUI using Swing ... | 1 | 1,430 |
Login to facebook with Indy | <p>I would like to login to my facebook account with Indy. The version is 9.00.10 and I use OpenSSL with TIDHTTP and assigned a cookie manager to it. Everything works fine (I can send a POST request a GET, etc.)</p>
<p>I sniffed the actual login to facebook and I have the following information:</p>
<ul>
<li><p>UserAg... | 1 | 2,105 |
Unable to upload large files using nodejs/axios | <p>I am writing a nodejs client that would upload files (files can be both binary or text files) from my local dev machine to my server which is written in Java, configuring which is not an option. I am using the following code to upload files, it works fine for files upto 2 gb, but beyond that it throws an error menti... | 1 | 1,182 |
Java application reads UTF-8 encoded text files but after ant build the characters are not as expected | <p>I have a Java project that reads UTF-8 encoded .txt files in order to construct strings that are displayed. Running in Eclipse the files are read and displayed as expected but after my ant build the characters are not coming out as they should.</p>
<p>Here is my build.xml file</p>
<pre><code><?xml version="1.0"... | 1 | 1,475 |
Named pipe in php on Windows/Mac/Linux? | <p>I'm currently using proc_open() in php to communicate with command line tools. It automatically creates up to 3 file descriptors for STDIN, STDOUT and STDERR because more than 3 pipes breaks Windows compatibility. It works great on Windows XP and 10.7 on my Mac.</p>
<p>However, I would like to be able to create m... | 1 | 1,168 |
From SOAP to XML using XSLT | <p>So I'm trying to convert (Extract) all the elements within the body of a SOAP document into XML using XSLT. Here's my SOAP document (complete)</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="dealercode.xsl"?>
<soap:Envelope xmlns:xsi="http://www.w3.... | 1 | 1,401 |
Storing user input to an array java | <p>I know this question have been asked a lot of times, but I still could not solve the problem. The problem is that I have to store an user input and print out a value.</p>
<p>For example, there are 4 people, person1, person2, person3 and person4. If I vote for person1, the vote number of person1 becomes 1 and the ot... | 1 | 1,111 |
How to force 'always' location access in iOS app | <p>The app that I'm building needs always location access to work properly. The app basically tracks location and puts it on a map and stuff (details not important, lol).</p>
<p>My goal is this:</p>
<ol>
<li>Prompt user to enable "always" location access</li>
<li>If always location access has been requested b... | 1 | 1,157 |
How to apply spline() to a large dataframe | <p>I am a newbie to R and I am trying to apply <code>smooth.spline()</code> to a large dataframe. I've looked at the related threads ("Apply a list of n functions to each row of a dataframe,", "How to apply a spline basis matrix",...). Here is my dataframe and what I've tried so far:</p>
<pre><code>> dim(mUnique) ... | 1 | 1,226 |
Unable to reach 100% branch coverage in JEST + ENZYME | <p>I have below code in my LoadingIndicator test file. I am using JEST + Enzyme to test the LoadingIndicator container class.</p>
<p>I have been struggling to get the branch coverage to 100%. It is stuck on 91%. The branch that I am unable to cover is <strong>if (!this.timeoutID)</strong> in the LoadingIndicator cont... | 1 | 1,391 |
How to load remote data using Kendo UI Grid? | <p>Hello guys I just want to ask how can I load data from my mysql table using a Kendo Ui grid.
I am using CodeIgniter as well. But I don't know how to integrate it with my code. Here's my sample code.</p>
<p>In my controller I have something like this. For testing i put my database query in a model which is not corre... | 1 | 2,136 |
AWS SNS metadata when pushing to SQS | <p>I'm using .net sdk to push messages to SNS which then publishes messages to subscribed SQS Queues, but SNS adds metadata such as message type etc, and i end up with larger JSON payload which i do not want, especially when SQS is limited to 256k per message.</p>
<p>Is it possible to send a command to SNS and tell it... | 1 | 1,034 |
Gulp favicon task | <p>I am trying to make task for creating favicon images in GULP like this</p>
<pre><code>var realFavicon = require ('gulp-real-favicon');
var fs = require('fs');
// File where the favicon markups are stored
var FAVICON_DATA_FILE = 'faviconData.json';
// Generate the icons. This task takes a few seconds to complete. ... | 1 | 1,244 |
WCF REST Service POST returns 404 Not Found on IIS | <p>I have a WCF service created with VS2012 on Win8. If I start the service via VS (localhost:port) I'm able to do GET's and POST's. When I deploy to IIS on the same machine only GET works. The POST return 404 Not Found. I've tried deploying directly to IIS by creating an application off of my Default Web Site as well ... | 1 | 2,898 |
Codeigniter: how to edit form without edit image input | <p>I need a small help to figure out the edit page.</p>
<p>I have the Insert data and Edit data.</p>
<p>On edit data is requesting also the form for file/image upload, and on submit this send the null to the column file/image.</p>
<p>What i need is that on edit if no new file is on file/image input to skip this inpu... | 1 | 1,473 |
Upload a file to FTP | <p>I'm trying to upload a file with Swift.
I found this (poorly written) tutorial from Apple for Objective-C:</p>
<p>I tried to implement it in Swift, but got stuck on dereferencing the pointer in the callback function:</p>
<pre><code>func upload(filepath:String, url:String){
do {
let attr:NSDicti... | 1 | 1,594 |
Multiply price and quantity in custom listview in android | <p>I am fetching an array which displays itemimage, itemname, price, qty in a custom listview. Now I am placing one more field, total, which is calculated by multiplying price and quantity.</p>
<p>I am using this code: </p>
<pre><code>public class CustomAdapter extends BaseAdapter
{
integer[] a;
public static... | 1 | 1,401 |
No Session found for current thread (HIBERNATE) | <p><strong>OK JAVA guru ))</strong></p>
<p>I really new to spring and I got into this trouble with "No session found the current thread" when I refer to the following page JSP security after login. Up to this point everything is working.</p>
<p><strong>I need your help guys!!!!!</strong></p>
<p>Here is my con... | 1 | 4,731 |
How can I use @WebMvcTest for Unit Test POST method? | <p>I'm running unit tests with Spring Boot and Mockito and I'm testing RESTful services. When I try to test the GET method it works successfully but when I try to test the POST method it fails. What should I do to resolve this problem? Thanks in advance!</p>
<p>This is the code for the REST Controller:</p>
<pre><code... | 1 | 3,044 |
403 (Forbidden) response from SignalR Hub using ASP.NET hosting on IIS server | <p>I'm hosting a SignalR Hub on Windows Server 2012 with IIS as an ASP.NET Web application that I've tested successfully on my local machine. But when I publish and try to connect from a Angular application the server responds with 403 Forbidden on the /negotiate request. The Angular application is located on a differ... | 1 | 2,005 |
Codeigniter Rest Digest Issues | <p>I am using the <a href="https://github.com/chriskacerguis/codeigniter-restserver" rel="nofollow">codeigniter rest server</a> library(previously developed by Phil Sturgeon) to create an API to enable many sites to be able to read and update stock levels from my central stock system. I can get this to work without aut... | 1 | 5,199 |
Excel VBA Macro - Out of Memory Error | <p>I am having trouble when running a macro whereby I get an error, usually at the end, stating that it "Out of memory".
I've looked over a number of posts and followed recommendations to clear any variables and ensure that the code is "cleaner". However, the error still persists.
I have included the code below, any f... | 1 | 4,800 |
Drawing glyphs in an SVG using glyph names | <p>In the following block of code (taken from <a href="http://www.w3.org/TR/SVGTiny12/fonts.html#GlyphElement" rel="nofollow">here</a>), a font is embedded in an SVG file. Text is then rendered using the following line:</p>
<pre><code><text x="40" y="50" font-family="larabie-anglepoise" font-size="70" fill="#933"&g... | 1 | 1,113 |
Create dependent datepickers using bootstrap-datepicker | <p>I need to create two date pickers using the datepicker by <a href="https://github.com/uxsolutions/bootstrap-datepicker" rel="nofollow noreferrer">https://github.com/uxsolutions/bootstrap-datepicker</a> so that date selected in the first datepicker will be used as start date of second. The dates before the date picke... | 1 | 1,086 |
Invalid Column Name errors in dynamic query. Works in SQL Server 2008 but not in SQL Server 2012 | <p>I'm in the middle of going from SQL Server 2008 (not R2) to SQL Server 2012. I've restored my database into SQL Server 2012 but I'm getting runtime errors trying to call a certain dynamic query. </p>
<p>When I call this query from ASP, I'm getting a 500 error, and in the logs it says that I have an </p>
<blockquot... | 1 | 4,629 |
Android Volley always fails with Proguard | <p>The goal is to deploy an application with <code>obfuscation</code> and <code>minification</code> applied. Usual builds without <code>minification</code> work fine. But when <code>minifyEnabled</code> is switched to true, everything compiles too, but all <code>Volley</code> requests fail with error callback (<code>on... | 1 | 1,800 |
Two Responsive Nav bar in Bootsrap Page Conflicts | <p>Using Bootstrap Responsive Framework I have to use two Nav bars in my page. they work fine but in a toggle mode clicking on icon lists both "nav-collapce" items!</p>
<p>I tried to rename the collapse class name for second class but it didn't work. Can you please let me know how I can run both "nav-collapse collaps... | 1 | 1,360 |
Automatically adding letters of significance to a ggplot barplot using output from TukeyHSD | <p>Using this data...</p>
<pre><code>hogs.sample<-structure(list(Zone = c("B", "B", "B", "B", "B", "B", "B", "B",
"B", "B", "B", "B", "B", "B", "B", "B", &q... | 1 | 3,006 |
IndexError: Target is out of bounds | <p>I am currently trying to replicate the article</p>
<p><a href="https://towardsdatascience.com/text-classification-with-bert-in-pytorch-887965e5820f" rel="nofollow noreferrer">https://towardsdatascience.com/text-classification-with-bert-in-pytorch-887965e5820f</a></p>
<p>to get an introduction to PyTorch and BERT.</p... | 1 | 3,709 |
iOS app crashing in release mode, works in debug mode | <p>Recently my app started breaking if I create the .ipa file for AppStore release. It works fine if I run the same code in emulator or if I run it on my iPhone from xcode, but once I create the release package it crashes while opening a particular view controller. </p>
<p>I went through few of the posts on Stackoverf... | 1 | 4,375 |
Thymeleaf checkbox list passing values, but not displaying existing values | <p>I have an edit form for a Project object. Each project has a list of roles associated with them out of the complete list of all available roles. I need a checkbox list to select the roles. I implemented it like in this code sample I found thanks to StackOverflow, using a Formatter: <a href="https://github.com/jmigue... | 1 | 2,328 |
Thymeleaf ModelAttribute List | <p>I try to have something like a List as a ModelAttribute with Thymeleaf, but I do not get it to work. I read this page <a href="http://www.bincsoft.com/blog/thymeleaf-and-lists-in-forms/" rel="nofollow noreferrer">http://www.bincsoft.com/blog/thymeleaf-and-lists-in-forms/</a> but my code fails.</p>
<p>here are my fi... | 1 | 1,373 |
Submitting changes to excel file using Excel Interop in C# | <p>I am still stuck in this code and bugs keep showing up..
I have excel file that is almost 24 columns, I am trying to adapt it to a 7 column excel file because the software I have works only on 7 columns and I don't want to re write the software from the beginning, so you will see some deletion and isertion of column... | 1 | 3,583 |
Google ReCaptcha: react-google-recaptcha not verifying correctly | <p>I have the following React component for a contact form:</p>
<pre><code>import React from 'react'
import ReCAPTCHA from "react-google-recaptcha";
import {Container, Row, Col, Form, Button } from 'react-bootstrap'
import '../styles/contact.css'
class Contact extends React.Component {
constructor(props, context... | 1 | 5,138 |
SQL Server PIVOT with multiple X-axis columns | <p>Take the following example data:</p>
<pre><code>Payroll Forname Surname Month Year Amount
0000001 James Bond 3 2011 144.00
0000001 James Bond 6 2012 672.00
0000001 James Bond 7 2012 240.00
0000001 James Bond 8 2012 1744.50
0000002 Elvis Presley 3 ... | 1 | 1,280 |
JAVA - SPRING - the request was rejected because no multipart boundary was found | <p>Please read after answer.</p>
<p>I have a project that is separate in two modules, one for "SERVICE" and one for "WEB"</p>
<p>Service module works like a REST server and WEB module works like REST client to consume web services from Service module and works like a REST Server to an Angular APP</p>
<p>When i make ... | 1 | 1,274 |
Proguard not working after update to Google Play Services 11.8.0 | <p>After updating Google Play Services to 11.8.0 (from 11.6.2) my builds stop working.</p>
<p>This is what I got:</p>
<blockquote>
<p>Unexpected error while computing stack sizes:
Class = [com/google/android/gms/internal/zzao]
Method = [zzf(Ljava/lang/String;)J]
Exception = [java.lang.Illeg... | 1 | 1,889 |
Extract certain fields and values from request JSON using Jackson | <p>I am looking for a way to include only certain fields from the JSON request received to my service and then log them accordingly to avoid logging too much data.</p>
<p>The fields to include and hence log would be configured in a properties file.</p>
<p>Since I use Spring Boot for my service, Jackson JARs should al... | 1 | 2,628 |
Not able to call Servlet methods from JSP | <p>I am trying to call a Servlet method from a JSP which in turn calls a simple Java Class Method..But i get get output as Cannot display the Webpage. I have added web.xml and CallingServlet class. Its in DashBoardISAAC package and i tried removing '/' also. Still no luck with that.All the Updated code is as below -</p... | 1 | 3,009 |
WildFly 14: class org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to class io.undertow.websockets.jsr.ServerWebSocketContainer | <p>Trying to deploy a Spring Boot application to WildFly 14 I get the following error:</p>
<blockquote>
<p>{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"application_name\".undertow-deployment" => "java.lang.RuntimeException: java.lang.ClassCastException: class org.apache.tomcat.websocket.server.WsServ... | 1 | 3,950 |
Phpmyadmin 5.1.0.RC1 & 5.0.4 error (Warning in ./libraries/classes/Config.php#1285 mkdir(): Permission denied) | <p>I test phpmyadmin 5.0.4 and 5.1.0.RC1 on ubuntu server 20.04, and I'm geeting the following error :</p>
<pre><code>Warning in ./libraries/classes/Config.php#1285
mkdir(): Permission denied
Backtrace
./libraries/classes/Config.php#1285: mkdir(
string '/usr/share/phpmyadmin//var/lib/phpmyadmin/tmp/twig',
integer 504... | 1 | 1,249 |
how to use mapreduce in mongoose/mongodb query subdocument? | <p>I implemented a simple message system in mongoose/mongodb, the schema is like the following </p>
<pre><code>var schema = new mongoose.Schema({
user: {type:String, required:true},
updated: {type:Date, default:new Date()},
msgs: [ {m:String, // message itself
d:Date, // date of mess... | 1 | 1,283 |
I'm stuck on logrotate mystery | <p>I have two logrotate files:</p>
<p><strong>/etc/logrotate.d/nginx-size</strong></p>
<pre><code>/var/log/nginx/*.log
/var/log/www/nginx/50x.log
{
missingok
rotate 3
size 2G
dateext
compress
compresscmd /usr/bin/bzip2
compressoptions -6
compressext .bz2
uncompresscmd /usr/bin/bu... | 1 | 1,500 |
Spring Redis Null Pointer Exception on redisTemplate | <p>Hi I am working with java-redis integration with jedis and I came up with this problem when trying to setup project. I am new to spring so there might be some issues with initial setup. This is the code that I am trying to work with:</p>
<p><strong>RedisConfig.java</strong></p>
<pre><code>@Configuration
public cla... | 1 | 2,229 |
Spring security OAuth2 "clientDetailsService" circular reference? | <p>I have below security config class (at the bottom), recently upgraded to;</p>
<ul>
<li>Spring Security (3.2.6.RELEASE)</li>
<li>Spring Security OAuth2 (2.0.6.RELEASE from 2.0.3.RELEASE)</li>
</ul>
<p>and I started seeing this error messages, now all my integration tests fail with the same error;</p>
<blockquote>
<p>... | 1 | 3,671 |
Unable to load an image from an URL in a RecyclerView | <p>I can't seem to figure out why I haven't been able to load any sort of image (I've tried multiple URLs). I've tried using an AsyncTask class, and the issue still hasn't been resolved. My adapter class is listed below, any sort of help would be greatly appreciated.</p>
<p>I'm trying to load an image (in this test ca... | 1 | 1,132 |
Safe way to replace AWT EventQueue in running Swing application | <p>Various sporadic problems in the Swing application I maintain appear to be caused by the way it replaces the default AWT event queue with its own custom version using <code>Toolkit.getDefaultToolkit().getSystemEventQueue().push(new AEventQueue())</code>. See e.g. <a href="https://stackoverflow.com/questions/9795385/... | 1 | 1,292 |
problem with "npm run dist" when using electron-builder | <p>im having a problem with electron-builder.</p>
<p><a href="https://medium.com/how-to-electron/a-complete-guide-to-packaging-your-electron-app-1bdc717d739f" rel="nofollow noreferrer">https://medium.com/how-to-electron/a-complete-guide-to-packaging-your-electron-app-1bdc717d739f</a></p>
<p>i have followed this compl... | 1 | 1,837 |
D3 drag & click in v6 for grouped objects | <p>Working off of <a href="https://observablehq.com/@d3/click-vs-drag" rel="nofollow noreferrer">Mike's example</a> I'm trying to figure out how to transfer the concept to grouped elements. I can create initiate drag and click individually, but together I can't seem to get click to work. Below is a snippet - this is ju... | 1 | 1,033 |
Camera image gets rotated when I upload to server | <p>I either take photo or select a photo from gallery and show it in an ImageView as it should be (in terms of rotation). But, whenever I upload it to server, it always uploads in landscape mode, even though it is in portrait mode in my gallery. How can I solve this?</p>
<pre><code>private void takePhoto() {
Inten... | 1 | 1,313 |
findViewById() question | <p>I don't consider myself a beginner, but my copy and pasting has left me lost in auto-generated errors. Here's my dilemma, if I remove the comments below the program crashes unexpectedly; with comments it displays just fine.</p>
<pre><code>//////// Options.java /////
public class Options extends Activity {
/** C... | 1 | 1,153 |
Pandas count consecutive date observations within groupby object | <p>This is an example of the data frame i'm working with:</p>
<pre><code>d = {
'item_number':['bdsm1000', 'bdsm1000', 'bdsm1000', 'ZZRWB18','ZZRWB18', 'ZZRWB18', 'ZZRWB18', 'ZZHP1427BLK', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427', 'ZZHP1427',... | 1 | 1,699 |
Unable to send ICMP packets from a raw socket in Python | <p>I have a raw Python socket initialized like so:</p>
<pre><code>mySocket = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_RAW)
mySocket.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
</code></pre>
<p>My problem is that I can't send any packet from the socket where the protocol field in my IP hea... | 1 | 1,148 |
AWS API Gateway Integration Response | <p>I am using AWS Lambda and API Gateway and facing an issue with my API's response code,<br>
In case of an exception I am setting responseCode as 400 in my response,<br>
But the API status is 200.</p>
<p>I found that my solution is related to AWS API Gateway's Integration Response,<br>
I created all the possible Http... | 1 | 1,073 |
how to perform crud using node.js express with mysql | <p>I want to perform a basic CRUD with <code>mysql</code> and I installed some modules like npm install mysql,npm install path, npm install routes but there is a problem which I'm facing is most <code>middleware</code> error here is my </p>
<p><strong>app.js</strong></p>
<pre><code>var express = require('express');
... | 1 | 2,463 |
How to have two build flavors inherit from a root flavor in Android Studio? | <p>I used to have the following project flavors:</p>
<ol>
<li>Apple</li>
<li>Orange</li>
</ol>
<p>Originally the only difference was the <code>applicationId/packageName</code>. Now there is a single java file that is different. A custom ArrayAdapter to be exact. The solution was to create <code>src/Apple</code> and <... | 1 | 1,728 |
How do I convert an enormous TIFF image to PNG/JPEG without out of memory error? | <p>i have a tiff file 18000 * 18000 in Dimension and <strong>1.20 GB</strong> in size. the tiff has 72 DPI.</p>
<p>I want to convert this TIFF to PNG/JPEG using 400 DPI.</p>
<p>I am using following code to do it </p>
<pre><code>public static void ConvertTiffToJpg(String str_TiffUrl,
String str_JpgFi... | 1 | 4,543 |
How to install numpy for PyPy on Windows? | <p>I've just installed <a href="http://www.pypy.org/" rel="nofollow noreferrer">PyPy</a> on Windows and seen an approximately 10x speed improvement in some simulation code I'm running. I'd like to see similar on code using numpy, too. I'm not an experienced Python programmer however and I'm finding the <a href="http://... | 1 | 1,552 |
VHDL error Error (10822): couldn't implement registers for assignm | <p>I try to implement a JK flip flop with asynchronous Preset and Clear, with positive edge logic on clock.</p>
<p>I receive the following error from Altera Quartus II:</p>
<blockquote>
<p>Error (10822): HDL error at JK_FF_PE_D1.vhd(52): couldn't implement registers for assignments on this clock edge</p>
<p>Error: Can'... | 1 | 1,189 |
How to process old Logs with Logstash | <p>I am trying to process 'old' log files on my local ELK stack (macOs), but I can't get Logstash to read my files.</p>
<pre><code>{"eventid": "cowrie.direct-tcpip.data", "timestamp": "2016-07-10T03:00:17.713013Z", "format": "direct-tcp forward to %(dst_ip)s:%(dst_port)s with data %(data)s", "sensor": "sensor", "syste... | 1 | 1,395 |
To find similar words (strings) in two files | <p>I have to validate the similarity of word 1 in file 1 with word 2 in file 2 and so on. if word 1 (file 1).equals to word 2 (file 2), file 3 will be the output to show the True and False. Below is the coding but I am stuck when there is no error but giving no output. Am a beginner in JAVA.</p>
<pre><code>import java... | 1 | 1,189 |
Two Eclipse UI Form sections that grab excess vertical space and fold properly? | <p>I'm trying to create an Eclipse Form that has three foldable sections, one fixed size and two others that should grab all the remaining vertical space in the editor window so, that when one of the bottom sections is folded, the other one would fill all the available space.</p>
<p>I have read the <a href="http://www... | 1 | 1,119 |
Deleting table row using jsp and servlet | <p>Hello everyone hope you having a good day,because i'm not xD , i'm new to the web programming and i've started with JSP and Servelts to do web operation my problem is when i click on "delete" it triggers the servlet but nothing happen the row doesn't get deleted and the value ( pw.print(name) ) doesn't show up. thes... | 1 | 1,299 |
How to Pass List<Object> to SOAP API as a request | <p><strong>How to Pass List to SOAP API request from android</strong></p>
<p>I know how to pass normal object, but at the time of passing the List I'm getting following exception <em>Unable to cast object of type <code>'GTCFWebServices.Models.ToEmail'</code> to type 'System.Collections.Generic.List<code>1[GTCFWebServ... | 1 | 2,010 |
Jest js node_modules\jest\node_modules\jest-cli\build\cli\index.js:227 } catch { | <p>I run <code>npm init</code> <code>npm i -D jest</code> like in this <a href="https://www.youtube.com/watch?v=7r4xVDI2vho&t=621s" rel="noreferrer">tutorial</a></p>
<p>I am getting this error after running commend <code>nmp test</code></p>
<p>This is not an error from creatures.js or creatures.test.js because with... | 1 | 1,128 |
how to set image on background down arrow on Spinner in android | <pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg03" >
<LinearLayout
android:layout_width="match_pa... | 1 | 1,667 |
Why does `obj.foo = function() { };` not assign the name `foo` to the function? | <p>As of ES2015 (ES6), functions have proper names (including an official <code>name</code> property), and names are assigned when the function is created in a variety of ways in addition to the obvious function declaration and named function expression, such as assigning to variables (function's name is set to the var... | 1 | 1,302 |
How to use an entity inside an architecture in VHDL | <p>My purpose is to impement a Keyboard entity which uses Button entites.</p>
<p>So I wrote the following VHDL code:</p>
<pre><code>library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity Keyboard is
port ( ck, stop : in STD_LOGIC;
data_in : in STD_LOGIC_VECTOR (11 downto 0);
data_out :... | 1 | 1,504 |
How to ensure TensorFlow Generator upsampling process creates seed with full coverage of random noise? | <p>I'm working on adapting the code from the tensorflow 2.0 dcGAN tutorial (<a href="https://www.tensorflow.org/beta/tutorials/generative/dcgan" rel="nofollow noreferrer">https://www.tensorflow.org/beta/tutorials/generative/dcgan</a>) to a spectrogram of audio signals. I'm using libroasa chroma_cqt to convert the raw ... | 1 | 1,287 |
How to add image to Active Directory user from C# using PowerShell remoting? | <p>I'm writing a program in C# that adds a picture to an Active Directory user object (in the ThumbnailPhoto attribute). The program runs on another PC than the Exchange Server 2010. Using PowerShell remoting I'm able to, for example, enable a mailbox for the AD user.</p>
<p>When I execute the following commands in Po... | 1 | 1,268 |
How to save drawn image with a background color using Signature Pad library for AngularJS/Ionic? | <p>I'm working on an Ionic project and implemented <a href="https://github.com/szimek/signature_pad" rel="nofollow">this</a> library to handle the drawing of a client signature.</p>
<p>I've managed to implement this with no problem, I can draw, save and show the image with no problem, except one detail: the image is s... | 1 | 1,216 |
Angular 4 - There is no directive with "exportAs" set to "ngForm" | <p>I've seen answers to this question around stackoverflow that deal with how the app is configured. However I am pretty sure I've configured it correctly as the app runs just fine but my <strong>super simple Karma test fails</strong>.</p>
<p>Here is my app.module.ts:</p>
<pre><code>import { NgModule } from '@angular... | 1 | 2,228 |
Index exceeds the number of array elements (1) | <p>I trying to use matlab to solve a polynomial with variable parameters. I am using fsolve. The code is given below:</p>
<pre><code>function my_fsolve3()
% Constant Parameters
A = 6.24;
B = 5.68e-5;
C = 1.7e-3;
D = 6.55e-8;
E = 5.3e-8;
F = 9.46e-1;
t = [0;600;1200;1800;2400;... | 1 | 2,207 |
Gcloud app deploy fails using python+django+gunicorn + worker failed to boot | <p>I am trying to deploy a website/webapp using django... constructed app.yaml and requirements.txt... everything done and when I hit <code>gcloud app deploy</code> , I have this following error log at the end..</p>
<pre><code>DONE
---------------------------------------------------------------------------------------... | 1 | 1,616 |
linked list/GUI toString() | <p>In the process of writing a class that demonstrates a linked list and I'm not getting the results I need. I have written a class that contains an inner node class as well as an insert method that adds a name and score to the list, limits the list to ten by removing the person with the lowest score. I have also creat... | 1 | 2,292 |
maven-jaxb2-plugin reusing commons XSD within same project | <p>I have a project which has a schema A and B, both within the same namespace. Both import schema C which also uses the same namespace. How can I generate JAXB classes for A and B to separate packages, while reusing the JAXB classes from C generated to a commons package?</p>
<p>I already know I should probably be usi... | 1 | 1,610 |
sha1 example in C using openssl library | <p>I have a simplest possible example of <code>sha256</code> written in C, using the openSSL library.</p>
<pre><code>// compile with: gcc -o sha256 sha256.c -lcrypto
#include <openssl/sha.h>
#include <stdio.h>
int main(int argc, char **argv)
{
unsigned char buffer[BUFSIZ];
FILE *f;
SHA256_CTX ... | 1 | 1,295 |
Makefile C++ inheritance | <p>The following are the files involved and a short description:</p>
<p><code>arrayListType.h</code>, <code>arrayListTypeImp.cpp</code>: declare and implement <code>arrayListType</code> class and its functions. </p>
<p><code>unorderedarrayListType.h</code> <code>unorderedArrayListTypeImp.cpp</code>: inherit <code>arr... | 1 | 2,132 |
How can I implement interrupt for serial USART communication for ATmega328P/Arduino Nano? | <p>I have a small project for school that requires me to load data in the EEPROM of an <a href="https://en.wikipedia.org/wiki/ATmega328#Family" rel="nofollow noreferrer">ATmega328P</a> through the USART serial communication. I'm going to figure out the EEPROM read/write myself.</p>
<p>I have problems sending data using... | 1 | 1,143 |
Force a landscape printing from Silverlight? | <p>Using Silverlight 4, is it possible to print a grid in landscape mode and have all the content show up? We're building out the "page" as a <code>Grid</code> and setting the transposed height/width from the PrintDocument's PrintableArea. Then we're applying a <code>CompositeTransform</code> to set the Rotation and T... | 1 | 1,362 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.