title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Run-time error '7': Out of memory | <p>I'm trying to edit embedded charts in Word documents. My source code is below. It has worked a long time but not for the last two days. I get this error:</p>
<blockquote>
<p>Run-time error '7': Out of memory</p>
</blockquote>
<p>I have searched a lot , but I don't understand the problem. When I shutdown comput... | 0 | 1,351 |
MVC HTML.RenderAction – Error: Duration must be a positive number | <p>On my website I want the user to have the ability to login/logout from any page. When the user select login button a modal dialog will be present to the user for him to enter in his credentials.</p>
<p>Since login will be on every page, I thought I would create a partial view for the login and add it to the layout ... | 0 | 3,040 |
Uncaught TypeError: Cannot read property 'uid' of null using website | <p>I want to get registered user details from firestore into html page. When user clicks my profile page it navigate to next html page with fields like first name and last name etc.. . This fields are already entered at the time of signup page. so i want get those details from firestore into next html page. But i got ... | 0 | 1,929 |
TicTacToe using two dimensional arrays | <p>I am trying to create a program that does the game TicTacToe. I have finished creating
all the methods and I just need to create the driver program. Before creating the
driver program, I tried to just print the board along with a character but I don't
think my methods are correct. Here is what my error looks like... | 0 | 2,754 |
Error: E0902: Exception occured: [User: Root is not allowed to impersonate root | <p>I am trying to follow the steps given at <a href="http://www.rohitmenon.com/index.php/apache-oozie-installation/" rel="nofollow noreferrer">http://www.rohitmenon.com/index.php/apache-oozie-installation/</a>
Note: I am not using cloudera distibution of hadoop</p>
<p>The above link is similar to <a href="http:... | 0 | 1,857 |
Inserting data into a table in WordPress database using WordPress $wpdb | <p>I am starting out plugin development and have followed the tutorials on the WordPress Codex sites. I am now stuck - I have a database called "wp_imlisteningto", where the <code>wp_</code> was inserted using:</p>
<pre><code>$table_name = $wpdb->prefix . "imlisteningto";
</code></pre>
<p>When the plugin is activa... | 0 | 1,182 |
CrudRepository save method not returning updated entity | <p>I'm working with Spring and in it <code>spring-data-jpa:1.7.0.RELEASE</code> and <code>hibernate-jpa-2.1-api:1.0.0.Final</code>. My database is a MySQL. In a integration test, when I save an entity, the <code>entityRepository.save()</code> method does not return a update version of it (with the auto-incremented id p... | 0 | 1,244 |
WebGL - Invalid Operation useProgram | <p>I'm learning WebGL and am on <a href="http://learningwebgl.com/blog/?p=684" rel="noreferrer">this</a> tutorial that has to do with lighting. I'm new to JavaScript so I'm not so good at debugging it yet. I keep getting these errors, anyone know why I'm getting them and how to fix it?</p>
<pre><code>WebGL: INVALID_OP... | 0 | 8,402 |
MVC 4 - Use a different model in partial view | <p>Please bear with my <em>noobness</em>, I'm super new to the MVC pattern.</p>
<p><strong>What I'm trying to do</strong></p>
<p>I am building a profile information page for registered users on my site. This page would list data about the user, such as date of birth, telephone number, subscription status, etc.. You g... | 0 | 2,341 |
Jest: Cannot spy the property because it is not a function; undefined given instead getting error while executing my test cases | <pre><code> This is my controller class(usercontoller.ts) i am trying to write junit test cases for this class
import { UpsertUserDto } from '../shared/interfaces/dto/upsert-user.dto';
import { UserDto } from '../shared/interfaces/dto/user.dto';
import { UserService } fr... | 0 | 1,542 |
Swift gyroscope yaw, pitch, roll | <p>I'm doing a project for my school, for a programming subject. I'm working in Xcode in Swift. I would like to make an application that uses Gyroscope. I don't know but somehow it won't run on my iphone because of some errors in Xcode that I don't know how to fix.When I run the program is says "fatal error: unexpected... | 0 | 1,722 |
Parsing a CSV file for a unique row using the new Java 8 Streams API | <p>I am trying to use the new Java 8 Streams API (for which I am a complete newbie) to parse for a particular row (the one with 'Neda' in the name column) in a CSV file. Using the following <a href="http://blog.codeleak.pl/2014/05/parsing-file-with-stream-api-in-java-8.html" rel="noreferrer">article</a> for motivation... | 0 | 1,078 |
Powershell - convert log file to CSV | <p>I have log files that look like this...</p>
<pre><code>2009-12-18T08:25:22.983Z 1 174 dns:0-apr-credit-cards-uk.pedez.co.uk P http://0-apr-credit-cards-uk.pedez.co.uk/ text/dns #170 20091218082522021+89 sha1:AIDBQOKOYI7OPLVSWEBTIAFVV7SRMLMF - -
2009-12-18T08:25:22.984Z 1 5 dns:0-60racing.c... | 0 | 1,154 |
How to Make a Basic Finite State Machine in Objective-C | <p>I am attempting to build an FSM to control a timer in (iphone sdk) objective c. I felt it was a necessary step, because I was otherwise ending up with nasty spaghetti code containing pages of if-then statements. The complexity, non-readability, and difficulty of adding/changing features lead me to attempt a more for... | 0 | 2,527 |
An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll | <p>I'm working on a small application in C# / WPF that is fed by data from the serial port. It also reads a text file containing some constants in order to calculate something. An event handler is made to handle the incoming data when it arrives:</p>
<pre><code>_serialPort.DataReceived += new System.IO.Ports.SerialDat... | 0 | 1,064 |
Horizontal pod autoscaling not working: `unable to get metrics for resource cpu: no metrics returned from heapster` | <p>I'm trying to create an horizontal pod autoscaling after installing Kubernetes with kubeadm.</p>
<p>The main symptom is that <code>kubectl get hpa</code> returns the CPU metric in the column <code>TARGETS</code> as "undefined":</p>
<pre><code>$ kubectl get hpa
NAME REFERENCE TARGETS M... | 0 | 6,053 |
iOS crash libobjc.A.dylib objc_msgSend | <p>I am getting the crash shown below in Crashlytics.</p>
<p>I am unable to understand where this is coming form within the app. Unfortunately I have never been able to generate this crash myself, but it is occurring in the wild.</p>
<p>There is only one reference to the app name, and there is nothing that leads to s... | 0 | 1,680 |
How can I implement a fixed sidebar? | <p>I have a situation like this:</p>
<pre><code><!DOCTYPE HTML>
<html>
<head>
<title>test</title>
</head>
<style>
#wrapper { width: 1100px; margin: 0px auto; }
#wrapper #stream { width: 790px; float: left; border: 1px solid red; }
#... | 0 | 1,412 |
General method for calculating Smooth vertex normals with 100% smoothness | <p>I've looked online for quite some time and can't find an answer to this.
For simplicity, let's just assume I need to fully smooth out the normals of a group of cojoined faces. <strong>I want to find the actual geometric bisector between a group of vectors, ignoring duplicate normals and maintaining accuracy with tri... | 0 | 1,040 |
Object with id was not of the specified subclass | <p>I'm getting a weird error on my application.<br>
I'm trying to retrieve an list of entity from database (MySQL) with <code>session.createCriteria().list()</code> but I'm getting this <code>org.hibernate.WrongClassException</code>.</p>
<p>I have looked up this error and I know what it means, but I don't know how to ... | 0 | 1,229 |
Mongo aggregation cursor & counting | <p>According to the <a href="http://mongodb.github.io/node-mongodb-native/api-generated/collection.html#aggregate">mongodb node driver docs</a> the aggregate function now returns a cursor (from 2.6).</p>
<p>I hoped that I could use this to get a count of items pre limit & skipping but there doesn't seem to be any ... | 0 | 1,175 |
Updating SQL Database from DataGridView in C# | <p>There's a few tutorials out there on this, but I'm assuming I must have implemented something wrong, because the code I followed from combined tutorials is not working as it should.</p>
<p>These are the tutorials: <a href="https://youtu.be/_i4mYXSaD4w" rel="nofollow">https://youtu.be/_i4mYXSaD4w</a> , <a href="htt... | 0 | 3,650 |
Docker port forwarding not working | <p>I have setup Docker container for access my machine docker container to another machine in local.</p>
<p>Create a container below command:</p>
<pre><code> docker run -it -d --name containerName -h www.myhost.net -v /var/www/html -p 7000:8000 --net mynetwork --ip 172.11.0.10 --privileged myimagename bash
</code>... | 0 | 1,275 |
parsing json into an array in swift 3 | <p>I am new on swift and I am getting a json back from a request but I can not parse. I am trying to get the json info and create coordinates to use on mapkit with annotations as well</p>
<p>Below is the json I get back</p>
<pre><code>{
coord = [
{
islocationactive = 1;
... | 0 | 1,316 |
maven-surefire-report-plugin not generating surefire-report.html | <p>I'm unable to get the <strong>maven-surefire-report-plugin</strong> to generate the <strong>surefire-report.html</strong> when I run:</p>
<pre><code>mvn clean deploy site
mvn clean site
mvn site
mvn clean install site
</code></pre>
<p>The only time I've been able to get the report generated is when I run:</p>
<pr... | 0 | 1,773 |
Run Selenium WebDriver test on a linux server | <p>I'm trying to run a test implemented with selenium webdriver on a Linux server with chrome and no display
this my java code</p>
<pre><code> System.setProperty("webdriver.chrome.driver","/home/exploit/Bureau/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.goog... | 0 | 1,640 |
Unknown tag (c:foreach). in eclipse | <p>I have jstl code and it builds by maven well... But Eclipse had compilation error "Unknown tag (c:foreach)."</p>
<p>code are here:</p>
<pre><code><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix... | 0 | 2,404 |
Running daemon with exec-maven-plugin avoiding `IllegalThreadStateException` | <p>I would like to run a daemon thread which should start on maven package phase. This is what I have in pom.xml:</p>
<pre><code><build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
... | 0 | 1,832 |
TypeError: callback is not a function in nodejs | <p>I am trying learn nodejs and stumble upon this error </p>
<p><em>TypeError: callback is not a function</em></p>
<p>when I am trying to call the server using this command.</p>
<p><em>curl <a href="http://localhost:8090/albums.json" rel="noreferrer">http://localhost:8090/albums.json</a></em></p>
<p>and here is the... | 0 | 1,596 |
How do you pass conditional compilation symbols (DefineConstants) to msbuild | <p>So, both <a href="https://stackoverflow.com/questions/479979/msbuild-defining-conditional-compilation-symbols">this</a> and <a href="http://msdn.microsoft.com/en-us/library/bb629394.aspx" rel="noreferrer">this</a> are pretty clear. Simply pass <code>/p:DefineConstants="SYMBOL"</code></p>
<p>It doesn't work at all f... | 0 | 1,701 |
convert html file to pdf using dompdf | <p>How do I properly use dompdf to convert html files into pdf. I'm doing something like this:</p>
<pre><code><?php
require_once("lib/dompdf/dompdf_config.inc.php");
$file = "checkout.html";
$dompdf = new DOMPDF();
$dompdf->load_html_file($file);
$dompdf->render();
$dompdf->stream("sample.pdf");
?>
... | 0 | 1,083 |
spring jndi datasource setup | <p>Hi i am trying to use jndi data source. below is the code</p>
<p><strong>context.xml</strong></p>
<pre><code> <Context antiJARLocking="true" path="/SpringMVCTest">
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver"
maxActive="20" maxIdle="10" maxWait="10000"
... | 0 | 1,095 |
Change the font color in a specific cell of a JTable? | <p>Before starting, I've viewed a handful of solutions as well as documentation. I can't seem to figure out why my code isn't working the way I believe it should work. I've extended DefaultTableCellRenderer but I don't believe it is being applied - that or I messed things up somewhere.</p>
<p>Here are the threads / we... | 0 | 1,973 |
Javascript to get screen width in PHP variable | <p>I have a responsive site that has a <a href="http://www.red-team-design.com/simple-and-effective-dropdown-login-box" rel="noreferrer">simple drop-down login menu</a> when the site is in a "desktop" view (screen available width > 768) next to other navigational links. When the screen width drops below 768 the navigat... | 0 | 1,664 |
"Error: The shapes of the array expressions do not conform" | <p>This is my program to solve a problem of three dimensional cylindrical fin. But when i run this program in Fortran 6.2 this error shows up:</p>
<blockquote>
<p>Error: The shapes of the array expressions do not conform. [T]" </p>
</blockquote>
<p>Now i don't understand why this is happening. I need quick assistan... | 0 | 1,670 |
Valgrind yells about an uninitialised bytes | <p>Valgrind throws me out this error:</p>
<pre><code>==11204== Syscall param write(buf) points to uninitialised byte(s)
==11204== at 0x4109033: write (in /lib/libc-2.13.so)
==11204== by 0x8049654: main (mmboxman.c:289)
==11204== Address 0xbe92f861 is on thread 1's stack
==11204==
</code></pre>
<p>What's the p... | 0 | 2,247 |
Caused by: java.lang.IllegalStateException: No value has been specified for this provider | <p>I was trying to import a project from github , but it was showing this configuration issue.<br>
Can someone please suggest me what should i do?</p>
<pre><code> 2019-09-06 19:23:53,953 [ thread 10] INFO - e.project.sync.GradleSyncState - Gradle sync failed: No value has been specified for this provider. (9 m 7 s 8... | 0 | 8,687 |
Working POST Multipart Request with Volley and without HttpEntity | <p>This is not really a question, however, I would like to share some of my working code here for your reference when you need.</p>
<p>As we know that <code>HttpEntity</code> is deprecated from API22 and comletely removed since API23. At the moment, we cannot access <a href="http://developer.android.com/reference/org/... | 0 | 2,974 |
How to use "next" and "previous" button instead of numbers in list.js pagination? | <p>I have a table with many rows. Therefore I decided to use <code>list.js</code> (pagination). However I don't want numbers as pages but a <code>next</code> and <code>previous</code> button which I can style individually (or let bootstrap to the job).</p>
<pre><code><ul class="pager">
<li>
... | 0 | 1,481 |
How to use UdpClient.BeginReceive in a loop | <p>I want to do this</p>
<pre><code>for (int i = 0; i < 100; i++ )
{
Byte[] receiveBytes = receivingUdpClient.Receive(ref RemoteIpEndPoint);
}
</code></pre>
<p>But instead of using <code>UdpClient.Receive</code>, I have to use <code>UdpClient.BeginReceive</code>. The problem is, how do I do that? There aren't ... | 0 | 1,312 |
c++ "error: invalid conversion from ‘const char*’ to ‘char*’" | <p>I'm fairly new to C++ programming and I've been getting an error that I can't seem to figure out. I've tried it many different ways and just get variations of the same error. here is the error and my code:</p>
<pre><code> account.cxx: In member function ‘char* account::get_name() const’: ... | 0 | 1,151 |
C++ 11 threads with clang | <p>I wanted to learn use of C++11 threads to speed up compilation of my language (yes I'm building a compiler :x). The first sample I tried threw several errors with clang (3.3 SVN). It compiled fine under GCC (4.6.3).</p>
<p>I downloaded clang and libc++ from llvm.org's SVN. clang was compiled with GCC (4.6.3) and li... | 0 | 4,758 |
Saving blob image in laravel's controller | <p>In my Laravel 5/vuejs 2.6 I upload an image with the vue-upload-component and am sending a requested image blob
I try to save it with the controller code like :</p>
<pre><code> if ( !empty($requestData['avatar_filename']) and !empty($requestData['avatar_blob']) ) {
$dest_image = 'public/' . Customer::get... | 0 | 4,717 |
How to display data using openlayers with OpenStreetMap in geodjango? | <p>I've got geodjango running using <a href="http://openlayers.org/" rel="noreferrer">openlayers</a> and <a href="http://www.openstreetmap.org/" rel="noreferrer">OpenStreetMaps</a> with the admin app.</p>
<p>Now I want to write some views to display the data. Basically, I just want to add a list of points (seen in the... | 0 | 1,576 |
laravel passing errors to views through controllers | <p>I am trying to validate in an action within my controller. once it fails, I send the messages resulting from the validator to the other function in the same controller to pass it to the view. The only problem is I don't see anything displaying in the view and the url changes to a weird format once I click submit and... | 0 | 1,118 |
Warning: Mapping new ns to old ns and emulator stopping abruptly | <p>After upgrading to Arctic Fox , I am getting the following errors, even though the emulator is running but sometimes stopping abruptly.
What is this error ?
How can I get rid of this ?</p>
<p>I am using the following as copied from <code>cmd</code> :</p>
<pre><code> > C:\Users\Debasis>flutter doctor Doctor ... | 0 | 1,222 |
Getting Bootstrap's modal content from another page | <p>I have an anchor in a page called <code>menu.html</code> and I'm having trouble getting a Bootstrap modal to display data from another page called <code>Lab6.html</code>.</p>
<p><strong>menu.html</strong></p>
<pre><code><div class="collapse navbar-collapse navbar-exl-collapse">
<ul class="nav navbar-nav... | 0 | 1,636 |
How To Reload A iframe Using jQuery | <p>I've created a basic browser within a browser window using an iframe:</p>
<p>The purpose is to allow mouse-over styling of elements using jquery ie/ highlight all links red etc... change font etc..</p>
<p>I've created two files:</p>
<p><strong>browser.php</strong></p>
<pre><code><html>
<head>
... | 0 | 1,124 |
BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource | <p>I'm writing a small program for circuit breaker, When running the application it throws exceptions.<br> springboot versin 2.5.4, Hystrix Version using <strong>2.2.6</strong><br>
<strong>BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframe... | 0 | 1,601 |
C# DynamicObject dynamic properties | <p>Assuming I cannot use an ExpandoObject and have to roll my own like so :-</p>
<pre><code>class MyObject : DynamicObject {
dictionary<string, object> _properties = dictionary<string, object>();
public override bool TryGetMember(GetMemberBinder binder, out object result) {
string name = b... | 0 | 1,216 |
How can I have a popup Google Map appear when the user hovers over an address? | <p>I want to set up my site so that whenever a user hovers over an address, a small google map of that address pops up. I've been reading through the Google Maps API documentation, but I'm having a hard time finding a simple way to implement this. It seems I have to use what google calls "geocoding" to find the latitud... | 0 | 1,080 |
Syntax error, unexpected T_SL | <p>I'm fairly new to php and I'm using a script that creates a function called the "mime_mailer" which essentially allows me to use PHP to send emails that are able to be designed with CSS instead of being merely plain text. </p>
<p>Yet, in my registration script, I try to write some code that sends a CSS email, but I... | 0 | 2,033 |
Adding a SessionStore (ITicketStore) to my application cookie makes my Data Protection Provider fail to work | <p>tl;dr</p>
<ul>
<li>Have .NET Core 2.0 application which uses a Data Protection Provider which persists a key file across all of the sites on my domain.</li>
<li>Worked fine, however, application cookie became too big.</li>
<li>Implemented a SessionStore on the cookie using ITicketStore</li>
<li>Cookie size is great... | 0 | 1,039 |
Unsupported or unrecognized ssl-message exception at startHandshake after issuing STARTTLS command in a java program | <p>I have written a simple e-mail client in java without using the JavaMail API, as by what I read from the documentation it seems necessary to split the messages up into head and body and in the single MIME-parts for sending which would make my application a lot more complicated. Everything worked fine for a SSL port ... | 0 | 1,192 |
matrix inversion in boost | <p>I am trying to do a simple matrix inversion operation using boost. But I
am getting an error.
Basically what I am trying to find is inversted_matrix =
inverse(trans(matrix) * matrix)
But I am getting an error </p>
<pre><code>Check failed in file boost_1_53_0/boost/numeric/ublas/lu.hpp at line 299:
detail::expr... | 0 | 1,125 |
Kubernetes pod never gets ready | <p>I am setting up a small Kubernetes cluster using a VM (master) and 3 bare metal servers (all running Ubuntu 14.04). I followed the Kubernetes <a href="https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/getting-started-guides/ubuntu.md" rel="noreferrer">install tutorial for Ubuntu</a>. Each bare metal ser... | 0 | 1,036 |
Android Calling Async Task in an activity | <p>I have an activity that selects an image from a gridview and it allows you to save the image. I'm using Async Task for all my codes. I seperated my AsyncTask from a few classes. How do i call them from my activity? How do I pass string back to my AsyncTask. </p>
<p>SingleImageView.class</p>
<pre><code>@Override
... | 0 | 1,482 |
How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress? | <p>I have an html structure that requires customization of the <code>wp_nav_menu</code> code.</p>
<p>This is the html I need to generate:</p>
<pre><code><ul class="main-nav">
<li class="item">
<a href="http://example.com/?p=123" class="title">Title</a>
<a href="http://ex... | 0 | 1,120 |
linear-gradients not working in mobile web browsers | <p>I am writing a mobile web-app and I was wondering if someone could help me understand and fix these linear-gradients so that they work in both <code>Safari-mobile</code> and the <code>Android-browser</code>.</p>
<p>I believe I am using every vendor-prefix properly and I even provide a fallback background-color, but... | 0 | 1,058 |
What is the fastest way to bulk load data into HBase programmatically? | <p>I have a Plain text file with possibly millions of lines which needs custom parsing and I want to load it into an HBase table as fast as possible (using Hadoop or HBase Java client).</p>
<p>My current solution is based on a <strong>MapReduce</strong> job without the Reduce part. I use <code>FileInputFormat</code> t... | 0 | 1,194 |
How do I update PyQt5? | <p>I have an apparently older version of PyQt5 installed on my Xubuntu (Voyager). When I print the <code>PYQT_VERSION_STR</code>, it displays: <code>'5.2.1'</code>. I downloaded the latest PyQt5 release form here: <a href="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4/" rel="nofollow">http://sourceforge.net... | 0 | 1,418 |
Proguard and error | <p>I use this proguard file:</p>
<pre><code> -dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
!code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
-optimizationpasses 10
-allowaccessmodification
-mergeinterfacesaggressively
-overloadaggressively
-assumenosi... | 0 | 4,556 |
HTTP Request using Netty | <p>I have just started netty and I am really disappointed with the documentation present on
their website. </p>
<p>I am trying to connect to an URL using Netty.. I took the time client example from their website and changed it as per my requirement.. </p>
<p>Code :</p>
<pre><code>public class NettyClient {
p... | 0 | 2,953 |
Angular combining parallel and chained requests with $http.then() and $q.all() | <p>I have a rather complicated set of API calls to make and I'm attempting to do it as elegantly and performant as possible. I understand how to use the promise api of the <code>$http</code> service to chain requests, and how to use the <code>$q</code> service to make requests in parallel. But for this specific API wor... | 0 | 1,179 |
React-Native FlatList- Warning: Each child in an array or iterator should have a unique "key" prop, even after giving key={index} | <p>I am building the photo-feed application, <a href="https://github.com/ganesh-deshmukh/exchange-o-gram/commits/master" rel="noreferrer">project-repo-here</a> , in the comments section after clicking on show-comments, it shows comment page on a device, but in a terminal, it breaks with error as,</p>
<p>error is in co... | 0 | 2,172 |
Setting up a subdomain with Apache on Linux | <p>I can't believe that I haven't done this before, but I would like a definitive answer so I'm all set going forward.</p>
<p>I have an apache config file at <code>/etc/apache2/sites-available/mysite</code> which looks like this:</p>
<pre><code><VirtualHost *:80>
ServerAdmin webmaster@localhost
Documen... | 0 | 1,493 |
The name ViewModelLocator does not exist in the namespace | <p>I'm learning WPF with MVVM Light and i've an issue with my Portable Class Library.
I follow this tutorial: <a href="http://www.codeproject.com/Articles/536494/Portable-MVVM-Light-Move-Your-View-Models" rel="noreferrer">http://www.codeproject.com/Articles/536494/Portable-MVVM-Light-Move-Your-View-Models</a></p>
<p>I... | 0 | 1,087 |
Vuejs 3 emit event from child to parent component | <p>I've recently started working with VueJS, I'm using v3 and seem to be having an issue calling a method on a parent. The emit function in the child doesn't seem to be emitting the event and nothing is getting picked up in the parent.</p>
<p>I've included the parent and child to show how I have it set up</p>
<p><stron... | 0 | 1,073 |
PrimeFaces nested form inside p:dialog with appendTo="@(body) | <p>I have this fragment:</p>
<pre><code><h:form id="form">
<!-- other content -->
<p:panel id="panel" header="test">
<p:inputText id="input1" value="#{viewScope.prop1}" required="true" />
<p:commandButton id="button1" process="@form" update="@form @widgetVar(dialog)... | 0 | 1,129 |
Kernel install gives missing module error | <p>I'm installing a linux kernel from 3.14 to 3.19 and when I run the command:</p>
<pre><code>make O=$BUILD install
</code></pre>
<p>I get the several error messages saying that there is no lib/module directory. Before this I already compiled the kernel and copied the bzImage that was created into boot, along with sy... | 0 | 1,517 |
PyTorch: Add validation error in training | <p>I am using PyTorch to train a cnn model. Here is my Network architecture:</p>
<pre><code>import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as I
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
... | 0 | 1,272 |
Using the switch statement in a Windows Forms application | <p>And I'm doing some exercises about switch. I just did it from console application and I would like to do it in window forms applications. I'm looking for syntax on how to do switch in window forms.
In console it's usually like this:</p>
<pre><code>switch (wordValue)
{
case 1:
Console.WriteLine("You h... | 0 | 1,216 |
Apply Style to Android ListView | <p>I want to style the lisview in my application as seen is this image </p>
<p><img src="https://i.stack.imgur.com/CEaJK.jpg" alt="Expected Output"></p>
<p>I have tried to develop it by applying gradient :</p>
<p>code for list_item_normal is :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape xm... | 0 | 1,788 |
Updating Node & NPM VS Cordova update 5 | <p>I just download the VS Apache Cordova Tools Update 5 and I'm running into problems with Node and NPM. I am using the default blank cordova project for testing.</p>
<p><strong>Versions</strong></p>
<p>If I run a gulp check for Node and NPM within my VS Project I get: <code>Node version = v0.10.31</code> and <code>... | 0 | 13,410 |
C - realloc error: corrupted size vs prev_size | <p>Could someone please explain the error?<br>
I was getting the error until, on a whim, I changed the line from:</p>
<pre><code>char *tmp = realloc(str, sizeof(char)*length);
// to added 1
char *tmp = realloc(str, sizeof(char) * length + 1);
</code></pre>
<p>I thought that m... | 0 | 1,422 |
How to make radio inputs required? | <p>I have radio inputs in a form for the user to select their gender. How do I make gender a required input (user must select either female or male or they get a prompt as per the usual <code>required</code>).</p>
<p>I tried adding <code>required</code> as shown below but it doesn't work (user can continue without sel... | 0 | 1,687 |
Retrofit - I/art: Background sticky concurrent mark sweep GC freed | <p>I'm trying to make a simple REST request with Retrofit and i'm getting a lot of GC errors. I really don't know how to fix it. I tried to put more memory on emulator but the problem still happens. when make sync call <code>Response<List<User>> response = usersCall.execute();</code>
following exception</p>... | 0 | 2,346 |
'NSGenericException', reason: Collection <__NSArrayM: 0x7fabb400> was mutated while being enumerated | <p>In my iPhone app,i am trying to implement a image gallery using uicollectionView .when <20 images stores in gallery its working fine but when i am storing multiple image(greater than 20) app crashes.please help me.thanks in advance.</p>
<p>Error:</p>
<pre><code>Terminating app due to uncaught exception 'NSGener... | 0 | 2,286 |
Webview in Scrollview | <p>I have to place WebView into ScrollView. But I have to put some views into the same scrollview before webview. So it looks like this:</p>
<pre><code><ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/articleDetailPageContentLayout"
... | 0 | 1,027 |
Fast prime factorization module | <p>I am looking for an <strong>implementation</strong> or <strong>clear algorithm</strong> for getting the prime factors of <em>N</em> in either python, pseudocode or anything else well-readable. There are a few requirements/constraints:</p>
<ul>
<li><em>N</em> is between 1 and ~20 digits</li>
<li>No pre-calculated loo... | 0 | 2,450 |
Post Base64 image to Mvc controller | <p>Consider this base64 encode image</p>
<pre><code><img src='data:image/Png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABICAYAAABhlHJbAAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAABVlAAAVZQGF3cVdAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABnNJREFUeF7tnFls3EQYx11ucQshClWbtb1LC4RLIARIHAXx... | 0 | 2,129 |
RuntimeException: Could not inflate Behavior subclass | <p>I new in android and I've troubles with <code>FloatingActionButton</code> behaivors</p>
<p>My custom behavoir class:</p>
<pre><code>public class ScrollingFABBehavior extends FloatingActionButton.Behavior {
private static final String TAG = "ScrollingFABBehavior";
public ScrollingFABBehavior(Context contex... | 0 | 1,541 |
Disable background when div popup | <p>What I am trying to do is to show a div as a pop-up when I push a button and disable the background.</p>
<p>My pop-up is working perfectly fine but the problem comes when I try to disable the background. To do this, I make use of the div called 'mask' which must to take up all the body. This div must be hidden at t... | 0 | 1,795 |
Bootstrap modal in React.js | <p>I need to open a Bootstrap Modal from clicking on a button in a Bootstrap navbar and other places (<strong>to show data for a component instance, ie. providing "editing" functionality</strong>), but I don't know how to accomplish this. Here is my code:</p>
<p><strong>EDIT: Code updated.</strong></p>
<pre><code>App... | 0 | 4,524 |
Django REST-framework: Using serializer for simple ForeignKey-relationship | <p>I'm using the django REST-framework and try to map a simple foreign-key relationship to provide related data for further use, similar to the following request: </p>
<p><a href="https://stackoverflow.com/questions/38139378/using-reverse-relationships-with-django-rest-frameworks-serializer?rq=1][1]">Using reverse rel... | 0 | 1,042 |
[Vue warn]:Property or method is not defined on the instance but referenced during render | <p>I use laravel 5.7 and vue 2.5.7, I just learned vue.js a few weeks ago, I'm following an advanced series to make a blog using laravel and vue on youtube. I thought I had followed what was done in the video correctly, there was nothing different other than the version of laravel and vue that I used with the one in th... | 0 | 1,744 |
How to fix this bug using Kotlin,could not find Fragment constructor? | <p>I am developing <code>Android</code> app using Kotlin.In my app contains <code>Tab</code> with <code>ViewPager</code> so i implement the two tabs.when i move to another activity and compack to tab view activity the app getting fource stop and the <code>logcat</code> shows below the error.</p>
<blockquote>
<p>java... | 0 | 2,811 |
Spring 3 validation not working | <p>I have a user entity in my application which I need to validate. </p>
<pre><code>public class User {
private String userName;
private String password;
public void setUserName(String userName){
this.userName = userName;
}
public getUserName(){
return this.userName;
}
// and so on
</code></pre>
<p>}</p>
<p>... | 0 | 1,314 |
Navigating back to parent activity in ActionBar without handling Up button event | <p>I have two activities that I want this navigation to happen, they are VendorsActivity and QuestionsActivity. The following how my AndroidManifest.xml looks like:</p>
<p>(I am not using the full name of my activities like <code>com.hello.world.MyActivity</code> as I am defined <code>package</code> attribute in <code... | 0 | 1,313 |
Set and Get item id of recycler view | <p>I am new in RecyclerView. We can get clicked item position in RecyclerView, but can we set and get item's ID of RecyclerView? Because in my RecyclerView, the item has custom ID provided by server. I've try this code :</p>
<p><strong>FragmentListProduct.java</strong></p>
<pre><code>productData = new JSONArray();
li... | 0 | 1,296 |
Save Matplotlib Animation | <p>I am trying to make an Animation of a wave package and save it as a movie. Everything except the saving is working. Can you please tell me what I am doing wrong? When going into the line <code>ani.save('MovWave.mp4')</code> he tells me:</p>
<pre><code> writer = writers.list()[0]
IndexError: list index out of ran... | 0 | 1,208 |
PrintWriter or any other output stream in Java do not know "\r\n" | <p>I have trouble using PrintWriter or any other output stream to send message between server and client program. It works properly if I use println("abc") to communicate, but it does not work if I use print("abc\r\n"), print("abc\n") or print("abc\r"). What I mean by "it does not work" is that the readLine() will not ... | 0 | 1,127 |
Spring MVC: How to use a request-scoped bean inside a spawned thread? | <p>In a Spring MVC application, I have a request-scoped bean. I inject this bean somewhere. There, the HTTP-request serving thread could possibly spawn a new thread.</p>
<p>But whenever I try accessing the request-scoped bean from the newly spawned thread, I get a <code>org.springframework.beans.factory.BeanCreationEx... | 0 | 3,097 |
How to save a Nested Relation with Entity on API Platform | <p>I have two entities, <strong>Question</strong> and <strong>Alternative</strong> where Question has a OneToMany relation with Alternative and I'm trying to send a JSON with a nested document of <strong>Alternative</strong> on it via POST to <strong>Question</strong> API Platform.</p>
<p>The API Platform returns that... | 0 | 1,978 |
Z-index in android? | <p>I've more than one elemen in one xml.. listview,slidingdrawer,edittext and button...
i want to sliding drawer order is always in front of another elements...but i can't..</p>
<p>here my xml</p>
<pre><code><com.ltvie.chat.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/com.ltvie.c... | 0 | 1,088 |
IPC: Using of named pipes in c++ between two programs | <p>I'm trying to realise a IPC between two different programs running on the same machine (in my case its a CentOS7). To have just a kind of loose coupling I decided to use a named pipe for the IPC. Therefore I'm was playing with the following example and ran into different problems.</p>
<p>Creating and writing into t... | 0 | 1,369 |
How to properly close socket in both client and server (python) | <p>I am writing 2 scripts in python.</p>
<ol>
<li>Client.py</li>
<li>Server.py</li>
</ol>
<p>There is a socket between the client and server.
The scenario is this:<br>
I am having one client that ask to close the program therefore it should inform the server which by then will inform the other client, therefore I nee... | 0 | 1,177 |
android EditText ,keyboard textWatcher problem | <p>I am working on a android app and I have an EditText where user can input numbers. I want to format the number using different currency formats (say ##,##,###) and I want to do it on the fly, ie when user enter each digit(not when enter is pressed). I googled around, and came across <a href="http://developer.android... | 0 | 3,209 |
java.lang.ClassCastException: String can't be cast to Date | <h2>Stacktrace:</h2>
<pre><code>java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date
at org.hibernate.type.descriptor.java.JdbcTimestampTypeDescriptor.unwrap(JdbcTimestampTypeDescriptor.java:41)
at org.hibernate.type.descriptor.sql.TimestampTypeDescriptor$1.doBind(TimestampTy... | 0 | 2,355 |
setSupportActionBar toolbar cannot be applied to (android.widget.Toolbar) error | <p>I've been looking for an answer and I've tried many possible solutions, but nothing seems to work..</p>
<p>I'm trying to setup a Material Action Bar following <a href="http://www.android4devs.com/2014/12/how-to-make-material-design-app.html" rel="noreferrer">this tutorial</a>.</p>
<p>Here's my code:</p>
<p><stron... | 0 | 1,118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.