title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Percentage width in a RelativeLayout | <p>I am working on a form layout for a Login <code>Activity</code> in my Android App. The image below is how I want it to look like:</p>
<p><img src="https://i.stack.imgur.com/5mrcx.png" alt="enter image description here"></p>
<p>I was able to achieve this layout with the following <strong>XML</strong>. The problem i... | 0 | 2,181 |
React Toggle Menu | <p>Im trying to build an Toggle right menu from this example : <a href="https://www.codementor.io/chrisharrington/how-to-build-a-sliding-menu-using-react-js-and-less-css-du107mpij" rel="nofollow noreferrer">how-to-build-a-sliding-menu-using-react-js"</a></p>
<p>the problem is React.createClass is deprecated so i have ... | 0 | 1,128 |
java.Lang.RuntimeException, setParameters failed in android(4.1.1) version | <p>I have developed an application which captures a photo when punch in at the time. It's working good on Acer tab(capturing image and saves in sdcard). Now when I run the same application in Samsung Galaxy(Android-4.1.1) My app is getting 'Unfortunately app has stopped' when click on punch in. and my code is here goes... | 0 | 1,483 |
v4 bootstrap full height sidebar | <p>I using the latest version of bootstrap and my siderbar is too short and not full height.<br>
You can view it from here: <a href="http://srv.sniperjum.com/sh1omi/bootstrap-dev/" rel="noreferrer">http://srv.sniperjum.com/sh1omi/bootstrap-dev/</a><br>
CSS: <a href="http://srv.sniperjum.com/sh1omi/bootstrap-dev/css/sty... | 0 | 1,025 |
line break and paragraph has doubled itself every time I save the document ckeditor adding extra spaces paragraph and line breaks after every saving | <p>Hi I have implemented the ckeditor in my asp.net and vb.net web application. After a lot of struggle its working fine. </p>
<p>But its adding a lots of line breaks and paragraphs (specially copying and pasting from word file ) after every save. The editor is placing extra <code><br/></code> in side the html ... | 0 | 2,263 |
cURL 'Content-length required' error... 3 days of searching, no luck | <p>Before you ask: I have already checked every similar question that already had an answer, and none of the proposed solutions work. So I'm hoping someone may be able to notice a mistake in my code. </p>
<p>When submitting a cURL post to Google, I am returned with a 411 error, "POST requests require a Content-length ... | 0 | 1,141 |
How do I reduce the line spacing between text in my Android layout? | <p>I'd like to decrease the line spacing between the text (User12, 5 movies, 2.5% improved) in the attached layout. </p>
<p><img src="https://i.stack.imgur.com/hYJVJ.png" alt="enter image description here"></p>
<p>Here's the xml below (I tried removing the singleLine="true" statement and tried setting it to false):</... | 0 | 1,109 |
Most efficient way to forward-fill NaN values in numpy array | <h2>Example Problem</h2>
<p>As a simple example, consider the numpy array <code>arr</code> as defined below:</p>
<pre><code>import numpy as np
arr = np.array([[5, np.nan, np.nan, 7, 2],
[3, np.nan, 1, 8, np.nan],
[4, 9, 6, np.nan, np.nan]])
</code></pre>
<p>where <code>arr</code> look... | 0 | 1,586 |
bad return type in lambda expression cannot convert Object to T | <p>I have this lazy iterator that pretty much receives a function and a string as parameters, goes to an API, receives a DTO from the API and converts that DTO to a domain object (in this case an Event). This Event, as seen below is made up of an Artist and several Tracks. My problem (not only here) is that, when in my... | 0 | 1,060 |
Binding DataGridCell ToolTip property to value of DataGridCell | <p>I have <code>DataGrid</code> and one of the <code>DataGrid</code> columns looks like this</p>
<pre><code><DataGridTextColumn Header="Value"
Binding="{Binding Value, Converter={StaticResource BooleanToYesNoConverter}}"
x:Name="_col2"
IsReadOnly="True"
CanUserSort="False"
... | 0 | 1,100 |
Re-loading Fragment from inside itself | <p>I have been trying to figure out how I would be able to refresh my Fragment from a menu button that is defined inside the Fragment. </p>
<p>I have looked at <a href="https://stackoverflow.com/questions/14097225/reload-fragment">this question here</a> but I was hoping for a more detailed example on how I would be ab... | 0 | 1,897 |
How to add SSH identity file keypair to JKS keystore | <p>One of the tasks of a Java application I am building is to connect to a remote SFTP server. In order to do that I have the certificate of the remote machine and a local identity (<code>id_rsa</code> and <code>id_rsa.pub</code> in the <code>.ssh</code> folder). This is working fine.</p>
<p>I'd like to put the certif... | 0 | 1,048 |
How do I set up a local python library directory / PYTHONPATH? | <p>In the process of trying to write a Python script that uses PIL today, I discovered I don't seem have it on my local machine (OS X 10.5.8, default 2.5 Python install).</p>
<p>So I run:</p>
<pre><code>easy_install --prefix=/usr/local/python/ pil
</code></pre>
<p>and it complains a little about /usr/local/python/li... | 0 | 2,032 |
No such file or directory in ...vendor/composer/ClassLoader.php:444 (Laravel) | <p>I'm writing a code in Laravel. When I try to make a post with a file in the form, it will throw the following exception:</p>
<blockquote>
<p>Got error 'PHP message: PHP Fatal error: Uncaught ErrorException: include(/var/www/vhosts/web2/httpdocs/vendor/composer/../../app/Exceptions/Handler.php): failed to open st... | 0 | 1,668 |
Angular 5: ERROR in src/app/app.module.ts(24,24): error TS2307: Cannot find module 'https' | <p>I am getting an error when running "ng serve" for Angular. I have seen some other issues with the same message number but they are for Angular 2, Angular 4.x, etc.</p>
<p>What can I do to resolve the problem?</p>
<p>Below is the <strong>app.module.ts</strong> file</p>
<p>TIA</p>
<p><strong>UPDATE-STILL HAVING TH... | 0 | 1,605 |
Serializing Name/Value Pairs in a Custom Object via Web Service | <p>This is a very complicated question concerning how to serialize data via a web service call, when the data is not-strongly typed. I'll try to lay it out as best possible.</p>
<p><strong>Sample Storage Object:</strong></p>
<pre><code>[Serializable]
public class StorageObject {
public string Name { get; set; }
... | 0 | 1,791 |
Dynamically changing a table cell background color in asp.net | <p>I have the following table row on my .aspx page: </p>
<pre><code><tr>
<td valign="bottom" style="width: 157px">Initial Requirements:&nbsp;&nbsp;&nbsp;&nbsp;</td>
<asp:Repeater ID="Repeater11" runat="server" DataSourceID="ObjectDataSource1">
<ItemTe... | 0 | 1,325 |
SASL LOGIN authentication failed: Invalid authentication mechanism on Rails using Postfix and Dovecot on Ubuntu 12.10 | <p>I have configured an ubuntu 12.10 server with Postfix and Dovecot. Nonetheless, I have SASL Login authentication problem when I try to send emails using a rails web application.</p>
<p>Using RoundCube Webmail, I get this log when I send an email:</p>
<pre><code>Feb 21 21:09:01 ks400054 postfix/qmgr[17883]: 61D4E11... | 0 | 5,156 |
ASP.Net error: “The type ‘foo’ exists in both ”temp1.dll“ and ”temp2.dll" (pt 2) | <p>Solution:</p>
<p>I had also moved ashx and asmx files at the same time as this. The Class attribute of the WebService/WebHandler directives were pointed at the wrong namespace. The moral of the story is to make sure you view the markup for <strong>all</strong> <code>as*x</code> files you change the namespace for by... | 0 | 1,622 |
Can't get client's real IP when using Nginx reverse proxy | <p><em><strong>Problem description:</strong></em><br/>
When I access Asp.net MVC Core 3.1 webpage that is supposed to return my remote client's ip address I instead get internal docker IP of Nginx container. I'm not sure if the problem is my code in asp.net core, the Nginx reverse proxy configuration not forwarding my ... | 0 | 1,141 |
Distributing multiple packages using setup.py for Python | <p>I'm trying to setup some Python packages that will share a common set of "utilities" but need to be able to distribute them as separate "packages." Assume the following structure:</p>
<pre><code>/packages
|-setup.py
|-__init__.py
|-MANIFEST.in
|-com
| |-__init__.py
| |-company
| ... | 0 | 1,149 |
Java keystore failed PKCS12 integrity checking but keytool works | <p>I have some PCKS12 certificate that is being served by two environments differently. When we upload it to a DEV environment, java can parse it. But it fails on a PRODuction. The server is Microsoft DotNet solution which is responsible for a certificate manipulation. The generated keystore has empty password. When I ... | 0 | 1,065 |
Best practice for handling onError and continuing processing | <p>I am new to RxJava but I am integrating it into a project that I am working on to help me learn it. I have run into a question about best practices. </p>
<p>I have a question about how to handle <code>onError</code> from preventing the stopping of the <code>Observable</code> processing. </p>
<p>Here is the setup... | 0 | 5,093 |
How to send mails using SmtpClient and DefaultNetworkCredentials to a distribution list that only allows authenticated senders? | <p>I'm trying to send automated emails from a C# console application from machines to clients all on the same domain via our internal Exchange 2007 server (using SMTP), but I'm hitting a snag with distribution lists that only allow authenticated senders. Basically the mails I'm sending are getting rejected by Exchange ... | 0 | 1,399 |
java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;) | <p>After I updated my Android Studio to 3.0 I am getting <code>No static method getFont()</code> error. The project on which I am working is on github, <a href="https://github.com/ik024/GithubBrowser" rel="noreferrer">https://github.com/ik024/GithubBrowser</a></p>
<pre><code>// Top-level build file where you can add c... | 0 | 3,456 |
How To Call JFrame from another Java class | <p>I am trying to do a simple Jform and call it from another class.
I want to use this Jframe in a server client application, but I don't know how to open the JFrame class from another class. </p>
<p>Like user has to chose</p>
<p>1- to open Jframe. </p>
<p>2- To Exit.</p>
<p>So What am I doing wrong?</p>
<p>Below ... | 0 | 3,183 |
How to rotate views on orientation change without recreating layout? | <p>This question has been asked before <a href="https://stackoverflow.com/questions/10913248/rotating-views-but-not-layouts-on-screen-orientation-change">here</a> but its answer is incorrect. I would like to rotate some views on screen orientation change, but I want to keep the layout unchanged. They should be rotated ... | 0 | 1,874 |
SciPy optimisation: Newton-CG vs BFGS vs L-BFGS | <p>I am doing an optimisation problem using Scipy, where I am taking a flat network of vertices and bonds of size <code>NNxNN</code>, connecting two sides of it (i.e., making it periodic), and minimising an energy function, so that it curls up to form a cylinder. (See the links below.)</p>
<p>Since I have the function... | 0 | 1,830 |
Twitter Bootstrap Use collapse.js on table cells [Almost Done] | <p>I am working on an accounts page that lists transactions (credits and debits).
I would like the user to be able to click on a table row and it expands showing more information.</p>
<p>I am using Twitter bootstrap and have looked over the documentation and this is the result I have</p>
<pre><code><table class=&quo... | 0 | 1,475 |
Mocking getter / setter method of Interface with Mockito | <p>I am trying to test my implementation with jUnit and Mockito and I am running into problems. Here is a very simplified example which explains the issue</p>
<p>Interface KeyValueInterface </p>
<pre><code>public interface KeyValueInterface {
public abstract String getKey();
public abstract void setKey(Stri... | 0 | 1,458 |
How to use iOS (Swift) SceneKit SCNSceneRenderer unprojectPoint properly | <p>I'm developing some code using SceneKit on iOS and in my code I want to determine the x and y coordinates on the global z plane where z is 0.0 and x and y are determined from a tap gesture. MY setup is as follows:</p>
<pre><code> override func viewDidLoad() {
super.viewDidLoad()
// create a new scene
... | 0 | 1,962 |
'object' does not contain a definition for dynamic | <p>I am using below describe method. That return dynamic result. </p>
<pre><code>public static dynamic GetCouponDetailsbyCouponID(Guid couponID)
{
using (var loEntities = new Entities())
{
dynamic nonWinnerGift = (from nw in loEntities.CorporateNonWinnerGift
... | 0 | 1,225 |
A resource was acquired at attached stack trace but never released - Error | <p>I'm not sure why I am getting this error, 2 out of 5 times I set the wallpaper using the emulator, I get the error -
"A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks."</p>
<p>When I set the wallpaper using my phone, it works perfe... | 0 | 1,387 |
JSON Restful service. Could not cast or convert from System.String to System.Collections.Generic.List | <p>I have a problem serializing and deserializing json. I have searched for an answer and although Ive seen the same problem elsewhere, non of the answers have helped me. I'm having the same problem using newtonsoft or the javascriptserializer.</p>
<p>My web method in the rest service</p>
<pre><code>[OperationContrac... | 0 | 1,073 |
how to install postgresql for mac os x | <p>I use homebrew,write this order to terminal.app to install postgresql.</p>
<pre><code>`brew install postgresql`
<pre>==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
curl: (7) couldn't connect to host
Trying a mirror...
==> Dow... | 0 | 1,445 |
Request permissions in main activity | <p>I have an application which records and stores audio on the device. My main activity contains a bunch of buttons to other activities. These other activities are the ones that do the actual audio recording. </p>
<p>My main activity is set up as follows:</p>
<pre><code>public class MainActivity extends AppCompatActi... | 0 | 2,873 |
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available | <p>I would like to use Python3.8.x on Google Cloud Compute Engine.</p>
<p>First, I created an instance with <code>gcloud</code> command.</p>
<pre><code>gcloud compute instances create \
pegasus-test \
--zone=asia-northeast1-b \
--machine-type=n1-highmem-8 \
--boot-disk-size=500GB \
--image-project=ml-images \... | 0 | 2,934 |
Capture live video from webcam using Java an jmf | <p>For capture the live video from web using java and jmf i have written the below code , I plugin the usb webcam also but it gives <code>java.util.NoSuchElementException</code><br>
anyone please help me</p>
<pre><code>import java.util.Vector;
import javax.media.*;
import javax.media.format.AudioFormat;
import javax... | 0 | 1,292 |
Simple (Twitter + Streaming API + Java + OAuth) example | <p>In my quest to create a simple Java program to extract tweets from Twitter's streaming API, I have modified this (<a href="http://cotdp.com/dl/TwitterConsumer.java" rel="nofollow noreferrer">http://cotdp.com/dl/TwitterConsumer.java</a>) code snippet to work with the OAuth method. The result is the below code, which ... | 0 | 2,722 |
TypeError: Image data can not convert to float on plt.imshow() | <p>I am trying to segment hand from the depth image attached in this question. In the process, I wrote the below code which process the histogram of the image first and then does median filtering on the processed image. But this code is giving an error continuously even after trying hard to solve it. </p>
<pre><code>... | 0 | 1,591 |
Convert string to JSON in Freemarker | <p>Any ways on how we can convert <code>VALID JSON STRING</code> to actual JSON(sequence) in <code>freemarker</code>. I mean this string is actually returned by a <code>JSON.stringify()</code> call.</p>
<p>I follow what this <a href="https://stackoverflow.com/questions/13087436/freemarker-parse-a-string-as-json">post</... | 0 | 1,550 |
DateTimeFormatter.ISO_OFFSET_DATE_TIME not working as expected | <p>Based on this Java Date Time - <a href="https://www.logicbig.com/how-to/code-snippets/jcode-java-8-date-time-api-offsetdatetime-format.html" rel="nofollow noreferrer">OffsetDateTime.format() Examples</a> article and this official documentation for <a href="https://docs.oracle.com/javase/10/docs/api/java/time/format/... | 0 | 1,207 |
How to use google maps without api key | <p>Hi i am using this code to use get-directions in google maps. but when i run this from other machines it is showing the error invalid api key. how to use this same map without an api key.</p>
<pre><code><script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAuPsJpk3... | 0 | 1,282 |
how to pass checkbox value(checked/unchecked) to controller as href parameter in jsp | <p>I am a beginner in jsp.I want to get data from database and show checked on a checkbox depending on db value i.e. 0 or 1.This is working for me.But I also want o that when I check or uncheck the checkbox it will reset value and pass it to controller as a href parameter.
here is my jsp:</p>
<pre><code><%@ taglib ... | 0 | 1,396 |
Invalid Terraform AWS provider credentials when passing AWS system manager parameter store variables | <p><strong>Background:</strong></p>
<p>I'm using an AWS CodeBuild buildspec.yml to iterate through directories from a GitHub repo to apply IaC using Terraform. To access the credentials needed for the Terraform AWS provider, I used AWS system manager parameter store to retrieve the access and secret key within the buil... | 0 | 1,510 |
refresh google map javascript ajax | <p>I am doing two html5/javascript apps with phonegap for android, and I have them both communicating through php with ajax, in both of them I am using the google maps api, and I need to know in both of them where the other guy is, while one is moving and another is waiting for him, then I have 2 questions:</p>
<ol>
<... | 0 | 1,589 |
php copy function, failed to open stream: Permission denied | <p>I am trying to upload image on server, below is script that I found on Internet and in worked locally, when I deployed code and database is gives me "failed to open stream: Permission denied" error.</p>
<pre><code><?php
//define a maxim size for the uploaded images in Kb
define ("MAX_SIZE","5000");
//This fun... | 0 | 1,199 |
`add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError) OR Gem.source_index is deprecated | <p>I am using rails 2.3.11, ruby-1.9.2-p320.
Trying to run script/server but getting this error :-</p>
<pre><code>system@admin:~/apps/app_name/trunk$ script/server
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
/home/system/.rvm/gems/ruby-1.9.2-p320@gemset_name/gems/rails-2.3.11/l... | 0 | 6,565 |
Plotly: How to define the structure of a sankey diagram using a pandas dataframe? | <p>This may sound like a very broad question, but if you'll let me describe some details I can assure you it's <strong><em>very specific</em></strong>. As well as discouraging, frustrating and rage-inducing.</p>
<hr>
<p>The following plot describes a scottish election and is based on code from <a href="https://plot.l... | 0 | 3,615 |
(Error code: ssl_error_rx_record_too_long) Tomcat+OpenSSL | <p>I am trying to enable SSL in my Tomcat.
But when I start Tomcat and go to <a href="https://localhost:8443" rel="noreferrer">https://localhost:8443</a> I see</p>
<pre><code>An error occurred during a connection to localhost:8443.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_... | 0 | 1,794 |
The bundle XYZ could not resolved. Reason: Missing Constraint: Import-Package: ABC; version="1.0.0" error in headless RCP standalone | <p>I'm working on <a href="http://www.developertesting.com/archives/month200508/20050823-HeadlessHelloWorldInEclipse.html" rel="noreferrer">standalone headless RCP</a>. It works without problem when I execute the application and product in eclipse IDE, but when I export and execute it, I got this error in the log file.... | 0 | 1,464 |
Android getResources().getStringArray() variables | <p>I have an xml file, where there are strings and string-arrays. I have a class where I click on a listitem, and in the other class I list other items. In the xml there are string which names are the clicked items modified name, and the values are the string-arrays name. I have found a solution how to add a variable t... | 0 | 1,059 |
net::ERR_FILE_NOT_FOUND file:///android_asset/www/index.html was not found | <p>I have a cordova app (that i'm building for Android) that I have signed using the keytools on the command line and installed this onto my Android device.</p>
<p>Whenever I open the app on my phone I get the following error:</p>
<pre><code>Application Error
net::ERR_FILE_NOT_FOUND (file:///android_asset/www/index.h... | 0 | 1,169 |
Laravel redirect to specific route when user is not logged | <p>If i go to <a href="http://www.yourdomain.com/admin/login" rel="nofollow noreferrer">http://www.yourdomain.com/admin/login</a> i see my login page.</p>
<p>If i go to <a href="http://www.yourdomain.com/admin/example" rel="nofollow noreferrer">http://www.yourdomain.com/admin/example</a> i have the redirect to <a href... | 0 | 1,371 |
Bootstrap Tab view content is not showing | <p>I have implemented tab using bootstrap, there are 4 tabs and each of them has contents in them, but while I am executing the code all the contents of that tab along with all other tabs content are showing under the first tab and the other tabs content are blank.here is the code so far:</p>
<p><div class="snippet" d... | 0 | 2,125 |
PHP foreach loop through multidimensional array | <p>I have an multidimensional array, how can I use it? I want to use each separate array in a <code>for</code> loop.</p>
<p>What I want to achive is to be able to put each part in my database like
entry in db no. 0 -> 1 and 4
entry in db no. 1 -> 5 and 6
entry in db no. 2 -> 1 and 4 and 5 and 6</p>
<p>I have this cod... | 0 | 1,105 |
React.js: Non-CSS animations | <p><a href="http://facebook.github.io/react/docs/" rel="noreferrer">React documentation</a> doesn’t have anything about handling animations that are not CSS transitions, such as animation of scroll position and SVG attributes.</p>
<p>As for CSS transitions, there is <a href="http://facebook.github.io/react/docs/animat... | 0 | 1,440 |
.Net Core Reset Password Token and Identityserver 4 token invalid | <p>My applications and APIs are protected using IdentityServer 4.</p>
<p>I have a centralized API for user management (registering new users, updating, deleting and resetting passwords). The token generated by this api will be used by identityserver to reset the user's password.</p>
<p><em>Problem is I always get inv... | 0 | 1,510 |
Transform output file does not exist | <p>my module can't build because of error below:</p>
<p>What went wrong:</p>
<blockquote>
<p>Could not resolve all files for configuration ':cordova-plugin-connectsdk:Connect-SDK-Android:debugCompileClasspath'.</p>
<p>Failed to transform file 'Java-WebSocket-1.3.7.jar' to match attributes {artifactType=android... | 0 | 2,133 |
Java - Convert image to Base64 | <p>I'm having a problem while converting a gif image to a base 64 string.</p>
<p>When I converts it, the code adds me like 100,000 AAAAAA whereas the image is really small!</p>
<p>Here is my code:</p>
<pre><code>import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWr... | 0 | 2,816 |
JTextPane: How to set the font size | <p>Please have a look at the following code</p>
<pre><code>import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.eve... | 0 | 2,267 |
Docker->Maven->Failsafe->Surefire starting fork fails with "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?" | <p>As per title: I'm trying to run Maven automated test from Jenkins slave that is containerized and after battling this for a week now I'm running out of ideas. It works as is on AWS instance with 4G of RAM but in unrestricted (on RAM and CPU) container it fails with error like below. The only circumstances when it ru... | 0 | 1,890 |
Display pdf file from local disk in Laravel 5? | <p>I have a Laravel 5.5 app where users with administrator privileges can upload files. After they upload the files I'd like them to be able to view the file in the administrator dashboard.</p>
<p>I have a <strong>DocumentController.php</strong> that handles the file upload to the local disk:</p>
<pre><code>public fu... | 0 | 1,125 |
How to implement autocompletetextview with listview? | <p>I am getting response from server and display it using listview and it works fine,now what I am trying is i added autocompletetextview to search items by name,but when i run my app it crashes and showing errors..i already ask this </p>
<p>Tab1Activity.java</p>
<pre><code> public class Tab1Activity extends ListA... | 0 | 3,693 |
Unable to acquire a connection from driver [null], user [null] and URL [null] postgres | <p>Good Morning</p>
<p>I use Eclipse link and JPA, I want to test a small native query and i have an error.
Would you please help me,
I searched in this site and in others and I didn't found a solution.
thank you.</p>
<p>Entity Class</p>
<pre><code>package entites;
import java.io.Serializable;
import javax.persiste... | 0 | 2,600 |
Using multiple modal forms in one component | <p>I have a page with many buttons, and would like each button to open its own modal form when clicked. I have a problem where using the same form/modal multiple times doesn't result in unique forms. For example, clicking the first button and then typing "asdf" into the form will also populate the form controlled by th... | 0 | 2,058 |
drag and drop cell from datagridview to another | <p>I have 2 datagridviews and i want to copy cells from the datagridview1 to datagridview2 (a cell at a time).I´m able to select the cell I want and drag it to the datagridview2 but the value is not showing...
I spent most of the night looking for a solution...Probably is a simple answer or I just need to sleep , but p... | 0 | 1,346 |
Get user birthday with Google API | <p>I am using the Google API to help users login to my website. I can extract their name, locale, profile picture, gender and ID during the login with the API but I can't get their birthday. </p>
<p>How would I go about getting their birthday with the API?</p>
<p>The code:</p>
<pre><code>session_start();
$google_cli... | 0 | 1,072 |
Android: error: Error parsing XML: not well-formed (invalid token) | <p>There's an error in my activity_main.xml on line 13 (Wich you can see below). It says "Error parsing XML: not well-formed(invalid token)". In addition to that my R.java has killed itself. I've found ways to fix it, but they won't work (At least I think it's because of that) until this error is fixed. <strong>Thanks ... | 0 | 1,491 |
Rollup Error: 'default' is not exported by node_modules/react/index.js | <p>I have a project where I use webpack and want to switch to rollup.js but I have trouble regarding the plugin @rollup/plugin-commonjs.</p>
<h2>My rollup.conf.js</h2>
<pre class="lang-js prettyprint-override"><code>import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
impor... | 0 | 1,341 |
After Google Play Service update to version 13 I got an error | <p>How can I resolve this error?</p>
<blockquote>
<p>Caused by: java.lang.illegalargumentexception
11-01 11:08:12.845: E/AndroidRuntime(28885): Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must hav... | 0 | 1,716 |
Flutter How to refresh StreamBuilder? | <p>Consider the following code:</p>
<pre><code>StreamBuilder<QuerySnapshot> _createDataStream(){
return StreamBuilder<QuerySnapshot>(
stream: Firestore.instance.collection("data").limit.(_myLimit).snapshots(),
builder: (context, snapshot){
return Text(_myLimit.toStr... | 0 | 1,500 |
Android StackOverflow Error | <p>The following is my stacktrace. I looked through it but it just shows a bunch of views and frankly I'm not too sure what a stackoverflow error is exactly. I read on some of the other questions that some solved theirs through iterations (again, no idea what those are). For the basic layout of the app this is coming f... | 0 | 3,978 |
Error creating bean with name 'entityManagerFactory' defined in class path resource (Invocation of init method failed) | <p>When I try to run my spring-boot project with hibernate and MySql, I got following error.</p>
<pre><code>Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-07-10 15:15:32.474 ERROR 12112 --- [ restartedMain] o.s.boot.SpringApplication ... | 0 | 3,920 |
Jwt Unable to valid issuer or audience | <p>This is my token decoder. When I try to decode it, my principal ends up being null thus leading to this error: </p>
<blockquote>
<p>'IDX10208: Unable to validate audience.
validationParameters.ValidAudience is null or whitespace and
validationParameters.ValidAudiences is null.'</p>
</blockquote>
<p>When I de... | 0 | 1,659 |
Instant vs ZonedDateTime | <p>I just do not quite understand which one of those two I should use for the following example:</p>
<p>We have an <code>OfferEntity</code> which has a member <code>availableDay</code> which is the date at which the offer is available. </p>
<p>Now, the table will look something like this:</p>
<pre class="lang-sql pr... | 0 | 1,323 |
AttributeError: 'SecureCookieSession' object has no attribute 'Session' | <p>I am getting the Error <code>AttributeError: 'SecureCookieSession' object has no attribute 'Session'</code>. I want to create token based authentication. I am getting token through through some servie, which is not my concern, but problem is that I am getting attribute error.</p>
<pre><code>from flask import sessio... | 0 | 1,508 |
setModel on a JTable when the DefaultTableModel has changed | <blockquote>
<p>TableModelListener defines the interface for an object that listens to
changes in a TableModel.</p>
</blockquote>
<p><a href="http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/event/TableModelListener.html" rel="nofollow">TableModelListener</a> </p>
<p>How to apply this to the JTable, so th... | 0 | 1,939 |
Tracking whether sent mail is read or not | <p>I have searched many articles and have found some code, but it's not working for me.</p>
<p>My index.aspx.cs page code is: </p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
if (checkIfRequested(this.Context.Request))
{
//receiver had already requested the image, he... | 0 | 1,197 |
Excel automation: Range.Find | <p>I want to implement <a href="http://www.vbaexpress.com/kb/getarticle.php?kb_id=82" rel="nofollow">this</a> method in my c# program. But I am having trouble filling in the appropriate parameters in a line like</p>
<pre><code>long FirstRow = myWorksheet.Cells.Find(
What:="*",
After:=Range("IV65536"),
LookIn:=... | 0 | 1,870 |
ASP.NET uploading a file to Amazon S3 | <p>I am in the process of uploading images to Amazon S3, however i keep getting the error <strong>"Please specify either a Filename, provide a FileStream or provide a ContentBody to PUT an object into S3."</strong></p>
<p>Basically i am uploading an image from a fileupload control and then hitting the code below. It u... | 0 | 1,789 |
How to Print the Particular bootstrap Div | <p>I would like to <strong>print</strong> a <strong>bootstrap div</strong>.</p>
<p>It is properly displayed in web browser but when I click on the print button then at print preview, the elements are floating and are not properly displayed.</p>
<p>what should I do to solve this problem ?</p>
<p><strong>Div which I w... | 0 | 1,344 |
GlassFish v3 and glassfish-maven-plugin (Mac) | <p>I'm trying to use the glassfish-maven-plugin (<a href="https://maven-glassfish-plugin.dev.java.net/" rel="noreferrer">https://maven-glassfish-plugin.dev.java.net/</a>) with GlassFish v3 (I'm on a Mac and using Eclipse) and I can't seem to get my web app to deploy. I keep running into:</p>
<blockquote>
<p>The Mast... | 0 | 1,852 |
There is already an object named in the database | <p>Update-Database failed from Package Manager Console.
I've used Entity Framework 6.x and code-first approach.
Error is</p>
<p><strong>"There is already an object named 'AboutUs' in the database."</strong></p>
<p>How can I solve this problem?</p>
<pre><code>internal sealed class Configuration
: DbMigrationsCon... | 0 | 2,850 |
Why rotation-invariant neural networks are not used in winners of the popular competitions? | <p>As known, modern most popular CNN (convolutional neural network): VGG/ResNet (FasterRCNN), SSD, Yolo, Yolo v2, DenseBox, DetectNet - are not rotate invariant: <a href="https://stackoverflow.com/questions/40952163/are-modern-cnn-convolutional-neural-network-as-detectnet-rotate-invariant">Are modern CNN (convolutional... | 0 | 1,289 |
Adding grid over Fabric.js canvas | <p>I just started using Fabric.js (I have to say, I'm impressed).</p>
<p>I want to add a grid over the fabric objects. In the following code, I am putting my grid canvas right over on the Fabric canvas. The problem here is that, I now cannot move my fabric objects!</p>
<pre><code><!DOCTYPE html>
<html>
&l... | 0 | 1,112 |
maven - read version number from property file | <p>I`m trying to read my build version number from a text file, and then assign it to the generated package name: myRelease-1.1.1.apk where the build number is manually set into a property file
version.number=1.1.1
How can I overload ${version.number} as set in pom.xml by the one in the property file?</p>
<p>Edit: mor... | 0 | 1,218 |
How to make a list item conditional in Cloud Formation template? | <p>I have the following cloud formation template that creates a code pipeline. The pipeline has three stages:</p>
<pre><code> Stages:
-
Name: "Source"
Actions:
-
Name: "Source"
ActionTypeId:
Category: "Source"
Owner: "ThirdParty"
Version:... | 0 | 1,260 |
JPA/Hibernate persist does not appear to work | <p>I'm using JPA (Hibernate implementation) to save objects to the database. Selecting works fine, but for some reason, saving doesn't work. I don't get any errors, but the database doesn't get changed either. This goes for both new entities and existing ones.</p>
<pre><code> EPayment pay = new EPayment();
pay.... | 0 | 1,753 |
"gem install rails" fails with DNS error | <pre><code>$ rvm use
Using /home/owner/.rvm/gems/ruby-2.1.2
$ gem install rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.network" port 80 (http://your-dns-needs-immediate-attention.network/quick/Mars... | 0 | 2,710 |
ScrollView inside a fragment with TabLayout is not scrolling, why? | <p>im a noob in android development and i was in a introduction course of Cryptography so i decide combine both and make this app. I use a TabLayout for making a tab for each cipher method (RSA and XOR), and one tab for Instructions and Help. Everything was working perfectly until i add a scrollView in the Help Tab wit... | 0 | 6,580 |
How can I decode a google OAuth 2.0 JWT (OpenID Connect) in a node app? | <p>I'm having a heck of a time here trying to use google OAuth to authenticate users in my node express app. I can successfully do the OAuth, which returns a response like so:</p>
<pre><code>{
access_token: 'token string',
id_token: 'id.string',
expires_in: 3599,
token_type: "Bearer"
}
</code></pre>
<p>This a... | 0 | 1,320 |
AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF' on Heroku | <p>I am getting this error when I deploy to Heroku:</p>
<pre><code>2014-05-07T11:50:06.927955+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=staging.mysite.com request_id=eead056c-f89d-4fcd-b282-71a023631a71 fwd="80.237.234.148" dyno=web.1 connect=1ms service=4ms status=500 bytes=238
2014-05-07T11:50:... | 0 | 4,728 |
AFNetworking Upload image from iOS to API | <p>I'm having trouble uploading an image with data. This code allows me to upload data just fine:</p>
<pre><code> NSURL *url = [NSURL URLWithString:@"my_base_url"];
AFHTTPClient *client = [[AFHTTPClient alloc]initWithBaseURL:url];
//depending on what kind of response you expect.. change it if you expect XML
[clie... | 0 | 1,519 |
The instance of entity type cannot be tracked because another instance of this type with the same key is already being tracked | <p>I have a Service Object <code>Update</code> </p>
<pre><code>public bool Update(object original, object modified)
{
var originalClient = (Client)original;
var modifiedClient = (Client)modified;
_context.Clients.Update(originalClient); //<-- throws the error
_context.SaveChanges();
//Variance c... | 0 | 1,257 |
Excel VBA - How To Deselect A Previosuly Selected Item In A Listbox | <p>I have a userform (uf1_assess_sched) in my Excel VBA project that has a listbox (uf1_listbox3).</p>
<p>When the user selects a single item in this listbox, a second userform (group_1) is opened allowing the user to enter information specific to the selection she made on the first userform. Should the user wish to a... | 0 | 4,313 |
HibernateException: Flush during cascade is dangerous | <p>Sometimes I get a malformed exception in my application. Exceptions come one after another as the following:</p>
<pre><code>Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess... | 0 | 3,499 |
Hamburger Menu Xamarin Forms (MasterDetailPage) | <p>I'm new enough to use Xamarin, in my Xamarin Forms project I created a Master-Detail Page and in the ListView that represents the menu I wanted to put Title and Icon, for icon images I have to insert each icon in all device projects?</p>
<p>And I also have a small problem, when I click on a menu item and navigate t... | 0 | 2,178 |
CodeIgniter remove index.php apache mod_rewrite | <p>I'm using CodeIgniter on a Windows machine using the Zend Comunity Server with apache. My apache is properly configured to handle .htaccess directives and mod_rewrite is enabled (httpd.conf): </p>
<pre><code><Directory />
Options FollowSymLinks
AllowOverride FileInfo
Order deny,allow
Deny from... | 0 | 1,085 |
ASP.NET Gridview ItemTemplate Access in CodeBehind | <p>I am having trouble accessing an asp.NET HiddenField from a Gridview ItemTemplate in the codebehind. I need to be able to read the values that these hiddenfields contain so that I can execute the delete method.
The code is as follows</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="Memb... | 0 | 1,465 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.