title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Singleton events
<p>I am refactoring some old code, where I have a lot of static events like this</p> <pre><code>public static event Action Updated; public static void OnUpdated() { if (Updated != null) Updated(); } </code></pre> <p>I found out what using <a href="http://csharpindepth.com/articles/general/singleton.aspx#l...
1
1,145
Vaadin web.xml setup
<p>I have this web.xml :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"...
1
1,048
I can't find the dependency for com.google.api.client.util.Preconditions using Maven
<p>I'm new with Google Calendar API. What I'm trying to do here is to post an Event to the Google Calendar with the e-mail given by the user. My problem now is, when I tried to do the configuration, I get this exception:</p> <pre><code>Caused by: java.lang.ClassNotFoundException: com.google.api.client.util.Preconditio...
1
13,805
Phaser Images not Preloading
<p>If anyone has used Phaser, perhaps you can help me with my code. I am trying to create a Flappy Bird clone, and so far it is working pretty well. However, whenever I open the game the first time, the sprites of the pipes don't seem to show up. I've preloaded both the bird and the pipe sprites, and only the bird spri...
1
1,057
Installing a fully functional PostGIS 2.0 on Ubuntu Linux GEOS/GDAL issues
<p>I have been working on getting postgis 2.0 up and running on an ubuntu-maverick-amd64 linux server for about a week now. I am going for raster and topology support. </p> <p>I used the following to configure:</p> <pre class="lang-sh prettyprint-override"><code>sudo ./configure --with-raster --with-topology --with-j...
1
1,897
React Native FlatList re-renders the already rendered items when adding new data
<p>I have implemented a code that listen my DB documents and when a new one is added the app renders it as an item on my FlatList.</p> <p>The problem I have is that everytime I update the data of the FlatList, the already rendered items re-renders again and again...</p> <p>As my original code is complex, I have build a...
1
1,431
Discord JS: TypeError: Cannot read property 'id' of undefined
<p>I'm making an order command for my food delivery bot. An error in the console occures when the command is used in outside of the main server, otherwise the command works inside the main channel.</p> <p>The error is <code> TypeError: Cannot read property 'id' of undefined</code> code is</p> <pre><code>api.commands.ad...
1
1,784
How to query registry values skipping the PS* ones
<p>When querying the registry value names like this:</p> <pre><code>Get-ItemProperty HKCU:\Software\Microsoft\Osk </code></pre> <p>You get a whole bunch of extra values.</p> <pre><code>PSPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Osk PSParentPath : Microsoft.Power...
1
1,806
Can't get the .ASPXAUTH cookie value for login with PHP cURL
<p>I'm almost 100% sure I have ready every post on the internet that contains the keywords asp login curl php .ASPXAUTH, but I have been unable to find a solution. I am more of a code hacker than elegant developer though, so I hope that someone can help me please.</p> <p>I have a curl script that logs in to two other ...
1
1,797
Issues While Trying To Recreate SwiftUI-based App From WWDC Session
<p>I am trying to recreate the SwiftUI project demonstrated in Session 204 but am running into some peculiar issues.</p> <p>I wrote this from watching the session found here: <a href="https://developer.apple.com/videos/play/wwdc2019/204" rel="noreferrer">https://developer.apple.com/videos/play/wwdc2019/204</a></p> <...
1
2,472
Blank values received when using RestSharp from Console Application
<p>I've created a C# console application that calls a stored procedure from SQL Server, retrieves records from a database table where records have not been transmitted, and adds said records to a RestSharp request. When I run my application locally, OK Status is received with a Status Code reflecting missing informati...
1
4,517
The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance
<p>I am using Django Rest and my request parameter contains:</p> <pre><code>[ { &quot;job_role&quot;: 2, &quot;technology&quot;: 1 }, { &quot;job_role&quot;: 1, &quot;technology&quot;: 1 }, { &quot;job_role&quot;: 2, &quot;technology&quot;: 1 } ] </code></pre> <p>My models are:</p> <pre><code>cl...
1
1,152
How to correctly specify dependency information in nuspec file while creating Nuget package?
<p>I'm trying to create Nuget package from a Visual Studio 2017 class Library first time. It is a .NET Framework 4.6.2 project. The class library is referencing some other nuget packages, dlls, exes which are in References section under Solution Explorer.</p> <p>Here are the steps I took after looking at some youtube v...
1
1,151
How to fix Number of rows in detail section and insert blank rows if number of record less than rows fixed in detail section
<p>I want to print three pay slips in an A4 size page. Page header and footer are fixed number of rows. </p> <p>I want <em>Detail</em> section to print <strong>8 records</strong>. If records are <em>less than 8</em>, remaining line should be blank printed and <em>3 pay slip</em> print on one page.</p> <p>Input param...
1
2,057
JPA entities: inheritance and one-to-one relationship not working simultaneously
<p>I have the following scheme: TableA1 and TableA2 exist in the database and each is represented by an entity bean. Since they are related, I created an abstract class (TableA, it's an entity but does not exist in the database) where both entities inherit from this class. In addition, TableA has a one-to-one relations...
1
1,115
Laravel 5 Routing Issue - Bad Method Call Exception
<p>I'm attempting to simply send a 'PUT' request to one of my routes (which is called as a resource in the route file), yet I recieve this traceback as the response.</p> <pre><code>Whoops, looks like something went wrong. 1/1 BadMethodCallException in Controller.php line 273: Method [show] does not exist. in Cont...
1
1,737
Android - canvas confusion (drawing and scrolling)
<p>I'm having a bit of confusion with <code>canvas</code> in android and was wondering if someone could clarify a few things for me.</p> <p>I currently have this code inside my View class:</p> <pre><code> class HomerView extends View { // the custom View for drawing on // set up Bitmap, canvas, path and paint ...
1
3,312
react-native run-android build failing because of error
<p>Im new to react-native app development and I am running into the following problem upon running</p> <pre><code>JS server already running. Building and installing the app on the device (cd android &amp;&amp; gradlew.bat installDebug)... FAILURE: Build failed with an exception. * What went wrong: Could not create s...
1
4,624
Sending data as double float over UDP C#
<p><strong>Hi everybody,</strong></p> <p><strong>Brief of post:</strong> I need help converting the script below to send data over UDP as a double float rather than in UTF8, with the data being sent acquired through the command 'transform.position.x' in Unity 3D :) If you would like to know more please read on.</p...
1
1,836
get Value from a div tag
<p>I have the following situation and I know have a lot of this subject here in stackoverflow, but no answers give a real solution, so I'm posting again.</p> <p>First take a look at this code:</p> <pre><code>&lt;tr&gt; &lt;td align="right"&gt;Estado&lt;/td&gt;&lt;td&gt; &lt;select name="estado" onChange="...
1
1,787
How to Send a file to backend server (for upload) from frontend server which is accepting post request from client browser (form data -> file input)?
<p>I am trying to build a system where the frontend and backend are separated and interact through rest calls with authorization based on user token. Both the frontend and backend applications are built on Springboot. Thymeleaf is used as template engine for rendering html pages.</p> <p>I am trying to upload a file fo...
1
3,880
HAproxy process has been killed unexpectlly when HAproxy service wss reloaded by sysv init script in CentOS7.2
<p>I installed the HAproxy(1.5.14-3.el7) from CentOS7.2 repository. When I reload HAproxy service with a wrong haproxy.cfg, the return code of reload is incorrect.</p> <p>About HAproxy,OS,systemd information pls see below:</p> <pre><code>[root@unknown ~]# rpm -qa | egrep haproxy haproxy-1.5.14-3.el7.x86_64 [root@unkn...
1
4,497
Error creating bean with name 'googleCredentials' defined in class path resource
<p>I am trying to deploy a restful spring app that connects to a MySQL database. I am deploying it in gcp appengine and the database is also a gcp sql instance. I have tested the my code locally on my machine and the application connects perfectly to the sql instance. However when I try and run the application in the a...
1
1,960
Line Finder OpenCV
<p>I've tried to implement the example from the book named <strong>OpenCV 2 Computer Vision Application Programming Cookbook</strong>, which shows how to find a line with the help of the Hough Probabilistic Algorithm (page 170). (A very good book btw!) <a href="http://seabee3-ros-pkg.googlecode.com/files/1849513244__Op...
1
1,837
Problem with StructureMap/nhibernate setup:
<p>I keep getting the following error:</p> <p>Cannot access a disposed object. Object name: 'AdoTransaction'. </p> <p>The setup follows the example given at <a href="http://trason.net/journal/2009/10/7/bootstrapping-nhibernate-with-structuremap.html" rel="nofollow noreferrer">http://trason.net/journal/2009/10/7/boots...
1
3,006
run keyword if error invalid syntax (<string>, line 1)
<p>I am new to this run keyword if method.</p> <p>I wanted to enter different number based on specific page.</p> <p>e.g. if page1 element is detected then input number 1, if page2 then input number 2.</p> <pre><code>*** Settings *** Library Selenium2Library Library Collections Resource ../Resources/nine-res-wor...
1
1,249
python: bandpass filter of an image
<p>I have a data image with an imaging artifact that comes out as a sinusoidal background, which I want to remove. Since it is a single frequency sine wave, it seems natural to Fourier transform and either bandpass filter or "notch filter" (where I think I'd use a gaussian filter at +-omega). </p> <p><a href="https:/...
1
1,428
php-fpm error "no input file specified" with Docker
<p>I am trying to setup a docker container for php-fpm. But encountering this error when visiting the web directory configured on localhost. I have been stuck here for over 5 hours. Here is my Dockerfile:</p> <pre><code>FROM centos:latest WORKDIR /tmp RUN yum -y update RUN rpm -Uvh https://mirror.webtatic.com/yum/el7...
1
1,339
How to reload a page in laravel vue after save?
<p>I'm trying to reload the page after save in laravel and vue.js, I do this in "fetchGoals". Here is what I've tried and it works the first time, it saves the goal and refreshes the page. When I try to add another goal then the save button no longer works and the page will not refresh. Same goes for the edit button, i...
1
4,975
Display and count killed enemies in Unity3D C#
<p>I'm new to Unity3D and I am trying to count all the enemies I have killed on runtime and display in <code>OnGUI()</code>. What I did was that for every time the enemy is killed, I am going to increment: <code>enemyKilled</code>. However, when it does... some time in the program... the display decrements and then dis...
1
1,050
Disregarding simple warnings/errors in tryCatch()
<p>I'm a huge fan of <code>tryCatch()</code>. However, until today I never really paid attention to the distinction between simple and regular warnings/errors and thus I don't really know how to handle them.</p> <h2>Actual question</h2> <p>What I'd like to know is how to tell <code>tryCatch</code> (<a href="http://st...
1
1,250
Modal/Pop up Box in HTML Email
<p>I am working on an HTML email, I made the HTML with many nested tables and a lot of CSS in the <code>&lt;head&gt;</code></p> <p>Passed it through a CSS inliner, but when I import my code into MailChimp, the modal box is not working.</p> <p>I've attached the code snippet. Please advise how to have this working insi...
1
11,761
rSpec Testing Rails using Shoulda matchers
<p>I have been starting to learn testing in my Rails app and am using rSpec and Shoulda.</p> <p>I have the following test which works:</p> <pre><code>it { should respond_to(:park_name) } </code></pre> <p>However, what I don't understand is, what is this being run on? Is this being run on the Model itself or an insta...
1
1,920
R: spread function on data frame with duplicates
<p>I have a data frame that I need to pivot but the data frame has duplicate identifiers, so <code>spread</code> function gives an error <code>Error: Duplicate identifiers for rows (5, 6)</code></p> <pre><code>Dimension = c("A","A","B","B","A","A") Date = c("Mon","Tue","Mon","Wed","Fri","Fri") Metric = c(23,25,...
1
2,985
Fabric JS: Copy/paste object on mouse down
<p>I'm trying to create a block game where you select shapes from a menu and place them on the canvas. There is a shape menu where you can drag the shapes onto the canvas. I would like for it to leave the main shape in the menu as it drags a clone onto the canvas. Is this possible? I have created a jsfiddle to help.</...
1
1,751
HTTP 400 Bad request when calling Rest WebService POST method
<p>Please find the relevant classes and JSON request, I fail to understand what is wrong with my request, I get 400 BAD Request. The request perhaps is not even reaching the server. I dont have a clue whats missing. Appreciate your help on this</p> <p>Json request payload</p> <pre><code>{ "campaignID": 1, "campai...
1
4,091
How to get HTTPS to work in Command Line in Windows 10 (please note that HTTP is working)?
<p>I have been searching on the net for a couple of hours already and haven't found a solution. I've even tried disabling the Windows Firewall and Windows Defender to see if it is blocking the outgoing HTTPS requests from the command line.</p> <p>I have Node/Npm installed in my Win10 machine and I was trying to insta...
1
2,876
Too many open files iOS
<p>i am new on ios programming, when my app is running , i am taking these errors. I am loading 950+ images in my app and i am using ARC.</p> <blockquote> <p>ImageIO: CGImageRead_mapData 'open' failed '/Users/apple/Library/Application Support/iPhone Simulator/6.1/Applications/16551664-4694-4742-85DC-2C3C0ADC5289/dem...
1
2,853
Adding last row of table rowspan attribute doesnt work
<p>I'm using twitter bootstrap but i dont think that makes a difference to what I'm doing. </p> <p>Basically I have a table. I'm testing the length of an enumerable that is filling the table and the last row i want to "pad" to the full length of the container i.e. if its less than 10 rows i want to add a row that ha...
1
1,453
Add multiple SPIFFS files to captive portal on Async web server on ESP32
<p>I'm using simple code of modified Captive portal with asynchronous web portal (from ESPAsyncWebServer library - <a href="https://github.com/me-no-dev/ESPAsyncWebServer" rel="nofollow noreferrer">https://github.com/me-no-dev/ESPAsyncWebServer</a>). It send html page from SPIFFS flash memory.</p> <p>The way it is work...
1
1,366
make with Cygwin
<p>I am trying to set VTK on windows (did I say it was complicated?^^). I have successfully configured VTK with CMake and I am now trying to run make through cygwin. However when I go to the build directory and enter make all the terminal prints and does is:</p> <blockquote> <p>make</p> <p>Microsoft Windows [ve...
1
2,039
Flutter: StreamBuilder Snapshot -- No Data
<p>I am just learning Flutter and am trying to use a StreamBuilder to display a Login / Register page if the user is logged out, or a Profile page if the user is logged in. My code is below:</p> <p>Auth Service:</p> <pre><code>import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; ...
1
1,166
How to Authenticate & Authorize a Client-Side Web App using Remote NodeJS API that uses Passport.js
<p>As shown in the illustration below, I have a standalone API Project running on a server with a port say <code>3001</code>, and I have a Web App running on a server with port say <code>3002</code>. </p> <p><a href="https://i.stack.imgur.com/ovvAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ovv...
1
1,059
npm install hangs at " reify:tailwindcss: timing build:queue Completed in 141ms"
<p>It always hangs at the same place: <code>reify:tailwindcss: timing build:queue Completed in [number]ms</code></p> <p>I've even tried just walking away and leaving it overnight to no avail. What's really frustrating is this worked on another project for me about a week ago, but for the past two days I've hit this wal...
1
1,284
Spring Boot with Hibernate Second Level cache
<p>I trying to use a second level cache so I put in my pom.xml</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-ehcache&lt;/artifactId&gt; &lt;version&gt;5.2.2.Final&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>in my app...
1
1,283
How to build clang with libc++ as default via LLVMs build_docker_image.sh?
<p>I want to build a docker container with clang 6 and libc++ as default C++ standard library. I want to include (and use) the LLVM project clang, libcxx, libcxxabi, lld and compiler-rt.</p> <p>To set libc++ as default I used the CMAKE option <code>CLANG_DEFAULT_CXX_STDLIB=libc++</code> (and additionally <code>DCLANG_...
1
1,734
Field 'browser' doesn't contain a valid alias configuration when importing a feature module
<p>I built an Angular application [MASTER]. Inside of it, I would like to import another application built with a feature module [FEATURE_MODULE].</p> <p>To generate the FEATURE_MODULE, I followed this tutorial: <a href="https://angular-2-training-book.rangle.io/handout/modules/feature-modules.html" rel="nofollow nore...
1
1,275
Dynamic Compiling Without Create Physical File
<p>I follow the tutorial from <a href="http://www.accordess.com/wpblog/an-overview-of-java-compilation-api-jsr-199/" rel="nofollow">Generating Java classes dynamically through Java compiler API</a>, the code is work but what I see is the program will create a class file after compiling it.</p> <pre><code>import java.i...
1
1,143
Android AndEngine: handling Collission Detection properly
<p>I am working on a simple AndEngine game that involves the ff. sprites </p> <p>a.) tanks b.) soldiers c.) bombs</p> <p>I have a similar question located here: <a href="https://stackoverflow.com/questions/12532918/android-andengine-simple-sprite-collision">Android AndEngine: Simple sprite collision</a></p> <p>What ...
1
3,481
C++ terminate called without an active exception (gdb)
<p>Using iOS 5.X Cpp 11 Xcode</p> <p>I am trying to identify what is causing this error. It may be caused from destructor being called prior to a thread completing. </p> <p><pre><code> // default_delete</p> <pre><code>template &lt;class _Tp&gt; struct _LIBCPP_VISIBLE default_delete { _LIBCPP_INLINE_VISIBILITY de...
1
2,928
Worklight Push notification (APNS) fails with javax.net.ssl.SSLHandshakeException
<p>I have a Worklight 6.1 app on iOS with push notifications. It works fine, until something goes wrong on the Worklight server. All push notifications after that fail until the server is restarted.</p> <p>The Worklight server is Liberty 8.5.5.0 on Linux x86_64 Using JDK : java-1.7.0-ibm-1.7.0.5.0.x86_64 The Worklig...
1
1,209
Fortran: Variables changing on their own
<p>I'm having a problem of variables getting over-written for I don't know what reason. I've posted a chunk of the code below so you can see how things are declared. The variables strain,Qi,Qf,Qd,tel and Gc are passed into the subroutine and used to calculate ssgrad,strn0,strss0.</p> <p>My problem is that tel and Gc a...
1
1,028
Swift 3 Alamofire 4 Upload array of images with parameters
<p>I'm trying to upload an array of pictures along with some parameters using Alamofire 4 and Swift 3.</p> <p>The parameters seem to work because the update is done, but the images don't get to the server</p> <p>In Postman I can do this fine with no problem:</p> <p><a href="https://i.stack.imgur.com/MsLQr.png" rel="nof...
1
2,078
Activity Indicator for UICollectionView
<p>I have a UICollectionView that reads data from Firebase, and I want some kind of activity indicator while it's reading data.</p> <p>I want the activity indicator to start running as soon as the UICollectionView tab in the TabBar is hit, and I want it to stop and the view/uicollectionView to load once loading from F...
1
1,066
Performant ACL schema for complex application (RDBMS, Graph Database?)
<p>I'm building a rather complex web application with Java / Spring and at least 2 different databases:</p> <ul> <li>RDBMS for main data</li> <li>MongoDB for files (via GridFS) and other data CLOBs/JSON/etc.</li> </ul> <p>The next step is authorization. Simple role based authorization isn't enough, because users shou...
1
1,423
Lock-Free Queue with boost::atomic - Am I doing this right?
<p><strong>Short version:</strong></p> <p>I'm trying to replace std::atomic from C++11 used in a lock-free, single producer, single consumer queue implementation from <a href="http://drdobbs.com/parallel/210604448" rel="nofollow">here</a>. How do I replace this with <a href="http://www.chaoticmind.net/~hcb/projects/bo...
1
1,533
Discord.js v13 Invite tracker
<p>Finally getting around to updating my bot from v12 to v13 and having an issue that I can't seem to solve. I have an invite tracker that works perfectly on v12 but will not function on v13. I have included the code below, the commented lines are the v12 code that I know needed changing for v13.</p> <pre class="lang-j...
1
6,402
Airflow : ExternalTaskSensor doesn't trigger the task
<p>I have already seen <a href="https://stackoverflow.com/questions/46807297/airflow-externaltasksensor-gets-stuck">this</a> and <a href="https://stackoverflow.com/questions/52796647/airflow-external-sensor-gets-stuck-at-poking">this</a> questions on SO and made the changes accordingly. However, my dependent DAG still ...
1
1,570
Implementing Elimination of Immediate Left-Recursion in Java
<p>I am working on implementing a generic code to solve left recursion problem in a grammar using java so my code is working as follows I am reading an input like this as each line goes to the next line:</p> <pre><code>E E+T|T T T*F|F F (E)|id|number </code></pre> <p>and the required output is supposed to be like thi...
1
2,248
fixed text on multiple section with parallax effect
<p>I have 4 sections and all of them have a background image. The problem is that each section has some text on it in the middle. They are supposed to be fixed i.e when we scroll, the section below the first section should overlap the section above it as well as the text on it.</p> <p>I have used position fixed for ex...
1
1,144
Ionic POST: response is a String instead of JSON
<p>I'm trying to get a simple app to work on IOS with Ionic. <br/> <br/> The app contains a simple button to get bluetooth started and send a post request to my server with the function <strong>startScanning()</strong> <br/> <br/> First I thought it was a server-side problem so I tried doing a POST via POSTMAN software...
1
3,422
Cannot upload file using PhantomJs (and Selenium WebDriver)
<p><strong>What I'm working with:</strong></p> <p>To start off, my HTML looks the following:</p> <pre class="lang-html prettyprint-override"><code>&lt;form action="http://example.com/upload_photo_iframe.html" preview_div="upload_photo_div" submit_button="submit_btn" upload_field="photo_upload" target="photo_target" e...
1
1,056
how to add spinner in a custom dialog box and populate it with array
<p>i have main screen which have a button called menu on click of menu i am opening a custom dialog box in which there is a spinner i want to populate this by using array all is working fine but when i am setting adapter to the spinner it shows me error</p> <p>this what i am doing in android , </p> <pre><code>packa...
1
1,259
HTTP Status 500 - Error instantiating servlet class LoginServlet
<p>I am getting the following error.</p> <pre><code> type Exception report message Error instantiating servlet class LoginServlet description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating ser...
1
3,530
CSS Organization Structure Chart
<p>I have a HTML &amp; CSS Organization Structure Chart and I think this is a simple question. Here is the demo in <b><a href="http://jsfiddle.net/4tgCu/" rel="noreferrer">JSFiddle</a></b></p> <p>css</p> <pre><code> /*Now the CSS*/ * {margin: 0; padding: 0;} .tree { width: auto; margin-left: auto; margin-right:...
1
1,090
Angular: ReferenceError: Cannot access 'FixedDeposit' before initialization + Circular Dependency Warning
<p>I have went through the below SO Question for a solution:</p> <p><a href="https://stackoverflow.com/questions/56870661/angular-7-2-1-es6-class-referenceerror-cannot-access-x-before-initializatio">Angular: 7.2.1 ES6 class ReferenceError : Cannot access &#39;X&#39; before initialization</a></p> <p>Firstly, I'm getting...
1
1,220
calling an object method with a setTimeout function from within the same object in Javascript
<p>OBeen bangin my head against the desk with this one and I have tried the answers I find on SE. Please help.</p> <p>I have a function that polls an api for new data. All I want is for the function to repeat itself every 10000 ms. I thought the following would work:</p> <pre><code> //SURVIVORS_OBJECT //Store the ...
1
1,520
How to set crop parameters to original image in React?
<p>I am trying to crop an image before uploading it through an API. I am showing a modal (<a href="http://www.material-ui.com/#/components/dialog" rel="nofollow noreferrer"><code>Dialog</code></a>) to do this, and using this library <a href="https://github.com/DominicTobias/react-image-crop" rel="nofollow noreferrer">r...
1
1,383
Spring WS with webServiceTemplate.marshalSendAndReceive returns Received error for request, Service Unavailable : Not Found [404]
<p>I'm trying to ammend an existing SOAP Webservice that uses Spring-WS and JAXB on Tomcat. I've created the new WAR file with my changes and deployed it in the webapps foder under Tomcat installation. </p> <p>When calling the original (already existing) methods of the service, the service SOAP request and response is...
1
1,712
iOS Swift Getting directions between two points and drawing to map
<p>I want to get the directions between two points and draw them to my MKMapView. This is my implementation:</p> <p>First, at my controller's viewDidLoad callback, I set map's view delegate to self</p> <pre><code>map.delegate = self </code></pre> <p>Then, I request all routes:</p> <pre><code>func showDirections() {...
1
1,108
How can I get Images coordinates in pdf into JSONfile?
<p>I have coded creating html page included images extracting a page in pdf document.</p> <p>I had tried to extract images from pdf and then I succeeded to extract images from pdf and to apply the images to html page using PDFBox lib. but I did not extract image coordinates in html page.</p> <p>So searched how to ext...
1
1,481
Spring Security exposing AuthenticationManager without WebSecurityConfigurerAdapter
<p>I'm trying incoming Spring Boot 2.7.0-SNAPSHOT, which uses Spring Security 5.7.0, which deprecate <code>WebSecurityConfigurerAdapter</code>.</p> <p>I read <a href="https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter" rel="noreferrer">this blog post</a>, but I'm not sure to unde...
1
2,812
Custom action bar items listener
<p>I create custom view for action bar: <strong>action_bar_bets.xml</strong></p> <pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="right" an...
1
1,758
EXC_BAD_ACCESS KERN_INVALID_ADDRESS iOS crash
<p>I am getting below crash logs across all iOS versions. However, I am not able to figure out the exact cause of this. Is it something to do with accessing a de-allocated object? If yes, is there a way to replicate the scenario since I am not able to.</p> <pre><code>Crashed: com.apple.main-thread 0 libobjc.A.dylib ...
1
1,072
Google maps can not resolve method getMap()
<p>I am using google map in my project. it was working but i did something( dont know what)now getMap() gives error. i think i update something. how can i fix it?</p> <p>my code is like that;</p> <pre><code>GoogleMap googleMap; .. if (locationManagerCheck.isLocationServiceAvailable()) { if (googleMap == null...
1
1,417
Flutter: How to Fix a 'Multiple Widgets Used the Same GlobalKey' Error
<p><strong>Problem:</strong></p> <p><a href="https://i.stack.imgur.com/T5TBz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T5TBz.png" alt="enter image description here" /></a></p> <p>When I encountered this problem, I was looking to get the middle position of words contained inside a pressed widget...
1
1,788
Plot image in pyqt graphicsView using pyQtGraph
<p>I tried reverse engineering the <a href="https://github.com/pyqtgraph/pyqtgraph/commit/4e9e75817fb0d2b5f6880278857621af30d7d0f1" rel="nofollow noreferrer">designerExample</a> to get it doing the same thing that it does for a plot, but for an image but get two results, neither correct:</p> <ol> <li>If I promote my <...
1
1,851
Pandas: Counting the proportion of zeros in rows and columns of dataframe
<p>I have this code below. It is surprizing for me that it works for the columns and not for the rows.</p> <pre><code>import pandas as pd def summarizing_data_variables(df): numberRows=size(df['ID']) numberColumns=size(df.columns) summaryVariables=np.empty([numberColumns,2], dtype = np.dtype('a50')) ...
1
1,103
Angular2 Post application/json
<p>I receive a 405 error when I attempt to POST application/json using Angular2. I know its not a CORS issue because all of the server response headers are in place (Access-Control-Allow-Headers,Access-Control-Allow-Methods,Access-Control-Allow-Origin) and I can do a POST when the content type is application/x-www-form...
1
1,149
Error when I save model in Laravel. 'Call to a member function getKey() on a non-object'
<p>I try save my object in DB by this code:</p> <pre><code>$preview = new ProjectProductPreview(); $preview-&gt;user_id = $user_id; $preview-&gt;path = $preview_url; $preview-&gt;type = $type; $preview-&gt;project_product_id = $product_id; $preview-&gt;save(); </code></pre> <p>And I got strange error. This error oc...
1
1,063
Starting ActiveMQ message listener in Tomcat?
<p>I've created an ActiveMQ MessageListener and configured it using Spring. I'm hosting the listener in Tomcat. When I start up the web application (that features only the listener), should the listener automatically start? Or do I need additional configuration?</p> <p>Here's what I have. First, updated the web.xm...
1
1,161
Save form input data to use on another page
<p>There are three web pages. I want to transfer data from my first page and second page to the third page. The first webpage is a simple form. The second webpage consists of Dynamic table. The webpage should print the the other two pages data.</p> <p><strong>vib1.html</strong> </p> <pre><code> &lt;h1&gt;...
1
1,689
com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403
<p>I have recently added fabric plugin in my android studio, but i am not finding twitter login option on that plugin. When i search on google then i found one <a href="https://stackoverflow.com/questions/44350781/how-to-install-twitter-kit-using-fabric-plugin-in-android-studio">question</a> that fabric has recently r...
1
2,325
<gradient> tag inside XML causes Android to crash
<p>I have an icon that has a gradient component.</p> <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" android:width="100dp" android:height="100dp" android:viewportWidth="100.0" android:viewportHeight="100.0"&gt...
1
1,224
Python ssl socket server SSLV3_ALERT_CERTIFICATE_UNKNOWN issue
<p>I am writing a python socket server with ssl and I am encountering certificate unknown error during ssl handshake.</p> <p>I have created private key and certificate with <code>openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes</code> command on my own.<br /> This server is intended to ...
1
1,431
Using cx_freeze in PyQt5, can't find PyQt5
<p>I want to build a standalone binary file for <code>windowz(xp, 7, ...)</code> from my <code>python3(+ PyQt5)</code> script and I inevitably use <code>cx_freeze</code> because other freezing apps do not work with python3 (like <code>py2exe</code>, <code>pyinstaller</code>).</p> <p>I read the <code>cx_freeze</code> d...
1
1,135
Scala Play - How to format Generics for JSON conversion
<p>I am learning more and more about Scala and that nice playframework. But there are some things that bother me and that I can't get to work.</p> <p>I like using Generics for some kind of collections, for example. But I need those to be stored in our database, in JSON. There is this cool auto conversion thing, but it...
1
1,206
Run command and get its stdout, stderr separately in near real time like in a terminal
<p>I am trying to find a way in Python to run other programs in such a way that:</p> <ol> <li>The stdout and stderr of the program being run can be logged separately.</li> <li>The stdout and stderr of the program being run can be viewed in near-real time, such that if the child process hangs, the user can see. (i.e. w...
1
1,869
Unable to fetch TableName Serverless Framework: Missing required key 'TableName' in params
<p>I followed this <a href="https://www.youtube.com/watch?v=LXB2Nv9ygQc&amp;t=2520s" rel="nofollow noreferrer">YouTube tutorial</a> first to try and develop a serverless rest api using serverless framework. It gave an error of MissingRequiredParameter and initialised table name to undefined.</p> <p>To alleviate that, I...
1
1,905
What's the proper typing for a React Testing Library wrapper in typescript?
<p>So i have something like this from kent c dodd's library that is super useful</p> <pre class="lang-js prettyprint-override"><code> import * as React from 'react' import {render as rtlRender} from '@testing-library/react' import {ThemeProvider} from 'components/theme' function render(ui, {theme = 'light', ...options...
1
1,140
EXTJS4.1 : TreePanel and Cell Editing (Unexpected behavior of Cell Editing plugin)
<p>I have a Tree Panel with two columns "Tree" and "Description".</p> <p>I render tree and Description column from a TreeStore, The Description column is made editable using CellEditing plugin.</p> <p>When i edit any cell under Description column, its corresponding Tree node's name changes to that of first tree node'...
1
2,304
Open Weather Api (Show weather icon)
<p>Hello community back to you again. I am playing with the openweather API and i am building a simple weather app. I have an issue and i can't show the weather conditions icon for each city.</p> <p>I pushed every icon id in a newArray and i am trying to show it using the url but without luck <a href="http://openweath...
1
1,230
Hibernate : Stale state exception
<p>I am working on a Spring-MVC application in which I am trying to delete an object from the database. Some days back, this error all of a sudden started, and now I am unable to delete. I checked on net, but I cannot find what am I doing wrong and none of the solutions seem to work.</p> <p>Service layer code :</p> <...
1
1,110
Avoid angularJS partial views to be cached in IE
<p>I'm working on an ASP.NET MVC application that also has some angularJS. I have a main page that has different tabs that when you click them they load an angular partial view. This is how the main page looks like:</p> <pre><code>{ ... } &lt;div class="widget-div" ng-controller="mainController"&gt; &lt;div ...
1
1,307
PHP.ini does not load automatically even though it exists at the config location
<p>Ok this is probably just me not knowing enough about php but here it goes.</p> <p>I'm on Ubuntu Hardy. I have a custom compiled version of PHP which I have compiled with these parameters.</p> <pre><code>./configure --enable-soap --with-zlib --with-mysql --with-apxs2=[correct path] --with-config-file-path=[correct ...
1
1,623
How to read file from the command line
<p>I'm starting out learning C and I'm supposed to read in a txt file that I have and I am attempting to open it from the command line. I am supposed to take the data from the txt file and decode it, but for now I'm just attempting to write it to a new file and can't seem to get my input file to read in and subsequentl...
1
1,468
Spring Security return to login page AFTER a successful login
<p>My Sring application have the following Spring Security configuration:</p> <pre><code>@Configuration @ComponentScan(value="org.webapp") @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private DataSource restDataSource; @Autowired public void configu...
1
1,500
how to get the text value from selected li and pass it to input in another li using js
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code> $(document).ready(function () { function create_custom_dropdowns() { $('select').each(function (i, select) { if (!$(thi...
1
2,648
How to avoid the black screen while loading data in android
<p>I am fetching data from remote server in android. While the data loads it shows a black screen which remains for 7-8 seconds. This sometimes causes the android to display ANR dialog. I have used asynctask for the background loading of data but the black screen remains. Also I can't see the indeterminate progress in ...
1
2,863
Webpack throws "Module parse failed with Unexpected token" error
<p>I get <code>Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type.</code> error, though I already have <code>webpack.js</code> configured to work with <code>ts</code>/<code>tsx</code> files and all the app was working perfectly before I imported <code>environment-dev.ts</...
1
2,524