title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Authenticating with the Firebase Admin SDK using environment variable | <h1>The problem</h1>
<p>When I try to use an environment variable to authenticate with Cloud Firestore, I get an ENAMETOOLONG error. I've searched so many places for documentation. If anyone can point me in the right direction, that'd be useful.</p>
<h1>Creating the environment variable</h1>
<p>I've created an env... | 1 | 1,109 |
angular-ui ui-calendar not updating on changes to Event Source Object / ng-model | <p>I'm adding fullcalendar.js to an angular app using <code>angular-ui</code> / <code>ui-calendar</code>.<br>
(<code>angularjs 1.3.10</code>, <code>fullcalendar 2.2.6</code>, <code>ui-calendar 0.9.0-beta.1</code>, <code>jQuery 2.1.3</code>, <code>moment 2.9.0</code> & <code>angular-moment 0.9.0</code>)</p>
<p>In t... | 1 | 1,429 |
WooCommerce search no results not working | <p>I'm having an issue with woocommerce search results. The problem is that the "no results" page never appears. When I search for something that I know has no results - it just dumps all products. Example: <a href="http://alpha.safetyworks.com/?s=fkjakfjalkfjdlkjfalkjflkaj%3Blkajfd&post_type=product&tags=0&... | 1 | 1,813 |
How to do Spring Boot Admin Hystrix-Dashboard Integration | <p>Not able to integrate Hystrix Dashboard with Spring Boot Admin</p>
<p>Here is my pom:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://... | 1 | 8,202 |
How to change an image color once on click using CSS alone? | <p>I have an image and when the <code>li</code> on <code>span</code> being selected I want to change the color of image same as the word below it. </p>
<p><strong>I am looking for a simple CSS only solution.</strong></p>
<p>Is that possible?</p>
<p><strong>HTML:</strong> </p>
<pre><code><div class="games-panes f... | 1 | 1,343 |
Can't create Oracle Text index with sync (every...) | <p>I'm trying to create an Oracle text index on a CLOB column in a table but whenever I try to specify the sync parameter as 'SYNC (EVERY "(sysdate+30/24/60/60)")' it fails with some errors about having insufficient privileges.</p>
<p>The tables is defined as:</p>
<pre><code>CREATE TABLE MESSAGE
(
MESSAGE_ID ... | 1 | 1,199 |
NullInjectorError: No provider for "ConfigService" | <p>I have 2 modules <em>ConfigModule</em> and <em>LoginModule</em> each has a service <em>ConfigService</em> and <em>LoginService</em>. The <em>LoginService</em> uses <em>ConfigService</em></p>
<p>My <em>LoginModule</em> </p>
<pre><code> @NgModule({
imports: [
// Angular
CommonModule,
HttpClientM... | 1 | 1,103 |
Background Image -- Chrome Dev Tools Mobile Emulator Doesn't Match Actual Device (iPhone) | <p>Weird problem: I'm working on a bootstrap responsive site, and using the Chrome Developer Tools Device Emulator to see how things look. Unfortunately, what I see on Chrome Devtools doesn't look at all like what I see on an actual mobile phone. </p>
<p><img src="https://i.stack.imgur.com/1o2eX.jpg" alt="iPhone5 s... | 1 | 1,294 |
Trigger Animations | <p>I have a usercontrol that when I double click on it, I want it to zoom in, if it's not already. If it is, then the double click will zoom out on it. I can get it to work with code behind, but I can't get it to work in xaml.
Here is the code behind that handle's the double click event. </p>
<pre><code>void MyObject... | 1 | 1,485 |
Infinite scroll Sql statement to get next records | <p>I am trying to do infinite scroll in my .NET website, using javascript and the following sql statement (sql server 2008). This sql gets the first 10 rows, but my javascript causes the sql to execute each time the user scrolls to the bottom of the page, and each time, it pulls the same (first 10) records, but I want ... | 1 | 1,100 |
Python3.7 mlpy installation error - 'PyThreadState {aka struct _ts}' has no member named 'exc_type' | <p>Trying to install mlpy 3.5.0 in a virtual environment on macOS Catalina, I am getting an error. </p>
<pre><code>In file included from /Users/martin/.virtualenvs/BA/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
from /Users/martin/.virtualenvs/BA/lib/python3.7/site-packa... | 1 | 2,251 |
Does WebSphere 7 HTTPSession implementation contravene J2EE spec? | <p>Saw a problem recently where all 200 web container threads became hung, meaning none were available to service incoming requests and so the application froze.</p>
<p>Here is a simple web app and JMeter test that I think demonstrates the cause of this problem. The web app consists of two classes, the following servl... | 1 | 5,416 |
Create NetworkX graph from similarity matrix | <p>I'm new to the world of graphs and would appreciate some help :-)</p>
<p>I have a dataframe with 10 sentences and I calculated the cosine similarity between each sentence.</p>
<p>Original Dataframe:</p>
<pre><code> text
0 i like working with text
1 my favourite colour is blue and i like beans
2 i have a... | 1 | 1,265 |
Getting "sqlite3_open_v2("mydatabase.db", &handle, 6, NULL) failed" after using sqlcipher in Android | <p>While using sqlcipher in Android 2.3.3. I am getting error.</p>
<p>Here is my DB.java class</p>
<pre><code>import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;
import net.sqlcipher.database.SQLiteDatabase;
import net.sqlcipher.database.SQLit... | 1 | 1,428 |
How to Add OData $select functionality to WebAPI | <p>I am using WebApi v5 and OData v4.</p>
<p>I have a controller which extends from ApiController with a method that polls a repository for a simple list of Categories.</p>
<pre><code>public class ITSRController : ApiController
{
private IITSRRepository repository;
public ITSRController(IITSRRepository itsrR... | 1 | 1,165 |
Play 2.4 Hibernate JPA mysql Unable to build entity manager factory | <p>We are trying to use JPA in our Play 2.4 application.
When we try to run our applicatin we get the following error "Error injecting constructor, javax.persistence.PersistenceException: Unable to build entity manager factory"</p>
<p><strong>build.sbt:</strong></p>
<pre><code>lazy val root = (project in file(".")).e... | 1 | 7,800 |
NestJs - TypeORM configuration works but not with ConfigService | <p>I would like to create a REST API with NestJs and TypeORM. In my <strong>app.module.ts</strong> I load the TypeORM module</p>
<pre><code>@Module({
imports: [
TypeOrmModule.forRoot({
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'postgres',
password: 'postgres',
... | 1 | 1,087 |
Call to a member function fetchColumn() on a non-object PDO | <p><strong>Trying to fetch columns for my project, never done so in PDO, tried looking at the documentations but it didn't really help.</strong></p>
<pre><code> $sql = $CONNECT_TO_DATABASE->query("SELECT COUNT(*) FROM comments");
$result = $sql->fetch(PDO::FETCH_ASSOC);
$r = $result->fetchColumn();
<... | 1 | 1,342 |
How to properly implement React Transition Group for Page Transitions | <p>I've been tearing my hair out all day trying to get this to work. What I'm noticing is that for whatever reason, the transition classes (classNames="fade") never get applied to the page elements. So when I navigate from one page to another, for a brief period (the timeout period) both of the page components will b... | 1 | 2,015 |
CodeIgniter Custom Library Not Loading | <p>I'm new to CodeIgniter and trying to developing a fairly simple application with it -- just a form to process the registration for employees wanting a recreation center pass. I'm trying to separate things to make them cleaner. </p>
<p>Here is the code:</p>
<p>application/controllers/reccenter.php</p>
<pre><code>... | 1 | 3,453 |
How can I fix this? Cast from '[String]' to unrelated type '[String : AnyObject]' always fails | <p>I can't seem to find the solution to this, there are hundreds of answers but none that I can find related to this simple problem.
Whatever I do to try to put the dictionary into a string, fails?
<strong>Original Text</strong>:</p>
<pre><code>let jsonResult = try JSONSerialization.jsonObject(with: data!, options: JS... | 1 | 1,586 |
Spring boot: ERROR StatusLogger Log4j2 could not find a logging implementation | <p>I trying to add log4j2 to spring boot project but it is giving below error.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console</p>
<p>I have configured same using this link
<a href="https://howtodoinjava.com/spring-boot... | 1 | 1,992 |
apply a function to each cell in a column of a dataframe in R | <p><strong>EDIT</strong> Thanks to @user5249203 for pointing out that geocoding is best done with ggmaps' geocode call. Watch out for NA's though. </p>
<p>I am struggling with the <code>apply</code> family in R. </p>
<p>I am using a <a href="https://stackoverflow.com/questions/3257441/geocoding-in-r-with-google-map... | 1 | 1,219 |
javax.servlet.ServletException: HV000030: No validator could be found for type: java.util.Date | <p>The exception on title appears when I submit a form using JSF 2.1 and using JBoss server.</p>
<p>I'm trying to use and learn hibernate annotations.</p>
<p>My Entity bean is as this : </p>
<pre><code>@NotEmpty
@Temporal(TemporalType.DATE)
private Date date;
</code></pre>
<p>I'm getting this error page :</p>
<pre... | 1 | 1,076 |
(NODEJS) express global installation not working | <p>i am new to <code>node</code> and <code>express</code></p>
<p>I did install the node and npm on my ubuntu 13.10 machine. Now, I am trying to install <code>express</code> globally using the following command (i followed instructions on <a href="http://expressjs.com/guide.html#executable" rel="nofollow">official sit... | 1 | 1,661 |
Insert new row, hide column in Javascript? | <p>I have a Javascript like this:</p>
<pre><code><script language="javascript">
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.len... | 1 | 1,027 |
I want to make a more than two input texture filter with GPUImage. but I got a black output | <p>I want to make a new filter like GPUImage's GPUImageTwoInputFilter.</p>
<p>here is my code . A base class named IFFourInputFilter, it is likely GPUImageTwoInputFilter.</p>
<pre><code>#import "IFFourInputFilter.h"
NSString *const kIFFourInputTextureVertexShaderString = SHADER_STRING
(
attribute vec4 position;
at... | 1 | 6,681 |
CKEditor not showing with Sonata Formatter (Sonata Admin Bundle) | <p>I'm having troubles using the <a href="https://www.google.com/url?q=https%3A%2F%2Fsonata-project.org%2Fbundles%2Fformatter%2Fmaster%2Fdoc%2Findex.html&sa=D&sntz=1&usg=AFQjCNFBDlzAZFQk_PUzLIZqZZZ4nEbNMA" rel="nofollow noreferrer">Sonata Formatter Bundle</a>.</p>
<p>In my <strong>config.yml</strong> I have... | 1 | 1,766 |
SQL Server proc running 5x slower than plain query | <p>I have the following query:</p>
<pre><code>DECLARE @DaysNotUsed int = 14
DECLARE @DaysNotPhoned int = 7
--Total Unique Students
DECLARE @totalStudents TABLE (SchoolID uniqueidentifier, TotalUniqueStudents int)
INSERT INTO @totalStudents
SELECT
SSGG.School,
COUNT(DISTINCT S.StudentID)
FROM Stud... | 1 | 1,500 |
calling a webservice from a html page | <p>Hi Please can you help me? I have a number of webpages that I need to know how many times they are loaded. I have created a web service to enter a record into a database when it is triggered.</p>
<pre><code><WebMethod(Description:="Counts when a page is loaded")> _
<ScriptMethod(ResponseFormat:=ResponseFor... | 1 | 1,056 |
Edit row in angularjs table | <p>I have the following angular table with an edit button</p>
<pre><code><table class="tableData" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th></th>
<th>Budget Name</th>
<th>Year</th>
<th>M... | 1 | 3,035 |
Streaming video with PHP from server | <p>I need to stream selected video files on the web server to clients. I am using a PHP script to stream these files as requested, but I am running into an issue where if I am on a local net, it works fine, but if I am remote, it stutters. eg. it appears to load the stream, stop, load more, stop, etc. until enough med... | 1 | 1,909 |
cookie dupes to domain without dot prefix | <p>I have this weird issue I cannot figure out, so I was hoping someone smarter than me could help!</p>
<p>I have a site <code>https://example.com</code> (no subdomain)</p>
<p>I have some code that sets a cookie, e.g. </p>
<pre><code>var value="some value";
document.cookie="myCookie="+escape(value)+"; path=/; domai... | 1 | 4,103 |
fb.login popup doesn't display additional requested permissions if popups are blocked | <p>I am trying to request additional permissions at the time of a facebook login using Facebook's suggested Javascript SDK. I am using the scope parameter to make the additional request as a part of the FB.login(). My chrome browser has blocked popups. When I load the page containing the FB.login and the scope paramete... | 1 | 1,193 |
Why doesn't my thread wait for CompletableFutures to complete with `allOf()`? | <p>I'm studying <code>CompletableFuture</code> in Java 1.8 and having trouble trying to understand <code>allOf</code>. It seems the main thread doesn't wait for any <code>CompletableFuture</code> to complete.</p>
<p>See <a href="https://github.com/nurkiewicz/reactive/blob/master/src/test/java/be/more/reactive/S03_AllO... | 1 | 1,321 |
Ionic Timezone Picker | <p>I'm trying to implement a Timezone picker in my Ionic project and I'm running into some issues. And to be a bit more specific, the timezone picker will be used on the edit profile page for a user. This timezone is important because my application allows the user to checkin (like <a href="https://untappd.com/" rel="n... | 1 | 1,923 |
Hibernate, integration test ConstraintViolationException: validation failed for classes | <p>I've got problem with my hibernate integration test. All annotations are imported correctly, but even if I remove the annotations test fails with a ConstraintViolationException.</p>
<p>Test looks like this:</p>
<pre><code>@ContextConfiguration("classpath:/META-INF/spring/applicationContext.xml")
@RunWith(SpringJUn... | 1 | 2,245 |
Python tabula-py error (pandas error?) | <p>After some reading online I have decided to use tabula-py to extract tables from pdf files. We use Anaconda and I just installed tabula-py 1.1.1.</p>
<p>I wanted to start out with a simple script and see what it would do with a single page pdf file with some text and two tables ("table_p16.pdf").</p>
<p>The code:<... | 1 | 1,428 |
Remove only one element to make a string palindrome | <p>I will be given string. I can remove only 1 element from it. After removing it if the new string becomes palindrome I have to print "Yes" otherwise "No".</p>
<p>For example, I am given a string "abdbca". Here I can remove 5th index 'c' and make it palindrome and i have to print "Yes". On the other hand if the strin... | 1 | 1,122 |
JSON return empty response on FireFox & Safari (Windows Vista) | <p>SOLVED: </p>
<p>The problem lies within Firefox 6.0.2 security.
I have changed my URL request from:
<a href="http://mysite.com/ajax/request" rel="nofollow">http://mysite.com/ajax/request</a>
to /ajax/request
and Its working.</p>
<p>If you need to use cross domains, you need to use jsonp as your dataType.</p>
<p>M... | 1 | 1,568 |
Jenkins: unmappable character for encoding UTF-8 | <p>Quick question regarding android automated build on Jenkins.
I need to create automatic build of android project (With android annotation enabled) on Jenkins.
For this I had done following things so far...</p>
<ol>
<li>Generated build.xml file (Using android update project --target # --name # --path # comm... | 1 | 2,484 |
implementing easing function | <p>I'm trying to port and implement an easing function I found</p>
<h2>EDIT</h2>
<p>: I pasted in the wrong easing function, Sorry! Here is the correct one:</p>
<pre><code>Math.easeOutQuart = function (t, b, c, d) {
t /= d;
t--;
return -c * (t*t*t*t - 1) + b;
};
</code></pre>
<hr>
<p>The language i'm u... | 1 | 2,036 |
"synchronized" method vs. "synchronized (Class.class)" | <p>I'm reading the <code>BluetoothChatService.java</code> file from Android sample and one thing in particular confuses me. </p>
<ul>
<li>There are multiple locations in which a method is accessing a <strong>static member</strong> and it is defined as <strong>synchronized</strong>. </li>
<li>In another section, the sa... | 1 | 1,024 |
pyaudio and pynput: recording while a key is being pressed/held down | <p>I am currently trying to make a simple script which records while a key is being pressed. I need to generate some data, so the intention with the script was to prompt the terminal with an sentence, and when the speaker presses a key will the script start recording, at which the speaker reads the sentence. when the s... | 1 | 1,168 |
Writing array contents to a file | <p>I've struggled with this all day using answers from here, but I cannot find a solution that is working for me, so I thought I'd ask for help:</p>
<p>I have an array of objects that I've extracted from an entity.</p>
<p>All I want to do is to write the objects to a file.</p>
<p>What I've come up with so far is thi... | 1 | 1,480 |
Warnings: Creating Cross-plaftorm Xamarin Blank App (Xamarin.Form portable) in Visual Studio 2015 | <p>Whenever I try to create a new project of the type mentioned above I get these 4 warnings:</p>
<p><strong>Pre-updating Nuget</strong></p>
<h1>1</h1>
<pre><code>Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects tha... | 1 | 3,818 |
Multiple Sessions in node.js | <p>I am making my first app in node.js,express.js,express-session.js and angular.js.
I have made a simple login feature in it. A user logs in and can see all his online friends. </p>
<p>The problem that i am facing is that i open one window in chrome and the other in firefox. login from different accounts but friends... | 1 | 2,242 |
VSTS Build Pipeline: Test fails connecting to Azure Key Vault | <p>I am trying to use VSTS (now Azure DevOps) to do a CI/CD pipeline. For my build pipeline, I have a very basic setup involving doing a restore, build, test, and publish steps. </p>
<p>For my test step, I have it setup to run two test projects - one unit test project and one integration test project. I have my Key Va... | 1 | 3,700 |
How to get the id value of an html <li> element added to an html <ul> element using prepend() method in jQuery ? | <p>I would like to know How to get the id value of an html li element added to an html ul using prepend() method in jQuery. This is my code:</p>
<pre><code><html>
<head>
<link rel="stylesheet" type="text/css" href="{{asset('bundles/moslemtest/phptest/bootstrap.min.css')}}&quo... | 1 | 2,323 |
onChange refresh particular dropdown list in PHP | <p><strong>THE ISSUE?</strong></p>
<p>I need help regarding PHP's onChange command. Basically i'm making a hotel room reservation system. What im trying to do is that there are tow combo boxes.</p>
<ul>
<li>One for HOTEL NAME (COMBO BOX NO.1)</li>
<li>the other for FLOOR NO (COMBO BOX NO.2)</li>
</ul>
<p>What I want... | 1 | 1,131 |
Placing text at center of rectangle | <p>In the following code the text is not placed at the center of the rectangle, I am using</p>
<pre><code>.attr("dx", x.bandwidth()/2)
.attr("dy", y.bandwidth()/2)
</code></pre>
<p>Rather than trial and error, is there a way to place the text center in the rectangle?</p>
<p>Currently it looks like this (towards bot... | 1 | 1,993 |
Error creating bean with name 'mvcValidator' | <p>I am facing an error when running Spring MVC 5' </p>
<blockquote>
<p>HandlerAdapter' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiation... | 1 | 3,000 |
Problems getting spring cloud turbine to connect to Eureka | <p>We are trying to get turbine integrated into our application. </p>
<p>I downloaded the 1.o.o sample release (<a href="https://github.com/spring-cloud-samples/turbine/releases/tag/v1.0.0.RELEASE" rel="nofollow">https://github.com/spring-cloud-samples/turbine/releases/tag/v1.0.0.RELEASE</a>) and built and ran it. I ... | 1 | 2,717 |
CSS Drop down menu is hiding behind a div (already tried z-index) | <p>I´m trying to place a CSS sub-menu over a div, and I already tried using z-index, but it´s still not working. Here is the HTML code:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Concurso</title>
<link type="text/css" rel="stylesheet" href="styles.css">
... | 1 | 2,602 |
Celery and Flask in same docker-compose | <p>I'm trying to use <code>docker-compose</code> to spawn my Flask/Celery/Redis services.</p>
<p>Here's my <code>docker-compose.yml</code>:</p>
<pre><code>flask:
build: .
command: "python3 app.py"
ports:
- '5000:5000'
links:
- redis
volumes:
- .:/usr/src/app:ro
celery:
... | 1 | 2,059 |
TouchableOpacity onPress not Firing in Android | <p>I have an onPress handler not firing in Android. Neither the <code>_pickImage</code> method is never fired on Android, nor the <code>console.log('onpress')</code>. Using Expo 31.</p>
<p>Code:</p>
<pre><code> _pickImage = async () => {
console.log('press');
const {
status: cameraPerm
} = await... | 1 | 1,712 |
Bootstrap 3 - Is it possible not to collapse navbar, and collapse sidebar to navbar menu? | <p>I'm trying to make the navbar not to be collapsed, and collapsing the sidebar to the navbar menu.</p>
<p>Currently this is my navbar:</p>
<p><img src="https://i.stack.imgur.com/XkCMt.png" alt="enter image description here"></p>
<p>Currently the menu only uses glyphicons, so I thought it would be a good idea in mo... | 1 | 4,531 |
How to connect Spring to Oracle Database using eclipse IDE. | <p>I couldn't connect the spring application with oracle db (12c). I have installed the jdbc8 (java to oracle driver) locally and installed all the spring and jdbc dependencies. </p>
<p>Can anyone please help me with it. I'm unable to run the application (access and update the database ). maven build was successful an... | 1 | 1,989 |
Using Terraform random_id to create multiple resources not working as expected | <p>I'm trying to combine the usage of the random_id attribute with the count meta attribute to create multiple Azure storage accounts with unique names. </p>
<p><strong>Configuration code:</strong></p>
<pre><code># Create storage accounts
resource "random_id" "storage_account_name_unique" {
byte_length = 8
}
reso... | 1 | 6,997 |
Matplotlib custom projection: How to transform points | <p>I am working with a custom projection of Matplotlib and don't understand how to do vector transformations within the projection (<em>Note: The custom projection is a Lambert azimuthal equal-area projection with equatorial aspect</em>).</p>
<p>In my example I want to transform a point that is dipping 30° to the Nort... | 1 | 9,811 |
I can't figure out MPI_Scatterv and MPI_Gatherv | <p>I was trying to scatter an 1-dim n*n array to p processors and then used gather to get the data back.but the problem is it displays the garbage output when i run the program.
i am using an Array A which is of n*n and an array b which is of size n .</p>
<pre><code>// num_rows is the number of rows each process will... | 1 | 2,958 |
Generics and Comparable and Comparator... Syntax error, insert ";" to complete LocalVariableDeclarationStatement" | <p>This question deals with generics and using the Comparable and Comparator interfaces.</p>
<p>I have a class Chocolate:</p>
<pre><code>public class Chocolate implements Comparable<Chocolate> {
public int compareTo(Chocolate c) {
if (this.getValue() > c.getValue()) {
return 1;
... | 1 | 1,070 |
How to fix 'CreateView is missing a QuerySet' | <p>I'm trying to get a django app to manage accounts and users.
Admin user can access the django admin site and do whatever the want for managing user.
Simple user which have rights on users can add / modify users through forms but not access django admin site.</p>
<p>Im' tryning to add a CreateView for simple user to... | 1 | 3,681 |
Quick Sort Java | <p>Hi I'm currently working on getting my Quick Sort program working but cannot figure out where I'm going wrong, i have spent hours trying to find out why it's not working but no luck,when I run my code nothing happens. I have four other sorting algorithms working in a similar fashion which is what's confusing me the ... | 1 | 1,199 |
ReSharper and StyleCop vs. the step-down rule (Clean Code) | <p>I imagine that this may be a bit of a divisive post, but it's something I've been struggling to articulate for a while, and I'd like to put it to the wider development community.</p>
<p>I work in a role where, before committing a check in on a file, we run the ReSharper auto format tool that groups things in region... | 1 | 1,732 |
CSS: 100% table height and scrollable tbody | <p>I'm trying to set table height to 100% and have scrollable tbody. Why does my html element grow outside browser window? How can I get scrollbar for tbody instead of html element? I've checked&tried all solutions I could find but none seem to work with my table.</p>
<p><strong>HTML:</strong></p>
<pre><code><... | 1 | 6,123 |
Cocoa:CoreData - Multiple entities in a ManagedObjectContext | <p>I have two entities which I modeled as classes and core data model entities too/ The classes look as follows:</p>
<p><strong>Class: StateManager</strong></p>
<pre><code>#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "StateManager.h"
#import "Constants.h"
@implementation Stat... | 1 | 3,077 |
Can't connect Redis server to nodejs, Docker compose | <p>I'm struggling to connect a redis deployment to my nodejs app. Of course locally without the use of docker, it works well, so I'm at odds as to whether this is an issue to do with my code, or the way I've set up my docker compose file</p>
<p>Dockerfile: </p>
<p><div class="snippet" data-lang="js" data-hide="false"... | 1 | 1,166 |
How to map one JSON schema to another? | <p>I have a requirement where I need to map an input JSON file to a specific output JSON schema, but not sure how to proceed with this. Should I proceed with converting from JSON to Java object, transform and convert back to JSON or is there any other way to handle this?</p>
<p>My Input and output JSON looks like the ... | 1 | 1,904 |
How to insert radio button value into the database? | <p>I want to insert selected radio button value into the database. just "yes" or "no". if anyone can give me an idea it would be a great help. I am using codeigniter framework. Thanks in advance.</p>
<p><strong>Model</strong></p>
<pre><code>function add_reservation($reservation_model) {
return $this->db-&g... | 1 | 1,584 |
I am getting a 401 Unauthorized from Node.js, Restify and Passport | <p>I am getting a 401 even though all my console logs are printing...</p>
<p>Here is my server code:</p>
<pre><code>var Datastore = require('nedb');
var db = new Datastore({
filename : 'datafile.db',
autoload : true
});
var restify = require('restify');
var passport = require('passport');
var Loc... | 1 | 1,884 |
Birthdate + Gender calculations using identity Number - PHP/ Html/MySqli | <p>I am a new, "trying to be" PHP Html and MySqli programmer coming from Ms Access and VB background. Can somebody please assist, as I am stuck and sweating with these calculations.</p>
<p>Example Identity number = 63021854485519</p>
<ul>
<li>The Birthdate from this = dd/mm/yyyy = 18/02/1963</li>
<li>The 7th digit... | 1 | 3,138 |
Error: EACCES: permission denied, unlink '/usr/local/bin/npm | <p>First and foremost I have looked into these previous post for answers: <a href="https://stackoverflow.com/questions/45166318/eacces-permission-denied-unlink">EACCES: permission denied, unlink</a></p>
<p><a href="https://stackoverflow.com/questions/57814364/error-eacces-permission-denied-unlink-usr-local-bin-npx">Er... | 1 | 1,058 |
How to bind ReactiveList<SomeObject> to WPF ListBox or ListView? | <p>I have a simple ViewModel:</p>
<pre><code>public class SampleCollectionViewModel : ReactiveObject
{
public SampleCollectionViewModel()
{
this.Countries = new ReactiveList<Country>();
this.Countries.Add(new Country { Name = "Andora" });
this.Countries.Add... | 1 | 1,057 |
d3.js scatterplot with different colors and symbols - issues encountered | <p>I am trying to create a scatterplot of hundreds of datapoints, each with about 5 different attributes.
The data is loaded from a .csv as an array of objects, each of which looks like this:</p>
<p><code>{hour: "02",yval: "63",foo: "33", goo:"0", bar:"1"},</code></p>
<p>I want to display the scatterplot with the fol... | 1 | 1,109 |
Festival TTS API / CodeBlocks Build problems! | <p>I want to use Festival TTS API with CodeBlocks. I have created a new project, and added in build options>linker settings:</p>
<ul>
<li>libFestival.a</li>
<li>libestools.a</li>
<li>libestbase.a</li>
<li>libeststring.a</li>
</ul>
<p>I also added in the global compiler settings>search directories>compiler:</p>
<ul>
... | 1 | 2,987 |
Pass the Bluetooth connection between Activities in Android Studio | <p>I found a very simple example for Bluetooth connection with Arduino here.
<a href="http://www.instructables.com/id/Android-Bluetooth-Control-LED-Part-2/" rel="nofollow">http://www.instructables.com/id/Android-Bluetooth-Control-LED-Part-2/</a>
Download full project:
<a href="http://www.instructables.com/id/Android-B... | 1 | 4,525 |
Hide Google Maps Marker | <p>I can hide or show google maps markers with checkbox. But i want disable loading markers when webpage opening. more two days i working over this but not working.
How can i do it.?</p>
<p>p.s. Sorry for my English.</p>
<p>My code:</p>
<pre><code><form action="#">
<li> <input type=... | 1 | 5,384 |
How to remove an element from List of Widgets in flutter? | <p>I made a list of TableRows in flutter whichI passed as a children to my Table widget .Each row has some data and a flat button at the end which deletes the data from by database and I want to delete it from that list of TableRows also on the go .I know i have to use change the whole list under setState function but ... | 1 | 1,122 |
Gridview inside listview in android facing android.view.InflateException problems | <p>I have to create the custom gridview within text and listview in android application.</p>
<p>Here i have to display the category name on gridview and if the categoryname is matches which means have to display the list is display on listview below the corresponding categoryname.here i have referred the below tutori... | 1 | 2,016 |
Parse a Json(with array and objects) and export the data into Excel file in Node.js | <p>I am new to Node.js. My requirement is, I need to parse a JSON and export the data into Excel file with all the fields in the JSON.</p>
<p>My JSON is as follows:</p>
<pre><code>{
"id": 1255,
"title": "The Brain and Nervous System (LS1.D)",
"description": "By the time you finish this playlist, you should be a... | 1 | 2,895 |
Responsive table makes layout go beyond 100% width | <p>Demo: <a href="http://codepen.io/anon/pen/JdWrKX?editors=110" rel="nofollow noreferrer">http://codepen.io/anon/pen/JdWrKX?editors=110</a></p>
<p>As you can see there is a responsive table inside ".panel" which you can scroll horizontally. Great.</p>
<p>But it makes the entire page expand horizontally and not fit i... | 1 | 1,726 |
link static library with headers with Green Hills compiler | <p>I have a static library .a with several header files provided. I want to link it with .o files into binary using Green hills compiler.
The error I get is:</p>
<blockquote>
<p><strong>[elxr] (error #412) unresolved symbols.</strong></p>
</blockquote>
<p>I am trying to specify path to header files providing <code>... | 1 | 1,190 |
How to change a variable in a running Python script/service from a web page? | <p>I am using Raspbian on a Raspberry Pi. I have a Python script (LCD.py) that controls an LCD running as a service using supervisord.</p>
<p>I would like to able to enter a message on my web page and have it displayed on the LCD. I think this means I would have to change some variables that my LCD.py script reads, pr... | 1 | 2,916 |
Face Detection using a webcam interface in Java in Windows | <p>I am new to OpenCV, and working on a face detection project. I wanted to create a webcam interface for face detection and I referred to the tutorial: <a href="http://answers.opencv.org/question/12978/face-detection-through-a-webcam-in-java/" rel="nofollow">here</a>
I made following changes to the code( modification ... | 1 | 1,990 |
FlatList renderItem is called multiple times | <p>I'm using FlatList to display data from an API call:</p>
<pre><code>render() {
const { navigation } = this.props;
const animating = this.state.animating;
return (
<View style={styles.container}>
<ActivityIndicator
animating = {animating}
color = '#E3A141'
size = {12... | 1 | 6,865 |
Different results with randomForest() and caret's randomForest (method = "rf") | <p>I am new to caret, and I just want to ensure that I fully understand what it’s doing. Towards that end, I’ve been attempting to replicate the results I get from a randomForest() model using caret’s train() function for method="rf". Unfortunately, I haven’t been able to get matching results, and I’m wondering what I’... | 1 | 1,488 |
How to update row while in " for row in cursor.execute" loop pyodbc? | <p>Here is my code. I just want to update the current row while i am in the loop.</p>
<pre><code>import pyodbc
import requests, re, time
from datetime import datetime
proxy = { 'http': '77.237.228.203:1212'}
user_agent = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0... | 1 | 1,142 |
Android SupportMapFragment can't see map inside a fragment | <p>I'm trying to add a SupportMapFragment into a FrameLayout in my code but i get a Null Pointer Exeption.</p>
<p><strong>My Code:</strong></p>
<p><strong>MainFragment:</strong></p>
<pre><code>public class MainFragment extends FragmentActivity{
@Override
protected void onCreate(Bundle arg0) {
super.... | 1 | 2,698 |
unmarshalerDecoder: quantities must match the regular expression | <p>When I am installing CoreDNS using this command ,by the way,the OS version is: CentOS 7.6 and Kubernetes version is: v1.15.2:</p>
<pre><code>kubectl create -f coredns.yaml
</code></pre>
<p>The output is:</p>
<pre><code>[root@ops001 coredns]# kubectl create -f coredns.yaml
serviceaccount/coredns created
clusterrol... | 1 | 2,616 |
table in Angular using dynamic table headers | <p>I was creating an angular app to display data from various data sources. I configured the list of various data sources in a JSON file each data source has a set of values attached to it.
Here is an example </p>
<pre><code>var configurableConfigurations=[
{
name:"Locations",
table:"location_set",
... | 1 | 1,177 |
Gradle maven-publish plugin produces pom with no dependencies | <p>I have a project which has a <code>SharedCode</code> (Java) module and secondly an <code>Android</code> (Android library) module which depends on the <code>SharedCode</code> module. I've previously been using the <code>maven</code> plugin in my <code>build.gradle</code> files and I've been using the <code>uploadArch... | 1 | 1,507 |
How to get IKVM to build in Visual Studio 2008? | <p>I've downloaded the IKVM sources (<a href="http://www.ikvm.net/" rel="nofollow noreferrer">http://www.ikvm.net/</a>) from <a href="http://sourceforge.net/cvs/?group_id=69637" rel="nofollow noreferrer">http://sourceforge.net/cvs/?group_id=69637</a></p>
<p>Now I'm trying to get it to build in Visual Studio 2008 and a... | 1 | 1,292 |
NHibernate asks .NET to convert a string parameter to an integer, don't know why | <p>(Edited to avoid leading down the wrong road)</p>
<p>Before giving details, very short version: I have a SQL statement I need to get out of NHibernate, and I have Criteria API statements that give it to me. The NHibernate is trying to do something wrong with the statement it generates, and I'm trying to figure out... | 1 | 3,180 |
Process cannot access the file because it is being used by another process on Directory.Move() | <p>We have a client application with the following architecture: a manager process manages a couple of worker processes (reader and writer) and periodically queries the server for version updates. If a version update is available, the manager downloads it to the client computer, shuts down the worker threads, starts an... | 1 | 1,125 |
enable/disable tab on checkbox selection | <p>I have a checkbox in a jsp page, when i clicked that checkbox control goes to 2nd tab(div) i.e. <h2>An imaginary basket is here...</h2> but if i have not checked then control will stay in 1st tab and despite clicking on 2nd tab control will not go to 2nd tab.
Full source code : <a href="http://flowplayer.org/tools/... | 1 | 2,837 |
SwiftUI animation/transition within scrollview behaving strange | <p>I have a ScrollView in SwiftUI with multiple elements, some of them expands on tap.</p>
<pre><code>struct ExpandingView: View {
@State var showContent = false
var body: some View {
VStack {
HStack {
Button(action: {withAnimation {
self.showContent... | 1 | 1,140 |
SQL Query returning column 'id' not found in Spring Boot | <p>Hope you can help - because I'm losing my mind :o)</p>
<p>I have a problem with Spring Boot and native queries. One of my queries are returning the error <strong>java.sql.SQLException: Column 'id' not found.</strong> - and I have no idea why. Everything works fine, when testing in MySQL Workbench.</p>
<p><strong>Q... | 1 | 8,112 |
fixing "more columns in insert than values specified" | <p>A user got this error</p>
<blockquote>
<p>DIAGNOSTICS: Error Executing Database Query. [Macromedia][SQLServer
JDBC Driver][SQLServer]There are more columns in the INSERT statement
than values specified in the VALUES clause. The number of values in
the VALUES clause must match the number of columns specified... | 1 | 1,778 |
How to create a tabhost in android programming using XML and rename every tab? | <p>I know that my question is really basic, but believe me, I can't find a reliable tutorial that will teach me on how to use TabHost in android programming step by step for a beginner like me.</p>
<p>My problem is I dragged a tabhost in Eclipse to my layout, and I inserted a textview on every linearlayout but when I ... | 1 | 1,860 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.