title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Error: The desired capabilities must include either an app or a bundleId for iOS | <p>I am using mac OS X 10.12, Appium server 1.5.3 , xcode version 8.3. If I run the doctor then it shows the appium is installed correctly.</p>
<pre><code>info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor β Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor β Xcode Comm... | 1 | 2,094 |
Run python code inside <script> tag of HTML file | <p><code>(server.js)</code> I have following code to run my server - </p>
<pre><code>var http = require('http');
var fs = require('fs');
var path = require('path');
http.createServer(function (request, response) {
console.log('request starting...');
var filePath = '.' + request.url;
if (filePath == './')... | 1 | 1,336 |
Bitwise And with Large Numbers in VBA | <p>I keep getting an Overflow on the bitwise and in this first function. I fixed the other overflows by converting from Long to Currency (still seems weird), but I can't get this And to work.</p>
<p>Any ideas? I'm just trying to convert some IP addresses to CIDRs and calculate some host numbers.</p>
<pre><code>Option... | 1 | 1,249 |
How to save your html form to excel sheet using java script? | <p>I have one html form, I want to store that form data into excel sheet. I am using linux(Fedora 15) OS. I have one VB Script that works for me fine in Internet Explorer, Windows OS. But Same script not working in linux mozilla firefox browser. Please tell me java script for store my html data into excel sheet, that w... | 1 | 1,025 |
Cannot resolve method using Parse push notification | <p>Trying to add Parse push notification by following the tutorial <a href="https://parse.com/tutorials/android-push-notifications" rel="nofollow">https://parse.com/tutorials/android-push-notifications</a>. </p>
<p>When I get to add </p>
<pre><code>ParsePush.subscribeInBackground("", new SaveCallback() {
@Override
pu... | 1 | 1,458 |
Fast C++ container like the C# HashSet<T> and Dictionary<K,V>? | <p>I've used HashSet and Dictionary a lot in C#, and found them very fast... </p>
<p>I've tried using std::map and std::hash_map and am finding them very slow in comparision. Does this sound like expected behaviour? Is there something I might be doing wrong in my use of std::hash_map?</p>
<p>Or, is there a better C+... | 1 | 2,145 |
Evaluation of FileCopyDetails in Gradle CopySpec.eachFile | <p>I am trying to do what seems to be a rather simple thing: <strong>displaying the destination path of the files that I'm copying</strong> using Gradle <code>Copy</code>task or method.<br>
To do so, I am using the <code>CopySpec.eachFile</code> method, in which I use the use the <code>FileCopyDetails</code> to access ... | 1 | 3,026 |
How to select users based on the role that they have in Laravel 5? | <p>From my controller I would like to select all of the users that have the role "client".</p>
<p>I have a User model and a Role model. A role belongs to many users and a user belongs to many roles. </p>
<p>I've established my models and have some helper functions at the model instance level for fetching roles and us... | 1 | 1,100 |
CS0121: The call is ambiguous between the following methods or properties: | <p>I am learning Entity Framework in MVC from</p>
<p><a href="https://www.youtube.com/watch?v=8f4P8U1a2TI" rel="nofollow">https://www.youtube.com/watch?v=8f4P8U1a2TI</a></p>
<p>When i placed Html.DisplayNameFor() in 3rd row of html in foreach loop .It give following Error :</p>
<blockquote>
<p>CS0121: The call is... | 1 | 2,368 |
gstreamer: How do I change the input/output resolution of webcam? | <p>I want to change the output/input resolution of my Webcam using gstreamer.
for example i want to change the resultion from 800x600 to 640x480 Pixel.
I cannot find the syntax in C for doing this. Can anyone help me please?</p>
<p>This code should display the video stream from the webcam:</p>
<pre><code>#include &l... | 1 | 1,414 |
How to filter an array with fetched data in React.js? | <p>I'm trying to filter an array with fetched list of users. Users are stored in component state. I want to filter it by text from input. </p>
<p>Problem: When I enter letters the list is filtering, but when I delete letters result remains unchanged. </p>
<p>Thanks for help!!!</p>
<pre><code>class App extends React.... | 1 | 1,288 |
Get Weight From Weigh Bridge Machine Using Serial Port in C# | <p>i am develop application for getting weight from weigh Bridge machine using C#.Net.i am trying lot of ways but,doesn't read correct data format weight from weigh bridge machine.i am getting ouput like <code>?x???????x?x?x??x???x??x???x???x?</code> continuously get from serial port.i want to get weight from weigh bri... | 1 | 1,146 |
Change footer text color. Background Change? | <p>I am having trouble changing the text color of my footer. I have it arranged like I want, but it's not changing color like I want it to. I've tried many ways to change it, and finally just decided to ask someone. Also if someone could tell me how to add a background similar to the page of my website. I would be ... | 1 | 4,286 |
Memory leak / GLib issue | <pre><code> 1: /*
2: * File: xyn-playlist.c
3: * Author: Andrei Ciobanu
4: *
5: * Created on June 4, 2010, 12:47 PM
6: */
7: Β
8: #include <dirent.h>
9: #include <glib.h>
10: #include <stdio.h>
11: #include <stdlib.h>
12: #include <sys/stat.h... | 1 | 5,336 |
Rspec - controller test error - Paperclip::AdapterRegistry::NoHandlerError: No handler found for "#<File:0x531beb0>" | <p>I asked about my Rspec test as follow.</p>
<p><strong><a href="https://stackoverflow.com/questions/20148196/rspec-runtimeerror-called-id-for-nil-which-would-mistakenly-be-4">Rspec - RuntimeError: Called id for nil, which would mistakenly be 4</a></strong></p>
<p>On the same code (Rspec test for "items_controller.r... | 1 | 3,525 |
Keras InvalidArgumentError With Model.Fit() | <p>I am trying to call <code>model.fit()</code> on a sequential Keras model, but get this error:</p>
<pre><code>---------------------------------------------------------------------------
InvalidArgumentError Traceback (most recent call last)
<ipython-input-30-3fc420144082> in <module>... | 1 | 1,741 |
Zend_Form with xthml scripts (without using decorators) | <p>(I follow <a href="http://www.nabble.com/Zend_Form-complex-forms-td16785924.html" rel="nofollow noreferrer">this post</a> to got the logic how to use Zend_Form without using decorators.)</p>
<p>within the action I create Zend_Form object and assigned the form to the view before rendering it:</p>
<pre><code>public ... | 1 | 1,677 |
IOKit device adding/removal notifications - only fire once? | <p>I have been trying to get notified when a specific USB device is added or removed. I have read 'Accessing Hardware From Applications' document and have a bare-bones demo application, mainly based on the code provided in that document.</p>
<p>It works the first time a device is added or removed, but after that my c... | 1 | 1,944 |
Rails Rspec Suite Has Failures But They Pass When Run Individually | <p>Facts:</p>
<ol>
<li>Running my entire suite of specs will result in 21 consistent errors out of 610 specs. </li>
<li>If I run any individual spec file (for instance: messages_controller_spec.rb), they will all pass. </li>
<li>If I run any of the failed specs individually, they will each pass.</li>
</ol>
<p>These... | 1 | 3,334 |
How to catch Glide Exceptions Properly? | <p>Am using Glide 4.x and getting FileNotFoundException as the URL returns 404. I tried to catch the exception using the RequestListener. But it is not Caching this Exception. </p>
<pre><code>GlideApp.with(getApplicationContext()).load(URL).placeholder(R.mipmap.ic_launcher).listener(new RequestListener<Drawable>... | 1 | 3,870 |
How to show image preview before uploading from controller in php laravel | <p>i'm working in a project where i wanted to upload an image for Category.
The uploading part is working smooth.
what i want is before uploading, when user selects the image a preview of the selected image along with name of the image should be shown.
I'm pretty lost in this case.</p>
<p>Below is my view part:</p>
<... | 1 | 1,827 |
Limit tasks number queued on Celery worker | <p>I have the most simple example of Celery task (<code>case.py</code>):</p>
<pre><code>import time
import celery
app = celery.Celery('case', broker='redis://localhost')
@app.task
def do_sth():
time.sleep(5)
</code></pre>
<p>And I create a few tasks instances:</p>
<pre><code>>>> import case
>>&... | 1 | 1,134 |
JUnit/Arquillian: Run managed Wildfly 8.1 container | <p>I'm trying to bring a simple test case to run:</p>
<h3>Is there anywhere a clean set of instructions how to run Java EE integration tests on <em>managed Wildfly 8</em> containers?</h3>
<ul>
<li><p>I just want to run a simple test case via <code>mvn test</code> within a fresh, downloaded Wildfly container.</p></li>... | 1 | 4,138 |
Second Saturday of Month Function in PHP | <p>I found this PHP code <a href="http://linuxmafia.com/pipermail/sf-lug/2006q1/000114.html" rel="nofollow">credit to creator</a> and want to implement it a different way:</p>
<p>The goal is to have the code automatically adjust the following statement to be the second Saturday of every month from now until eternity:<... | 1 | 1,205 |
libcurl output to variable instead of textfile | <p>In failing to get <code>curlpp</code> for C++ working, I have decided to start using <code>libcurl</code> with C instead (for now). Being completely new to both C and C++, this is getting a little confusing. I'm not even sure if I can keep C and C++ functions apart, but as far as I know, this is pure C.</p>
<p>With... | 1 | 1,142 |
Where is the proper place to put Python virtual environments according to the Linux Filesystem Hierarchy Standard? | <p>As the title asks, what is the technically proper location to store Python virtual environments on Linux operating systems according to the Linux FHS? </p>
<p>Stated another way that allows for a clear answer: Is it "technically correct" to separate the location of a Python virtual environment from the data files ... | 1 | 1,278 |
Not able to retrieve data of a single row in room database by selecting it | <p>Main Activity</p>
<pre><code>myRoomDatabase3 = Room.databaseBuilder(getApplicationContext(),MyRoomDatabase.class,"messagedb3").fallbackToDestructiveMigration().allowMainThreadQueries().build();
Message message4 = new Message();
message4.setTime("14:10");
message4.setContactName("Deepika");
... | 1 | 1,593 |
How To Build a web.config for a react app using azure + IISNode + express | <p>I built my react app after following this tutorial
<a href="https://daveceddia.com/create-react-app-express-backend/" rel="nofollow noreferrer">https://daveceddia.com/create-react-app-express-backend/</a>
and <a href="https://daveceddia.com/deploy-react-express-app-heroku/" rel="nofollow noreferrer">https://davecedd... | 1 | 2,388 |
PluginResolutionException when I run mvn test on the project | <p>I give the following commands in command line. As you can see, there is an error, the connection is timed out. I have set the environment variables as the following :</p>
<pre><code>M2_HOME=C:\app\apache-maven-3.3.3
M2= %M2_HOME%\bin
MAVEN_OPTS=-Xms256m -Xmx512m
C:\Users\user1\Desktop\SQLToNoSQLImporter-master\SQLT... | 1 | 2,326 |
java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory | <p>I'm getting the java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. when I deploy my webapp as a .war. Does anyone have an idea where to begin looking for the root cause of this problem? The application runs as expected in the Eclipse IDE, but when exported as... | 1 | 2,889 |
Parallel execution with StackExchange.Redis? | <p>I have a 1M items store in <code>List<Person></code> Which I'm serializing in order to insert to Redis. (2.8)</p>
<p>I divide work among <code>10</code> <code>Tasks<></code> where each takes its own section ( <em><code>List<></code> is thread safe for readonly</em> ( <em><a href="http://msdn.micro... | 1 | 1,308 |
Android - Could not find method onButtonClick(View) | <p>I have a problem with the button id "btn_scansiona" once I click on it the following traceback is trigged:</p>
<pre><code>java.lang.IllegalStateException: Could not find method onButtonClick(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.support.v7.widget.AppCompat... | 1 | 2,927 |
How to compile a user defined function in SQLite | <p>I have an example C function that I would like to attach to a database <code>temp.sqlite</code> (it's from an O'Reilly book, so I know it works). I read the section in the book and sqlite.org, but they assume away that I know how and where to compile this thing with the proper settings. I'm on either Mac (with XCode... | 1 | 1,422 |
Android Firebase - setPersistenceEnabled(true) crashing the app | <p>So I was just trying out Firebase to update Toolbar label of activities from realtime database. I am getting the following error:</p>
<pre><code>12-21 00:25:19.890 10295-10295/com.xlr8labs.FirebaseAuth E/AndroidRuntime: FATAL EXCEPTION: main
Pro... | 1 | 3,694 |
Highcharts error : [TypeError: Cannot read property 'prototype' of undefined] | <p>I have been trying to use the Highcharts module in my javascript code to derive a PDF documents consisting charts. I have followed the example given in this page: <a href="https://www.npmjs.com/package/highcharts-release" rel="nofollow noreferrer">Highcharts link</a> and this is my code:</p>
<pre><code>var fs = req... | 1 | 5,639 |
Cannot switch to POPUP window in Protractor | <p>when i click on the Link , a Popup opens up. However couldn't able to work on the fields of popup as protractor can't locate the elements and then it gets timedout.</p>
<p>Following is the code
browser.ignoreSynchronization = true;</p>
<pre><code> performancePage.go();
logger.info('Info', 'Navigating to per... | 1 | 1,910 |
Show input field under select option based on click button | <p>this code still not working..my requirement is to show input field under select option / dropdown based on click button.</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>$(d... | 1 | 1,184 |
Caesar Cipher C# - How to work with uppercase and lowercase letters | <p>I am creating a Caesar Cipher and I'm trying to figure out how to make it work with both uppercase and lowercase letters. For Example if I type in "Hello World" I want it to encrypt in the same format, "Ifmmp Xpsme. </p>
<pre><code>using System;
namespace CaesarCipher1
{
class Program
{
static stri... | 1 | 1,509 |
WooCommerce AJAX Add to Cart for Variable products, still redirecting to product page | <p>Previously, after adding a product to cart from archive page, the page stays on the same page (not redirecting), but this only works for a simple product. What I'm trying to do is enable this feature for the variable product also (display product options at archive page without having to go to product page first).</... | 1 | 1,651 |
Value Dispose() cannot be called while doing CreateHandle() Error when Using Thread | <p>//This is my code </p>
<pre><code>private void btnGenSumm_Click(object sender, EventArgs e)
{
Thread t1 = new Thread(new ThreadStart(loadSummSales));
Thread t2 = new Thread(new ThreadStart(showWaitMessage));
t1.Start();
t2.Start();
}
private void showWaitMessage()
{
... | 1 | 1,064 |
Error: GooglePlayServicesUtilοΉ Internal error occurred. Please see logs for detailed information. How do I fix this? | <p>I have spent countless hours trying to figure out this google drive android api, and I have frustrated myself to the core trying to figure out how exactly to use it. I am using the <a href="https://developers.google.com/drive/android/get-started">getting started link</a> on the google android developers website, and... | 1 | 4,031 |
XSL-FO: How to prevent Instream foreign object from being trimmed? | <p>I am using Apache FOP to generate a PDF that contains an instream-foreign-object element whose content is a svg document. I am having a problem where the leftmost edge is seemingly being trimmed off like so: <img src="https://i.stack.imgur.com/GbG5a.jpg" alt="enter image description here"> </p>
<p>These images ... | 1 | 5,167 |
How can I animate the visibility of a control in UWP using Visual States? | <p>I'm currently working on a custom control for my application that expands and collapses content with a header which you can click to change states. The template for it looks like this at the moment.</p>
<pre><code><Style TargetType="controls:ExpandControl">
<Setter Property="Template">
<S... | 1 | 1,394 |
Phonegap Jquery Mobile Saving Data to Phone | <p>Im trying something simple below. I want to accept user input for their name click a button save it and when the app loads a second time it displays the name.</p>
<p>Where am I going wrong below?</p>
<p>Do i need to put this code block somewhere else?</p>
<pre><code> <script type="text/javascript">
$(funct... | 1 | 1,407 |
(Java) How to return objects from a list as a string or array of strings? | <p><strong>EDIT: I have uploaded both full class files and a tester file to dropbox in case you want to try it out yourselves:</strong> <a href="https://www.dropbox.com/sh/03qsecq3bd55w78/AAA_PT_BczNGl7cTZO_Zf_qUa?dl=0" rel="nofollow">https://www.dropbox.com/sh/03qsecq3bd55w78/AAA_PT_BczNGl7cTZO_Zf_qUa?dl=0</a></p>
<p... | 1 | 1,318 |
How to check if ElasticSearch is running properly | <p>I am new to ElasticSearch and I am facing issues while connecting to ElasticSearch. Please find below details:</p>
<ol>
<li><p><strong>hq</strong> plugin and <strong>head</strong> plugin are showing different results:
<BR><em>Output of HQ Plugin:</em>
<a href="https://i.stack.imgur.com/gIl45.jpg" rel="nofollow nore... | 1 | 1,082 |
ERROR: Could not build wheels for tulipy which use PEP 517 and cannot be installed directly | <p>so I have checked every post that relates to this issue and I still can't seem to make this work. I am trying to install tulipy using pip on a Windows machine. I've installed numerous other pip based programs with no issues. I tried reinstalling VS Build Tools, but that doesn't seem to help either. I need tulipy for... | 1 | 1,665 |
Using react-google-recaptcha-v3 library | <p>I'm new to react and trying to use the react-google-recaptcha-v3 library.</p>
<p>I'm using it with a formik form and posting the data with axios. It works when I post a hardcoded recaptcha token in my header. But when I try to use the token with the react-google-recaptcha-v3 library it does not work. I think I'm us... | 1 | 1,855 |
How to set channel positions/a channel mask in gstreamer? | <p>I'm trying to get 28 channels out of a <code>jackaudiosrc</code> but as soon
as I connect, say, a <code>deinterleave</code> element, the source will fall back to
the 2-channel setup that works without any channel mask. My attempts at
setting a channel mask have been futile.</p>
<p>Here's what happens:</p>
<pre><co... | 1 | 2,203 |
Joomla with Nginx Rewrite SEF url | <p>I am using Ubuntu 12.04 with NGINX and PHP5-FPM. I've just migrated my Joomla website from Apache to NGINX. But i think rewrite rules are not working well.</p>
<p>All of the SEF links rewrite to the homepage, but in the url bar link seems right.</p>
<p>Example if i click example.com/a/b.html it looks like go to th... | 1 | 1,209 |
How to hide an iframe if content is empty? | <p>I am using iframe in which I am displaying some content from external url. I want to hide the iframe if there is no content to display (i.e empty). Please let me know how to do this.
Thank you</p>
<pre><code><iframe id="iframe" width="100%" height="48" scrolling="no" frameborder="0" src="breaking.php" allowTrans... | 1 | 1,208 |
PropertyGrid Browsable not found for entity framework created property, how to find it? | <p>Trying to remove or place items on a property grid by changing the Browsable attribute.</p>
<p>But unless browsable is set on object creation my code to change Browsable doesn't work. Now I can manually add browsable, but when I make a change to my entity (still developing project so lots of changes to entity) any... | 1 | 2,355 |
Generate private key with OpenSSL | <p>I'm trying to generate a private RSA key with openssl, which works fine so far.
I'd like to get the format of the key in PEM.
When writing the key into a file the format seems to be fine but when I save the key in PEM in a char array than it seems to differ from the one written to the file!?
Here is a short example... | 1 | 3,385 |
How to implement an Action Filter in NopCommerce | <p>I want to change some code in an action of the OpcSaveBilling action from the CheckoutController. I don't want to alter the core code of NopCommerce so i need to try to overide the code with my own custom code.</p>
<p>I've read this article to get me started <a href="http://www.pronopcommerce.com/overriding-interce... | 1 | 4,013 |
Issue com.google.gdata.util.ResourceNotFoundException: Not Found with Google Analytic | <p><strong>Problem description</strong></p>
<p>I am using Google analytic for show visits/ bounce rates for a website. Before yesterday functionality was working fine. But now I am getting an error</p>
<pre><code>com.google.gdata.util.ResourceNotFoundException: Not Found
<!DOCTYPE html>
<html lang=en>
&... | 1 | 1,027 |
Angular 7 - Navigate to dynamic route via url | <p>I want to add new routes in that come back from my API.
But the routes are not getting registered on time. I am quite new with angular when I navigate to e.g./ <a href="http://localhost:4200/iphone-7" rel="nofollow noreferrer">http://localhost:4200/iphone-7</a> this will bring me to the 404 page but when i navigate ... | 1 | 1,190 |
Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String' | <p>im trying to parse json, print it to console, and put into ListView.builder and get this error : type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String'</p>
<p>how do i fix it?</p>
<p>list data</p>
<pre><code>FutureBuilder(
future: restaurantSearch,
builder: (context, AsyncSnapsho... | 1 | 1,415 |
Fixed thead in jQuery Mobile table | <p>I have tried to solve this problem for a few hours now. There a lot of plugins for fixed theads, but non of them seem to work with jQuery Mobile.</p>
<p>for example:
<a href="http://mkoryak.github.io/floatThead/" rel="nofollow">http://mkoryak.github.io/floatThead/</a></p>
<p>I also tried to solve this with CSS, an... | 1 | 5,705 |
Problem realizing FTP-client with asynchronous socket in C# | <p>(excuse me for my bad english))</p>
<p>I am writing a class for simple requests to FTP-server using .NET-class
<em>System.Net.Sockets.Socket.Synchronous</em> functions (Socket.Connect, Socket.Send, Socket.Receive) works fine. But I need asynchronous operation to be able to interrupt the process from the outside.</... | 1 | 1,232 |
JDBCExceptionReporter [ERROR] Field 'id' doesn't have a default value | <p>After trying different suggested solutions I haven't managed to figure out this one.</p>
<p>I'm using hibernate 3.6 and mysql 5.x and trying to persist my entity (I excluded the getters & setters):</p>
<pre><code>@Entity
@Table(name = "brand_managers")
public class BrandManager implements Serializable {
/... | 1 | 2,515 |
Setting up environment for C++/Boost libs (netbeans or eclipse) | <p>I've followed so many tutorials now and I can't get this basic, fundamental thing right.
I'm getting started with C++ and moving on from the standard intro stuff (after two books) and I'm working through "Beyond the C++ Standard Library ~ An Introduction to Boost" but I can't seem to get either Netbeans or Eclipse t... | 1 | 4,147 |
Getting data from p:autocomplete with a converter | <p>I'm using PrimeFaces 5.0.</p>
<p>What I'm trying to do is with the help of the 1p:autocomplete1 look on the BD, returning suggestions and using itemtip show some other information need it, everything seem to work well, the problem is that when I get the data and selected, this data is not setting it on the property... | 1 | 2,184 |
Django + Apache - wsgi trouble | <p>I've been working with Django locally and now I'm trying to push some code to a production Apache environment on an Ubuntu server I have running (<a href="http://www.youtube.com/watch?v=hBMVVruB9Vs" rel="nofollow">http://www.youtube.com/watch?v=hBMVVruB9Vs</a>). </p>
<p>However, I just get a list of files in the di... | 1 | 2,105 |
how to output form values to alert JavaScript | <p>Need your help! I hope you will help me..
For example, I have a form that consists of: First Name, Last Name, Email, a drop-down list and 8 divs with lengths of time (when you click on any color changed). When you press the submission button, an alert displays the information of the values that the user entered.
Sam... | 1 | 3,258 |
User and file permission configuration in Docker containers (docker-compose version 3) | <p>Docker <a href="https://docs.docker.com/engine/security/security/#conclusions" rel="nofollow noreferrer">states</a> that its containers are </p>
<blockquote>
<p>"...by default, quite secure; especially if you take care of running your processes inside the
containers as non-privileged users (i.e., non-root)"</p>... | 1 | 1,211 |
C# How to make a smooth jump in unity3d without moving the X, towards the nearest object | <p>I would like to make a smooth jump towards the nearest cube. I already have a script to detect the closest cube. I want that the X-axis is locked, so only the Y-axis and the Z-axis change when jumping. I would like to use a Jump animation when jumping. I already tried to use Vector3MoveTowards, but that didn't reall... | 1 | 1,099 |
Azure function with dependency injection not starting, because of conflicting references with ILogger | <p>Setting up an Azure Function that references other netstandard projects which on their turn reference Microsoft.Extensions.Logging.</p>
<p>When the Function runs locally without any references to the other projects, everything starts fine. But as soon as I add a reference to one of the other projects, I get the fo... | 1 | 1,661 |
Unable to figure out how to create and run my user-defined R function in Shiny with input text boxes | <p>I've an R script for which I need to develop and intigrate a user-interface in <code>shiny</code> package in R.</p>
<p>My following is a part of R code that I'm trying to build the interface around:</p>
<pre><code># A random normal function to generate numbers with exact mean and SD
rnorm2 <- function(n,mean,sd... | 1 | 1,367 |
asp.net drop down list not selecting any value | <p>At btnSave - button event-handler, in the following two lines, SelectedValue is always returning null. </p>
<pre><code>not.TargetSessionCode = this.sessionsDropDownList1.SelectedValue;
not.CourseCode = this.coursesDropDownList1.SelectedValue;
</code></pre>
<p>Can anyone say why?</p>
<p>This is my aspx code:</p>
... | 1 | 3,526 |
Android: can't get current location on maps | <p>I have an app with google maps with one single activity where a map is displayed. I have a menu that allows me to change the map type from but I would like to have an option to get my current location.</p>
<p>Here's the code of my activity:</p>
<pre><code>package com.example.chiapa_mapas;
import com.google.androi... | 1 | 1,833 |
Kombu/Celery messaging | <p>I have a simple application that sends & receives messages, kombu, and uses Celery to task the message. Kombu alon, I can receive the message properly. when I send "Hello", kombu receives "Hello". But when I added the task, what kombu receives is the task ID of the celery.</p>
<p>My purpose for this project is ... | 1 | 1,174 |
Referencing external named character entities when using XmlReader? | <p>I want to reference an URL having character entities using C#/.NET on an <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlreader(v=VS.90).aspx" rel="nofollow noreferrer">XmlReader</a> instance, for example <a href="http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent" rel="nofollow noreferrer">this w3c entit... | 1 | 1,089 |
how to create a mdb file from a csv file in python? | <p>I have several csv files that I need to transfer over to mdb format. I tried the answer in this post as a starting point:</p>
<p><a href="https://stackoverflow.com/questions/3094537/how-do-you-create-a-mdb-database-file-in-python">How do you create a mdb database file in Python?</a></p>
<p>Source:</p>
<pre><code>... | 1 | 1,769 |
Detecting keys pressed without events in UWP | <p>I am writing a simple 2D game engine for UWP. I have a code snippet taken from XNA, checking for if a certain key is pressed (see below), and I'm trying to do something similar.</p>
<p>Indeed, in my game engine I'd rather not use the dedicated event handlers (KeyDown etc), but instead simply check for pressed keys ... | 1 | 1,280 |
find value in array cakephp | <p>Hey guys I am trying to get a value from an array in my events_controller.php file.
Event belongsTo Entity and Entity hasMany Event. I need this value to perform some other logic but im really stuck and i know it should be an easy thing to do.</p>
<p>I am trying to get the value of Entity.user_id from this array.</... | 1 | 1,170 |
Problem with SurfaceHolder.Callback Interface in Android SDK | <p>I've been tinkering with the idea of delving into the Android SDK since I got my Droid X a while ago, and just recently acted on it. I installed the ADT plugin in Eclipse, downloaded and installed the Android SDK (Rev. 11), and tried some stuff out. I wanted to try 2d graphics out, since they're a huge departure f... | 1 | 1,615 |
Ajax Jquery post using relative URL | <p>I have a create view and an edit view, almost identical. They both include a cascading dropdown list. The value of the second list is part of the data that's being created or edited. The first dropdown is just a filter for values in the second list.</p>
<p>Both views use the same script which attaches a handler for... | 1 | 4,302 |
Adding multiple word tables into word using interop | <p>I'm trying to insert multiple tables into a word document using c#, but when I add another block of code to add a table in I am getting an error and the second table is not being inserted. How do I move the range down to the bottom of the page and then add another table? I tried creating a new range using the end of... | 1 | 1,858 |
Uncaught Error: The `style` prop expects a mapping from style properties | <p>According to error I pasted Home components please have a look</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>import React, { Component } from 'react';
import { getFromSto... | 1 | 3,773 |
Dump all network requests and responses in Python | <p>How can I use python to dump all of the network requests and responses? What I'm looking to do would compare to the following (this example is in nodejs <a href="https://github.com/ariya/phantomjs/blob/master/examples/netlog.js" rel="nofollow">https://github.com/ariya/phantomjs/blob/master/examples/netlog.js</a>) </... | 1 | 1,315 |
PHP Ajax echo HTML table | <p>I have a problem outputting some data from PHP to HTML as a table. When I hit submit, the output is not really formatted into a HTML table. <strong><em>Code has been updated so everything works perfectly now.</em></strong>
<img src="https://i.stack.imgur.com/EcbDo.jpg" alt="enter image description here"></p>
<pre><... | 1 | 1,593 |
ScrollIntoView For Table Row Not Working in IE 8 | <p>Can someone please explain why the following does not work in IE8. Basically i'm just trying to scroll a Table Row into view contained within an overflow DIV.
Code:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<hea... | 1 | 1,823 |
Netty async write response and large data unknown with size | <p>I develop a netty http server, but when I write the response in the method ChannelInboundHandlerAdapter.channelRead0, my response result comes from another server and the size of the result is unknown, so its http response headers maybe has content-length or chunked. so I use a buffer, if it's enough (read up full d... | 1 | 4,948 |
unable to call onclick event only at first page in phonegap | <p>I'm using cordova phonegap to make an android app. In the first page I'm trying to use input elements with a button:</p>
<pre><code>$(document).ready(init());
</code></pre>
<p>And:</p>
<pre><code>document.addEventListener("deviceready", onDeviceReady, false);
</code></pre>
<p>Input element:</p>
<pre><code><i... | 1 | 2,137 |
How to find Rad grid filtertemplate control and it's value in javascript | <p>I am using Telerik grid in that i have to find the filtering control and it's value inside the javascript. please help me.
here is sample code of aspx</p>
<pre><code><telerik:RadGrid ShowFooter="True" ID="grdQtmItemDetails" runat="server" GridLines="None"
AllowPaging="false" AllowSorting="True" AutoGenerateC... | 1 | 3,852 |
What should `foo.template bar()` do when there's both a template and a non-template overload? | <p>A coworker shared this code with me:</p>
<p><kbd><a href="https://gcc.godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(filename:%271%27,fontScale:14,fontUsePx:%270%27,j:1,lang:c%2B%2B,selection:(endColumn:19,endLineNumber:14,positionColumn:19,positionLineNumber:14,selectionStartColumn:19,selectionStartLineNumber:14,start... | 1 | 1,212 |
Invalid column name 'Discriminator' | <p>I have an existing <code>ASP NET MVC 5</code> that has uses <code>AppUsers</code> database to authenticate users. It been working for over a year.</p>
<p>Today, I created a new demo ASP MVC 5 application and set the <code>[Authorize]</code> tag to a specific <code>[AspNetRoles]</code> role. I also have the "App... | 1 | 4,420 |
log4j xml to write logs from one package to their own log file | <p>I'm sure this is simple but between Google and SO I haven't found the answer. </p>
<p>I have a jboss 4.0.2 (I know it's old but I can't change it right now) webapp with log4j 1.2.9. I've set up logs for a console appender as well as a rolling file appender and they both work fine. </p>
<p>I am trying to set up a l... | 1 | 2,497 |
JavaScript / jQuery - Listening for selected drop down option | <p>I currently have the following code in a JS file, this is reading the list of links generated which have team names. When the link is clicked, the relevant textboxes are filled with the correct info for each team. </p>
<p>I have now put in the drop down list as shown below, and would like to do the exact same thing... | 1 | 1,406 |
Detect display corners with Emgu | <p>I want to detect a display on an image (more precisely its corners).
I segment the image in display color and not display color:</p>
<pre><code>Image<Gray, byte> segmentedImage = greyImage.InRange(new Gray(180), new Gray(255));
</code></pre>
<p><a href="https://i.stack.imgur.com/4mVnA.jpg" rel="nofollow nore... | 1 | 1,819 |
TypeError: req.logIn is not a function - Passport JS | <p>I'm pretty sure this is not a bug since googling it hasn't turned anything up. </p>
<p>I'm using passport JS with the local strategy. On my login route I'm using a custom callback and calling req.login once I have determined the user exists because the documentation says: </p>
<blockquote>
<p>Note that when usin... | 1 | 1,273 |
spring boot- thymeleaf pass data html to controller | <p>I try to pass data html to controller but i have a error like that. My GET method is work clearly but POST method doesn't work</p>
<pre><code>java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'post' available as request attribute
at org.springframework.web.servlet.supp... | 1 | 1,641 |
Security: CWE-201: What is the correct way to securely read a properties file using openStream? | <p>I'm working on coming up with a solution for CWE-201 that is flagged from Veracode. </p>
<p><strong>Background:</strong> </p>
<p><strong>CWE-201: Information Exposure Through Sent Data</strong></p>
<p><strong>Information Exposure Through Sent Data</strong>
Weakness ID: 201 (Weakness Variant) Status: Draft
<st... | 1 | 1,267 |
Center Material Table header and its input in Angular | <p>I have a problem which is a little different from the other questions asked here about centering the material headers, but so far I can't seem to make the CSS work. </p>
<p>Here's my problem: I want to make the columns aligned on the center along with the input in the ng container which is utilized as a filter for ... | 1 | 1,101 |
Error when adding jpa repositories to spring | <p>I try to use spring repositories in my project but when i try to configure like this <a href="http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.create-instances.spring" rel="nofollow">http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.create-instances.spring... | 1 | 12,293 |
StopIteration error when using groupby method of Pandas DataFrame | <p>I'm having a similar problem with the <code>groupby</code> method that this person has posted on StackOverflow:</p>
<p><a href="https://stackoverflow.com/questions/24566377/pandas-group-stopiteration-error">pandas group StopIteration error</a></p>
<p>What I am trying to do with the <code>grouby</code> method is si... | 1 | 1,407 |
Apache httpclient 4.x 302 redirects with keepalive off? | <p>I've been trying to make an HTTP GET request to a server which returns a 302 with a redirect path using HttpClient 4.4.1 (GA). I'm having some issues making it work seamlessly when not using keepalive.</p>
<p>Here is my code:</p>
<pre><code> HttpGet httpget = new HttpGet("http://10.104.107.22:1354/video/Manifes... | 1 | 6,073 |
Jest - Mocking a function call within the handleSubmit of a form | <p>I am trying to write a test that mocks the calling of a function within the <code>handleSubmit</code> of a form, however, I am unable to show that the function has been called.</p>
<p>The form is as follows:</p>
<pre><code>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bi... | 1 | 4,731 |
getting org.apache.jasper.JasperException: java.lang.NullPointerException | <p>Here is the directory structure of my java Struts based web application, and webRoot directory.</p>
<p><img src="https://i.stack.imgur.com/4fpxp.png" alt="enter image description here"></p>
<p><img src="https://i.stack.imgur.com/m7dbE.png" alt="enter image description here"></p>
<p>code is get compiled successful... | 1 | 1,919 |
Select2 with ajax gets initialized several times with Rails turbolinks events | <p>I am a developing a Ruby On Rails app using Rails 4.2.6. I am using Turbolinks alongside jquery.turbolinks (sorry I could'nt post the links to those elements as I am a newbie on the site). My problem is very simple but I just can't solve it. Here it is:
I have a form fetched through AJAX</p>
<pre><code><div clas... | 1 | 1,478 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.