title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Flex Timer example | <p>I am trying to use timer in flex. I referred to this example : <a href="http://blog.flexexamples.com/2007/08/14/creating-a-simple-timer-in-flex-with-the-flashutilstimer-class/" rel="nofollow"><code>Timer : blog.flexexamples.com</code></a>.</p>
<p><strong>Here is what I want to achieve:</strong></p>
<blockquote>
... | 0 | 1,184 |
VBA Excel - Inserting Subtotal Formulas into Specific Rows | <p>My issue is kind of a blend of what's happening <a href="https://stackoverflow.com/questions/25739774/vba-excel-summing-a-range-of-cells-based-on-result-in-a-different-range-of-cel">here</a> and <a href="https://stackoverflow.com/questions/22610818/how-to-add-groups-based-on-conditions-in-excel">here</a>, but is ver... | 0 | 1,723 |
Console.error: no permission handler detected.(React Native) | <p>I am coding a simple react native app and am getting a console error when I run the app. It says that there is no permission handler detected and tells me to go through some steps. But I do not know how to do these steps, and if they don't work, I don't know how to solve the problem.</p>
<p>Here is the error:</p>
... | 0 | 2,292 |
Reading memory from ".exe" + offset? | <p>I'm using WinAPI's <code>ReadProcessMemory()</code> to read some "hidden" information from a game.</p>
<p>I've used Cheat Engine to find out the static pointers, but I don't know how to read from them.
Cheat Engine gives me a pointer to something like this: <code>"mygame.exe"+1C50</code></p>
<p>I'm really new to W... | 0 | 1,147 |
2 columns of equal height - Twitter's Bootstrap 2.0 | <p>Well, everybody knows that Twitter's Bootstrap is a great tool and makes a lot of things easier for those who, like me, doesn't know much about CSS yet. But, sometimes, it can be a problem too.</p>
<p>The thing is: I'm using a fixed 940px-wide, 12-column grid centered layout with two columns, and I wanted that both... | 0 | 1,319 |
Selenium TestNG - java.lang.NullPointerException | <p>I am trying to test the login function to Gmail. But it displays an exception error "java.lang.NullPointerException" . Code as follows:</p>
<pre><code> package gmail;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.By;
import... | 0 | 1,321 |
Django & Heroku - ImportError: No module named gettingstarted.wsgi | <p>I'm trying to deploy a Django1.10 app to Heoroku, and I followed <a href="https://devcenter.heroku.com/articles/django-app-configuration" rel="noreferrer">this guide</a> to add the required configurations.</p>
<p>After deploy, application crash and I get a <code>No module named gettingstarted.wsgi</code> ImportErro... | 0 | 4,045 |
List all registered variables inside a Laravel view | <p>I am using Laravel 5. I would like to know which are all variables passed to a view inside the view itself.</p>
<p>Since all variables are in the view scope I thought I could use the generic PHP function: <code>get_defined_vars();</code> <a href="http://php.net/manual/en/function.get-defined-vars.php">http://php.ne... | 0 | 4,457 |
Cannot interpolate dataframe even if most of the data is filled | <p>I tried to interpolate the NaN in my DataFrame using <code>interpolate()</code> method. However, the method failed with error : </p>
<blockquote>
<p>Cannot interpolate with all NaNs.</p>
</blockquote>
<p>Here's the code:</p>
<pre><code>try:
df3.interpolate(method='index', inplace=True)
processor._arma(d... | 0 | 1,456 |
Preventing multiple browser sessions on the same server session | <p>I'm sure we've all worked on, or are aware of web applications (especially in the enterprise) that have tightly bound themselves to the server session. In these cases, it's possible that the session will become corrupted if more than one browser session is open and using the same server session cookie. We've exami... | 0 | 1,108 |
first time mvn archetype:generate failed | <p>im just getting started on maven, and im currently following the article from <a href="http://www.sonatype.com/books/mvnex-book/reference/simple-project-sect-create-simple.html" rel="nofollow">http://www.sonatype.com/books/mvnex-book/reference/simple-project-sect-create-simple.html</a> :</p>
<blockquote>
<p>To st... | 0 | 3,052 |
IIS Virtual Directory to remote server shared folder: The path might not exist and could not be verified | <p>I cannot get the virtual directory on my IIS website to point to a shared physical folder on a remote file server for love nor money. I set up the same (same name and password) admin users on the web site computer and the file server computer, made that user the application pool identity owner on the IIS site applic... | 0 | 2,382 |
Debugging 504 Gateway Timeout and its actual cause and solution | <p>We are running following stack on our web server Varnish + Nginx + FastCGI (php-fpm) on RHEL 6.6 </p>
<p>Its a dynamic website with different result sets everytime and has around 2 million url's indexed with Google.</p>
<ul>
<li>Its running on nginx/1.5.12 and PHP 5.3.3 (Will be upgraded to latest nginx and PHP so... | 0 | 1,655 |
Edit In Place Content Editing | <p>When using <code>ng-repeat</code> what is the best way to be able to edit content?</p>
<p>In my ideal situation the <strong>added</strong> birthday would be a hyperlink, when this is tapped it will show an edit form - just the same as the current add form with an update button.</p>
<p><a href="http://plnkr.co/edit... | 0 | 1,298 |
C++/CLI delegate as function pointer (System.AccessViolationException) | <p>I have been experimenting with C++/CLI delegates (as I am trying to make a .NET reference library), and I have been having the following problem.</p>
<p>I define a delegate in C++/CLI, and then create an instance of the delegate in C#, and then call the instance of the delegate through unmanaged C++ via a function p... | 0 | 1,719 |
Centering the body of an HTML email in Gmail | <p>I'm re-living the glory days of table-based layouts because I'm writing an HTML email. Unfortunately, I can't get the body to center on the page (it works in a browser, of course, but not when testing in Gmail via <a href="http://ctrlq.org/html-mail/" rel="nofollow">HTML Mails</a>. I would like the table which is ne... | 0 | 3,950 |
Query AD Group Membership Recursively Through SQL | <p><strong>Background</strong></p>
<p>I'm creating some SQL to assist with security auditing; this will take security info from various systems databases and from Active Directory and will produce a list of all anomalies (i.e. cases where accounts are closed in one system but not others.</p>
<p><strong>Current Code</... | 0 | 1,562 |
Why is this Fancybox height and width not working? | <p>This is what I have:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function() {
/*
* Simple image gallery. Uses default settings
*/
$('.fancybox').fancybox();
/*
* Different effects
*/
/*********Thi... | 0 | 3,086 |
Node and Binary Tree Constructor and Destructor Segfaulting | <p>I've seen this question asked before here, specifically</p>
<p><a href="https://stackoverflow.com/questions/9745736/generic-binary-tree-node-destructor-issue">Generic binary tree node destructor issue</a>
and
<a href="https://stackoverflow.com/questions/8018686/binary-search-tree-destructor">Binary Search Tree Dest... | 0 | 1,024 |
Java file IO and "access denied" errors | <p>I have been tearing my hair out on this and thus I am looks for some help . </p>
<p>I have a loop of code that performs the following </p>
<pre><code>//imports ommitted
public void afterPropertiesSet() throws Exception{
//building of URL list ommitted
// urlMap is a HashMap <String,String> created and... | 0 | 1,326 |
Cypress Task: The plugins file is missing or invalid | <p>When I added my custom task I started getting some errors and I'm not sure how to solve it. I was following the example from RWA: <a href="https://github.com/cypress-io/cypress-realworld-app/blob/develop/cypress/plugins/index.ts" rel="noreferrer">https://github.com/cypress-io/cypress-realworld-app/blob/develop/cypre... | 0 | 1,414 |
DialogFragment - Can not perform this action after onSaveInstanceState | <p>I'm developing a launcher application that shows a dialogfragment when the user authenticates itself. Most of the times this is working well, but sometimes I'm having this error log:</p>
<pre><code>02-07 18:55:56.619: E/AndroidRuntime(1300): java.lang.IllegalStateException: Can not perform this action after onSaveI... | 0 | 2,096 |
Using sweetalert2 with bootstrap 4 | <p>I'm using sweetAlert2 and I'm trying to use bootstrap 4 to style buttons, setting the properties:</p>
<pre><code>buttonsStyling: false,
confirmButtonClass: 'btn btn-primary btn-lg',
cancelButtonClass: 'btn btn-lg'
</code></pre>
<p>It works, however the <code>showLoaderOnConfirm</code> option is being shown in a ve... | 0 | 1,660 |
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint | <p>I am using devise(4.2.0) in rails(4.2.6).</p>
<p>In my application, I use nested attributes in user and profile table. I need to validate the password only if I create the new record, the password field is not validated when I update the created records.</p>
<p>My <strong>user.rb</strong> file is:</p>
<pre class=... | 0 | 1,119 |
Ordering aspects with Spring AOP && MVC | <p>I am trying to use Spring AOP with Spring MVC Controller.
I have 3 aspects, and want the to be in specific order. In order to do this, I use Ordered interface and implement getOrder method:</p>
<pre><code>@Aspect
@Component
public class LoggingAspect implements Ordered{
public int getOrder() {
System.out.println("... | 0 | 1,530 |
ASPxGridView EditForm Customization | <p>I have Created a GridView, and i want to customize the edit form. I need to hide/delete or arrange the items on the edit from. For example to move a text box from the the top left side to the bottom right side, or delete from the edit form.</p>
<p>It is possible?</p>
<pre><code><EditForm>
<div... | 0 | 1,418 |
JDBC ODBC Driver Connection | <p>I'm currently working on a project for a class at my University. I am learning about connecting and manipulating databases and we are using a Microsoft .accdb file.</p>
<p>Here is what I have so far.</p>
<pre><code>/* Perform database operations */
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
... | 0 | 1,696 |
Rails 4.0.1 on Heroku, can't create database | <p>I can't get rake db:migrate to run on my rails 4.0.1 app on Heroku.</p>
<p>I'm guessing that I don't have postgres configured properly... but reading the docs on heroku hasn't really helped and I'm not sure what to do. I don't know too much about heroku or postgres.</p>
<p>Any help or resources would be greatly ap... | 0 | 1,389 |
Creating responsive materialize cards | <p>We're using materialize cards to display images on our site. The images are user uploaded, so they come in all different sizes (though they have to be greater than 250px). </p>
<p>We're able to maintain the aspect ratio of the images, which is great, but we don't know how to do that while making the cards on each r... | 0 | 1,157 |
Accessing resources in JSP page of Spring MVC app | <p>I am fairly new to spring and I am having issues with accessing my resources in my Spring mvc app. I have tried Google and using stack overflow to find an answer (none of these helped me <a href="https://stackoverflow.com/questions/11146212/jsp-access-spring-mvc-resources">possible solution 1</a> , or <a href="https... | 0 | 4,289 |
Dependency Injection into Spring non-managed beans | <p>I have a JPA domain class that is non managed. It is instantiated via the <code>new</code> operator.</p>
<pre><code>UserAccount account = new UserAccount();
userRepository.save(account)
</code></pre>
<p>In my <code>UserAccount</code> class, I have a <code>beforeSave()</code> method which is dependent on my <code>S... | 0 | 1,135 |
GCC-4.7 Compilation error | <p>When I add the last line from this snippet to my program code:</p>
<pre><code>typedef std::set<Job> JobSet;
typedef boost::shared_ptr<JobSet> JobSetPtr;
JobSetPtr jobs_;
jobs_->insert ( job ); // line 60
</code></pre>
<p>I get this error:</p>
<pre><code> g++-4.7 -o /home/kron/Software/Synchro... | 0 | 9,576 |
css issue - drop-down not working correctly on iphone/ipad | <p>I have a css powered drop down menu which doesn't work properly on the iphone or ipad.</p>
<p>It works as I want it to on all other browsers and devices I've checked. </p>
<p>I've narrowed it down to the fact that I don't have the menu text (eg the word 'face') wrapped in href tags, like it does in the original ve... | 0 | 1,268 |
RecyclerView - Scroll To Position Not Working Every Time | <p>I have implemented a horizontal scrollable <code>RecyclerView</code>. My <code>RecyclerView</code> uses a <code>LinearLayoutManager</code>, and the problem I am facing is that when I try to use <code>scrollToPosition(position)</code> or <code>smoothScrollToPosition(position)</code> or from <code>LinearLayoutManager<... | 0 | 1,273 |
Use flexbox and maintain an aspect ratio even though content is sized differently | <p>There are a lot of questions on SO about maintaining the aspect ratio of an element (with flexbox or without). However, my problem is slightly different as I want to override the aspect ratio of a child image element:</p>
<ol>
<li>Make sure the image covers the element (<code>object-fit: cover</code>) completely</l... | 0 | 3,434 |
React Native: borderBottomWidth not working | <pre><code>import React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import Fonts from '../Fonts';
import Screen from '../Screen';
const styles = StyleSheet.create({
container: {
alignItems: "center",
backgroundColor: "rgba(12, 22, 32, 0.88)",
flex: 1,
justifyContent: "center"... | 0 | 1,229 |
'relevel' only works with (unordered) factors | <pre><code>library(pacman)
pacman::p_load(metafor,readxl,metaviz,MetaAnalyser,rio)
#library(readxl,metaviz,MetaAnalyser,rio)
#EffektstΓ€rke
Bor1 <- data.frame(read_excel("Borenstein_1.xls"))
Bor1 <- escalc(measure = "SMD", m1i=mw.t, m2i = mw.c, sd1i = sd.t, sd2i = sd.c, n1i= n.t, n2i= n.c, d... | 0 | 1,165 |
Handling Push Notifications when App is NOT running | <p>When my App is <strong><em>not</em></strong> running and receives a Push Notification, if I click on that notification, the App is launched - but then it doesn't prompt the user with the Alert-View I set up, asking them whether they want to view the Notification's contents or not. It just launches, and sits there.</... | 0 | 2,095 |
Safari not setting CORS cookies using JS Fetch API | <p>I am unable to get Safari to successfully apply <code>Set-Cookie</code> from server responses when using the Fetch API (actually, via the <a href="https://github.com/github/fetch" rel="noreferrer">fetch polyfill</a>). The same code works correctly in FF and Chrome (I tested using both native and polyfill <code>fetch... | 0 | 1,280 |
How to make my image responsive width and height? | <p>I wont my image to be responsive like the rest of my website will be. How do i make it adjust to the size of the container. Not just the width but also resize the height?</p>
<p>The image is in a container with a max-width of 1300px, so i have made a test image that has the sizes 400px height and 1300px width</p>
... | 0 | 1,162 |
HTTP Status 415 - Unsupported Media Type | <p>I am working on Java restful web service. While testing the restful service I am getting the responses correct for GET and DELETE methods but it is not working for POST and PUT methods. Can anyone help me? I have written the following code:</p>
<p>StudentService.java</p>
<pre><code>@Stateless
@Path("students")
pub... | 0 | 2,208 |
CardView not showing shadow elevation | <p>I am working with cardviews but the problem is my CardView is not showing any elevation or shadow. I have already tried some of the methods suggested in stackoverflow answers like I have tried using elevation and shadow property. I have also tried using card_view:cardUseCompatPadding="true", but without any success.... | 0 | 3,255 |
React/Redux - Infinite Scrolling/Load More from API | <p><strong>In Short:</strong> I am fetching 21 JSON Objects from an API with X amount of Objects, I then want to fetch the next 21 Objects from the API when the user scrolls down the page. I have tried several options without luck, and my last option is to ask the clever developers in here.</p>
<p>I have never tried t... | 0 | 1,125 |
Webpack file-loader publicPath | <p>I have a react project in which I'm using webpack 3.10.0 with file loader 1.1.6 to move some images and json files into my distribution folder.</p>
<p>Webpack emits the files as expected, but react receives the wrong urls for my json and images assets</p>
<p>My markup looks like:</p>
<pre><code><img src="../im... | 0 | 1,498 |
Continually read the lines being appended to a log file | <p>Concerning my previous <a href="https://stackoverflow.com/questions/2237202/how-can-i-see-jboss-console-with-maven/2238061">question</a> , I found out that maven can't really output jboss console. So I thought I'd like to make workaround it. Here is the deal:</p>
<p>While jboss is running, it writes console logs in... | 0 | 1,655 |
Devise/Omniauth failure: How to debug it? | <p>After trying to "log in with Google", I'm seeing this error in the logs:</p>
<pre><code>Processing by Users::OmniauthCallbacksController#failure as HTML
</code></pre>
<p>I can see all the data from google being sent through the URL (in the logs), including user email and name. So what could go wrong? My callbacks ... | 0 | 1,240 |
MSC00001: Failed to start service jboss.deployment.unit | <p>I have problem with my project using Jboss 7.0
I can't build that.</p>
<p>This is my problem</p>
<pre><code>19:00:38,809 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."brangista.war".INSTALL: org.jboss.msc.service.StartException in service jbos... | 0 | 1,451 |
Dual GPU configuration on Ubuntu 16.04 | <h1>Objective:</h1>
<p>Have a multi-monitor extended display with monitors on two identical GPUs.</p>
<h2>Hardware:</h2>
<ul>
<li>Geforce GTX 970 (x2)</li>
<li>DELL E207WFP Monitor (x6)</li>
<li>Z97-PRO motherboard</li>
<li>i5-4690K CPU @3.50GHz</li>
<li>24GB of RAM</li>
</ul>
<h2>Software:</h2>
<ul>
<li>Ubuntu 16... | 0 | 3,108 |
Map with multiple keys | <p>I am trying to implement a map like </p>
<pre><code>Map<<key1, key2>, List<value>>
</code></pre>
<p>Map should contain 2 keys and corresponding value would be a list. I want to add records in same list <strong>if alteast one key value is equal</strong>
For example consider following records </... | 0 | 1,158 |
how to make countdown timer to not reset on page refresh | <p>I am creating an online exam page for my project. I have a countdown timer, but it resets on page refresh. How can I make it not to reset?
The timer is set by fetching time from db. I am using php mysql. Please help me.
Here is my code.</p>
<pre><code><?php
$result=mysql_query("select * from test where testid... | 0 | 1,095 |
ORA-01007: variable not in select list | <p>I'm trying to insert multiple value into a particular table by return select query I'm not able to insert into table.If I'm doing wrong somewhere please let me know.Thanks in advance. </p>
<pre><code>create or replace PROCEDURE DE_DUP_PROC1 (Dy_File_Name IN VARCHAR2,
... | 0 | 2,049 |
Why/how are Registry Entries Hidden in Regedit but visible in PowerShell? | <p>I'm working with a new property schema, and have been in the habit of checking the registry when I register or unregister a new version. One of the primary places to check this is <code>HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\PROPERTYSYSTEM\PROPERTYSCHEMA</code>.</p>
<p>Interestingly, I occasion... | 0 | 1,174 |
Android: Status Bar is White | <p>For some reason, the status bar is now white. Or rather, an off white, with another shade of white for the icons faintly visible against the bright background. Which is wrong, because my appbarlayout uses a blue shade as its color. Up until now, this has been working fine, I don't know what I did to cause this. I've... | 0 | 2,663 |
Spring Integration SFTP Example with Spring Boot | <p>We are using the latest Spring Boot for a Spring app and using the latest Spring Integration for SFTP. I've been to the Spring Integration SFTP documentation site, and I took the Spring Boot Configuration as is:</p>
<pre><code> @Bean
public SessionFactory<LsEntry> sftpSessionFactory() {
DefaultSftpSessi... | 0 | 1,384 |
RxJava onError Can't create handler inside thread that has not called Looper.prepare() | <p>first i will try to explain what im trying to do, next you will see what im doing(code).
Since im new at RxJava, and still learning fell free to give me your opinion.</p>
<p>So, im calling a network API from server and when start request i call loader(spinner), when finish i hide it and same when i get an error.
I ... | 0 | 1,963 |
Exception java.nio.channels.ClosedChannelException when write to client channel | <p>I have created a game server using netty 3.5.8.
At first, there is not any problem with sending data from server to client.
But when server operates for a while, there are many exceptions [<code>java.nio.channels.ClosedChannelException</code>] when I write data to the client channel.</p>
<p>Anyone has gotten this e... | 0 | 1,207 |
LSTM with Attention | <p>I am trying to add attention mechanism to stacked LSTMs implementation <a href="https://github.com/salesforce/awd-lstm-lm" rel="nofollow noreferrer">https://github.com/salesforce/awd-lstm-lm</a></p>
<p>All examples online use encoder-decoder architecture, which I do not want to use (do I have to for the attention m... | 0 | 1,494 |
Decimal data type not storing the values correctly in both spark and Hive | <p>I am having a problem storing with the decimal data type and not sure if it is a bug or I am doing something wrong</p>
<p>The data in the file looks like this </p>
<pre><code>Column1 column2 column3
steve 100 100.23
ronald 500 20.369
maria 600 19.23
</code></pre>
<p>when I infer the schema in th... | 0 | 1,176 |
"Cannot create an instance of an Interface" (an MvC 3 Wizard inside Orchard CMS) | <p>Based on the great answer at <a href="https://stackoverflow.com/questions/6402628/multi-step-registration-process-issues-in-asp-net-mvc-splitted-viewmodels-sing?answertab=votes#tab-top">multi-step registration process issues in asp.net mvc (splitted viewmodels, single model)</a>, I used the example Darin Dimitrov pr... | 0 | 2,353 |
Spring Integration Dispatcher has no subscribers for channel | <p>I'm using spring integration and its support for MQTT; I saw the spring integration documentation and my simple test case is to publish a message on a MQTT topic. The Spring documentation is located here: <a href="http://docs.spring.io/spring-integration/reference/html/mqtt.html#_configuring_with_java_configuration_... | 0 | 2,837 |
Getting the first letter from each row of a certain column in a data.frame in R | <p>I experience the following problem. One is given a data frame with 5 categories-a,b,c,d,e for each name(names are 54).
I give you a small extract from the whole data frame in R just to give you a feeling on the topic.</p>
<pre><code> **a b c d e
Teniers ... | 0 | 3,601 |
PHP-FPM crashes when having too many users while doing a heavy job | <p>I have a Server running Apache/2.2.22 (Debian), PHP 5.6.17 as FPM and MySQL 5.6.25.</p>
<p>The project runs using a CMS called Redaxo (I don't think it's that important, but I'll tell ya anyway). In Redaxo there are some functions which take some time (e.g. deleting cache and rebuilding it takes 1-2 minutes). In th... | 0 | 1,569 |
Circular dependency between the following tasks | <p>I try to solve this problem for more than 5 hours. What could be the problem?</p>
<pre><code>Circular dependency between the following tasks:
:app:checkManifestChangesDevelopDebug
\--- :app:instantRunMainApkResourcesDevelopDebug
\--- :app:transformClassesAndDexWithShrinkResForDevelopDebug
\--- :app:t... | 0 | 4,365 |
How do I force/get to use GTKLookAndFeel in Java on KDE? | <p>First of all, using gnome is not an option (but it is possible to install its libraries).</p>
<p>I need to know what is necessary to display a Java Swing desktop application using the current installed KDE look and feel of KDE. Ideally, the solution should allow me to apply a look and feel that looks like the under... | 0 | 1,325 |
Using Inline Templates in AngularJS | <p>I wanted to load an inline view template.</p>
<p>I wrapped the template in a script tag of type <code>text/ng-template</code> and set the id to <code>temp1.html</code>. and here's what my module config looks like</p>
<pre><code>learningApp.config(function ($routeProvider) {
$routeProvider
.when("/first... | 0 | 1,200 |
Getting started with Exchange Web Services 2010 | <p>I've been tasked with writing a SOAP web-service in .Net to be middleware between EWS2010 and an application server that previously used WebDAV to connect to Exchange. (<em>As I understand it, WebDAV is going away with EWS2010, so the application server will no longer be able to connect as it previously did, and it ... | 0 | 1,716 |
Module not found: Error: Can't resolve 'fs' in React | <p>I want to implement a SASS compiler for my online editor, for this I want to use the npm package "node-sass".
However I get the error</p>
<pre><code>Module not found: Error: Can't resolve 'fs' in '<MyProjectPath>\node_modules\fs.realpath'.
</code></pre>
<p>I already tried to disable the module via pa... | 0 | 1,949 |
Mapbox GL JS getBounds()/fitBounds() | <p>I'm using Mapbox GL JS v0.14.2 and I've searched high and low through the documentation and very little is clear about this. </p>
<p>If you use the standard JS API, it's very clear to 'fit map to markers' using an example they have provided (<a href="https://www.mapbox.com/mapbox.js/example/v1.0.0/fit-map-to-marker... | 0 | 1,330 |
Why Flask logger does not log in docker when using UWSGI in front? | <p>I have a <code>Flask</code> application inside of <code>Docker</code> that was logging into <code>docker logs</code> when it was running without <code>UWSGI</code> in front. Now I have used <code>UWSGI</code> with the config below to run my application inside of <code>Docker</code>:</p>
<pre><code>[uwsgi]
master =... | 0 | 1,434 |
Invalid state cookie. An error was encountered while handling the remote login. ASP.NET Core MVC external social login | <p>While implementing external social login in ASP.NET Core2.2 MVC web application without ASP.NET Core Identity. I am getting below error while redirecting back to the application after successful sign in with Google, Facebook, Twitter, LinkedIn and Microsoft.</p>
<blockquote>
<p>An unhandled exception occurred whi... | 0 | 2,610 |
content editable cursor position | <p>I have a div thats content editable and I wish to click on the edit button and the cursor appears at the start of the div, at the minute it appears at the end. </p>
<pre><code><li style="display: list-item;" class="menu-item" contenteditable="true">
<div class="">Dior<input type="checkbox" name="sele... | 0 | 1,198 |
Module build failed Cannot find module '@babel/preset-env' | <p>I was working on my react application with set up babel. Unfortunately while setting it up using yarn and when I build my <code>bundle.js</code> file, I run into some problems:</p>
<pre><code>ERROR in ./src/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel... | 0 | 2,025 |
Failed to load resource: net::ERR_CONNECTION_RESET with Apache 2.4 and Chrome | <p>I use an application behind a reverse proxy using Apache 2.4 (<strong>mod_jk</strong>).</p>
<p>When I request some page, it takes forever to load, and won't eventually load at all.</p>
<p>After investigation, I discovered some subtle JavaScript errors that are absent when accessed directly (no reverse proxy).</p>
... | 0 | 1,272 |
How to Save and Retrieve a pdf file in MongoDB in NodeJS | <p>I have an issue where I have saved a small pdf file (~128KB) that is created in my Node.js server backend using Express to a document in Mongodb. I didn't use the Mongo GridFS because the files will always be under the 16MB limit. The collection has a schema of the following:</p>
<pre><code>const mongoose = require... | 0 | 1,363 |
Opening an MS-Access database from the command line without running any of the startup vba code? | <p>Is there a way to open an MS-Access 2003 database from the command line without running any of the startup vba code or displaying any errors?</p>
<p>I looked at the <a href="http://support.microsoft.com/kb/209207" rel="nofollow">command line arguments for MS Access</a> and there doesn't seem to be one for specifyin... | 0 | 1,058 |
Runtime Error: mat1 and mat2 shapes cannot be multiplied in pytorch | <p>I'm new to deep learning and I have created a model using the code below for the prediction of plant disease</p>
<pre><code>class CNN_Model(nn.Module):
def __init__(self):
super(CNN_Model, self).__init__()
self.cnn_model = nn.Sequential(
nn.Conv2d(3, 16, 3),
nn.ReLU(),
nn.MaxPoo... | 0 | 1,771 |
AccessDenied when calling the CreateMultipartUpload operation in Django using django-storages and boto3 | <p>I want to use <code>django-storages</code> to store my model files in Amazon S3 but I get <code>Access Denied</code> error. I have granted the user almost all S3 permission PutObject, ListBucketMultipartUploads, ListMultipartUploadParts, AbortMultipartUpload permissions, etc. on all resources but this didn't fix it.... | 0 | 3,422 |
Looping through list of functions in a function in Python dynamically | <p>I'd like to see if it's possible to run through a list of functions in a function. The closest thing I could find is looping through an entire module. I only want to use a pre-selected list of functions.</p>
<p>Here's my original problem:</p>
<ol>
<li>Given a string, check each letter to see if any of the 5 tests ... | 0 | 1,121 |
Why doesn't the browser reuse the authorization headers after an authenticated XMLHttpRequest? | <p>I'm developing Single Page App using Angular. The backend exposes REST services that require Basic authentication. Getting index.html or any of the scripts does not require authentication. </p>
<p>I have an odd situation where one of my view has a <code><img></code> where the <code>src</code> is the url of a ... | 0 | 1,037 |
SQLAlchemy inheritance not working | <p>I'm using Flask and SQLAlchemy. I have used my own abstract base class and inheritance. When I try to use my models in the python shell I get the following error:</p>
<pre><code>>>> from schedule.models import Task
Traceback (most recent call last):
File "<console>", line 1, in <module>
Fil... | 0 | 1,487 |
Getting a structural type with an anonymous class's methods from a macro | <p>Suppose we want to write a macro that defines an anonymous class with some type members or methods, and then creates an instance of that class that's statically typed as a structural type with those methods, etc. This is possible with the macro system in 2.10.0, and the type member part is extremely easy:</p>
<pre>... | 0 | 1,556 |
D3.js change text on mouseover, is it possible? | <p>I have a force-directed graph, and I wanna to change text in the nodes on mouse over. I have tried to do this with placing a data of <code>"full_name":</code> in data array and then calling it on mouseover like I'm calling it for blue rectangle images. But it does not seems to work it and I'm not getting any error. ... | 0 | 4,316 |
NoSuchMethodError javax.ws.rs.core.Application.getProperties()Ljava/util/Map | <p>I am trying my first REST application.</p>
<p>Below is my configuration:</p>
<ul>
<li>Java 7</li>
<li>JBoss AS 7.1</li>
<li>Jersey 2.22.2</li>
</ul>
<p>Below are list of jars downloaded by Maven:</p>
<p><a href="https://i.stack.imgur.com/C9Vks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C9... | 0 | 2,701 |
Driver for test database type [H2] is not available in the classpath | <p>I am trying to run the the <code>Spring security web application</code>, but when web-app is being deployed I am getting below exception:</p>
<pre><code>o.s.b.f.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/baeldung/spring/TestDbConfig.class]: Bean i... | 0 | 1,407 |
MQ queue manager closed channel immediately during connect | <p>I have read many articles according to my issue, but I stiil have no solution.</p>
<p>When I try to create connection to WebSpereMQ I get </p>
<pre><code>MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
</code... | 0 | 3,991 |
bxslider calculating wrong viewport size on load | <p>Anyway I recently started using bxslider and I'm having an issue with it. </p>
<p>It seems to calculate its viewport size wrongly on page load, which means it doesn't work well on mobile devices, tablets etc.</p>
<p>The weird thing is, when I resize the window of the browser(even just for a pixel) the viewport hei... | 0 | 1,151 |
Google+ API error - Invalid Credentials | <p>I am signing users in using their Google+ account. I sign them in and grab basic information and store it in the database. In this process, I store the <code>access_token</code> in the session and move on.</p>
<p>However, today I am trying to write a script that allows me to post to their 'moments' on Google+ using... | 0 | 3,125 |
Cannot read property 'startsWith' of null in npm install | <p>I searched this issue everywhere. But still couldn't find an answer. Most of answers say there's a problem with proxy. When I try to use <code>npm install -g package-name</code> an error is occurred.</p>
<pre><code>npm ERR! Cannot read property 'startsWith' of null
npm ERR! A complete log of this run can be found i... | 0 | 1,397 |
quarkus-arc Unsatisfied dependency problem | <p>This is my resource class: with repository injection.</p>
<pre><code>@Path("/posts")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class PostsResource {
@Context
UriInfo uriInfo;
@Inject
PostRepository posts;
@GET
public Response getAllPosts... | 0 | 4,978 |
jQuery $(document).ready () fires twice | <p>I've been sifting around the web trying to find out whats going on here and I have not been able to get a concrete answer.</p>
<p>I have one <code>$(document).ready</code> on my site that seams to run multiple times regardless of the code that is inside it.</p>
<p>I've read up on the bug reports for jQuery about h... | 0 | 1,141 |
Creating registration program in java? | <p>I have a simple problem.</p>
<p>I'm trying to create a registration program using text files in java.</p>
<p>I wrote some code to do registration but at first my program should check if username is exists in text file or not.</p>
<p>If username is exists then the program asks user to enter new one.</p>
<p>But t... | 0 | 1,378 |
TypeError: '(slice(0, 201617, 1), slice(None, None, None))' is an invalid key | <p>After reading the following data:</p>
<pre><code>Head:
Open Close High Low Volume volume_adi volume_obv volume_obvm ... momentum_stoch momentum_stoch_signal momentum_wr momentum_ao others_dr others_dlr others_cr nextClose
0 118.940002 118.950996 119.015999 118... | 0 | 1,073 |
TclError: can't invoke "destroy" command: application has been destroyed | <p>I am a python beginner. Try to make a new button to close the window. I got the error message: </p>
<blockquote>
<p>Exception in Tkinter callback
Traceback (most recent call last): File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinte... | 0 | 1,069 |
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ReferenceError: document is not defined | <p>Ok, So basically We use webpack to bundle our resources before deployment. However, now we want to also bundle our sass files through webpack is it simplifies our build process.it was going well, but now bundle.js is too big to deploy on production so I wanted to split bundle.js and styling files. I don't much know ... | 0 | 10,555 |
Binding two commands to one button? | <p>I have a tab control contains two tabs, one shows me the messages of a running process and the other shows me a web page!</p>
<p>I have three buttons (start, stop and clear)
when I press start the process run and the messages show up.</p>
<p>What I need is wen I press Start button, both tabs, shows me the required... | 0 | 2,420 |
gulp-uglify events.js unhandled 'error' event | <p>I'm getting this error. Running gulp yesterday worked perfectly fine, but this morning (changed NO code) and I'm getting this error.</p>
<pre><code>$ gulp
[08:54:10] Using gulpfile C:\Source\Source2\bunny-meadows\gulpfile.js
[08:54:10] Starting 'scripts'...
[08:54:10] 'scripts' errored after 11 ms
[08:54:10] TypeEr... | 0 | 2,068 |
KafkaException: Could not instantiate class JsonDeserializer | <p>I'm trying to start Spring Boot application with Kafka client following <a href="http://docs.spring.io/spring-kafka/reference/html/_reference.html" rel="nofollow noreferrer">this reference guide</a> and I'm getting the error below.<br>
Could you please advise how to fix?</p>
<pre><code>@Bean
public Map<String, O... | 0 | 2,467 |
Save and Load image SQLite C# | <p>I'm trying to save and load images with SQLite with an app on WinForm with CF. I found a way to save an image into the db but I don't know if it's right because I couldn't find a way to load the image stored in the db. </p>
<p>I have a code to convert my image into a Base64:</p>
<pre><code>public void ImageToBase6... | 0 | 2,441 |
Webpack workbox Can't find self.__WB_MANIFEST in your SW source | <p>I migrate from v4 to v5 of webpack-workbox-plugin but when I try to build, I got error:</p>
<pre class="lang-sh prettyprint-override"><code>ERROR in Can't find self.__WB_MANIFEST in your SW source.
Child InjectManifest:
Asset Size Chunks Chunk Names
sw.js 1.5 KiB 0 [emitted] Inject... | 0 | 1,314 |
Spring Cloud @SqsListener MessageConversionException: Cannot convert from [java.lang.String] for GenericMessage | <p>I'm seeing the following exception when I try to consume an SQS message: </p>
<pre><code>org.springframework.messaging.converter.MessageConversionException:
Cannot convert from [java.lang.String] to [com.example.demo.Foo] for GenericMessage [payload={}, headers={LogicalResourceId=my-queue, ApproximateReceiveCount... | 0 | 1,485 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.