title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to bootstrap .NET 3.5 SP1 with msbuild? following found instructions doesn't work | <p>I'm trying to use msbuild GenerateBootstrapper task to distribute a .net application with the framework, without the need of internet connection to install it. </p>
<p>I've found many posts that all lead to the same instructions in here:</p>
<p><a href="http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B... | 1 | 1,355 |
HDFS guaranteed read/write of data from/to file | <p>We want to guarantee consumer process reads the data created by producer once the producer is finished writing to the file in HDFS. Following is one approach used in an application, that we are trying to improve.</p>
<p>Producer:</p>
<pre><code>private void produce(String file, int sleepSeconds) throws Exception {... | 1 | 1,285 |
Type-parameterized field of a generic class becomes invisible after upgrading to Java 7 | <p>Now <a href="http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr1">Eclipse Indigo SR1</a> with builtin <a href="http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html">Java 7</a> support is finally out since a week or two, I'm migrating my playground ... | 1 | 1,197 |
Java connect to SQL Anywhere 17 | <p>I'm working on a school project and I have to connect to a database done in SQL anywhere 17 and I keep getting the flowing error: </p>
<blockquote>
<p>No suitable driver found for jdbc:sqlanywhere:Tds:localhost:2638?eng="DBNAME".</p>
</blockquote>
<p>Any help is welcome.</p>
<p>Here is the code for the class do... | 1 | 1,499 |
How to keep long text elements in the same line via css? | <p>I am not a css/html expert so I'm sorry if I can not explain the problem properly.</p>
<p>I have 2 Wordpress sites with different themes, and I used same widget for them to show the tags. In 1st site, let's name it <strong>A</strong>, the tags go after another in the same line, even if a tag must be break. In the 2... | 1 | 1,806 |
Initialize Exception Error in Apache Shiro | <p>I am getting the following error when running the test. I dont understand this as i am new to the shiro.Please Help me</p>
<pre><code>enter code herejava.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstanc... | 1 | 1,825 |
Convert DESede/ECB/NoPadding algorithm written in java into Nodejs using crypto module | <p>I am working on migration of code form java to Nodejs. I have one requirement to encrypt the text with private key using "DESede/ECB/NoPadding" algorithm. Currently code is written in Java and now I need to migrate to Nodejs. Since encrypted key is sent to other application therefore I can't change the algorithm or ... | 1 | 3,707 |
NPM Install error | <p>I'm trying to get my app to run locally. In an attempt to install NPM in the folder I am receiving an error when it hits to:</p>
<pre><code>npm ERR! error installing contextify@0.0.7
</code></pre>
<p>I have searched the web but all of the results turned up people getting errors get in Windows7. Im using OSX. I hav... | 1 | 1,166 |
Creating PDF file using iText from a Recyclerview (Entire items inside) in Android? | <p>Hi i was trying to create a PDF output file from a Recyclerview using the library <a href="http://developers.itextpdf.com/examples-itext5" rel="nofollow noreferrer">iText</a> . After hours of struggle i was able to create PDF from recylerview .</p>
<p>Following is are classes which i used to create PDF</p>
<p><str... | 1 | 2,031 |
scala Play 2.5 vs golang benchmark, and optimizing performance in play framework | <p>I'm benchmarking a simple hello world example in scala play framework 2.5 and in golang. Golang seems to be out performing play by a significant margin and I would like to know how I could optimize play framework to improve performance.
I'm using the following to benchmark</p>
<pre><code>ab -r -k -n 100000 -c 100 h... | 1 | 2,701 |
Set TextBlock Visibility based on a bound bool | <p>I am trying to link the visibility of a TextBlock to a bool property which is also linked to a checkbox using WPF and c#. I have the following code in two different sections of the same xaml file (one section is a summary, and the other is settings. I am very new to WPF, and am learning as I go. Currently, the TextB... | 1 | 1,183 |
Why does pushing to private, secured docker registry fail? | <p>I would like to run a private, secure, authenticated docker registry on a self healing AWS ECS cluster. The cluster setup is done and works properly, but I struggled getting the <code>registry:latest</code> running. The problem was, that every time I push an image, pushing the blobs fails, and goes into a retry cycl... | 1 | 2,169 |
Unable to start activity ComponentInfo: Error inflating class android.support.design.widget.CoordinatorLayout | <p>I am getting this error, could you help me please.</p>
<pre><code>Unable to start activity ComponentInfo
{com.kaniar.tappy_defender/com.kaniar.tappy_defender.MainActivity}:
android.view.InflateException:
Binary XML file line #2:
Error inflating class android.support.design.widget.CoordinatorLayout
</code></pre>
... | 1 | 9,241 |
Spring Boot GraphQLQueryResolver won't run, runs on test project | <p>So I'm new into GraphQL and i got stuff running by manually setup a schemaparser and datafetchers. But I want to refactor and try out by implementing GraphQLQueryResolver to a class and controll my queries from there.</p>
<p>I get it to work by making a new project, but with the same dependencies and should be same ... | 1 | 9,789 |
Elixir Phoenix: Strange "no function clause matching" error in Controller Test | <p>My tests for a controller are failing and I cannot figure out the root of this error. I tried everything I could think of and am a bit helpless since the error message is quite generic.</p>
<p>The error message in question (when running the tests).</p>
<pre><code>1) test does not create resource and renders errors... | 1 | 1,259 |
Java.SQL Error: Prepared Statement not in batch mode | <p>I am using Java with backend HSQL. My prepared statement was working fine earlier. Recently, I created dependencies between department and items table and made the dep_seq_id column from auto generated seq_id to a simple column(we are updating id through java code now). After these changes, all dependent table creat... | 1 | 4,290 |
TypeError - no implicit conversion of String into Integer | <p>Excuse me for the noob question.</p>
<p>I am using <a href="https://newsapi.org/" rel="nofollow noreferrer">https://newsapi.org/</a> in my rails app and I am using httparty gem.</p>
<pre><code>def news
@techcrunch = HTTParty.get('https://newsapi.org/v1/articles?source=techcrunch&apiKey=766c2f65e93c47745145... | 1 | 1,297 |
Reflection.emit System.InvalidProgramException: Common Language Runtime detected an invalid program | <p>I'm new to reflection.emit and have been trying to produce the following c# code:</p>
<pre><code>public class RepositoryWrapper
{
public void CallRepositoryMethod(IAddressRepository repository, Address address)
{
repository.NODE_I_NodeExtendedDetails_Address3(address.NodeId);
}
}
</code></pre>
... | 1 | 1,784 |
Hide login link when logged in | <p>My website welcome page has got a link to login and one to logout. I want to know how to only show the logout link when the user is logged in and the other way around?</p>
<p>index.php code:</p>
<pre><code><?php require_once('Connections/PAPCon.php'); ?>
<?php
//initialize the session
if (!isset($_SESSION... | 1 | 2,508 |
h:inputText data cached | <ol>
<li><p>Click "LINK1" --> modal popsup --> enter value in text-box --> click Submit/Process </p></li>
<li><p>Click another link "update/cancel" --> same modal popsup --> I see the value in the text box (This is fine and if I reload the page and click the link again, the modal appears with values intact) </p></li>
<... | 1 | 4,333 |
Error : non-lvalue in assignment | <pre><code>#include <iostream>
using namespace std;
class Array
{
friend ostream &operator<<( ostream &, const Array & );
public:
Array( int = 5 );
Array( const Array & );
~Array();
int getSize() const;
const Array &operator=( const Array & );
// subscript o... | 1 | 1,487 |
Bug in OpenAPI generator? Wrong format for the example value of date datatype | <p>I'm using a openapi-generator-maven-plugin with 4.2.3 version.</p>
<p>My configuration looks like this:</p>
<pre><code> <typeMappings>
<typeMapping>OffsetDate=LocalDate</typeMapping>
<typeMapping>OffsetDateTime=Lo... | 1 | 1,630 |
Any API to prevent Windows 8 from going into connected standby mode? | <p>I need to disable <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/dn481224%28v=vs.85%29.aspx" rel="noreferrer">connected standby</a> mode until my Desktop application has finished. The desired behavior should be similar to what happens when I connect to that machine via Remote Desktop. That is, the... | 1 | 3,461 |
Android app to record sound in real time and identify frequency | <p>I need to develop an app to record frequencies in real time using the phone's mic and then display them (in text). I am posting my code here. The FFT and complex classes have been used from <a href="http://introcs.cs.princeton.edu/java/97data/FFT.java.html" rel="nofollow">http://introcs.cs.princeton.edu/java/97data/... | 1 | 2,002 |
OpenGL - FPS style Camera move with object fixed on camera | <p>I am trying to move a camera in a 3d space. So far I have had success in moving and rotating the camera using this code: </p>
<pre><code>void specialKeyHandler(int key, int x, int y) {
float fraction = 0.05f;
switch (key) {
case GLUT_KEY_LEFT :
camAngle -= 0.01f;
lX = sin(camAngle);
... | 1 | 3,143 |
how to make cocos creator touch listener | <p>I started to learn cocos a few days ago and I don't really understand how to use the eventListener, I tried to copy the example code in their documentation website and make it so that instead of moving with the WASD keys you'll move by touching the screen, I tried to add it to the code but it didn't work... this is ... | 1 | 2,871 |
jquery .fadeIn .delay .fadeOut - not fading out | <p>Not sure what i'm doing wrong but these divs fade in correctly but don't fadeOut! </p>
<p>They're intended to be on structured timeline in time with a mp3, hence the long delay times! </p>
<pre><code><!DOCTYPE html>
<html>
<head>
<style>
div { position: absolute; width: 60px; height: 60px... | 1 | 2,056 |
Eclipse crashes | <p>I've been having problems running eclipse. This is the exception that was thrown after the crash today. I don't understand why I can't run the standard eclipse on my Linux machine. Does anyone have any idea what the problem could be? I've tried changing the JVM a hundred times. Messed with the eclipse.ini nothing s... | 1 | 5,084 |
Why don't primitive Stream have collect(Collector)? | <p>I'm writing a library for novice programmers so I'm trying to keep the API as clean as possible.</p>
<p>One of the things my Library needs to do is perform some complex computations on a large collection of ints or longs. There are lots of scenarios and business objects that my users need to compute these values f... | 1 | 1,123 |
AJAX POST to PHP without JQuery | <p>I had a PHP assignment that I decided that I wanted to try and add AJAX to because in our class we will not learn AJAX just PHP. I can't seem to get the response to work. However in the network section of my console on Fire Fox I can find the POST send with the values I entered into the form and the PHP echo as a re... | 1 | 1,091 |
Autowire Environment interface to spring social showcase example always return NULL | <p>I am new to Spring and Spring social. I was trying to modify the existing spring social showcase example to change the data source to Apache Basic Data Source pointing to local MySQL database. However, when I autowire/inject Environment class to get the jdbc url from application.properties file, I always got null va... | 1 | 1,106 |
Android: parse the JSON file in the raw folder with gson? | <p>I am trying to parse JSON file"ssid-number" in the raw folder with GSON. The parse_SSID method parses the JSON file and finds the mapping for the passed SSID string. I am getting at the momenat this error:<code>The method getWifiList() is undefined for the type WifiJSON</code> at this line <code>List<WifiJSON>... | 1 | 1,258 |
Cannot Convert From JValue to JObject | <p>I have the following class with a static method in it,</p>
<pre><code>public static class RouteSerializer
{
public static string SerializeRouteInformation(string content)
{
RouteMapModel routeMapModel = new RouteMapModel();
List<RouteMapModel.end_location> endLocationList = new List<... | 1 | 8,794 |
FetchXML View to Include Attributes from Nested Link-Entity | <p>I would like to have a view that show attributes from 3 entities:<br>
Statistics has a lookup to Account and Account has a lookup to Address.<br>
<br>
The view is on Statistics and I want attributes from all 3 entities; is this even possible?</p>
<p>The problem is with the GridXML.<br>
I want to include the attribu... | 1 | 2,600 |
java.lang.NoClassDefFoundError: org/springframework/security/converter/RsaKeyConverters | <p><strong>I begin to learn spring and spring security and i have the following error. I have been following several guides and with all I have the same problem. The error is when I try to lift the application</strong></p>
<pre><code>java.lang.NoClassDefFoundError: org/springframework/security/converter/RsaKeyConverte... | 1 | 3,186 |
How do I force session timeout or a logout of a user when the app auto saves in an asp.net mvc 2 application? | <p>I've seen this question asked a few ways and the solutions are generally for other languages and don't apply to ASP.NET MVC 2.</p>
<p>I am using Jquery & Jquery forms to auto-save user data at a set interval. I still want the application to be able to time out, but the auto-saves via jquery forms keep refreshin... | 1 | 1,763 |
Retain nested form field value after failed validation | <p>I am new to rails and have not yet managed to solve the following issue. I use devise for authentication with a model called "user". This model is associated to another model called "company":</p>
<p><strong>user.rb</strong></p>
<pre><code> class User < ActiveRecord::Base
devise :database_authenticatable, :... | 1 | 1,539 |
webpack not loading @font-face | <p>in my React app i'm implementing server side rendering so i don't want to add <code>node_modules</code> in my server side because of performance issue.But i want <code>css</code> from from <code>node_modules</code> which are used as UI Kit libs.so i used webpack nodeExternal in my <strong>webpack.server.config</stro... | 1 | 1,320 |
django 'User' object has no attribute 'get' error | <p>I am writing an simple django application and got stuck into this error, can some one please help me
my views.py looks exactly as</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>def custom_login(request):
... | 1 | 1,412 |
dropdown in a gridview header | <p>I have a wierd problem in my gridview. </p>
<p>Here's the aspx page with a dropdown list in the header.</p>
<pre><code>asp:TabContainer ID="TabContainerType" runat="server"
ActiveTabIndex="0"
Height="626px" Width="1259px" >
<asp:TabPanel ID="tpDisperseSchemes" runat="server" HeaderText="Typ... | 1 | 1,066 |
openCV 243 using static libs error LNK2019 | <p>I'm trying to use openCV243 static libs in 64bit vs10 console application. My OS is win7 64 bit. </p>
<p>I've included following libs:</p>
<pre><code>#pragma comment(lib,"../final_test/libs/staticlib/opencv_core243.lib")
#pragma comment(lib,"../final_test/libs/staticlib/opencv_highgui243.lib")
#pragma comment(lib,... | 1 | 1,508 |
Location manager is shown null | <p>I am trying to track the gps location to be used in my application,</p>
<p>Here is my code,</p>
<pre><code>public class GetGpsCoordinates extends Service implements LocationListener {
boolean isGPSEnabled ;
boolean isNetworkEnabled ;
boolean canGetLocation ;
Location location;
double latitude;
double longitude;
... | 1 | 3,675 |
Kafka - SaslAuthenticationException: Failed to configure SaslClientAuthenticator | <p>I connect my app to Kafka through SASL_SSL using keytab. At first it worked well, but once it got an error. How to fix this and avoid such errors in future? stacktrace is bellow.</p>
<pre><code>java.io.IOException: Channel could not be created for socket java.nio.channels.SocketChannel[closed]
at org.apache.kaf... | 1 | 1,167 |
invalid operation on glEnd without cause? | <p>I have been working on a GL program for some time now and suddenly it began to give errors.
After trying to resolve these for a while I wrote a short test program that generates the same behavior:</p>
<pre><code>#include <GL/glut.h>
#include <iostream>
#define CHECK_GL_ERR() printError(__LINE__)
void ... | 1 | 1,270 |
CollapsingToolbarLayout in fragments | <p>I have an AppCompatActivity that contain fragments and it controls the replacing of many fragments. I want to show differents toolbar depending of fragment to show. </p>
<p>This is the code for main_activity.xml:</p>
<pre><code><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/ap... | 1 | 1,562 |
How to add Adaptive Track Selector in Exo-player v2.x? | <p>I'm setting up Exo Player in my app and I have implemented DASH adaptive streaming in my player, and want to add the functionality to play the track of specific quality selected by the user. </p>
<p>My Exo player version is <code>2.9.3</code>, I tried implementing by following these <a href="https://stackoverflow... | 1 | 1,037 |
Cannot connect to Docker Postgres server through Airflow DAG | <p>I am trying to run an Airflow DAG that queries the dag table in the Airflow Postgres database. Here is the code for the DAG:</p>
<pre><code>from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks.postgres_hook... | 1 | 3,295 |
Why is copying a file in C so much faster than C++? | <p>I've been working on a fairly large C++ project for a few weeks now. My original goal was to use this project to learn about C++11 and use only pure C++ code and avoid manual allocation and C constructs. However, I think this problem is going to force me to use C for a small function and I'd like to know why.</p>
<... | 1 | 1,242 |
Huffman Tree: Traversing | <p>I'm not sure how I'm going to attack the traversing of my Huffman Tree. The tree is correct, I just have a hard time figuring out how to traverse it in a good way. For some reason, my traversing method gives no result...</p>
<p>UPDATE: Cleaned up the code, made it more Object Oriented</p>
<p>Node class:</p>
<pre>... | 1 | 2,502 |
Laravel “CSRF token mismatch” for POST with laravel-cors and axios | <p>I have a domain_A running <strong>Laravel 5.8</strong> engine to return API on <em>web route</em>. It must check origins to let serve just a few domains, included domain_B.</p>
<p><strong>Barryvdh/laravel-cors</strong><br>
I installed <a href="https://github.com/barryvdh/laravel-cors" rel="nofollow noreferrer">bar... | 1 | 1,516 |
Read a PDF file and return as stream from a WCF service? | <p>I want to create a WCF service (working like windows service). This service will read a PDF file from a specific path, extract pages, create a new PDF file and return it to the caller.</p>
<p>How can I do this ? I use QuickPDF to process on PDF files, I can extract and create new PDF file. How can use this in a WCF... | 1 | 1,114 |
Classpath empty when adding <outputDirectory> to pom | <p>I am using this simple <code>pom.xml</code> to generate an OSGi-bundle using the <code>maven-bundle-plugin</code>:</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.ap... | 1 | 1,324 |
Reading a posted XML file in a c# webservice | <p>I am very new to webservices in c#.</p>
<p>I posted an XML into a web service with the following function: </p>
<pre><code>public static XmlDocument PostXMLTransaction(string URL, XmlDocument XMLDoc)
{
//Declare XMLResponse document
XmlDocument XMLResponse = null;
//Declare... | 1 | 1,261 |
Getting data from mysql database using php in android | <p>I am trying to access an individual player in the database, I am getting the response {"success":0,"message":"Required field(s) is missing"} but this is wrong and should be outputting a single player field.</p>
<p>I think the problem is with the php code but I am not certain. Any help is greatly appreciated, thank... | 1 | 1,813 |
Spring: Getting FactoryBean object instead of FactoryBean.getObject() | <p><strong>Short question:</strong> If I have class that impelemnts FactoryBean interface, how can I get from FactoryBean object itself instead of FactoryBean.getObject()?</p>
<p><strong>Long question:</strong> I have to use 3-rd party Spring based library which is hardly use FactoryBean interface. Right now I always ... | 1 | 1,165 |
Using KendoUI Charts, How do you make the Legend item a hyperlink? | <p>I'm using KendoUI and I have created the following Chart. I need to be able to make the Legend item "Product 1" in this case a hyper link. How Do I do that?</p>
<p><img src="https://i.imgur.com/MTN1N.gif" alt="" /></p>
<p>My Markup:</p>
<pre><code><div id='chart' ></div>
</code></pre>
<p>My Script:<... | 1 | 1,124 |
java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long | <p>I was trying to connect a database to my Java program and
I get the error</p>
<pre><code>May 28, 2018 9:26:40 PM com.example.test main
SEVERE: null
java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
at com.mysql.jdbc.SQLError.createSQLException(SQLError.j... | 1 | 1,159 |
CS1955 Non-invocable member 'Json' cannot be used like a method | <p>I have a problem how to return <code>JsonResult</code> inside LinqPad. Same code works inside MVC application, but it's not working inside LinqPad. What am I doing wrong?</p>
<p>Code:</p>
<pre><code>public JsonResult GetReservedDrinksInventory(DTO_CAMEEV dto)
{
return Json(new { Result = "OK" });
}
</code></pr... | 1 | 4,972 |
Multiple definition of the same symbol in C++ (visual studio) | <p>I'm having an issue with a pretty simple code
I am following the tutorial of chrono::engine <a href="http://www.chronoengine.info/mediawiki/index.php/Demo_fourbar" rel="nofollow">http://www.chronoengine.info/mediawiki/index.php/Demo_fourbar</a>
I do not have much experience in C++ programming (I have some experience... | 1 | 3,416 |
JavaFX video not playing | <p>I followed some tutorials about combining JavaFX with Swing (JFrame) to play a video, however all I get is a black screen where the video is supposed to be without any actual content playing, No errors are reported either.</p>
<p>What am I doing wrong here and why wont the video play? </p>
<p>I tried several .flv ... | 1 | 2,382 |
Draw rectangle over texture OpenGL | <p>I'm using python 3 with pygame and OpenGL to try to accomplish what I thought it would be a simple task: Drawing a rectangle.
The idea is to have a white rectangle over (or bellow) a transparent texture, but whenever I add the texture to the screen the rectangle vanishes, whether I render it before or after the text... | 1 | 1,114 |
Android XMLHttpRequest request fail | <p>Im having a problem with a XMLHttpRequest on Android using Eclipse....</p>
<p>If I build and run the app on a connected device, I get no error but when I build the apk and then install on the device I get an error so Im missing a permission or something. Any help appreciated.</p>
<pre><code> var send = functi... | 1 | 1,958 |
Castle WCF Integration Facility | <p>I’m trying to use Castle WCF integration facility in my project. I followed instructions from the castle official site <a href="http://docs.castleproject.org/Windsor.WCF-Facility-Registration.ashx" rel="nofollow">http://docs.castleproject.org/Windsor.WCF-Facility-Registration.ashx</a>
But I couldn't make it work. H... | 1 | 1,744 |
Why does Java's CharsetEncoder define .onMalformedInput()/CharsetDecoder define .onUnmappableCharacter()? | <p>A <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/charset/CharsetDecoder.html" rel="nofollow"><code>CharsetDecoder</code></a> basically helps decoding a sequence of <code>bytes</code> into a sequence of <code>char</code>s (see <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html... | 1 | 1,517 |
Bootstrap-3: Input Group-Addon STRETCHES with jQuery Validation messages | <p>I'm using Twitter Bootstrap 3 with jQuery Validate plugin, but for some reason when the validation error message pops up it <strong>STRETCHES</strong> my <strong>Input Group-Addon</strong> box and the icon.</p>
<p><strong>NORMAL [NO VALIDATION]</strong></p>
<p><a href="https://i.stack.imgur.com/38yiZ.jpg" rel="nof... | 1 | 2,454 |
Why is PyGILState_Release throwing Fatal Python Errors | <p><strong>ANSWERED</strong></p>
<p>Ok, I solved this issue. Its all in how you initialize the thread state. You don't need to use ReleaseLock at all. Simply add InitThreads call to your module definition:</p>
<pre><code>BOOST_PYTHON_MODULE(ModuleName)
{
PyEval_InitThreads();
...
}
</code></pre>
<hr>
<p>Ok... | 1 | 1,225 |
Devise, Omniauth and Facebook integration session error | <p>I am new to Rails and am installing my first app that integrates Facebook sign in / sign up. I followed Ryan Bates' RailsCast videos that were posted here: <a href="https://stackoverflow.com/a/4954443/1302333">https://stackoverflow.com/a/4954443/1302333</a>.</p>
<p>I followed his tutorial for integrating Twitter a... | 1 | 3,377 |
How to output multiple files dynamically using U-SQL custom Extractors? | <p>I have created a U-SQL query which reads the data from multiple files. Now I have to output the data in multiple files in some other folder. I have the below example,</p>
<blockquote>
<p><a href="https://stackoverflow.com/questions/42636855/u-sql-output-in-azure-data-lake/42676271#42676271">U-SQL Output in Azure ... | 1 | 1,929 |
getActivity().getActionBar() on first fragment crash | <pre><code>public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setupViewPager();
}
private void setupViewPager() {
// TODO Auto-... | 1 | 1,607 |
How can i convert uv coordinates to world space? | <p>I am trying to implement a shader. It will use with Unity LineRenderer. Shader will have noise that scrolling overtime raltive to texture coordinates. For example in parallel to x axis of uv space of texture. I have an implementation, but i dont'know how to get direction relative to texture uv (consider the texture ... | 1 | 1,683 |
Populating Spinner using string values returned by SOAP web service | <p>I am working on a Android code that returns me String values that I store in a String array.I want to use this String array to populate one of my Spinners.</p>
<p>My main intention is that depending on what the user selects in 1st spinner , I want to populate my 2nd spinner using my String array.</p>
<blockquote>
... | 1 | 2,031 |
Python sockets: how to enable promiscuous mode in linux | <p>According to python documentation we can build simple sniffer like :</p>
<pre><code>import socket
# the public network interface
HOST = socket.gethostbyname(socket.gethostname())
# create a raw socket and bind it to the public interface
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
s.bind((H... | 1 | 1,056 |
[iOS 13]: Fatal Exception: NSInvalidArgumentException Can't add self as subview ([NSCache init]) | <p>I've seen similar issues/questions on Stack Overflow, but they didn't help.</p>
<p>I built the app with Xcode 11 and iOS 13 SDK. The problem is that I get all these crashes only on iOS 13+, even though my app supports iOS 10+ and there are ~50% iOS 12 users among all. Also, I cannot debug or reproduce it.</p>
<p><... | 1 | 1,818 |
Can an Android Architecture Components ViewModel compose an object from multiple LiveData returning models? | <p>I've been unable to create an Android Architecuture Components ViewModel that composes multiple LiveData models into one LiveData class for my Fragment to observe. I want to hide the model details from the Fragment and respond to external data changes through the individual models.</p>
<p>The problem is I need the ... | 1 | 1,159 |
flutter navigation to new screen not working | <p>I am building a login screen that passes data to a home screen and when I click on the login button nothing happens. No error but also no sending to a new screen.</p>
<p>here is the button code:</p>
<pre><code> Widget submitButton()
{
return Container(
margin: EdgeInsets.all(10.0),
child:Ra... | 1 | 1,818 |
How to get url of file uploaded on AWS S3 bucket? | <p>I am uploading image file on <strong>Amazon AWS S3 bucket</strong> using <strong>Java</strong>.</p>
<p>I am using following maven dependency - </p>
<pre><code> <dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<versio... | 1 | 1,539 |
Creating bar code labels with ColdFusion and JavaScript DYMO SDK | <p>I am trying to use the DYMO SDK to print bar codes to labels for packages. I want to be able to create the bar code objects without using the DYMO software. I am writing this code in ColdFusion. Right now I have some code to generate the bar code into HTML and display it on the webpage. However, when I print the... | 1 | 2,268 |
The Activity restart after saving data in Firebase | <p>Im trying to save user information in Firebase Database but a strange behavior happens that make the Save button to restart the same activity not the Intent that i made for the next activity .</p>
<pre><code> public void userData () {
user.setFName(Fname.getText().toString());
user.setLName(Lname.getText().... | 1 | 2,314 |
Could not load file or assembly System.Web.Http.WebHost | <p>I'm running my application on an IIS server, but now I want to do some debugging with breakpoints etc, so I decided to run from Visual Studio to IIS Express. But, when I start running my application I receive this error:</p>
<blockquote>
<p>Server Error in '/' Application.</p>
<p>Could not load file or assem... | 1 | 2,104 |
In DDD where to keep custom exceptions (application exceptions)? In Infrastructure layer? | <p>I'm building a app with following architecture:</p>
<p>UI - Application - Domain - Infrastructure</p>
<p>I have a Application Layer that need use custom exceptions. Where I keep these custom exceptions? In Infrastructure layer? The problem is my Application Layer don't have reference to Infrastructure layer.</p>
... | 1 | 1,043 |
How to delete a current row by clicking row' delete button in html table? | <p>I am new jquery and in my project The rows will gets updated dynamically.</p>
<p>Now my question is how to delete a row when we click that rows delete button. Kindly some one help me to do this.</p>
<pre><code><table
class="table table-striped table-bordered table-hover table-condensed tableSiteUser">... | 1 | 2,047 |
oracle 11g and integration of hibernate spring and jsf | <p>i am using jsf 2,hibernate 4.1.4,spring 3.1,oracle 11g and maven 3.
but it can not connect to oracle and has error. i downloaded the latest version ojdbc6.
applicationContext.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi=... | 1 | 8,809 |
JSONObject as a member variable in POJO not recognized -Jersey | <p>I'm building a RESTful web service. I've been locked in a situation where I'm not able to proceed. I've a DAO (a POJO) that has a <code>JSONObject</code> as a member variable. When I try to make a POST call from client (Postman or user-defined javascript) and try to debug, the value gathered in the getter of the <co... | 1 | 2,620 |
CakePHP Error: Class App\Controller\AuthComponent not found | <p>I'm working in CakePHP 3.2 and writing an admin panel where only admin can login.</p>
<p>There is a separate table <code>admins</code> to store admin credentials. There is <code>users</code> table also which is used for users to register/login from main application.</p>
<p>I have to use <code>admins</code> table t... | 1 | 1,519 |
Mouseover issues in D3.js, containing Path elements and changing tooltip data once focus is brushed? | <p>I'm having the following issues with a Multi Series, Focus + Context D3 chart and thought I'd try to get the answers to my main questions in one go.</p>
<p>The questions I have are as follows:</p>
<ol>
<li><p>How do I ensure the tooltips I've created are not affected by the hair-line (which follows the mouse) of t... | 1 | 7,647 |
angular2 rxjs shared subscribe not firing | <p>Angular2 2.0.0-beta.15, Rxjs 5.0.0-beta.2</p>
<p>I have two simple rxjs observables, one shared, one not (.share() called on it)</p>
<p>I have an angular2 component which subscribes to both observables and also displays the values in its template, which also subscribes to the observables with async pipe.</p>
<p>I... | 1 | 1,033 |
How to implement bootstrap-datepicker as Aurelia custom element | <p>Having first read this <a href="http://www.danyow.net/jquery-ui-datepicker-with-aurelia/" rel="nofollow">http://www.danyow.net/jquery-ui-datepicker-with-aurelia/</a> and with inspiration from <a href="https://gist.github.com/charlespockert/6a1fef3f546f6d37d1dc" rel="nofollow">https://gist.github.com/charlespockert/... | 1 | 1,033 |
How to get redis value for a given redis key using Nodejs + Redis | <p>I am using Nodejs + redis to Set and Get key:value pairs. I have written a sample code to set a key:value pair and then fetch it using the default readme from npm redis plugin. </p>
<p>My goal here is to get value from the redis server using any given key. I have followed the steps as given by npm redis plugin. I a... | 1 | 1,983 |
Ng-bootstrap and Angular 9 compatibility | <p>After upgrading to Angular 9, I am getting the following errors relative to ng-bootstrap:</p>
<p>ERROR in src/app/shared/Components/form-controls/dropdown-select/dropdown-select.component.ts:87:63 -
error TS2304: Cannot find name 'NgbDropdownMenu'.</p>
<p>87 @ViewChild('dropdownMenu', { static: false }) dropDownMe... | 1 | 1,494 |
How to disable log4j in web applications (turn off WARN messages) | <p><strong>In short:</strong> How can I configure some Log4j logger in a third-party jar which is used in a web application so that it stops writing out warnings like</p>
<pre><code>log4j:WARN No appenders could be found for logger (org.apache.activemq.transport.WireFormatNegotiator).
log4j:WARN Please initialize the ... | 1 | 1,037 |
Fatal Exception: java.lang.NullPointerException | <p>I'm trying dictionary application but get the error below;</p>
<blockquote>
<p>01-27 06:27:57.561: E/AndroidRuntime(2439): FATAL EXCEPTION: main
01-27 06:27:57.561: E/AndroidRuntime(2439): Process: taejung.kim.dic, PID: 2439
01-27 06:27:57.561: E/AndroidRuntime(2439): java.lang.RuntimeException: ... | 1 | 4,296 |
rails syntax error.. unexpected end | <p>Getting the following error:</p>
<pre><code>SyntaxError in FriendsController#index
/Users/nelsonkeating/Desktop/ReminDeal/app/controllers/friends_controller.rb:32: syntax error, unexpected keyword_end, expecting ')'
/Users/nelsonkeating/Desktop/ReminDeal/app/controllers/friends_controller.rb:58: syntax error, unex... | 1 | 2,802 |
FullCalendar, business hours and date ranges | <p>In my project, users can book rooms. My rooms have disponibility hours (eg 08:00-17:00). I try to use Business Hours but disponibilities change in summer and winter.</p>
<p>I also tried to use inverse-background events with date ranges like <a href="https://stackoverflow.com/questions/15161654/recurring-events-in-f... | 1 | 3,907 |
how to use multiple Checkbox in ASP.Net mvc3 Razor | <p>In my <strong>ASP.Net MVC3 Razor</strong> project i have to implement a customer registration form(Screen Shot Attached).In that form , a single entity (say :purpose of doing DMIt) contains more than one answer.So i use checkbox to select the multiple or single answer.I have the view page and also a Model.How to cod... | 1 | 3,016 |
Comsuming MassTransit from Python or other languages | <p>I have a simple publisher done in MassTransit. I’m sending the message in an interval and am able to receive it from .NET client using MassTransit. But when I try to observe something from Python, it is silent. Is there a way to consume MassTransit from Python or other languages? Examples appreciated.</p>
<p>Publis... | 1 | 2,325 |
How do I insert multiple rows of JSON object data in mySQL using PHP PDO? | <p>I making PHP API to insert multiple rows of <strong>JSON</strong> object data. My <strong>JSON data format</strong> is like this:</p>
<p><em>(I receive this below format in console log for console.log(this.state.cartItems[]).</em> in REACT)</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console... | 1 | 1,608 |
Unable to create directory in External Storage public directory | <p>I am attempting to create a directory and file so that I can store files that I have downloaded from the Internet. However, I am unable to create the directory and file in the external <em>public</em> storage. If I write to the external <em>private</em> storage (specific storage location for the app) I am perfectly ... | 1 | 1,095 |
How to get each value inside <li> with <span> tag BeautifulSoup | <p>I have an HTML document which looks like below, <em>self.soup</em> is BeautifulSoup object. I tried to scrape data inside list element. List element looks like below:</p>
<pre><code> <ul class="list-group">
<li class="list-group-item">
<span class="strong">Name</span>
... | 1 | 1,098 |
Extracting XML attribute using VBA | <p>I'm not a developer and have very limited XML knowledge but for what I've learned the past 3-4 days researching on the web. So apologies in advance for the basic level of this question. I'm trying to wrap up this one time task.</p>
<p>I have some VBA Excel knowledge and currently I'm trying to use VBA to extract th... | 1 | 1,743 |
Invalid web service call, missing value for parameter \u0027filters\u0027 | <p>When I post my ajax data to my webservice I keep getting this error. I have tried many times and changed my code to return a json string back but it fails every time.All im trying to do is send back the data I have posted so I know it works. I have looked for answers and I have tried other alternatives but im not ge... | 1 | 1,026 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.