title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to implement Modal Dialog in Angular 2 and above | <p>I am a newbie to angular.</p>
<p>I have used bootstrap modal using the package <a href="http://valor-software.com/ng2-bootstrap/#/" rel="noreferrer">ng2-bootstrap</a>.</p>
<p>My View file is </p>
<pre><code><div bsModal #lgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLarge... | 0 | 1,027 |
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCExcep tion: could not execute query | <p>Hi I have researched this in these forums thoroughly and many people have posted stuff but none of that helps me.</p>
<p>my object:</p>
<pre><code>@Entity
@Table(name = "ADDRESS")
@NamedQuery(name = "Address.findByRegistrationId", query = "SELECT a FROM Address a WHERE a.registration_id = :registration_id")
public... | 0 | 4,965 |
How to check for local Wi-Fi (not just cellular connection) using iPhone SDK? | <p>I'm currently using the following to check whether <a href="http://en.wikipedia.org/wiki/Wi-Fi" rel="noreferrer">Wi-Fi</a> is available for my application:</p>
<pre><code>#import <SystemConfiguration/SystemConfiguration.h>
static inline BOOL addressReachable(const struct sockaddr_in *hostAddress);
BOOL local... | 0 | 1,033 |
Binding a Select2 select to a Vue js model data | <p>I'm using select2 to enhance an html select element. I want to bind the value of the select element to a Vue variable, however the Select2 seems to be preventing this.</p>
<p>What's the best way to achieve this data binding and event listening whilst retaining the Select2 behaviour. I imagine it's a case of linking... | 0 | 1,070 |
Offering smaller versions of videos with media query or when mobiles are detected | <p>I went to this discussion from 2012:
<a href="https://stackoverflow.com/questions/10750874/how-to-load-different-video-for-mobile-devices-and-desktop-web-version">How to load different video for mobile devices and desktop web version?</a>
because I was having the same problem. My mp4, webm and ogg videos of 7MB or ... | 0 | 1,816 |
Golang sharing configurations between packages | <p>So I just started learning the Go programming language and have spent hours on end looking at examples, references and so forth. As most of you would agree there is no better way to learn a language than to dive in and make something, which is what I am attempting to do at the moment. I am building a Restful web ser... | 0 | 1,073 |
Symfony 4 login form : authenticating successfully, but authentication immediately lost after redirect | <p>I built a login form following this <a href="https://symfony.com/doc/current/security/form_login_setup.html" rel="noreferrer">form login setup doc</a>.</p>
<p>This is working fine on localhost <strong>but not on the production server</strong>.</p>
<h2>On both localhost and prod, authentication begins successfully<... | 0 | 9,780 |
Creating tab delimited file | <p>I am trying to create a tab delimited file output that I can use to load into quickbooks. I am using the following code on for the header.</p>
<pre><code>header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=\"my-data.txt\"");
</code></pre>
<p>I have two problems.</p>
<p>The first... | 0 | 3,068 |
Rails - Postgres - could not connect to server: Connection refused (PG::ConnectionBad) | <p>Yesterday I've install Postgres and pgAdminIII, all worked correctly, but after reload it stopped working. After <code>rails server</code> I've got error message:</p>
<pre><code>=> Booting Thin
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C... | 0 | 3,875 |
How to cross compile for linux x86 with linux amd64, cmake and g++? | <p>+1 for each piece of information that helps to complete the whole picture. You don't need to know the whole answer. I'll appreciate individual pieces of the puzzle just as much. Thanks.</p>
<p>I am about to attempt my first cross-compilation. I have searched both SO and the web and found many pieces of information,... | 0 | 1,236 |
Find specific sentence in a web page using powershell | <p>I need to use powershell to resolve IP addresses via whois. My company filters port 43 and WHOIS queries so the workaround I have to use here is to ask powershell to use a website such as <a href="https://who.is" rel="noreferrer">https://who.is</a>, read the http stream and look for the Organisation Name matching th... | 0 | 1,213 |
location.href not working on asp mvc | <p>I have this code ...</p>
<pre><code>$("#Login").click(function()
{
var dataObject = { UserName: $("#UserName").val(), Password: $("#Password").val() };
$.ajax({
url: '@Url.Action("Login","User")',
type: "POST",
data: dataObj... | 0 | 1,261 |
Invoke a SOAP method with namespace prefixes | <p>My C# web service client sends following soap message to Java-based web service:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://ww... | 0 | 2,665 |
Handler dispatch failed; nested exception is java.lang.StackOverflowError with root cause | <p>Getting this error when jpa tries to fetch the object from database.</p>
<p>Error : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.StackOverflowError] with root cause</p>
<p><strong>UserController</strong>
In this the ... | 0 | 9,112 |
Error: Extension methods must be defined in a top level static class (CS1109) | <p>I'm trying to make a countdown program, which I can start and stop and set the value of the countdown to 10 minutes if needed.</p>
<p>But I'm getting an error I don't quite understand.
I'm not that into C#, so here's the code:</p>
<p>Can some one help me a bit here ? Think I run on framework 3.0 or something ?</p>... | 0 | 1,440 |
The Insert statement conflict with the FOREIGN KEY constraint. Entity Framework | <p>my models are as follows...</p>
<pre><code>public class Company
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; }
[Required]
[MaxLength(255)]
public string Fullname { get; set; }
... | 0 | 1,932 |
No data nodes are started | <p>I am trying to setup <em>Hadoop version 0.20.203.0</em> in a pseudo distributed configuration using the following guide: </p>
<p><a href="http://www.javacodegeeks.com/2012/01/hadoop-modes-explained-standalone.html">http://www.javacodegeeks.com/2012/01/hadoop-modes-explained-standalone.html</a></p>
<p>After running... | 0 | 3,818 |
Default Activity Not Found - Bug in Android Studio 3.3 | <p>When I create a new project in Android Studio 3.3, it shows an error at <code>Run -> Edit Configurations</code> saying </p>
<blockquote>
<p>default activity is not found.</p>
</blockquote>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:and... | 0 | 1,526 |
Property 'spring.profiles.active' imported from location 'class path resource [application-dev.yml]' is invalid | <p>I updated Spring cloud application to the latest Spring boot version 2.5.0.</p>
<p>But during startup I get this exception:</p>
<pre><code>11:05:05.038 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property... | 0 | 1,105 |
VHDL Error std_logic type does not match integer literal | <p>I'm new to VHDL and I'm getting the following error when I try to compile my code:</p>
<p>Error (10517): VHDL type mismatch error at vga_controller.vhd(60): std_logic type does not match integer literal
Error (10327): VHDL error at vga_controller.vhd(60): can't determine definition of operator ""-"" -- found 0 poss... | 0 | 2,732 |
React JS - Uncaught TypeError: Cannot read property 'bind' of undefined | <p>I would like to show <code>TopicsList</code>component when user clicks on <code>SingleTopicBox</code> component and hide <code>SelectedTopicPage</code> component. However, i'm getting error: <code>Uncaught TypeError: Cannot read property 'bind' of undefined</code> on topic-list.jsx file.</p>
<p><strong>main-control... | 0 | 1,061 |
Error :"Configuration 'compile' is obsolete and has been replaced with 'implementation'.", even though no 'compile' present in gradle | <p><em>I have the following gradle files and I can't find anything which would still warrant the warning "<strong>Configuration 'compile' is obsolete and has been replaced with 'implementation'</strong>."</em></p>
<p>First Module Gradle file:</p>
<pre><code> buildscript {
repositories { maven { url 'https... | 0 | 2,889 |
Could not build ClassFile - ArchiveException | <p>We develop an application with spring, jpa, tomcat, maven, etc. </p>
<p>Locally on my developer machine everything works fine but when we deploy the application on a linux server I get the following exception: </p>
<pre><code>org.hibernate.jpa.boot.archive.spi.ArchiveException: Could not build ClassFile
org.hi... | 0 | 3,989 |
Traversing queue in C++ | <p>I have a C++ queue that I need to print. It's easy to print the first node and then delete it, then print the first node again which would then be the second node. But that would erase the entire list just to print it once... As a work around I created a temporary queue object which I passed to my print method and d... | 0 | 2,898 |
Email body format and modification | <p>I am using below code in Powershell to get Email in proper table format from a plain text file <strong>output.txt</strong>:</p>
<p><strong>code.ps1</strong></p>
<pre><code>$smtpServer = "sunny@domain.com"
$smtpFrom = "process@abc.com"
$smtpTo = "sunny@abc.com"
$messageSubject = "Data"
$message = New-Object System... | 0 | 1,490 |
Kafka Streams - SerializationException: Unknown magic byte | <p>I am trying to create a Kafka Streams Application which processes Avro records, but I am getting the following error:</p>
<pre><code>Exception in thread "streams-application-c8031218-8de9-4d55-a5d0-81c30051a829-StreamThread-1" org.apache.kafka.streams.errors.StreamsException: Deserialization exception handler is se... | 0 | 1,053 |
Resettable CountdownLatch | <p>I need something which is directly equivalent to <code>CountDownLatch</code>, but is resettable (remaining thread-safe!). I can't use classic synchronisation constructs as they simply don't work in this situation (complex locking issues). At the moment, I'm creating many <code>CountDownLatch</code> objects, each rep... | 0 | 6,267 |
Unable to find matching navigation case with from-view-id '/index.xhtml' for action : JSF | <p>I am getting the following error :
Unable to find matching navigation case with from-view-id '/index.xhtml' for action '#{medcontroller.getMedGeneric}' with outcome 'javax.faces.model.ListDataModel@7a652236'</p>
<p>I am new to jsf and I'm really clueless about solving this error. I have a ManagedBean with the foll... | 0 | 1,946 |
Binding in WPF style causes inexplicable "Cannot find governing FrameworkElement" error | <p>I have an <code>ItemsControl</code> that displays a bunch of rectangles. Each rectangle needs to be offset upward and to the left. So, I created a <code>RectangleStyle</code> that uses bindings to set the width, height, X translation, and Y translation for a rectangle. </p>
<p>The width and height bindings are work... | 0 | 1,288 |
Gravity in LinearLayout - android? | <p>I created bellow Layout :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/relativeStart"
andro... | 0 | 1,247 |
Why is the Java 11 base Docker image so large? (openjdk:11-jre-slim) | <p>Java 11 is announced to be the most recent LTS version. So, we're trying to start new services based on this Java version.</p>
<p>However, the base Docker image for Java 11 is much larger than the equivalent for Java 8:</p>
<ul>
<li><p><a href="https://github.com/docker-library/openjdk/blob/master/8/jre/alpine/Do... | 0 | 1,162 |
MIPS Address out of range (MARS) | <p>I'm trying to write a simple code which save string and integer input into an array and then prints them (i will also later add another part which sorts them,but i have to get this to work first). </p>
<pre><code>.data
array: .space 40 #10 elements array
in_name:
.asciiz "\nInsert name: "
in_date:
.a... | 0 | 2,218 |
Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module cla | <p>I am getting error in the whole class that extends BottomSheetDialogFragment</p>
<pre><code>Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module classpath for missing or conflicting dependencies
</code></pre>
<p><a href="htt... | 0 | 1,458 |
Materialize css Radio buttons not visible | <p>I am trying to add materialize radio buttons onto my page but for some reason the actual radio buttons do not show up, It's a sharepoint site where I am linking to the materialize js and css files, the other text input fields are working and I just copied and pasted the example from the materialize docs. While looki... | 0 | 1,108 |
Finding indices of values in 2D numpy array | <p>I'm trying to get the index values out of a numpy array, I've tried using intersects instead to no avail. I'm simply trying to find like values in 2 arrays. One is 2D and I'm selecting a column, and the other is 1D, just a list of values to search for, so effectively just 2 1D arrays.</p>
<p>We'll call this array a... | 0 | 1,046 |
An API incompatibility was encountered while executing org.apache.maven.plugins:maven-shade-plugin:1.3.1:shade: java.lang.AbstractMethodError: null | <p>While trying to build an old version of Apache CXF 2.2.2, I kept getting an error produced by an <strong>XmlAppendingTransformer</strong> used by the <strong>maven-shade-plugin</strong>: unable to connect to get the DTD for <a href="http://java.sun.com/dtd/properties.dtd" rel="nofollow">http://java.sun.com/dtd/prope... | 0 | 1,091 |
MailChimp merge_vars what else is accepted apart from FNAME & LNAME? | <p>I have implemented a very basic sign up using email address+name, although I would now like to add extra data such as Phone Number, Website etc. </p>
<p>My question is where in the <a href="http://apidocs.mailchimp.com/api/1.3/" rel="noreferrer">API doc</a> can I find what else is supported apart from FNAME AND LNA... | 0 | 1,490 |
How to save relation in @ManyToMany in typeORM | <p>There are 2 entities named <code>Article</code> and <code>Classification</code>. And the relation of them is <code>@ManyToMany</code>.</p>
<p>Here's my question: How to save the relation?</p>
<p>My code as below:</p>
<pre><code> @Entity()
export class Article {
@PrimaryGeneratedColumn()
id: n... | 0 | 1,527 |
how to display an error message if email and password is not valid in firebase flutter? | <p>i have developed an login page,if the email and password matches from the database it successfully login's and moves to the new page,but if its wrong i want to display an error message email or password doesn't match.</p>
<p>Here's my code:</p>
<pre><code>class _AdminLoginState extends State<AdminLogin> {
... | 0 | 4,123 |
"Invalid form control" only in Google Chrome | <p>The code below works well in Safari but in Chrome and Firefox the form will not submit. Chrome console logs the error <code>An invalid form control with name='' is not focusable</code>. Any ideas?</p>
<p>Note that whilst the controls below do not have names, they should have names at the time of submission, popul... | 0 | 1,197 |
NullPointer Exception everytime I try to run my Junit Test Case | <p>Every time i try to run the junit test case , i get null pointer exception and also when i tried to hadle the exception everytime the function returns NULL value. Here is the code.</p>
<p><strong>RestaurantRepository.java</strong></p>
<pre><code>package org.springsource.restbucks;
import org.springframework.data.... | 0 | 1,100 |
SQL Server table to json | <p>I am looking to pull some columns (Col1 and 2) of a table and put in JSON format and also write some hardcoded JSON in each node, like this. </p>
<blockquote>
<p>{ "col1":"xxxx", "col2":"xxxx", "hardcodedString":"xxxx",
"hardcodedString":"xxxx", "hardcodedString":"xxxx",
"hardcodedString":"xxxx", "hardcodedSt... | 0 | 1,428 |
No serializer found when serializing one Object | <p>I'm trying to return an Object as JSON.
Using the <code>/user/id</code> endpoint, I want to display a User based on his Id.
When calling this controllerMethod I get the following Exception:</p>
<pre><code>InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyIni... | 0 | 2,016 |
Passing checkbox values of a form as JSON? | <p>Html code :</p>
<pre><code> <form class="form-horizontal" id="addpersons" style="padding:20px;">
<fieldset class="scheduler-border">
<!-- Form Name -->
<legend class="scheduler-border">Information</legend>
<!-- Text input-->
<div class="form-group">
<label class="c... | 0 | 1,581 |
jQuery validate Uncaught TypeError: Cannot read property 'nodeName' of null | <p>I have the following code:</p>
<pre class="lang-js prettyprint-override"><code>$(document).ready
(
function ()
{
$.validator.addMethod(
"lessThan",
function (value, element, param)
{
// bind to the blur event of the target in order to revalidate whenever the targe... | 0 | 1,995 |
Override a property defined in base class | <p>I have case where the class hierarchy is something like this,</p>
<pre><code> +---------------+
| UIElement |
|---------------| +----------------------+
| ... | | My Windows Application
| SomePropert{} | |--... | 0 | 1,716 |
Matplotlib Scatter - ValueError: RGBA sequence should have length 3 or 4 | <p>I am trying to plot a graph for my features and I keep getting this error:</p>
<pre><code>ValueError: RGBA sequence should have length 3 or 4
</code></pre>
<p>The code worked perfectly whenever I only had 6 types of shapes but now that i've increased it to 10 it wont work?</p>
<p>If I make <code>c=c</code> with <... | 0 | 1,102 |
Unable to retrieve metadata for models when adding a controller | <p>I'm learning ASP.NET MVC 5 on "Visual Studio 2015 Community" as a newbie. I'm trying to add a controller with Entity Framework models.</p>
<p><a href="https://i.stack.imgur.com/V3OxH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V3OxH.png" alt="enter image description here"></a></p>
<p>And an ... | 0 | 1,319 |
Maven: How to include ${project.version} in multi-module project | <p>I am using <code>maven 3.2.1</code></p>
<pre><code> mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/... | 0 | 1,251 |
Not able to install pandas using pip | <p>While installing <code>pandas</code> using pip, I'm getting error. Can someone please help me out with fixing this issue. I'm using python 3.4 on windows10.</p>
<pre><code>set build\lib.win-amd64-3.4\pandas/_version.py to '0.22.0'
running build_ext
building 'pandas._libs.hashing' extension
Traceback (mo... | 0 | 1,431 |
Ansible: understanding a compound conditional when statement | <p>Consider this trivial ansible playbook and associated output below. Why
does task 5 get executed? These tasks were run against debian. Task 1
fails as expected. So, why does and'ing it with
'ansible_lsb.major_release|int < 14' make it true? Does this have
something to do with operator precedence?</p>
<p>-jk</p>... | 0 | 1,261 |
Calculator Android Studio | <p>I am a beginner in android studio.I am trying to build a calculator here is my code but the buttons on my calculator are not working Here is the java code.The problem seems to be with clicklistener when i click the button on my android virtual machine the text doesnot changes and the operators are also not working w... | 0 | 3,178 |
How to render a static html page in ReactJS? | <p>I am trying to render an html page in react. I have tried multiple solutions but still, I am getting an error. Yes I know there are many questions similar to this one but none of those solutions has worked for me. I am using reactjs as front-end and simply trying to show a static html page.</p>
<p>html file is belo... | 0 | 1,214 |
Exception: This is not supported, use MenuItemCompat.getActionProvider() | <p>I'm trying to make "Share" button in Action Bar of Android Application.
Here my code:</p>
<pre><code>import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.view.LayoutInflater;
import android.view.Menu;
import ... | 0 | 1,573 |
Send end receive UDP in unity3d | <p>I want to send a package from my computer to the unity app installed on my smartphone. I refer from this tutorial <a href="http://forum.unity3d.com/threads/simple-udp-implementation-send-read-via-mono-c.15900/" rel="nofollow">http://forum.unity3d.com/threads/simple-udp-implementation-send-read-via-mono-c.15900/</a> ... | 0 | 3,687 |
Add Service Reference is generating Message Contracts | <p>When I import a given service using "Add service Reference" on Visual Studio 2008 (SP1) all the Request/Response messages are being unnecessarily wrapped into Message Contracts (named as --> "operationName" + "Request"/"Response" + "1" at the end).</p>
<p>The code generator says:</p>
<pre><code>// CODEGEN: Generat... | 0 | 1,307 |
Intellij warning: Return value of the method is never used | <p>I have some code that seems OK, but Intellij IDEA warns about many of its methods that <code>return</code> values that</p>
<blockquote>
<p>Return value of the method is never used</p>
</blockquote>
<hr />
<p>Here is the actual code below, a builder class.</p>
<pre><code>public static class StreamParserBuilder{
/... | 0 | 1,212 |
How to get Automatic Serial number column in the HTML Table | <p>I need to get serial number automatically in one of my column in the table.</p>
<p>Here is my sample code:</p>
<pre><code><%@ include file="/WEB-INF/pages/common/taglibs.jspf"%>
<link rel="stylesheet" href="<c:url value='/styles/tablesort.css'/>" />
<script type="text/javascript"
src="<... | 0 | 1,613 |
CXF + Problem writing SAAJ model to stream | <p>I trying to touch some service outside with CXF 3.0.0.
But got very strange behavior like sometimes it is working and sometimes it is failing with stacktrace attached (it can process multiple requests before failing). Request body is the same. Code for sending request is the same.</p>
<p>Any advice about this?</p>
... | 0 | 3,236 |
sending JSON to server using POST in android app | <p>I'm creating an android app to send JSON to a server-side php script and store it in a database</p>
<p>Here's the relevant code from the app</p>
<pre><code>public String POST(){
String url = "http://192.168.150.1/t2.php";
InputStream inputStream = null;
String result = "";
try {
HttpClient... | 0 | 1,393 |
Bootstrap validation on dynamically adding multiple fields | <p>I am using bootstrap v3.1.1 and I want to validate a form with bootstrap validation but who contains a button to clone 3 fields. With cloning everything works nice, but I can't validate the cloned fields. Here is my HTML Form:</p>
<pre><code><form id="myForm" action="myAction">
<div class="row" id="lin... | 0 | 1,243 |
Android SDK Installed, but adb.exe Missing | <p>After my <a href="http://forums.xamarin.com/discussion/55415/error-object-reference-not-set-to-an-instance-of-an-object#latest" rel="noreferrer">Visual Studio install suddenly lost the ability to deploy my Xamarin app to an android emulator</a>, I decided to uninstall EVERYTHING (Visual Studio, Xamarin, Android SDK)... | 0 | 1,145 |
Error: Projects containing version <unknown> deployment descriptors require XMI-format bindings or extensions files. ibm-web-bnd.xml | <p>I have upgraded editor from <strong>Rad 7.5 to 8</strong> and <strong>maven 2 to 3</strong>.
This happens just after <strong>importing existing maven projects</strong> in RAD 8, but I have no errors on any pom files. </p>
<p>The issue is with two xml files :</p>
<p>Projects containing version deployment descript... | 0 | 1,179 |
Determining the IP address of a connected client on the server | <p>I have a server running on one machine and have the port it uses forwarded to my router, and another machine running the client connecting to the server using my <em>ISP assigned external IP address</em> instead of the local address. This all works fine and it connects but When I check the address of the connected s... | 0 | 2,366 |
Using IPython / Jupyter Notebooks Under Version Control | <p>What is a good strategy for keeping <a href="http://ipython.org" rel="noreferrer">IPython</a> notebooks under version control?</p>
<p>The notebook format is quite amenable for version control: if one wants to version control the notebook and the outputs then this works quite well. The annoyance comes when one wants... | 0 | 2,479 |
install_name_tool to update a executable to search for dylib in Mac OS X | <p>I have a dynamic libray libtest.dylib that is installed in <code>/PATH/lib</code>, and an execution binary, myapp, that uses the dylib installed in <code>/PATH/bin</code>. </p>
<p>I can run <code>myapp</code> to find the dylib as follows (<a href="https://stackoverflow.com/questions/3146274/is-it-ok-to-use-dyld-lib... | 0 | 1,038 |
Cant login as root with no password to phpmyadmin | <p>Here is my config.inc.php file, since I upgraded to 11.10 all of a sudden I can't login as root with no password. I have set the directives correctly so this is rather confusing as to why it won't allow this anymore. Any help? </p>
<p>
<pre><code>$i = 0;
$i++;
if (is_readable('/etc/phpmyadmin/config-db.php')... | 0 | 1,416 |
Android SpeechRecognizer Network Error | <p>I'm trying to create a continous speech recognition in Android 4.4, simple displaying the spoken words in a TextView, like a dictate. I followed multiple tutorials, like <a href="https://github.com/fcrisciani/android-speech-recognition/blob/master/VoiceRecognition/src/com/speech/fcrisciani/voicerecognition/Continuou... | 0 | 4,485 |
New package not yet registered with the system. Error on a real phone | <p>I am working on an Android project in Eclipse and debugging / testing using my HTC Desire Z. I was coding away building a menu for my app when I started getting this error which is preventing me from continuing. Lots of people have had this error but none of the solutions that I found have worked for me. I tried ... | 0 | 1,400 |
How to create multiple log files in log4j2 using property file? | <p>I am using .property file to create log file in specific path but i am creating single file using that. Following is my code of property file:</p>
<pre><code> status = error
dest = err
name = PropertiesConfig
property.filepath= /ap
property.filename =${filepath}/ai.log
property.filename1 =${filepath}/file1.log
... | 0 | 3,384 |
how to take all tweets in a hashtag with tweepy? | <p>I'm trying to take every open tweets in a hashtag but my code does not go further than 299 tweets.</p>
<p>I also trying to take tweets from a specific time line like tweets only in May 2015 and July 2016. Are there any way to do it in the main process or should I write a little code for it?</p>
<p>Here is my code:... | 0 | 1,685 |
Alarm Manager - Scheduling multiple Non-repeating events | <p>In Android Alarm Manager, how can we schedule multiple alarms which are non-repeating and do not have fixed intervals to repeat? I cannot use 'setRepeating' function as the alarms don't have any repeating pattern.</p>
<p>I have the alarm times stored in Sqlite database table and the activity should pick the date an... | 0 | 1,036 |
When I open the spyder in anaconda, the spyder indicates that an error ocurred while starting the kernel in spyder | <p>When I open the Spyder in anaconda, the Spyder indicates that an error occurred while starting the kernel in Spyder. I have tried (in the terminal) two suggested commands from Spyder. However, after I restart anaconda and open Spyder, the same problem exists, so I don't know how to solve the problem. Thank you for y... | 0 | 2,232 |
How to call a WCF service using ksoap2 on android? | <p>Here is my code</p>
<pre><code>import org.ksoap2.*;
import org.ksoap2.serialization.*;
import org.ksoap2.transport.*;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class ksop2test extends Activity {
/** Called when the activity is first created. */
private stati... | 0 | 1,856 |
PhpExcel creates multiple worksheets | <p>hello I am trying to create an excel template by using phpexcel </p>
<p>For some reason image creates new worksheet instead of using current one.
so when I open excel file I've created there are <strong>worksheet</strong> and <strong>worksheet1</strong> instead of single one.</p>
<pre class="lang-php prettypr... | 0 | 1,185 |
Angularjs calling java functions | <p>I have one simple web application in JAVA and angularjs. Where users can add persons to app and remove them from mongo database. </p>
<p>My problem is, I don't know exactly how angular communicates with java and calls Java functions. For example if i want to delete a person from my database after a button click. </... | 0 | 1,060 |
GitLab reconfigure Error: executing action `create` on resource 'user[git]' | <p>I tried to install Gitlab <code>gitlab_7.4.3-omnibus.5.1.0.ci-1_amd64.deb</code> on my server.</p>
<p>And there is an error when I ran <code>sudo gitlab-ctl reconfigure</code>.</p>
<p>The is the error <code>log</code>:</p>
<pre><code>[2014-11-07T12:26:33+08:00] INFO: Forking chef instance to converge...
[2014-11-... | 0 | 1,921 |
Injecting Component name into tag in React | <p>This has been asked before, but the solutions don't seem to be working for me... maybe because I am conditionally rendering? The idea is that I have choices for the user to click on, and then the appropriate component is rendered onClick. So I want to inject the name of the component into the tag conditionally whe... | 0 | 1,024 |
Angularjs templateUrl file location not found | <p>I am locally developing a single page app. </p>
<p>I cannot seem to load an HTML file as a template using a simple custom directive in Angularjs. If I attempt to use raw html using the <strong><code>template:</code></strong> attribute, it works just fine but I have over 400 lines of code i need to use in this templ... | 0 | 1,712 |
Show image by click JButton | <p>I have a problem. I don't know how to display an image by clicking a JButton. </p>
<p>I have a class which can show and hide an image:</p>
<pre><code>/**
*
*/
package com.samples;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.Gr... | 0 | 1,912 |
How do I log ALL exceptions globally for a C# MVC4 WebAPI app? | <h1>Background</h1>
<p>I am developing an API Service Layer for a client and I have been requested to catch and log all errors globally.</p>
<p>So, while something like an unknown endpoint (or action) is easily handled by using ELMAH or by adding something like this to the <code>Global.asax</code>:</p>
<pre><code>pr... | 0 | 1,092 |
Cannot build python image – failure at pip install requirements | <p>With the following code in <code>Dockerfile</code>:</p>
<pre><code>FROM python:3.8-alpine
WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install --upgrade pip
RUN pip3 install -r requirements.txt
RUN python3 -m spacy download en_core_web_sm
EXPOSE 80
CMD [ "python3", "main.py" ]
<... | 0 | 4,505 |
An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier | <p>I upgrade existing android project to API level 31. I use Java as the language. I changed the build.gradle</p>
<pre><code>compileSdkVersion 31
defaultConfig {
applicationId 'com.app.app'
minSdkVersion 16
targetSdkVersion 31
versionCode 91
versionName '4.0.1'
testInstrumentationRunner "an... | 0 | 1,158 |
Error while using a newer version of glibc | <p>I am trying to install tensorflow on a linux server where I am just a user without the root permission. And I cannot transfer files to/from it as I ssh to it through a jump server. The system is as following :</p>
<p><code>Linux THENAME_OF_SURVER 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 ... | 0 | 1,668 |
MySQL Select JOIN 3 Tables | <p>I have three basic tables:</p>
<pre><code>tblUsers:
usrID usrFirst usrLast
1 John Smith
2 Bill Jones
3 Jane Johnson
pm_data:
id date_sent title sender_id thread_id content
2 2009-07-29 18:46:13 ... | 0 | 1,206 |
Is String Literal Pool a collection of references to the String Object, Or a collection of Objects | <p>I am all confused after reading the article on javaranch site by Corey McGlone, The author of The SCJP Tip Line. named Strings, Literally and the
SCJP Java 6 Programmer Guide by Kathy Sierra (co-founder of javaranch) and Bert Bates.</p>
<p>I will try to quote what Mr. Corey and Ms Kathy Sierra have quoted about St... | 0 | 1,170 |
C++11 Variadic Printf performance | <p>variadic template is introduced in c++11. And I found the printf function can be replaced using it.
However, cout is used in the implementation. I am wondering if it is possible to use something else to achieve type safe but not sacrifice too much performance.</p>
<pre><code>void safe_printf(const char *s)
{
w... | 0 | 5,329 |
httpclient redirect for newbies | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/3658721/httpclient-4-error-302-how-to-redirect">Httpclient 4, error 302. How to redirect?</a> </p>
</blockquote>
<p>I want to retrieve some information from my comcast account. Using examples on this site, I th... | 0 | 1,028 |
Fixed Top Banner + Navigation | <p>I'm wondering how I can make my website have a fixed top banner with it's horizontal navigation bar, so when people scroll through the site, the banner and navigation stays in its position, while the content will scroll as normal.</p>
<p>HTML:</p>
<pre><code><!doctype html>
<html lang="en">
<he... | 0 | 1,954 |
How to convert a date to UTC properly and then convert it back? | <p>I'm struggling with converting DateTime to UTC, the concept and all, something I'm not understanding correctly. </p>
<p>When I get a date time string, say "7/10/2013", I simply do </p>
<pre><code> Convert.ToDateTime("7/10/2013").ToUniversalTime();
</code></pre>
<p>This will record it as "7/10/2013 <strong>4:00:0... | 0 | 1,289 |
How to wait for page loading when using casperjs? | <p>I am trying to scrape a webpage which has a form with many dropdowns and values in the form are interdependent. At many point I need the code to wait till the refresh of the page complete. Eg after selecting an option from the list, the code should wait till the next list is populated based on this selection. It wou... | 0 | 1,408 |
BeanInstantiationException: Could not instantiate bean class | <p>I am having troubles while trying execute my Spring MVC application on Tomcat 7.</p>
<p>Here is my <strong>DSLRServletController</strong>:</p>
<pre><code> import main.java.com.springapp.mvc.dao.DSLRDAO;
import main.java.com.springapp.mvc.model.DSLR;
import main.java.com.springapp.mvc.pckg.DSLRForm;
imp... | 0 | 8,267 |
Custom Fonts with Support Library is not working on a real device | <p>I have used custom font with Support Library API 26. I have created font-family using style and add style to my text view. I found that font is going to set in Preview during design, but not working in android real devices. Below is my code and I have also attached screenshot. Thanks in advance.</p>
<p><strong>TextV... | 0 | 2,824 |
Laravel Auth: These credentials do not match our records | <p>I am really new to Laravel. And I am enjoying every bit of the framework. I have recently run into some problems with Authentication/Login.</p>
<p>User registration works fine, but when I try to login using the same credentials created during registration, the app throws up this error:</p>
<blockquote>
<p>These ... | 0 | 1,119 |
AccessDeniedException when deleting a topic on Windows Kafka | <p>I just installed Kafka (from Confluent Platform) on my Windows machine. I started up Zookeeper and Kafka and creating topics, producing to and consuming from them works. However, as soon as I delete a topic, Kafka crashes like this:</p>
<pre><code>PS C:\confluent-4.1.1> .\bin\windows\kafka-topics.bat -zookeeper ... | 0 | 2,100 |
Express.js Routing error: Can't set headers after they are sent | <p>I'm not really sure why I'm getting this error. It's a simple API built on express.js to be able to add and remove posts. The error occurs when I trigger the delete router. I've read that the error typically happens when there are two callbacks, however, I don't seem to be able find any double callbacks.</p>
<pre><... | 0 | 1,706 |
Hadoop streaming job failure: Task process exit with nonzero status of 137 | <p>I've been banging my head on this one for a few days, and hope that somebody out there will have some insight.</p>
<p>I've written a streaming map reduce job in perl that is prone to having one or two reduce tasks take an extremely long time to execute. This is due to a natural asymmetry in the data: some of the r... | 0 | 2,630 |
how to search a list of products using controller by Name or Id | <p>I want to load a list of products in view according to search. If user enters name or id the product should be shown. I tried but I'm only able to do with only one of these.</p>
<p>this is how i tried.</p>
<p>Controller</p>
<pre><code>public class SearchController : Controller
{
private storeEntities... | 0 | 1,212 |
Unit testing for EditTextView. How do I do it? | <pre><code>public class LoginActivityTest extends ActivityInstrumentationTestCase2<Login> {
Login mActivity;
private EditText username;
private EditText password;
@SuppressWarnings("deprecation")
public LoginActivityTest()
{
super("com.main.acco... | 0 | 1,444 |
R Shiny read csv file | <p>If I may, I have another question about reading a csv file while using Shiny.</p>
<p>I did spend quite a bit of time searching and rtfm ... my apologies if I missed something. Most answers seemed a bit too fancy, with user interaction when selecting a data file. I simply want R Shiny to read a data file (just the... | 0 | 1,236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.