title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do I install a module? Strawberry Perl issues | <p>I am trying to install a Perl module within Strawberry Perl on Windows 7.</p>
<p>I'm running the below command and am getting a slew of messages I don't understand. It looks like I am getting 500 errors, as though the page isn't reachable. However, when I point the mirrors in my browser I have no problem acces... | 0 | 1,820 |
How does Google Docs deal with editing collisions? | <p>I've been toying around with writing my own Javascript editor, with functionality similar to Google Docs (allowing multiple people to work on it at the same time). One thing I don't understand:</p>
<p>Let's say you've got User A and User B connected directly to each other with a network delay of 10ms. I'm assuming ... | 0 | 1,045 |
Warning: validation was turned on but an org.xml.sax.ErrorHandler | <p>Any idea why this error is happening and how to fix it? I'm getting this error when trying to parse/load a config file:</p>
<p>Error</p>
<pre><code>Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired. Parser will use a default
ErrorHandler to print ... | 0 | 1,073 |
GDB ignores my breakpoints | <p>My test case is so simple that I must be doing something very stupid. I wrote a simple source file <code>test.c</code>:</p>
<pre><code>#include<stdio.h>
int main(int argc,char* argv[]){
printf("1\n");
printf("2\n");
printf("3\n");
return 0;
}
</code></pre>
<p>I compiled it with <code>gcc -g ... | 0 | 1,182 |
Android Null Pointer Exception on Textview setText | <p>Android Null pointer exception thrown on settext ran in UI thread forced</p>
<pre><code>runOnUiThread(new Runnable() {
@Override
public void run() {
String name=portalData.getFullname();
setContentView(R.layout.gradebook);
... | 0 | 1,230 |
fatal: remote part of refspec is not a valid name in :capabilities^{} | <p>Cloning a given repo from github, then pushing to a fresh repo on bitbucket, and I get the error:</p>
<pre><code>> fatal: remote part of refspec is not a valid name in :capabilities^{}
> fatal: The remote end hung up unexpectedly
</code></pre>
<p>What does the error mean - and what's causing it (I'm still ne... | 0 | 3,079 |
Image Slideshow Swift ios | <p>I'm new to ios development. I am trying to make a simple fullscreen image slide show. On swipe left, the slideshow should show the next image, and swipe right the slideshow should show the previous image.</p>
<p>I have it working, however, if I swipe in quick succession, I get a blank screen, almost as if the anima... | 0 | 2,503 |
ORA-12154 error trying to connect using ODP .NET | <p>ORA-12154 error trying to connect using ODP .NET </p>
<p><strong>UPDATE: Wernfried's answer fixed it for me.</strong></p>
<blockquote>
<p>Create an environment variable
TNS_ADMIN=D:\oracle\product\12.1.0\dbhome_1\network\admin</p>
<p>Sqlplus reads TNS_ADMIN from Registry but ODP.NET Managed Driver does
... | 0 | 1,042 |
Git gc using excessive memory, unable to complete | <p><em><strong>Final update and fix</strong>: The solution here turned out to be a combination of two things: using Windows Git rather than Cygwin Git as <a href="https://stackoverflow.com/users/385478">Graham Borland</a> <a href="https://stackoverflow.com/a/8215746/220155">suggested</a>, and the Git config settings <c... | 0 | 1,222 |
Android OutOfMemoryError:? | <p>I am sporadically getting an <code>OutOfMemoryError: (Heap Size=49187KB, Allocated=41957KB)</code> in one of my apps. What can I do to diagnose this?</p>
<pre><code> 01-09 10:32:02.079: E/dalvikvm(8077): Out of memory: Heap Size=49187KB, Allocated=41957KB, Limit=49152KB
01-09 10:32:02.079: E/dalvikvm(8077): Extr... | 0 | 1,488 |
Redis / RabbitMQ - Pub / Sub - Performances | <p>I wrote a little test for a simple scenario:</p>
<p>One publisher and one subscriber</p>
<p>Publisher send 1000000 messages</p>
<p>Subscriber receive the 1000000 messages</p>
<p>First test with RabbitMQ, fanout Exchange, RabbitMq node type Ram : 320 seconds</p>
<p>Second test with Redis, basic pub/Sub : 24 seco... | 0 | 1,204 |
How do I client-side upload a viewable file to Amazon S3? | <p>Let me start of by saying that I am normally very reluctant to post this questions as I always feel that there's an answer to everything SOMEWHERE on the internet. After spending countless hours looking for an answer to this question, I've finally given up on this statement however.</p>
<h1>Assumption</h1>
<p>This... | 0 | 2,007 |
valgrind gives invalid read of size 1 | <p>I have gone through several similarly asked questions regarding the same error code, most concern with passing invalid pointer addresses in return. However, this looks not to be the case here as my program correctly works with whatever address is passed in return. </p>
<p><strong>format_string:</strong></p>
<pre><... | 0 | 1,692 |
RelativeLayout and height percentage. Unable to use layout_below and layout_weight | <p>I have a problem with relativelayout where its children could use layout_below and layout_weight to set its percentage height.</p>
<p>For example, we have a relative layout and inside of it we have three linear layouts with textviews. Now, I would like to set for three of them (linearlayouts) 25,50,25 % of height o... | 0 | 1,142 |
Mockito testing service layer | <p>I'm new to Mockito and trying to test my service layer. My DAO layer is @Autowired in service and Hibernate is also autowired. Hibernate is not loading while testing. I always get NullPointerException. Here is my code:</p>
<p><strong>EmployeeService (Interface)</strong></p>
<pre><code>package com.spring.crud.servi... | 0 | 2,114 |
Jquery getJSON cross domain problems | <p>I cant seem to get my JSON file to work when pulling it in from another domain using JQuerys getJSON. I have placed the callback part at the end of the url but still have no joy. Firebug tells me its a cross domain issue, which seems to make sense as if I place the json file locally the below code (excluding the <... | 0 | 6,280 |
Receiving POST data in WCF Service | <p>I read many tutorials but I could not get this running for my project. I made few GET services which send data and they work great, but I have problems receiving the data. I would really appreciate it if someone could tell me where I fail, instead of posting some links. :)
When I try to call the service in my browse... | 0 | 1,537 |
How to play 3gp audio file in Android using default player in the device? | <p>I need to play an 3gp audio file stored in my sd card location, to play it with my default media player in my HTC device.</p>
<p>Code : </p>
<pre><code> public class AudioRecorder extends Activity {
private static final String CAMERA_STATUS = "camera_upload";
private static final String GALLERY_STAT... | 0 | 2,106 |
Using groupBy and map to transform data using LoDash and Moment | <p>I am inexperienced with lodash, but I believe it can help me transform data into a desired format. I have tried varying level of methods described in the documentation, but I can not wrap my head around everything. I've looked here on SO, a few blogs, and the documentation. I have tried combining groupby and map, bu... | 0 | 1,152 |
Laravel Vue Axios is not defined | <p>I built a simple form using the vuetify Framework in my laravel app.
The bootstrap.js already includes the axios Client but I still get the error on submit that axios is not defined:</p>
<blockquote>
<p>[Vue warn]: Error in event handler for "click": "ReferenceError: axios
is not defined"</p>
</blockquote>
<p>... | 0 | 1,628 |
Encryption error on Android 4.2 | <p>The following code is working on all the versions of android except the latest 4.2</p>
<pre><code>import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.Ille... | 0 | 3,570 |
Removing user login credentials from session when user logout in spring-security | <p>I am new to Spring and Spring-Security. I have been going through the tutorials
<a href="http://howtodoinjava.com/2013/04/16/login-form-based-spring-3-security-example/" rel="nofollow noreferrer">here</a></p>
<p>The user are not allowed to hit add employee page without login. So if you hit add employee page, you wil... | 0 | 1,064 |
Rails ActiveRecord::StatementInvalid: PG::Error: ERROR: missing FROM-clause entry for table | <p>I've a complex ActiveRecord query that I'm building up with different scopes, depending on the user selection. I'm using 2 gems, which seems to be problematic together, but I cannot find who's the culprit between :
Texticle (for Postgresql full search) (2.0.3)
Squeel (for ruby syntax use in Active Record query) sque... | 0 | 3,843 |
"Please add a @NgModule annotation" Error on Angular2 | <p>I have made a custom angular2(5.0.x) module that looks like this :</p>
<pre><code>import { GuageService } from './services/guage.service';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GuageComponent } from './guage/guage.component';
@NgModule({
declarations: ... | 0 | 1,111 |
Android/SQLite: Insert-Update table columns to keep the identifier | <p>Currently, I am using the following statement to create a table in an SQLite database on an Android device.</p>
<pre><code>CREATE TABLE IF NOT EXISTS 'locations' (
'_id' INTEGER PRIMARY KEY AUTOINCREMENT, 'name' TEXT,
'latitude' REAL, 'longitude' REAL,
UNIQUE ( 'latitude', 'longitude' )
ON CONFLICT REPLAC... | 0 | 1,481 |
python manage.py collectstatic --noinput error when deploying Django project to Heroku | <p>I've recently encountered a static files error when deploying my Django project again to Heroku. I've deployed the project to Heroku once already previously (without static files) and it worked. But recently, I altered the front-end and included some images and css files, and now I'm updating this project. </p>
<p>... | 0 | 3,099 |
ESP32 Flashing upload starts and fails with timeout | <p>I have an ESP32-WROOM, <a href="https://www.mouser.co.uk/ProductDetail/356-ESP-WROOM-32" rel="nofollow noreferrer">as seen here</a>.</p>
<p>In the Arduino IDE, I compile and verify my sketch, and then attempt an upload.</p>
<p>I get the following error:</p>
<pre><code>esptool.py v2.1
Connecting........___
Chip is... | 0 | 1,450 |
How to fix "Subscript out of bounds error" | <p>I have a R code applied on certain data X and Y, The code is rather simple but it gives certain error </p>
<pre><code>"Error in `[<-`(`*tmp*`, R, , value = c(1, 1)) : subscript out of bounds"
</code></pre>
<p>Can anyone please help me to sort it out.</p>
<pre><code>#X <- read.table("data1.dat")
#Y <-read... | 0 | 1,293 |
Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin' Require stack: | <p>I have webpack-cli installed on my laravel project. I don't know why first of all we need it to run my vue app but this is causing an error:</p>
<p>When I run <strong>npm run dev</strong> or <strong>npm run hot</strong></p>
<pre><code>[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherR... | 0 | 1,452 |
WiX - trying to figure out install sequences | <p>I'm installing a large app, and part of it is a custom written tool called "DbUpdateManager" to mass execute SQL scripts against our target database.</p>
<p>Right now, the WiX 2.x install works - but it has one flaw: during install, I also install a couple of Windows services, which can be optionally started right ... | 0 | 1,517 |
2 Textures, 1 Shader - OpenGL ES 2.0 | <p>ES 2.0 newbie here. I'm currently trying to make some 3D interlaced images from stereo images with ES 2.0 and the PowerVR SDK. I can output one image texture fine, but when I try to output the second one, I seem to be overwriting the first. So, my question is, given the fragment shader below, can I use it to draw tw... | 0 | 1,075 |
Failed: Can't resolve all parameters for MatDialogRef: (?, ?, ?). unit testing Angular project | <p>I am new to angular development and more new towards unit testing using jasmine.
I have created a component to sow a dialog using angular material MatDialogRef, MAT_DIALOG_DATA from @angular/material.
The component is working fine but the Unit testing is giving me an error which i am not able to resolve.</p>
<p>I r... | 0 | 3,362 |
Custom Filtering ArrayAdapter in ListView | <p>I am a begginer in Android but I tried to make a custom listview filtering and I it worked somehow. The only problem I have is that the ArrayList that I kept all the values ( "original" ArrayList ) , is getting lower and lower on items in every filtering. I can't explain this but I thought that you can help me someh... | 0 | 3,766 |
`col-xs-*` not working in Bootstrap 4 | <p>I have not encountered this before, and I am having a very hard time trying to find the solution. When having a column equal to medium in bootstrap like so:</p>
<pre><code><h1 class="text-center">Hello, world!</h1>
<div class="container">
<div class="row">
<div class="c... | 0 | 1,457 |
AttributeError: 'MyMainWindow' object has no attribute 'pushButton' | <p>Trying to proceed click button event in my code but got some issue.</p>
<pre><code>AttributeError: 'MyMainWindow' object has no attribute 'pushButton'
</code></pre>
<p>Seems, like <strong>clicked</strong> event can`t find <strong>pushbutton</strong> from my subclass. Probably i did some mistakes in syntax, so real... | 0 | 1,873 |
Java - Send SOAP header (for authentication) | <p>I've generated some Java code from a wsdl file and the request itself seems to be working, but I can't send my credentials. </p>
<p>I've tested the Webservice with a tool called "SoapUI" and everything seemes to be working like a charm. </p>
<p>Here is an example of the (working) xml:</p>
<pre><code><soapenv:E... | 0 | 2,207 |
jqGrid Delete a Row | <p>I have created my grid and would like to use default behaviour of the grid to delete a row.</p>
<p>This is my grid setup code:</p>
<pre><code>$("#grid").jqGrid('navGrid', '#grid_pager',
{ add: true, addtitle: 'Add Customer',
edit: true, edittitle: 'Edit Customer',
del: true, deltitle: 'Delete Cust... | 0 | 1,029 |
.jsp page POST form with @Requestmapping through Spring does not work | <p>When I try to call my form post in a jsp page using a submit button the page seems to be reloading, but nothing that happens in my @Requestmapping method gets called.</p>
<p>This is the Spring-annotated java method:</p>
<pre><code> @RequestMapping(value = "/TimeTracking.jsp", method = RequestMethod.POST)
publi... | 0 | 6,157 |
Is there a way to check if the iOS device is locked/unlocked? | <p>I have used GPS location updates in my application. I want to detect if the iOS device is in sleep mode so that I can turn off the GPS location updates and optimize the battery use. I have already tried pausesLocationupdates in iOS 6, but it does not work as desired.
I want to turn off the GPS location updates as so... | 0 | 1,554 |
How to connect to remote MYSQL database via php | <p>I have to build an android app which connects to a remote MYSQL webserver and retrieve information for display purpose.
So I did research coz I had no idea where to start. I read an article it mentions the better approach for that is to use php script. And didn’t know anything about how server, database and php work... | 0 | 1,050 |
how to put fontawesome inside cache using htaccess | <p>I use google speed for optimizing my website, and it tell me to put in cache font awesome.</p>
<p>I have the following code for my htaccess but it does not seems to put in cache that file : </p>
<pre><code># MOD_DEFLATE COMPRESSION
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plai... | 0 | 1,076 |
javax.servlet.ServletException at javax.faces.webapp.FacesServlet.service(FacesServlet.java:321) | <p>I am working with JSF 2.0, tomcat 7.0, mojarra 2.0.3 and primefaces.
The problem is that I implemented unsuccessfully javax.servlet.Filter class to redirect to the login page if a user tries to enter a page without having logged in, but I am also using FileUpload to upload files to server, which I think is what is ... | 0 | 3,016 |
Angular npm start it is generating browser application bundles although the app is not in production | <p>I am dealing with an unexpected change at the npm start which it makes the server of Angular very slow.
During <code>npm start</code> it is coming Generating browser applciation bundles (phase: building)... and it is taking to much time</p>
<p>This is my package.json</p>
<pre><code> {
"name": "pr... | 0 | 7,403 |
pg_dump: [archiver (db)] connection to database "testdb" failed: FATAL: password authentication failed for user "katie" | <ol>
<li>I logged into PostgreSQL: <code>psql -U postgres</code></li>
<li>Created 'testdb': <code>CREATE DATABASE testdb;</code></li>
<li>Logged out: <code>\q</code>,</li>
<li>Logged into 'testdb': <code>psql -d testdb -U postgres</code></li>
<li>Created some tables and sequences in 'testdb'</li>
<li>Did: <code>pg_dump... | 0 | 1,808 |
Weird GWT compile error | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/8521475/exception-in-gwt-rpc-app">exception in GWT RPC app</a> </p>
</blockquote>
<p>When compiling my project (2, I'm getting this exception. Anyone has seen this before?</p>
<pre><code>[ERROR] Failure in uni... | 0 | 1,898 |
Can't update RubyGems | <p>I'm having difficulties updating RubyGems from version 1.1.1 to newest. I've tried the following:</p>
<blockquote>
<p>gem update</p>
</blockquote>
<p><strong>Result:</strong></p>
<blockquote>
<p>Updating installed gems<br>
Bulk updating Gem source index for: <a href="http://gems.rubyforge.org/" rel="norefer... | 0 | 1,247 |
nginx; return response code if a file exists by using try_files only | <p>Since <a href="http://wiki.nginx.org/IfIsEvil" rel="nofollow noreferrer">IfIsEvil</a> I've been trying to set up a configuration using the directive <code>try_files</code> only so that a maintenance page is displayed together with the response code 503, for any URI without exception, i.e. including php pages, if a m... | 0 | 1,119 |
Dependencies issue with spring-security-core plugin | <p>I'm trying to install spring-security-core plugin to my project, but it seems that plugin files can't be found in any of the repositories.</p>
<p>I added this line to BuildConfig file's plugin section:</p>
<pre><code> compile ':spring-security-core:2.0-RC2'
</code></pre>
<p>After running grails compile command... | 0 | 2,716 |
Using Ajax To Populate A Select Box | <p>Ok, this is my very first attempt at Ajax and its driving me insane as I really cant get my head round it. What im trying to do is populate the first box with the customers from the database, and then use the customerID to select all the vehicleID's from the database using the select.php script.
What is happening is... | 0 | 1,633 |
How to persist oauth access tokens in spring security JDBC? | <p>When the user login I generate a token so when the user want to access information of RESTapi he will not login again , the code works but I have a problem.</p>
<p>The token that spring generate works but when I recompile the code I wrote, this token doesn't work anymore and I should request a new token to use the ... | 0 | 2,199 |
Starting 2 hazelcast instances synchronously on a single machine (with hazelcast.initial.min.cluster.size=2) | <p>How can I configure Hazelcast (optimally the version I currently use: 3.1.2) to run 2 hazelcast instances on a single machine, and block the first instance during startup until both instances are present?</p>
<h2> hazelcast.initial.min.cluster.size </h2>
<p>The blocking behavior described above can be implemented ... | 0 | 2,316 |
how to get results from xml sax parser in python | <p>I working on xml sax parser to parse xml files and below is my code</p>
<p><strong>xml file code:</strong></p>
<pre><code><job>
<title>Registered Nurse-Epilepsy</title>
<job-code>881723</job-code>
<detail-url>http://search.careers-hcanorthtexas.com/s/Job-Details/Regist... | 0 | 2,118 |
How to show BottomNavigation CoordinatorLayout in Android | <p>In my application I want show <code>BottomNavigation</code> bottom of <code>CoordinatorLayout</code> and for this I write below code : </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns... | 0 | 1,048 |
Drawer Menu in react-native-router-flux does not show anything | <p>I want to have a side menu in react-native using flux. However, it does not show anything.</p>
<p>App.js</p>
<pre><code>const App = () => {
return (
<Router>
<Scene key="root">
<Scene
key="LoginScreen"
component={Logi... | 0 | 2,377 |
Uncaught TypeError: Cannot read property 'length' of undefined | <p>I am trying to get some data in my map, however I have the following error:</p>
<p>Uncaught TypeError: Cannot read property 'length' of undefined.</p>
<p>This is my code:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 Test</titl... | 0 | 3,344 |
Azure web app cannot find the connection string | <p>I am just trying to publish my application in Azure as a Web App. I have been facing issue about the connection string. The server just can't identify what the connection string is, as you may see from the error below:</p>
<pre><code>Unhandled Exception: Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenP... | 0 | 2,281 |
How to rotate an image gradually in Swing? | <p>I have an image I am rotating when the user clicks on a button. But it is not working.</p>
<p>I would like to see the image rotating gradually to 90 degrees till it stops but it doesn't. The image must rotate 90 degrees gradually when the button is clicked.</p>
<p>I have created an SSCCE to demonstrate the problem... | 0 | 4,096 |
Android two way binding with Integer type causes databinding does not exist | <p>I'm having some issue with implementing two way binding with an Integer data type.</p>
<pre><code>public class User {
private String firstName;
private String lastName;
private int age;
public User() {}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
... | 0 | 1,103 |
Error occuring related to build path in eclipse for Spring MVC application | <p>I am building MVC CRUD application. In JSP file I got this error</p>
<pre><code>The tag handler class for "fmt:message"
(org.apache.taglibs.standard.tag.rt.fmt.MessageTag)
was not found on the Java Build Path
</code></pre>
<p>Here is my JSP file at the line "fmt:message"</p>
<pre><code><%@ includ... | 0 | 1,109 |
Property 'take' does not exist on type 'Store<State>' ngrx/store | <p>I'm trying to use the property 'take' when selecting a state in my feature but I'm getting the error <code>Property 'take' does not exist on type 'Store<State></code>. Please, anyone has a clue of what is going on? The reason I want to do that is because I have to identify when the user clicked on the button "... | 0 | 1,321 |
Spring Cloud Config not decrypting the config server password | <p>I've been working on Spring Cloud Config for a while. I have a requirement of securing the config data. As per Spring Cloud Documentation I have configured the <em>server.jks</em> and added to classpath. Now I am able to encrypt and decrypt remote config data.</p>
<p>For making the config server secure I have added ... | 0 | 1,066 |
javax.el.PropertyNotWritableException: /index.xhtml @29,118 value="": Illegal Syntax for Set Operation | <p>I want to create a login screen with localization option to translate the name and when i change from the default English to Arabic it crash</p>
<p>here is the faces.config.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="... | 0 | 3,759 |
android - Material button color | <p>I am styling my app and want to set the button background color and keep them material-like.</p>
<h1>I want</h1>
<p>Set button background color</p>
<h1>I do</h1>
<h2>1.</h2>
<p>I am create style for button, set the <code>colorPrimary</code> and set button style and <code>colorButtonNormal</code>. And it works.</p>
<... | 0 | 1,369 |
Android Service to receive SMS when app is in background | <p>I'm currently working on an app that processes incoming SMS. As I was searching for a solution I came across different ways including stand-alone BroadcastReceivers and Services which work fine. The goal is to receive the SMS even when app is in background and screen is off (phone locked).</p>
<p>My current problem ... | 0 | 1,554 |
How can I get PHP mail() to work? Need help configuring a MTA | <p><strong>Update: I solved it. Documented everything below.</strong></p>
<p>I tried so many things, but it just would not work.</p>
<p>I wouldn't mind using, postfix, exim4, or sendmail. I just need a step by step guide and explanation of what am I doing. I am also using Google Apps for e-mail.</p>
<p><strong>Edit:... | 0 | 1,205 |
How to solve 'command find requires authentication' using Node.js and mongoose? | <p>I need help to fix the error. My ubuntu server 16.04 running:</p>
<p>MongoDB shell version v4.0.9</p>
<p>Node 11.6</p>
<p>mongoose 5.3.4</p>
<p>When the security on /etc/mongod.conf is:</p>
<p><code>security:
authorization: "disabled"</code>
I can use :</p>
<pre><code>const mongoURI = 'mongodb://writeA... | 0 | 1,213 |
Spark 1.6: drop column in DataFrame with escaped column names | <p>Trying to drop a column in a DataFrame, but i have column names with dots in them, which I escaped.</p>
<p>Before I escape, my schema looks like this:</p>
<pre><code>root
|-- user_id: long (nullable = true)
|-- hourOfWeek: string (nullable = true)
|-- observed: string (nullable = true)
|-- raw.hourOfDay: long ... | 0 | 1,085 |
CircleCI message "error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1" | <p>I am facing an error while deploying deployment in CircleCI. Please find the configuration file below.</p>
<p>When running the kubectl CLI, we got an error between kubectl and the <a href="https://aws.amazon.com/eks/" rel="noreferrer">EKS</a> tool of the <code>aws-cli</code>.</p>
<pre class="lang-yaml prettyprint-ov... | 0 | 7,058 |
Angular Material Components Not Displayed | <p>I am new to Angular 2 and Angular Material I tried creating one example to check Angular Material but its not working. I am getting empty html page. My code is as follows.</p>
<p><strong>App Component ts:</strong></p>
<pre><code>import { Component } from '@angular/core';
@Component({
selector: 'app-root',
tem... | 0 | 2,204 |
SQL Full Outer Join duplicate Issue | <p>I've been searching this over quite a bit, and I just can't see where I'm going wrong. I'm hoping someone can help me figure it out. I have two tables, one for all the Sales Orders (SO) for a part number, one for all the Purchase Orders (PO) for a part number. I want to merge the results together. Most of the ti... | 0 | 2,100 |
Unable to run jest with typescript - "Cannot find module 'typescript'" | <p>I'm trying to run jest with typescript, but I'm getting following error. The project runs fine in webpack and with ts-node. For some reason I can't get it to work with jest.</p>
<pre><code>FAIL src/__tests__/classes/Utils.spec.ts
● Test suite failed to run
Cannot find module 'typescript'
Require stack:
- /Users/m... | 0 | 1,712 |
Qt resources files with CMake and AUTORCC | <p><strong>Solution</strong>:</p>
<p>Add resource files in the <code>add_executable()</code> statement</p>
<h1>Problem</h1>
<p>(not in the <code>add_library()</code>)</p>
<p>Fail to set main window icon.</p>
<p><em>Notes</em>:</p>
<ul>
<li><p>When I don't use <code>AUTORCC</code> I run into some compilation probl... | 0 | 1,829 |
Value cannot be null. Parameter name: type | <p>After having read and tried the answers on stackExchange I am still getting a null value for result in the below code:</p>
<pre><code> typeOfIMydServiceBase.Assembly
.GetExportedTypes()
.Where(exportedType => typeOfMydServiceBase != exportedType && typeOfMydServiceBase.IsAssigna... | 0 | 1,885 |
Android. Scrolling 2 listviews together | <p>OK. What I'm trying to achieve is a layout that does the same effect as frozen panes in Excel. That is I want a header row that scrolls horizontally with the main ListView and a left hand ListView that scrolls vertically with the main ListView. The header row and the left hand listview should remain stationary when ... | 0 | 1,049 |
How would I add a start screen to this pygame/python code | <p>I have a fruit catching game.</p>
<pre><code>pygame.init()
myname=input('What is your name')
#set the window size
window= pygame.display.set_mode((800,600) ,0,24)
pygame.display.set_caption("Fruit Catch")
#game variables
gameover=pygame.image.load('gameover.jpg')
myscore=0
file = 'score.txt'
eating=pygame.mixer.S... | 0 | 1,505 |
Python NLTK: SyntaxError: Non-ASCII character '\xc3' in file (Sentiment Analysis -NLP) | <p>I am playing around with NLTK to do an assignment on sentiment analysis. I am using Python 2.7. NLTK 3.0 and NumPy1.9.1 version. </p>
<p>This is the code :</p>
<pre><code>__author__ = 'karan'
import nltk
import re
import sys
def main():
print("Start");
# getting the stop words
stopWords = open("engl... | 0 | 1,445 |
Wamp server online but connection timed out to localhost | <p>I would like to access my localhost and phpmyadmin. I've installed WAMPServer to do so. </p>
<p>WAMPServer is installed and when open goes green. </p>
<p>That takes some time and I have to go to apache -> service -> instal service to go from orange to green but then it works. </p>
<p>But till now I can't access m... | 0 | 6,943 |
How can I find which ELF dependency is not fulfilled? | <p>I've built a test ELF program using the LSB SDK (<em>note that my question is not specific to LSB</em>):</p>
<pre><code>$ /opt/lsb/bin/lsbcc tst.c
$ ls -l a.out
-rwxr-xr-x 1 math math 10791 2009-10-13 20:13 a.out
$ file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses sha... | 0 | 1,106 |
Android Room TypeConverters not recognized | <p>I am trying to implement a <code>DateConverter</code> for persisting date. It's pretty generic, but I kept getting:</p>
<blockquote>
<p>Cannot figure out how to save this field into database. You can consider adding a type converter for it. </p>
</blockquote>
<p>I double checked and have the annotation defined... | 0 | 1,043 |
How can I record voice in android as long as hold a button? | <p>I want to record voice as long as holding the record button and save that voice into the raw folder in my project. I used the code below. Altough there appears no errors, i couldn't get any output. What can be the problem ? Do you have any suggestions? Thanks,</p>
<pre><code>public boolean onTouch(View v, MotionEve... | 0 | 1,102 |
Why is std::sin() and std::cos() slower than sin() and cos()? | <p>Test code:</p>
<pre><code>#include <cmath>
#include <cstdio>
const int N = 4096;
const float PI = 3.1415926535897932384626;
float cosine[N][N];
float sine[N][N];
int main() {
printf("a\n");
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cosine[i][j] = co... | 0 | 1,555 |
google recaptcha returns false due to "invalid-input-secret" | <p>I have installed the latest recaptcha from google but it always returns false upon post submit and always returning "invalid-input-secret" error even though the verification is always correct from the frontend view. What could be the reason on this. Btw I am testing everything in localhost xampp with phalcon framewo... | 0 | 1,279 |
Hadoop 2.2.0 : "name or service not known" Warning | <p>My aim is to run hadoop 2.2.0 on Ubuntu 12.4 . i was able to do it but when i run following command:
<strong><em>rushi@ubuntu:/usr/local/hadoop$ sbin/start-dfs.sh</em></strong> </p>
<p>my dfs is starting namenode, scondarynamenode and also datanode but the problem is i am getting following Warning </p>
<pre><code... | 0 | 1,505 |
Thymeleaf and #fields.hasErrors | <p>I have this assignment I am working on for school. Using SpringMVC, Hibernate JPA, and Thymeleaf. The following code below involves a specific attribute called " stringGrade ". I want to validate the input in that field using Hibernate Validator. I cannot seem to get Thymeleaf to read the expression. The arrayL... | 0 | 1,155 |
Login failed for user 'DOMAIN\MACHINENAME$' | <p>I know this is almost a duplicate of : <a href="https://stackoverflow.com/questions/1269706/the-error-login-failed-for-user-nt-authority-iusr-in-asp-net-and-sql-server-2">The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET and SQL Server 2008</a> and <a href="https://stackoverflow.com/... | 0 | 1,028 |
Angular - TypeError: Cannot read property 'write' of undefined | <p>I'm working on a club project and we are using angular for our platform, I'm just doing front-end homepage stuff, so technically I just use the angular stuff to run and test.</p>
<p>It was working fine but now everytime I run <code>ng build --watch</code> I get this error:</p>
<pre><code>C:\Users\User\Documents\We... | 0 | 1,161 |
HTML5/JavaScript audio playlist | <p>I have found a nice tutorial on how to build a playlist using HTML5 and JavaScript in blog post <em><a href="http://blog.lastrose.com/html5-audio-video-playlist/" rel="nofollow">HTML5 Audio and Video and how to make a playlist</a></em>. I followed the instructions, but I did not get the correct outcome.</p>
<p>This... | 0 | 1,521 |
Google Analytics OAuth2: How to solve error: "redirect_uri_mismatch"? | <p>I'm trying to get this example to work: <a href="https://developers.google.com/analytics/devguides/config/mgmt/v3/quickstart/web-php#enable" rel="nofollow noreferrer">https://developers.google.com/analytics/devguides/config/mgmt/v3/quickstart/web-php#enable</a></p>
<p>The error I'm getting is "Error: redirect_uri_m... | 0 | 2,579 |
Caching API Data Laravel 5.2 | <p>I'am working on the Halo 5 API. I applied to get a higher rate limit for the API, and one of the responses I got was this:</p>
<blockquote>
<p>Can you please provide us more details about which calls you’re making to the APIs and if you’re using any caching? Specifically we would recommend caching match and event... | 0 | 1,568 |
Type Error: expected string or bytes-like object | <p>I keep getting the 'expected string or bytes-like object ' error and i don't know why. Can anybody help? Thanks!</p>
<p><strong>VIEW</strong></p>
<pre><code>data = request.POST.get('data')
data_an = time.strptime(request.POST['data'], "%m/%d/%y")
newanal = Analysis(data=data_an)
</code></pre>
<p><strong>TEMPLATE<... | 0 | 2,356 |
Error: index 1 beyond bounds [0 .. 0] | <p>I am a rookie in Xcode and I have been using the UITableViewController which shows this error.</p>
<p><strong>This is the error message:</strong>
<em>*</em> Terminating app due to uncaught exception 'NSRangeException', reason: '<strong>* -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*</strong> First... | 0 | 1,719 |
Lambda cannot access KMS Key | <p>When I run my lambda code, I get the following error: </p>
<p><code>The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.</code></p>
<p>I have mostly followed <a href="https://aws.amazon.com/blogs/compute/sharing-secrets-with-aws-lambda... | 0 | 1,808 |
SSL Certificate on NGINX fails to load | <p>I am trying to install an SSL certificate that I obtained from Godaddy onto my NGINX server. I am positive I have all of the paths correct and from what I understand my server configuration is correct, but still I get the following error.</p>
<pre><code>Feb 20 11:06:35 my.server.com nginx[6173]: nginx: [emerg] cann... | 0 | 1,091 |
Unable to find element with css selector | <p>Using Selenium Webdriver for FF/IE using C# (.Net)</p>
<p>Below is my page source and I am trying to use the CssSelector to find/contains the particular name from my page and i have tried with the below code but resulting in error, any help?</p>
<p>//code</p>
<pre class="lang-java prettyprint-override"><code>driv... | 0 | 1,481 |
OpenCV feature matching multiple objects | <p>How can I find multiple objects of one type on one image.
I use ORB feature finder and brute force matcher (opencv = 3.2.0).</p>
<p>My source code:</p>
<pre><code>import numpy as np
import cv2
from matplotlib import pyplot as plt
MIN_MATCH_COUNT = 10
img1 = cv2.imread('box.png', 0) # queryImage
img2 = cv2.imrea... | 0 | 1,262 |
MVC Bundling - Failed to load resource | <p>What could be causing this? I'm working with a DurandalJS project that builds and runs locally just fine. When I try to deploy to an Azure Website, the app publishes but fails in the browser with: </p>
<blockquote>
<p>Failed to load resource: the server responded with a status of 404
(Not Found)
<a href="ht... | 0 | 2,102 |
UWP grid to fill parent window | <p>We are working on a school project and has run into a dead end. We are trying to make the <code>grid</code> fill the entire parent window but we are simply not able to do so. </p>
<p>This is what the designer shows and how we want it to look:
<a href="https://i.stack.imgur.com/Zo0QU.png" rel="noreferrer"><img src="... | 0 | 3,438 |
Sorting is not working in datatable in PrimeFaces? | <p>Sorting is not working in datatable in PrimeFaces. Please suggest.</p>
<p>See below my .xhtml file</p>
<pre><code><h:form>
<p:dataTable style="width: 60%" id="dt1" value="#{bean.list}" var="entry" first="0" paginator="true" rows="10" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPage... | 0 | 2,829 |
Failure delivering result ResultInfo{who_null,request=1,result=-1, data =Intent{( has extras )}} to activity;NullPointerException | <p>I have two classes these names are Courses and MainActivity .MainActivity has LAUNCHER activity and it has Gridlayout. Courses has DEFAULT activity.When GridLayout clicked Courses Interface is openning and user is filling the views according to his or her course program so Courses object is created.I would like to s... | 0 | 7,859 |
The best way to modify a WebAPI OData QueryOptions.Filter | <p>I am using the OData sample project at <a href="http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations">http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/working-with-entity-relations</a>. In the Get I want to be able to change the Filter in the QueryOptio... | 0 | 1,257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.