title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Can't Install Mongoose via NPM | <p>I am trying to download mongoose into my node.js project via npm. </p>
<p>The command is <code>npm install mongoose</code>. However, this leads to the below output, and eventually leads to an error. The only things in the mongoose directory are the dependencies (in the node_modules folder). Any other package will w... | 0 | 1,982 |
How to share image of imageview? | <p>I have ImageView and I want to share its image. </p>
<p>Following is my code,</p>
<pre><code>btshare.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
View content = findViewById(R.id.full_image_view);
content.setDrawingCacheEnabl... | 0 | 1,909 |
Increase bootstrap dropdown menu width | <p>wondering if anyone has any tips on how to increase the dropdown width?</p>
<p>I have a row containing two columns with a a bit of javascript that slides the dropdown up and down when selected. The problem I am having is that I can't seem to figure how to increase the dropdown width when selected, ideally the dropd... | 0 | 1,189 |
Float left not working in Internet Explorer 8 | <p>At my site <a href="http://familylawact.ca" rel="noreferrer">Family Law Act</a> I am trying to get two horizontal rows of pictures/profiles stacked on top of each other. the top row is for one city, the bottom row of profiles is for another city. The top row is floated properly, but the bottom row, as you can see, ... | 0 | 1,536 |
Google Maps Autocomplete WITHOUT Atmosphere Data | <p>I am currently using the Google Maps Places Autocomplete Javascript API to let users select a location by searching for the address or establishment name.
Example code:</p>
<pre><code>autocomplete = new google.maps.places.Autocomplete(input);
google.maps.event.addListener(autocomplete, 'place_changed', function ()... | 0 | 4,881 |
Register DLL/OCX in InnoSetup | <p>I have a DLL and OCX pack then I've decided to make an installer.</p>
<p>This is what I have:</p>
<pre><code>ArchitecturesInstallIn64BitMode=x64
[Files]
Source: {syswow64}\*; DestDir: {syswow64}; Flags: onlyifdoesntexist
Source: {sys}\*; DestDir: {sys}; Flags: onlyifdoesntexist
[Run]
Filename: regsvr32.exe; Pa... | 0 | 1,844 |
Adding formula to Excel with C# - making the formula shown | <p>I wanted to add formulas to an Excel workSheet.<br>
I managed to do so with the <strong>Formula</strong> property.</p>
<p>The problem is that when I open the worksheet in Excel, I can see that the formula works - but I can only see the result in the cell. I can't see the formula that was calculated in the Formula B... | 0 | 1,198 |
debugging asp.net WCF service hosted in IIS | <p>I have created a WCF service using following template:</p>
<p><a href="http://visualstudiogallery.msdn.microsoft.com/fbc7e5c1-a0d2-41bd-9d7b-e54c845394cd" rel="noreferrer">http://visualstudiogallery.msdn.microsoft.com/fbc7e5c1-a0d2-41bd-9d7b-e54c845394cd</a></p>
<p>This service has a method like this:</p>
<pre><c... | 0 | 1,620 |
How to use 'theme' and 'props' in makeStyles? | <p>How do I write <code>makeStyles()</code> so that it allows me to use both theme variables and props?</p>
<p>I've tried this:</p>
<pre><code>const useStyles = makeStyles(theme => ({
appbar: props => ({
boxShadow: "none",
background: "transparent",
marginTop: theme.spacing(2),
marginBottom: t... | 0 | 1,043 |
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj | <p>I have read a lot of solutions to my problem but none helped. I tried clean, rebuild. Reinstalled visual 2010 and change from professional to ultimate. But still I dont know why I have this error.
My project look like this:
1 Exe Solution to test my static library.
1 Dll Solution static library.
Code which is conve... | 0 | 2,780 |
How do I automatically load a layout into my AvalonDock instance? | <p>I have integrated AvalonDock 2.0 into my application. I've bound the document and anchor-able sources to my view-model which are rendered with the proper user controls via <code>DataTemplate</code>s.</p>
<p>I can load and save layouts with the <code>XmlLayoutSerializer</code>. I need to support loading predefined l... | 0 | 2,118 |
How to use ng-if with ng-disabled | <p>Below is my Code. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var myfriend = angular.module('myfriend',[]);
myfriend.controller('myfriendController', function($scope)... | 0 | 1,258 |
Material UI default table sort | <p>I have a material UI table that displays some data. I want to be able to sort the table according to average from lowest to highest. Is there a way to do so by default? as in when the table loads in the browser. that's my table and some data. I want the average column to show be sorted from lowest to highest. So the... | 0 | 1,758 |
JavaScript OOP in NodeJS: how? | <p>I am used to the classical OOP as in Java.</p>
<p>What are the best practices to do OOP in JavaScript using NodeJS? </p>
<p>Each Class is a file with <code>module.export</code>?</p>
<p>How to create Classes?</p>
<pre><code>this.Class = function() {
//constructor?
var privateField = ""
this.publicFiel... | 0 | 1,663 |
Relocation Truncated to Fit error in NASM x86_64 | <p>I'm using a computer with an Intel Core 2 CPU and 2GB of RAM. My OS is Ubuntu 9.04.
When I try to compile this code:</p>
<pre><code>;programma per la simulazione di un terminale su PC, ottenuto utilizzando l'8250
;in condizione di loopback , cioè Tx=Rx
section .code64
section .data
TXDATA EQU 03F8H ;TRASMETTI... | 0 | 1,928 |
How to change background of hovered and pressed extjs-button dynamically | <p>Hy there,</p>
<p>i need the ability to change the background-color for the different states (normal, hover, pressed) of a button dynamically.</p>
<p>What i've came up with so far is the following:
<a href="http://jsfiddle.net/suamikim/c3eHh/" rel="nofollow">http://jsfiddle.net/suamikim/c3eHh/</a>
</p>
<pre><code>... | 0 | 1,772 |
Android - BroadcastReceiver unregisterReceiver issue (not registered) | <p>I'm having some problems unregistering a <code>BroadcastReceiver</code>. I'm first registering it but then when I want to unregister it by using <code>unregisterReceiver();</code> command gives me tons of errors. The error says that I've not registered my <code>BroadcastReceiver</code>.</p>
<p>Code:</p>
<pre><code... | 0 | 1,407 |
'Stack.Navigator' cannot be used as a JSX component | <p>There is a type issue using react navigation, when use <code>Stack.Navigation</code> or <code>Stack.Group</code> from <code>createNativeStackNavigator</code></p>
<p>The issue saids that the types dont match with <code>JSX.element</code> at the end of the messages is more specific: <code> Type '{}' is not assignable ... | 0 | 1,279 |
OkHTTP Websocket: Unexpected end of steam on Connection | <p>I'm trying to connect to the Stack Exchange chat Websocket. The websocket is used to receive new events in the chat, such as new messages.</p>
<p>Here's the code used to create the Websocket:</p>
<pre><code>String wsUrl = getWsUrl();
Request wsRequest = new Request.Builder()
.url(wsUrl)
.build();
W... | 0 | 1,415 |
Hibernate startup very slow | <p>For some reason, the startup of my hibernate application is unbarrably slow. (up to 2 min)
I have been thinking that the c3p0 configuration is plain wrong (<a href="https://stackoverflow.com/questions/14417692/initializing-c3p0-connection-pool-takes-2-min" title="related question">related question</a>) but studying ... | 0 | 2,004 |
HTTP Caching with Retrofit 2.0.x | <p>I'm trying to cache some responses in my app using Retrofit 2.0, but I'm missing something.</p>
<p>I installed a caching file as follows:</p>
<pre><code>private static File httpCacheDir;
private static Cache cache;
try {
httpCacheDir = new File(getApplicationContext().getCacheDir(), "http");
httpCacheDir.s... | 0 | 1,348 |
Web API and Cancellation Token | <p>I'm trying to have a Web API and Cancellation Token working together, but it doesn't seem to play nicely for some reason.</p>
<p>Here is my code for my Web API. It contains cancellation token properties, and methods</p>
<pre><code>public class TokenCancellationApiController : ApiController
{
private static Can... | 0 | 1,520 |
Animation on unmount with React and react-transition-group | <p>I am working with React, and I'm trying to create a <code>Fade</code> component with React-transition-group to fade in and fade out an element depending on a condition stored in the state: <a href="http://reactcommunity.org/react-transition-group/css-transition/" rel="nofollow noreferrer">http://reactcommunity.org/r... | 0 | 1,552 |
Custom routes in json-server using Node.js | <p>I found problem when using custom routes for requesting db.json which is deployed in json-server.</p>
<p>For example for this given json as below, I'd like to access voters by name, so when I type this
url:</p>
<pre><code>https://localhost:3000/data/1/sessions/:sessionId/voters/:voterName
</code></pre>
<p>Where a... | 0 | 2,252 |
How to set up PHP 7 with NGINX | <p>I installed PHP 7 Nightly and Nginx 1.9.7 (Mainline) on my development Debian Stable:</p>
<pre><code>$ curl http://nginx.org/keys/nginx_signing.key | apt-key add -
$ echo -e 'deb http://nginx.org/packages/mainline/debian/ jessie nginx\ndeb-src http://nginx.org/packages/mainline/debian/ jessie nginx' > /etc/apt/s... | 0 | 1,035 |
NodeJS: how to implement repository pattern | <p>I would like to implement the Repository pattern in my NodeJS app, but I'm running into troubles with circular requires (I guess...).</p>
<p>How I'm trying to implement it:</p>
<ul>
<li>PersonRepository class with methods: getAll, getById, create, update, delete</li>
<li>Person class with methods: init, createAcco... | 0 | 1,462 |
Send byte array and receive String through REST web service | <p>in my Spring Rest web service I send a file (even big size) as byte array but when I receive the information, the object is a String so when I make the cast from Object to byte[] I receive the following error:</p>
<blockquote>
<p>java.lang.ClassCastException: java.lang.String cannot be cast to [B</p>
</blockquote... | 0 | 1,192 |
how to store looping data in a single array or matrix? | <p>i have a program with nested loop. i want all the values after each loop is completed, to </p>
<p>be stored in a single matrix A or array A.</p>
<p>display should be like </p>
<pre><code>A= value1
value2
value3
etc...
</code></pre>
<p>where value1,value2,value3 are answers got at the end of each loop.</... | 0 | 1,256 |
Can't connect to postgres when using docker-compose | <p>I am new to docker and still learning how to use it,
I am trying to use docker-compose to run Django and Postgres together
and they run perfectly and the migrate done and everything, but i have a problem i cant connect into the database using pgAdmin4 to look at the database
that's my setting.py</p>
<pre><code>DATAB... | 0 | 3,189 |
Scrollbar overlaps content of fixed div | <p>I have a fixed div (a shopping cart list) on the right side. If there are too many items, a scroll bar appears. The problem is, it partially covers the fixed div. How can I make the div push left when the scroll bar appears so it won't be covered?</p>
<p><img src="https://i.stack.imgur.com/zXyTt.png" alt="Scollbar ... | 0 | 1,837 |
NSNotificationCenter Observer Not Receiving Notification | <p>I am aware of the standard reasons as to why a notification would not be received:</p>
<ul>
<li>Deallocating or nullifying the registered object.</li>
<li>Removing the object as an observer.</li>
<li>Not registering as an observer.</li>
<li>Registering for the wrong notification or posting the wrong notification.</... | 0 | 1,226 |
Select ALL TableView Rows Programmatically Using selectRowAtIndexPath | <p>I'm trying to programmatically select all rows in my tableview using the following code:</p>
<pre><code> func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell:myTableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell") as! myTableViewCell... | 0 | 1,229 |
Cannot convert from 'System.Threading.Tasks.Task' to 'System.Collections.Generic.Dictionary<string,string>' | <p>I believe I might just have the syntax wrong but what I'm trying to do is create a task that runs after another task is finished.</p>
<p>I have a task for each array of 100 in a list. It starts a new thread passing that array into a method. The method returns a dictionary when it finishes. I'm trying to create a ta... | 0 | 1,537 |
android phonegap camera and image uploading | <p>I have been trying to make this work, searched google and here since Friday.
My ultimate goal is to be able take multiple pictures with a title and description for each and upload them to a server, then display on a web page.</p>
<p>What I have so far is: the ability to give one image a title and description, brows... | 0 | 2,230 |
Basic authentication in REST-application | <h3>Environment:</h3>
<ul>
<li>JAVA</li>
<li>Glassfish</li>
<li>REST-services in different machine</li>
<li>HTML5-client with
AJAX and JQuery</li>
<li>Jersey</li>
</ul>
<p>This is what I have implemented so far:</p>
<h3>HTML5-client</h3>
<pre><code>$('#btnSignIn').click(function () {
var username = $("#usernam... | 0 | 3,461 |
RxJava: how to compose multiple Observables with dependencies and collect all results at the end? | <p>I'm learning RxJava and, as my first experiment, trying to rewrite the code in the first <code>run()</code> method in <a href="https://gist.github.com/benjchristensen/4671081">this code</a> (cited on <a href="http://techblog.netflix.com/2013/02/rxjava-netflix-api.html">Netflix's blog</a> as a problem RxJava can help... | 0 | 1,116 |
React TypeScript Application gets 'TS2304: Cannot find name 'Text'.' | <p>This is the dependencies in my package.json. this used to work for me in the past. </p>
<pre><code>{
"name": "login-ts-react",
"version": "1.0.0",
"main": "webpack.config.js",
"scripts": {
"start": "webpack-dev-server"
},
"repository": "https://github.com/abhsrivastava/login-ts-react.git",
"author... | 0 | 1,335 |
Checkboxes with Font Awesome 5 icons | <p>Did anyone already designed checkboxes with font awesome 5 icons inside?</p>
<p>I've already googled it and found only examples for FA-4 like <a href="http://flatlogic.github.io/awesome-bootstrap-checkbox/demo/" rel="noreferrer">http://flatlogic.github.io/awesome-bootstrap-checkbox/demo/</a> </p>
<p>I updated to F... | 0 | 1,405 |
Uncaught TypeError: cannot read 'hasClass' property of undefined | <p>I need to read the class of a selected list item in an 'onClick' Listener. This element is relative to the button as I have multiple instances (quiz items on a test). I try to do so in <a href="http://jsfiddle.net/nimsson/5fW2Z/12/" rel="nofollow">http://jsfiddle.net/nimsson/5fW2Z/12/</a>.
The error occurs in </p>
... | 0 | 1,178 |
Deploy Spring Boot to Tomcat | <p>So I am new to Spring - so I thought I would try Spring Boot</p>
<p>I am using a Maven to build - I set up a view requests, when I run it as "App" looks like it starts tomcat up itself and i have a service at default 8080 port, so when I call <code>localhost:8080/service</code> it's all good.</p>
<p>However when ... | 0 | 3,457 |
AggregateException is throwing while waiting for PostAsJsonAsync | <p>AggregateException is throwing while waiting for API post to complete how i could fix this?</p>
<p>My API call is similar like this </p>
<pre><code>using (var httpClient = new HttpClient())
{
httpClient.BaseAddress = new Uri(workflowUrl);
var task = httpClient.PostAsJsonAsync("api/apiname/execute/", e... | 0 | 1,065 |
Spring Task Scheduler - No qualifying bean of type [org.springframework.scheduling.TaskScheduler] is defined | <p><strong>Error:</strong> <em>No qualifying bean of type [org.springframework.scheduling.TaskScheduler] is defined</em></p>
<p>Here is my console log:</p>
<pre><code>10:32:35.742 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Eagerly caching bean 'cronTrigger' to allow for resolving potential c... | 0 | 4,217 |
Gradle build error on Windows "Failed to create MD5 hash for file" | <p>I am running a gradle build on a existing project and I run into this error below.</p>
<blockquote>
<ul>
<li><p>What went wrong: Failed to capture snapshot of output files for task 'someTask' property 'destinationDir' during up-to-date check.</p>
<blockquote>
<p>Failed to create MD5 hash for file 'my_p... | 0 | 6,744 |
Can't figure out why I am getting "Class ViewController has no initializers" Error in Swift iOS App Code | <p>I was trying to make a tutorial screen in my iOS app where the user swipes past a few pictures to learn a bit about the said application. Everything looks fine, except when I build my project, I get the following error on the very first line of code: </p>
<blockquote>
<p>Class ViewController has no initializers<... | 0 | 1,083 |
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet | <p>i am using <strong>spring 3.1.0.RELEASE</strong>, and my servlet container is <strong>tomcat 7</strong> and my IDE is <strong>eclipse indigo</strong>
and the jar <strong>spring-webmvc-3.1.0.RELEASE.jar</strong> which contains the <strong>DispatcherServlet</strong>
exists in the lib folder, and yet when running the a... | 0 | 1,654 |
Maven webapp with maven-eclipse-plugin doesn't generate <dependent-module> | <p>I use the <code>eclipse:eclipse</code> goal to generate an Eclipse Project environment. The deployment works fine. The goal creates the var classpath entries for all needed dependencies.</p>
<p>With <code>m2eclipse</code> there was the Maven Container which defines an export folder which was <code>WEB-INF/lib</code... | 0 | 1,229 |
react native scrollview not scrolling on android | <p>I have the following component:</p>
<pre><code>export default class StoreComponent extends Component {
render() {
return (
<View style={styles.container}>
<ScrollView contentContainerStyle={styles.scroll}>
<StoreCarouselComponent />
<StoreDiscountComponen... | 0 | 1,088 |
Android app working on emulator but not on real device | <p>Just wrote this simple app for testing: one button that displays date and hour, and another button that selects a random color and shows it.
It works fine on Emulator but the buttons do nothing (don't work) when i try to run the app on a real device.</p>
<p>Can someone help me understand why?</p>
<p>MainActivity.j... | 0 | 1,965 |
My first app. Error: Invalid start tag LinearLayout. Why? | <p>It was working perfectly but then I made some minor edits and now it isn't working... Here's the main layout xml file... It gives an error in line 3.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="hori... | 0 | 1,444 |
Fetch API cannot load file:///C:/Users/Jack/Desktop/Books_H/book-site/public/api/books. URL scheme must be "http" or "https" for CORS request | <p>Just started learning node js in my school. They gave us this half-finished task and i need to make the next and prev buttons work. However i get some errors in the console the moment i run the index.html. The errors are:</p>
<p>"Fetch API cannot load file:///C:/Users/Jack/Desktop/Books_H/book-site/public/api/books... | 0 | 2,369 |
chosen jquery plugin basic ui does not work | <p>I want to use chosen jquery plugin just like the same example that they use in the official website: <a href="http://harvesthq.github.io/chosen/" rel="nofollow noreferrer">http://harvesthq.github.io/chosen/</a></p>
<p><img src="https://i.stack.imgur.com/llFxy.png" alt="enter image description here"></p>
<p>These a... | 0 | 2,352 |
Add Nested Fragment after Parent Fragment view is already created | <p>I am trying to create a Fragment which has a public method for adding child Fragments to itself. </p>
<p>I've been reading through potentially similar questions but haven't found anything to help so far. I've reduced the problem down to a simple test app shown below. </p>
<p>Once <code>fragA</code> has been adde... | 0 | 2,946 |
spark build path is cross-compiled with an incompatible version of Scala (2.10.0) | <p>When i try to execute sparksql code in scala IDE im getting below error,Could anyone help me to sort out this please? </p>
<pre><code>spark build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page. spark ... | 0 | 1,939 |
WPF window style not being applied | <p>I have a ResourceDictionary that contains Style definitions for controls used within my application.</p>
<p>All of the styles are applied properly to the controls in the window...but the style in the ResourceDictionary for the window itself is not being applied.</p>
<p>This is the XAML in my ResourceDictionary tha... | 0 | 1,190 |
Python SOAP client, WSDL call with suds gives Transport Error 401 Unauthorized for HTTP basic authentication | <h2>Background</h2>
<p>I'm building a SOAP client with python 2.7.3 and using the suds 0.4.1 library provided by Canonical. The server is using basic authentication over HTTPS.</p>
<h2>Problem</h2>
<p>Can't pass authentication on the server, even to get at the WSDL. I get the following error:</p>
<blockquote>
<p>suds.t... | 0 | 1,048 |
TypeError: 'DataFrame' object is not callable python function | <p>I have two functions, one which creates a dataframe from a csv and another which manipulates that dataframe. There is no problem the first time I pass the raw data through the <code>lsc_age(import_data())</code> functions. However, I get the above-referenced error <code>(TypeError: 'DataFrame' object is not callable... | 0 | 1,658 |
Basic Spring MVC config: PageNotFound using InternalResourceViewResolver | <p>I'm trying to get a first Spring 3 MVC setup running.</p>
<p>My app is running on tomcat, with in the server context of "grapevine"</p>
<p>For the purposes of testing, I'm trying to get requests from <code>http://localhost:8080/grapevine/test</code> to render the contents of <code>WEB-INF/jsp/noSuchInvitation.jsp<... | 0 | 1,038 |
how to find, "invalid character ',' looking for beginning of value" error message | <p>I have a short Go program that runs the <code>go list -json</code> command for several packages, stores the output of each run of the command in a json.RawMessage, appends each json.RawMessage into a slice of json.RawMessages, and then returns the result to the server after concatenating each of the json.RawMessages... | 0 | 1,437 |
Cx_freeze ImportError no module named scipy | <p>Good day all,</p>
<p>I am having trouble using cx_Freeze on a code I am working on converting to a .exe.</p>
<p>When I run cx_Freeze I get the following ImportError that there no no module named scipy</p>
<pre><code>running install
running build
running build_exe
Traceback (most recent call last):
File "setup.p... | 0 | 1,288 |
MPDF problems with floated div widths | <p>I have a problem that I am struggling to resolve with MPDF6</p>
<p>I have a web application created using codeigniter, which displays results of a questionnaire survey.</p>
<p>I have generated simple stacked bar charts in html and used jquery to animate the bars to their final sizes. Works ok, and no problems.</p... | 0 | 2,906 |
How do I bind a WPF control to a VB.net property? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/5533803/data-binding-wpf-property-to-variable">Data Binding WPF Property to Variable</a> </p>
</blockquote>
<p>How would I bind my module1 property to my WPF TextBox1?</p>
<p>WPF code:</p>
<pre><code><Wind... | 0 | 1,089 |
Javafx resize components when fullscreen | <p><strong>Original size screenshot</strong></p>
<p><a href="https://i.stack.imgur.com/ZgWnx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZgWnx.png" alt="enter image description here"></a></p>
<p><strong>Fullscreen screenshot</strong></p>
<p><a href="https://i.stack.imgur.com/K94rT.png" rel="noreferrer"... | 0 | 1,077 |
Mocking concrete method in abstract class using phpunit | <p>Are there any good ways to mock concrete methods in abstract classes using PHPUnit?</p>
<p><strong>What I've found so far is:</strong></p>
<ul>
<li>expects()->will() works fine using abstract methods</li>
<li>It does not work for concrete methods. The original method is run instead.</li>
<li>Using mockbuilder and ... | 0 | 1,272 |
Android App Crashes on Button Click | <p>I have been attempting to make my first android application (a simple temperature converter) in Eclipse, but when I click the button on my phone the app crashes. Here is the full java code</p>
<pre><code>package com.example.myfirstapp;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu... | 0 | 1,796 |
JasperReports: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date | <p>I try to use a report on my JasperServer, which I created with the help of iReport. In iReport my report works fine and there are no errors. But when I tried to deploy the report it gives me following error in short: </p>
<p><code>java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date</code... | 0 | 1,194 |
Aligning text side by side in different divs | <p>I'm new to web design and I'm making a website as a project for my friend. I've got two divs with different content in each div, one for the main content and one for news and other things which I want at the side.</p>
<p>I've sorted the content div out and thats fine its where I want it. But when I go to float the ... | 0 | 1,177 |
Is it better to use HttpClient or WebRequest in ASP.NET Core to read the content of a file line by line asynchronously remotely? | <p>I plan to read a remote file line by line asynchronously using <a href="https://github.com/Dasync/AsyncEnumerable" rel="nofollow noreferrer">https://github.com/Dasync/AsyncEnumerable</a> (since there is not yet Async Streams [C# 8 maybe]: <a href="https://github.com/dotnet/csharplang/blob/master/proposals/async-stre... | 0 | 2,768 |
how to fix Angular not using explicit annotation and cannot be invoked in strict mode | <p>I am using strict mode and <code>Angular 1.4.7</code> , I get the following error:</p>
<pre><code>Error: [$injector:strictdi] function($scope, $element, $attrs, mouseCapture) is not using explicit annotation and cannot be invoked in strict mode
</code></pre>
<p>The angular generated url for the error is:</p>
<p><... | 0 | 1,470 |
How to set my toolbar fixed while scrolling android | <p>I am currently working in e-commerce android app, i need to fix the toolbar while scrolling.</p>
<p>As i attached the screenshot below. while scrolling the action bar need to be fixed and the body content scroll behind the toolbar </p>
<p><a href="https://i.stack.imgur.com/jsfyz.png" rel="nofollow noreferrer"><img... | 0 | 3,471 |
Cannot focus on TextField in new page after navigating in Flutter | <p>For some reason, I cannot focus on a TextField after on the next page after navigating. The keyboard would automatically dismiss when the TextField is selected. If I set <code>autofocus: true</code> on the TextField, then the keyboard will infinitely popup and immediately dismiss over and over again. </p>
<p>I enco... | 0 | 1,152 |
line breaks in textarea used in a MVC C# website app | <p>I'm using ASP.net MVC C# in Visual Studio Web Dev. I have a couple of textareas which are populated with data and then updated to a database record. </p>
<p>Is it possible to have line breaks saved when a record is updated to the database? I currently view the data on the homepage, but at the moment if someone writ... | 0 | 2,645 |
Why is Twitter returning a "Failed to validate oauth signature and token?" | <p>Sorry for troubling you with yet <em>another</em> "Failed to validate oauth signature and token" error, but I just can't figure out what's wrong with my request.</p>
<p>I'm constructing my signature from this string:</p>
<pre><code>POST&http%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3D... | 0 | 1,127 |
R reading a huge csv | <p>I have a huge csv file. Its size is around 9 gb. I have 16 gb of ram. I followed the advises from the <a href="https://stackoverflow.com/questions/1395229/increasing-or-decreasing-the-memory-available-to-r-processes">page</a> and implemented them below. </p>
<pre><code>If you get the error that R cannot allocate a ... | 0 | 1,324 |
How to add a Label to a DataGridView cell | <p>Is there any way to insert a Label to DataGridView cell at runtime - say for example I wanted a little red number in the top corner of each cell? Do I need to create a new DataGridViewColumn type or can I just add a Label there when I'm populating the DataGridView?</p>
<p><strong>EDIT</strong> I am now attempting t... | 0 | 1,254 |
c++ compile error: unexpected type name 'string': expected expression | <p>I want to use c++ stl list and use iterator to print all the elements. Here is the code:</p>
<pre><code>#include<list>
#include<algorithm>
#include<string>
using namespace std;
int main(int argc, char* argv[]){
list<string> list;
//list<double> list_double(6);
/... | 0 | 1,330 |
uploading file using ajax and servlet | <p>i'm getting message "File not found". please help me.
here id my code</p>
<p><strong>index.jsp</strong></p>
<pre><code><html>
<head>
<title>Ajax File Upload</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">... | 0 | 2,465 |
NLog is not writing to database table | <p>This is my NLog Config file.</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" ?>
<nlog autoReload="true" throwExceptions="true" internalLogLevel="Debug" internalLogToConsole="true"
internalLogFile="c:\\temp\\nlog.txt"
>
<targets>
<!--Useful for debugg... | 0 | 1,554 |
Remove illegal characters while saving workbook Excel VBA | <p>this code basically reformats an xls file and saves it as an xlsx. however it uses <code>G2</code> & <code>H2</code> to grab the filename for the newly formatted file.
So that means certain characters can't be in the file name. I added a chunk of code to replace those characters ( </p>
<pre><code>' Remove/Repl... | 0 | 1,508 |
Unresolved dependency issue when compiling spark project with sbt | <p>I am trying to compile with <code>sbt 0.13.8</code> a very simple spark project whose only function is</p>
<p><strong>Test.scala</strong></p>
<pre><code>import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object SimpleApp {
def main(args: Array[String]) ... | 0 | 2,756 |
Java XML Schema validation: prefix not bound | <p>I have followed <a href="http://www.w3schools.com/schema/schema_example.asp" rel="nofollow noreferrer">this tutorial</a> for validating XML files. But I am receiving exception when validating XML file. What I am doing wrong? My codes:<br/>
XML schema:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
&l... | 0 | 1,363 |
Select `n` last inserted records in table - oracle | <p>Table has surrogate primary key generated from sequence. Unfortunately, this sequence is used for generating keys for some other tables (I did not designed it and I cannot change it).</p>
<p>What is the fastest way to select last <code>n</code> inserted records in Oracle, ordered by id in descending order (last ins... | 0 | 1,078 |
cannot load such file -- readline (LoadError) when running heroku create --stack cedar | <p>I'm trying to deploy my Rails application to Heroku to test it out by following these instructions:</p>
<p><a href="http://devcenter.heroku.com/articles/rails3#prerequisites" rel="noreferrer">http://devcenter.heroku.com/articles/rails3#prerequisites</a></p>
<p>Here is the command I'm trying to run:</p>
<pre><code... | 0 | 1,578 |
How to run a spring boot app in intellij? | <p>I want to run a demo spring boot app in intellij idea but i have the error:</p>
<p><code>Error:(3, 32) java: package org.springframework.boot does not exist</code></p>
<p>My <code>pom.xml</code>:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmln... | 0 | 1,384 |
Can't read ... AndroidManifest.xml - while attempting Android Notepad Tutorial - Exercise 1 | <p>I'm working "Exercise 1" of the <code>Notepad Tutorial</code></p>
<p>and have done step #1, and am just beginning on step #2<br>
1 Start a new Android Project by clicking <code>File > New > Android Project</code>.<br>
2 In the <code>New Android Project dialog</code>, select <code>Create project from existing ... | 0 | 3,692 |
Vuex & Websockets | <p>So currently I am working with VueJS 2 and I am very new with it. Now I was getting some help with some other people, but I am still stuck.</p>
<p>Here is what I want to achieve (example - closely linked to what I want):</p>
<ol>
<li>I have a NodeJS application that listens on WebSockets. The application listens f... | 0 | 1,589 |
Activator.CreateInstance can't find the constructor (MissingMethodException) | <p>I have a class which has the following constructor</p>
<pre><code>public DelayCompositeDesigner(DelayComposite CompositeObject)
{
InitializeComponent();
compositeObject = CompositeObject;
}
</code></pre>
<p>along with a default constructor with no parameters.</p>
<p>Next I'm trying to create an instanc... | 0 | 1,356 |
How do I save a file getting downloaded from server using react? | <p>I have one backend API which basically downloads a template whenever we call it.
I have provided a href on my html page hence whenever someone click on that href, it calls backend API and that file should get downloaded. </p>
<p>But the file is not getting downloaded. </p>
<p>I am using React. If i simply hit the ... | 0 | 1,634 |
Configure Hydra-7.4.2 on Windows 7 using Cygwin | <p>I am trying to configure THC Hydra 7.4.2 on my Windows 7 laptop with Cygwin. I installed Cygwin using setup.exe, I have selected devel and MinGW pakages.</p>
<p>When I execute ./configure it is fine.. although some missing modules were mentioned. Then I was prompted 'now type "make"'.</p>
<p>When I do this I get t... | 0 | 6,038 |
How to use scalar-valued function with linq to entity? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/10625955/can-sql-level-functions-be-made-available-to-linq-to-entity-queries">Can SQL level functions be made available to LINQ to Entity queries?</a> </p>
</blockquote>
<p>I have a scalar function that gets th... | 0 | 2,031 |
Could not autowire field: private org.springframework.security.authentication.AuthenticationManager | <p>I'm trying to create OAuth2 Server Provider using this tutorial <a href="https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v" rel="noreferrer">Spring OAuth2</a> . The main difference between example and my project - I do not use Spring Boot. I try to split this classes (<a href="h... | 0 | 4,404 |
Android Orentation Changes | <p>I have a simple <code>Activity</code> called <code>SingleTouchTest</code> to make sense of screen touches. What is strange is that <code>SingleTouchTest</code> starts in whatever orientation I'm in but rotating the device does not result in screen rotation.</p>
<p>My test device is an Acer A100 running Android 4.0.... | 0 | 1,913 |
How to convert multidimensional array into json object | <p>i have an issue in array to json conversion, I have an array and i want to convert this array into json objects, desired output given below so any one please help me.</p>
<p>Php array</p>
<pre><code> Array
(
[0] => Array
(
[application_id] => 132
[application_status] =&... | 0 | 1,950 |
md5 password retrieving | <p>i made a registration form and an login form. </p>
<p>i used first used <code>trim()</code> and then <code>md5()</code> to store the password in database. </p>
<p>i used the same to check the password in database in the login form, but for some unknown reason i cant match the md5 password from the login form. </p>... | 0 | 2,134 |
Send iOS push notification from PHP | <p>I'm working on an iOS app that use iOS Push Notifications. I want to send the notification from a php script on my server. The code in my app works really good for registering for remote notification and receive them. I use this php script to send notification and it works well too:</p>
<pre><code><?php
// My d... | 0 | 1,029 |
Detecting client-aborting request Jersey | <p>I have Jersey providing a restfull web service. It happens often that the client aborts request done via ajax, with the ajax abort methods like is explained here <a href="https://stackoverflow.com/questions/4551175/how-to-cancel-abort-jquery-ajax-request">abort ajax request</a></p>
<p>On server side I get the follo... | 0 | 2,103 |
Android client and server side programming | <p>I'm trying to run server side and client side examples I found on the net .
Here's the server : </p>
<pre><code>public class ServerActivity extends Activity {
private TextView serverStatus;
private TextView serverStatus2;
// DEFAULT IP
public static String SERVERIP = "10.100.102.15";
... | 0 | 5,443 |
Invalid number of channels in input image | <p>I am receiving an error when running my program, I think specifically about color manipulation in the OpenCV library.</p>
<p>I'm trying to build a program that takes a video feed from a Raspberry Pi camera and analyze it. I want to find the brightest point in the video and calculate the distance and angle the point... | 0 | 1,042 |
loading ELF file in C in user space | <p>I am trying to load an ELF file compiled with "gcc -m32 test.c -o test.exe" on Linux in a 64 bit x86 environment. I am trying to load that 32bit file (test.exe) inside a user space ELF loader which has the following core logic (32bit ELF).</p>
<p>The problem is that calling into the returned start address results i... | 0 | 1,581 |
Embedding images into html email with java mail | <p>I am sending html and images with javamail but for some reason I don't see the images as part of the html, I see them only as an attachment. I don't know why is that. This is how it looks like when one of my users receive an email:
<img src="https://i.stack.imgur.com/iLoVf.png" alt="enter image description here"></... | 0 | 1,635 |
NSInternalInconsistencyException (invalid number of rows) | <p>Whenever I have data in my <code>UITableView</code> and I start deleting, it works fine. However, when I get to the last object in the table, and delete it, it crashes. </p>
<p><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in se... | 0 | 1,182 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.