title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Adding long press gesture recognizer in Xamarin forms | <p>Could you please let me know how can I recognize long press gesture in Xamarin Forms application?</p>
<p>This is my xaml page which i created referring to this thread: <a href="https://github.com/akgulebubekir/Xamarin.Forms.DataGrid" rel="nofollow noreferrer">Xamarin.forms.DataGrid</a></p>
<pre><code><ContentPa... | 1 | 1,544 |
Scala (Spray/Akka) : The request content was malformed: an implementation is missing | <p>I have a problem using Spray to get the post body:</p>
<p>When I send in a Json call I get "The request content was malformed: an implementation is missing"</p>
<p>The Json I send is the Json created in the request (val test)
As mentioned in the code I got the implementation from <a href="https://stackoverflow.com... | 1 | 1,933 |
Multiple Data Tables in one Component [Angular Material Tables] Sorting, Filtering and Pagination | <p>I wonder if anyone has ever solved this problem!</p>
<p>I am currently developing an AdministrationComponent (which is something like a singleton for CRUD operations), which is meant to manage the data on 4 different tables by sending the operations via HTTP request (encapsulated in a service) to the back-end, whi... | 1 | 3,534 |
How to extract data from website with VBA Excel? | <p>I need to extract the information from <a href="https://www.te.com/usa-en/search.html?q=917695-1&type=products" rel="nofollow noreferrer">TE website</a>. The data include the fields and the table shown in the picture.</p>
<p><img src="https://i.stack.imgur.com/GFxPb.jpg" alt="Website"></p>
<p>I read some examp... | 1 | 1,604 |
How to break and display one ArrayList into multiple table columns | <p>I have a servlet which loads a properties file and contains a list of 100 test case names into an ArrayList object. After loading the servlet forwards to a JSP which displays the list in a table. The list is long so I would like some elegant way to display it in a table so that it breaks up into, for example, three ... | 1 | 4,002 |
Trying to log in to a website through a C# program | <p>I'm new to C# so I looked for this topic in other questions but they weren't for me. What I am trying to do is I currently try to login to my school's servers using a c# program(Which I'm trying to implement). What I'm trying to do is I know the code of the page, so I am using web browser of c# to navigate then I ju... | 1 | 1,512 |
how to save file in background thread using Swift? | <p>I'm trying to make an application that uses a web service to get some data from a directory, but I also need to save the data into the device, include images, to do so I'm using <strong>Alamofire</strong> and <strong>AlamofireImage</strong> framework for consuming the webservice. I save the generated objects in a da... | 1 | 1,957 |
Compiling GCC 6.1 on Ubuntu 16.04 | <p>Command I have used the following commands to build GCC 6.1:</p>
<pre><code>sudo apt-get -y install libmpfr-dev libgmp3-dev libgmp-dev libmpc-dev flex bison libisl-dev
wget http://nl.mirror.babylon.network/gcc/releases/gcc-6.1.0/gcc-6.1.0.tar.bz2 -O - | tar xjvf -
cd gcc-6.1.0
./configure --enable-shared --disable-... | 1 | 1,560 |
Nokogiri 1.6.8 is installed but gives error for previous Nokogiri when running "bundle install" | <p>We had a server shutdown and Redmine stopped working, so I had to reinstall Bundler and run <code>bundle install</code>.</p>
<p>While running <code>bundle install</code> I get this error:</p>
<pre><code>c:\APPS\webapps\redmine-3.2.0>bundle install
Fetching gem metadata from https://rubygems.org/.............
Fe... | 1 | 1,161 |
How to set color code as per Json Object | <p>I have following Json Response,I am trying to set color as per DisplyText,but it only set last color code to whole String,</p>
<p><a href="http://pastie.org/10850282" rel="nofollow">JSON Response</a></p>
<p>JAVA Code</p>
<pre><code> ch_list = new ArrayList<String>();
color_list=new A... | 1 | 3,571 |
bundle install Library not loaded error | <p>Environment: </p>
<ul>
<li>Rails 3.2.11 </li>
<li>Heroku bamboo-mri-1.9.2</li>
<li>Using RVM</li>
<li>ruby-1.9.2-p290</li>
</ul>
<p>my .rvmrc is configured to use ruby-1.9.2-p290</p>
<p>When running the <code>bundle install</code> command, I am getting this:</p>
<pre><code>/Users/joel/.rvm/rubies/ruby-1.9.2-p290... | 1 | 2,698 |
Vuetify v-data-table with vuex. Not rendering in unit test | <p>vue 2.5.2
vuex 3.0.1
vuetify 1.0.16</p>
<p>I'm creating vuex+vuetify application.</p>
<p>Rendering data is in the vuex store.
It uses v-data-table with pagination.</p>
<p>The component code is</p>
<pre><code><template>
<v-container>
<v-text-field id="shopName" v-model="editedItem.name" requi... | 1 | 1,267 |
Flask register_blueprint error (Python) | <p>I have a project on Flask. And when I include Blueprint on my Flask app I have errors. The code is from a book, Miguel Grinberg about Flask.</p>
<p>Project tree:</p>
<pre><code>.
├── app
│ ├── __init__.py
│ ├── main
│ │ ├── errors.py
│ │ ├── __init__.py
│ │ └── views.py
│ ├── static
│ │ ├── s... | 1 | 1,573 |
Binding the Width of columns to DependencyProperty with a IValueConverter | <p>I am trying to make the width of a column in a Grid element variable. For this I have a DependencyProperty "ItemWidth" and bind the Width-element from the Button to this DP. Because of the TwoWay-Binding, I need a converter that converts doubles to DataGridLength.</p>
<p>My MainWindow.xaml looks like this:</p>
<pr... | 1 | 1,540 |
Hyperledger Fabric: check if the transaction has been committed to the ledger | <p>I have three client application that uses respectively the Java, Node.js and Go SDKs to interact with my blockchain Fabric. Using them, I can query and update the ledger successfully.</p>
<p>Now I want to measure the latency during update of the ledger. So, I was thinking to do it taking a timestamp before the subm... | 1 | 1,477 |
UnicodeDecodeError error when loading word2vec | <p><strong>Full Description</strong></p>
<p>I am starting to work with word embedding and found a great amount of information about it. I understand, this far, that I can train my own word vectors or use previously trained ones, such as Google's or Wikipedia's, which are available for the English language and aren't u... | 1 | 1,867 |
How to refresh Android ListView in ViewPager? | <p>I want to refresh ListView's within a ViewPager after i delete, add or update from a custom dialog. requery worked for me for update but after some time it throw's a exception.. I tried notifyDataSetChanged but nothing happens... i use simplecursoradapter as adapter</p>
<p>Can any one tell me how to achieve this?</... | 1 | 2,501 |
Python - progress bar for copying and moving files | <p>I create a program which copy and move file to different direction. I was thinking that it would be interesting to add a progress bar to a whole process.
How i should approach to it?</p>
<p>My script do a few more thinks:</p>
<p>Sort files with no .mdi file to a folder "missing mdi"</p>
<p>I used distutils.dir_ut... | 1 | 1,075 |
Why does a React component's onClick event handler not fire when the "display" attribute of a sibling node is changed? | <p>We ran into an issue, not sure what we're doing wrong. We've recreated <a href="https://jsfiddle.net/pyraz/y485c6oy/" rel="nofollow">here</a></p>
<p><strong>The Issue</strong></p>
<p>We have 3 components, a parent Form component, which has 2 children, an Input and a Button. The Button has both <code>onMouseDown</c... | 1 | 1,828 |
AddressSanitizer: heap-buffer-overflow on address | <p>Im trying to write a function to determine if the input string is valid. <br><br>This task is from leetcode, 20th task. So its given like that.<br><br></p>
<pre>Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
*Open b... | 1 | 1,443 |
struts2+hibernate java.lang.reflect.InvocationTargetException | <p>I have a problem when i am trying to list the table using hibernate, I am not getting the problem when i am adding data to table. Problem is when i am retrieving.</p>
<p>The Action method</p>
<pre><code>@Action(value="list", results = { @Result(location="/index.jsp"), @Result(name="input", location="index.jsp")
... | 1 | 7,028 |
HttpWebRequest.EndGetRequestStream issue in Silverlight | <p>I am using HTTPWebRequest to post data to a webserver in Silver light 3.0, here is my code</p>
<pre><code> public void MakePostRequest()
{
// Create a new HttpWebRequest object.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.mywebsite.com/somepage.php");
... | 1 | 1,468 |
Spring static resource servlet request | <p>My English is not good. Please understand it.</p>
<p>I'm in charge of maintaining a website built with Spring, tiles and ibatis frameworks.</p>
<p>The problem is all gif, js, etc... go through <strong>DispatcherServlet</strong> because most of the address of static resources are like <strong>/home/images/hbg_01.gi... | 1 | 3,676 |
Boost.Asio - Multiple buffers with custom buffer | <p>I'm writing a kind of tcp server. I'm using Boost.Asio, with <a href="http://www.boost.org/doc/libs/1_56_0/doc/html/boost_asio/example/cpp11/buffers/reference_counted.cpp" rel="nofollow noreferrer">shared_const_buffer</a>.</p>
<p>Now I have to write multiple buffers. So I write like this:</p>
<pre><code>std::vecto... | 1 | 2,114 |
An exception occurred during task execution | <p>Following this <a href="http://docs.ansible.com/ansible/intro_installation.html" rel="nofollow">http://docs.ansible.com/ansible/intro_installation.html</a> I did </p>
<pre><code>echo "127.0.0.1" > /etc/ansible/hosts
</code></pre>
<p>Then</p>
<pre><code>ansible all -m ping --ask-pass
SSH password:
An exception... | 1 | 1,478 |
Use One TextField to Input multiple data in Java | <p>Im trying to make a program to calculate my average. But i only want to use one TextField for input. Any suggestions?</p>
<p>I tried to make it so when the button changes, it assigns the number to the variable. but it doesnt seem to work.</p>
<p>Also, Java made me assign the variables to 0...i don't know why... bu... | 1 | 1,728 |
Hibernate/JPA: Mapping entities to different databases | <p>I have an application which manages 3 databases. I use hibernate with JPA on seam framework.</p>
<p>So I have a persitence.xml file with three persitence-unit like this (I remove properties for db2 and db3):</p>
<pre><code><persistence-unit name="db1" transaction-type="JTA" >
<provider>org.hibernat... | 1 | 1,152 |
Why is h5py.h5f.create failing with OSError: unable to open file: name ="name", | <p>I am getting random failures to create the callback model weights file when running Keras (with tensorflow) models in a loop with changing model parameters and input data. I am thinking that it might be something to do with the length of my directory name but if so, it seems like a bug as it only happens sometimes.... | 1 | 2,726 |
how to make div take full width of parent div | <p>How do I get the color div to take up the full width of the parent div <code>.starter</code> so that the entire width is one color? I've tried everything and haven't made progress. I've isolated the problem for ease of containment. Thanks in advance!</p>
<pre><code><!DOCTYPE html>
<html>
<head>... | 1 | 1,473 |
How to create a custom Progress Dialog(spinner)? | <p><img src="https://i.stack.imgur.com/CqVFW.png" alt="Sorry for the late update..but this is the kind of spinner layout I'm talking about">I have googled a lot and even gone through many of this website questions but I just can't find the solution to my problem.</p>
<p>I want to create a spinner like the one belo... | 1 | 1,200 |
How to unwind array in DataFrame (from JSON)? | <p>Each record in an RDD contains a json. I'm using SQLContext to create a DataFrame from the Json like this:</p>
<pre><code>val signalsJsonRdd = sqlContext.jsonRDD(signalsJson)
</code></pre>
<p>Below is the schema. datapayload is an array of items. I want to explode the array of items to get a dataframe where each r... | 1 | 1,153 |
uncaught Reference error YUI is not defined console error | <p>I am using alloyui for fronted , when i trying to use this getting issue.uncaught Reference error YUI is not defined console error. below is code
any help. i just updatet this code please look the bellow code .</p>
<pre><code> <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"... | 1 | 2,203 |
How to use(repeats) radio button in a table td which is repeate in every row | <p>I have a table with number of rows and in a table there is a radio button, the radio button is repeated but its not work, i can't change my dropdown_list name also, so how to overcome this problem please help me.</p>
<pre><code><script>
$('input[name="radio_enable"]').on('click', function() {
if ($(this)... | 1 | 14,116 |
max-width and max-height on background image | <p>I want to show an background-image while hovering over the normal image. They both should have the same height and width. I thought to make it work by giving the div with the background image <code>display: inline-block</code> so it takes the same size as the image, but that makes it so the <code>width: 100%</code> ... | 1 | 1,187 |
Relational Algebra check for error | <p><strong>Hi could someone please verify my work. Im not sure if im doing any of this correctly and would greatly appreciate any help. I am not allow to use the Bow tie operator. Thank you.</strong></p>
<p><strong>Question:</strong></p>
<pre><code>Books (ISBN, Title, Authors, Publisher, Ed, Year, Genre)
Patron (Memb... | 1 | 1,237 |
draw and scale custom rectangle on a view in android | <p>i want to custom view,it can include some effect:first draw a pic on the view as a background then draw a rectangle on the image,and draw other image named A in the rectangle, we know the rectangle have four fixed point,when i drag one of these,the rectangle can scale,at the same time A also is scale, i have read ... | 1 | 2,511 |
ObjectOutput throws java.io.NotSerializableException | <p>This is the class that's about to be serialized into a byte array.</p>
<pre><code>public class DummyClass implements Serializable
{
private static transient final long serialVersionUID = -8483859843874771619L;
public String y;
public DummyClass(String y)
{
this.y = y;
}
public ... | 1 | 1,033 |
Strange CSS effect in Bootstrap. Unintentional indent when showing numerous content divs inside container div | <p>I'm using Bootstrap as CSS framework for a project me and my friend is working on (hence the D&D theme). I have a page where we're displaying a specific users D&D characters. When displaying these characters on the page there is supposed to be four on each row (span4's in a row-fluid). The problem is that th... | 1 | 4,810 |
How to check if a woocommerce product has any category assigned to it? | <p>I am creating a custom plugin where related products are fetched as per the tags assigned to a product. I am facing an issue. When i run a loop it gives me a warning message. What i want to check is that if the particular product has any category assigned to it. How can i check if any category has been assigned to a... | 1 | 1,643 |
phpMailer doesn't send emails to hotmail account | <p>I'm using PHPMailer to send emails. I'm trying to send an email to an Hotmail account but if the recipient has the sender in contacts, it receives the email. If the recipient doesn't have the sender in contacts, it doesn't receive the email.</p>
<p>Why? What is the matter?</p>
<p>PHPMailer doesn't show any errors.... | 1 | 1,728 |
Passenger Core Shutdown With No Known Cause | <p>I have an instance of Passenger (Apache/Linux) that shutdown in a way I have never observed before and I can't find anything similar online. I'm including the log entries immediately before and after the event below. </p>
<p>Basically the Passenger Core shut down without any error or even evidence of a SIGTERM. I'm... | 1 | 1,131 |
JavaFX Thread freeze | <p>I'm currently working on a JavaFX project. On GUI initialization I want to read some infos out of a HTML document using Selenium and FirefoxDriver. Normally I would use a crawler to get the infos but this document is full of JavaScript so I was only able to get to the infos using Selenium (I know, it's really bad). ... | 1 | 1,282 |
openpyxl 'NoneType' object has no attribute 'font' | <p>I'm writing a function that puts values into a spreadsheet and colors the cell based on the value. Now for some reason I'm getting a weird 'NoneType' error that's completely stumping me: </p>
<pre><code>Traceback (most recent call last):
File "vix.py", line 168, in <module>
printexceldaily(1990, 2015, '... | 1 | 1,304 |
glmer mixed models inconsistent between lme4 updates | <p>This is a long post. I’m having trouble attaining consistent model results between lme4 versions. My old computer was running R 3.0.0 “Masked Marvel”, with the 0.999999-2 version of lme4, and my new work computer is running R 3.0.2 “Frisbee Sailing” with lme4 version 1.1-2. They are not giving me the same model outp... | 1 | 4,145 |
AdMob error: Didn't find class "com.google.ads.AdView" | <p>So I'm on Android Studio v 0.3.6 and I'm having problems with Google Play Services. I was already using the Admob jar in my project but I had to update it so I tried to add them via the <a href="https://developer.android.com/google/play-services/setup.html" rel="nofollow">instructions</a>. My project compiles fine h... | 1 | 1,250 |
Dojo 1.9 build 'multipleDefine' error while loading locale | <p>My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: </p>
<blockquote>
<p>Error {src: "dojoLoader", info: Object}</p>
</blockquote>
<p>Message: multipleDefine</p>
<blockquote>
<p>info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack: Object,... | 1 | 2,169 |
CSS inline-block margin bottom issue | <p>I got a problem with css inline-block, whenever i put inline-block for display property it's giving me some whitespace about 1px how to fix it ?</p>
<p>word-spacing 0px and letter-spacing 1px is not a solution for margin-bottom</p>
<p>my html files.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<... | 1 | 1,385 |
How to cache in a Blackberry BrowserField | <p>I am creating a Blackberry application to display a full screen web view of a certain site. I have a working browserfield that displays properly but navigation from page to page is slower than that of the native browser. The browserfield does not seem to have a built in cache causing the load time to be slow. When I... | 1 | 7,513 |
Passing multiple dimensions to google analytics reporting API v4 with javaScript | <p>How would I go about passing multiple dimensions when executing a Google Analytics Reporting API v4 Query. For example how would I pass ga:dimension7 in addition to ga:dimension5 in my dimensions?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippe... | 1 | 1,086 |
Image from URL in ListView using SimpleAdapter | <p>I hope you can help me with this error, I'm stuck in this for a few days.
I want to show a ImageView from URL in a ListView using SimpleAdapter, but the image are showing in white. </p>
<p>I'm recent starting with android, so, i cant understand a lot about LazyList and other stuff.. </p>
<p>How i can implement my ... | 1 | 5,820 |
Not able to connect to Azure Key Vault when using Service Identity | <p>I am trying to retrieve secrets from Azure Key Vault using Service Identity in an ASPNet 4.6.2 web application. I am using the code as outlined in this <a href="https://azure.microsoft.com/en-us/resources/samples/app-service-msi-keyvault-dotnet/" rel="noreferrer">article</a>. Locally, things are working fine, thoug... | 1 | 1,256 |
IllegalStateException: No EJB receiver available for handling | <p>I have a client appication and a server using JBoss AS 7.1.1. On startup, my client connects to the server just fine and gives me a remote interface to use. However, when I try to run a function through the interface I get this exception:</p>
<pre><code>Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateE... | 1 | 1,224 |
how to get orientation:portrait mode with meta viewport with a fixed height | <p>time for my first own stackoverflowquestion, since this thing is driving me crazy the whole day now. i borrowed an ipad today to test a website wich comes with additional phone and an tablet-versions. (there's only safari on it) the layout is a comlete static thing with some graphics and they want it 1:1.
so i learn... | 1 | 1,807 |
How to write a SELECT for a field of type "quantity" in SET_GET_ENTITY method? | <p>I want to select a single row with all columns from my table <code>zbookings</code>. <code>zbookings</code> table has a structure based on <code>zbooking</code> data structure - see tables below.</p>
<p>Table <code>ZBOOKINGS</code>:
<a href="https://i.stack.imgur.com/y8VWh.png" rel="nofollow noreferrer"><img src="h... | 1 | 1,191 |
SSN masking in angular js | <p>I am trying to mask SSN number using angular js.</p>
<p>Expected:</p>
<p><a href="https://i.stack.imgur.com/L9b5w.jpg" rel="nofollow noreferrer">Before mask (onFocus)</a></p>
<p><a href="https://i.stack.imgur.com/RtH97.jpg" rel="nofollow noreferrer">After mask (onBlur)</a></p>
<p>User can enter only numbers and ... | 1 | 1,750 |
getting D3.js to display using container | <p>I have a novice d3.js question. I have tried entering a lot of tutorial inputs but I can never seem to get the display output working. Here's one example. I have a d3.js page template example (from Scott Murray's D3 book.)</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta... | 1 | 1,137 |
Error reading xlsx (2007) file in EPPLUS | <p>I have an error while trying to read excel files (<code>xlsx</code>) which were saved in <code>Excel 2007</code> using <code>EPPlus</code> library.</p>
<p>Some workaround:</p>
<ol>
<li>ASP.net mvc 5 app with EPPlus v. <code>4.0.4.0</code></li>
<li>User can download template file from my site, then fill required da... | 1 | 1,353 |
How to change the value of input hidden on server-side | <p>I have a form with hidden fields:</p>
<pre><code><form id="Form1" runat="server" style="width: 100%; height: 100%; overflow: hidden" onsubmit="return false;">
<div>
<input type="hidden" runat="server" id="TrackColors" value=""/>
<input type="hidden" runat="server" id="Relo... | 1 | 1,156 |
Bootstrap Tabs - Next and previous | <p>I have an issue with my Bootstrap Tabs.</p>
<p>I defined a <code>scrollTop</code> function on next button. The scrolling is working fine but the tab is jumping from 1 to 3. </p>
<p><strong>My JS code:</strong></p>
<pre><code><script>
$('.btnNext').click(function(){
$('html, body').animate({
s... | 1 | 2,049 |
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)? | <p>I am trying to sort this annoying bug and I cant figure out the root cause of this exception. I went through the stack trace and still wasnt able to figure out the problem. I checked for he required dlls and everything looks fine to me. Any suggestions or advise is highly appreciated.</p>
<p>Stack Trace:-</p>
<pre... | 1 | 1,432 |
WPF DevExpress LookUpEdit Popup Too High | <p>I'm using a DevExpress LookUpEdit component in a WPF UserControl. My problem is that the popup rectangle is always much bigger that the contents of the items in the PopupContentTemplate. I can't seem to find a property that governs this or maybe I'm going about using the controls improperly (?).</p>
<p>Thanks</p>... | 1 | 5,269 |
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on CardView | <p>I am getting this error as I am not able to pass my parcelable to another activity. I would like to have the Image and the text from my cardView to be passed onto my new activity for each cardview. However, I am receiving thisd error called java.lang.IndexOutOfBoundsException: Index: 0, Size: 0. Can I please get som... | 1 | 4,657 |
INSTALL PARSE FAILED MANIFEST MALFORMED | <p>Trying to build an Android app for a class. I keep getting the error in the title. This is my manifest:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Grille.play.webapp_1"
android:versionCode="1"
android:versi... | 1 | 1,362 |
Java program to solve simple cryptarithmetic puzzle | <p>Edit: I got my program working now, but still need some clarification for the <code>else if (400*T + 40*O + 4*O == 1000*G + 100*O + 10*O + D)</code> part that is key to solving the puzzle. I just want to fully understand every bit of the program, thank you.</p>
<p>This is for review purposes only and I have spent a... | 1 | 1,496 |
WebDriverException: java.lang.reflect.InvocationTargetException - Selenium RemoteWebDriver | <p>I use Selenium to run a desktop app that has a Web view. Two days ago, my process worked just fine and my tests were running, but I must have done something with my manual testing that changed files on my computer or something changed with files I need for Selenium, because now I can launch my app, see the Web View... | 1 | 3,330 |
Vue2-Leaflet with No-SSR causes Window is not defined error | <p>I've been trying a bunch of stuff now. I've tried nuxt-leaflet dependency, I've tried writing my own plugin and including it. However, everything keeps ending in the "window is not defined" error.</p>
<p>The map should only be loaded on the client.</p>
<p>My vue component:</p>
<pre><code> <template>
... | 1 | 1,114 |
Passing data from node.js to react using express | <p>I'm trying to call an API(which only allows server side calls) in nodejs. I manage to get the info back to my console, and now Im trying to pass that data to the app.js file of my react app. </p>
<p>Im currently working with a react app a node.js back end and express to communicate between them. </p>
<p>I have two... | 1 | 1,819 |
Kotlin compile error when using Parcelable | <p>I'm trying to implement <code>Parcelable</code> for my class. Android Studio automatically generates code for me. Now my class looks like that:</p>
<pre><code> @Parcelize
data class BankCard(var owner: String, var number: String, var isDefaultCard: Boolean) : Parcelable {
constructor(parcel: Parcel) : this(
... | 1 | 2,493 |
Yii returns exception.CHttpException.404 error | <p>I have some problems with my Yii system. All modules are working fine in the system, but there is an error with the activity module. It returns the following error:</p>
<pre><code> 2013/10/22 10:21:17 [error] [exception.CHttpException.404] exception 'CHttpException' with message '"activity/default/list" isteği çözü... | 1 | 3,849 |
Set TextView text with a for loop so multiple lines show | <p>So I have a for loop that I want to output a new line in a textview every single time it goes through. However, I am not sure if that is possible. I have TableLayout in there but it put the items vertically instead of horizontally. I thought about ListView but not sure how to set the text of it.</p>
<p>Here is my c... | 1 | 4,618 |
What is the meaning of XMLNS URL in xml document | <p>i want to know, is there any real meaning of xmlns urls in xml document ?</p>
<p>i had refer to <a href="http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog" rel="noreferrer">link</a> . now when i change the <code>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"</code>
to something els... | 1 | 1,477 |
Bash Store Curl Results into Array | <p>I am running the following curl command:</p>
<pre><code>results=$(curl -USERNAME:PASSWORD "URL/search/dates?dateFields=created&from=${Three_Months_Ago}&today&repos=generic-sgca")
echo "$results"
</code></pre>
<p>I am getting this in return:</p>
<pre><code>"results" : [ {
"uri" : "URL/api/storage/g... | 1 | 1,138 |
How to control when to prompt user for push notification permissions in iOS | <p>I've built an application for iPhone using Swift and Xcode 6, and the Parse framework to handle services.</p>
<p>While following the Parse tutorials on how to set up push notifications, the instructions advised that I put the push notifications in the App Delegate file.</p>
<p>This is the code that I have added to... | 1 | 1,025 |
http request in angular 2 getting called twice | <p>I know this question is avialable on the stackover flow and i belive me i had gone through it. Based , on that i found that there is no problem in my code. Although my rest api are getting called twice.</p>
<p>My Code snippet looks like:</p>
<p><strong>Component:</strong></p>
<pre><code> export class Component... | 1 | 1,589 |
Remove JTextPane's white background without setOpaque() over a translucent JFrame | <p>I have a Java code where I implemented a translucent JPanel with an image drawn on it with Graphics 2D. This image is a PNG that includes a white rectangle, 80% opaque, all over the JFrame. Now I need to add a JTextPane to display datas (I set it to use a custom font from the app package BTW), but I can't manage to ... | 1 | 1,463 |
how to create multiple instances of a class? | <p>I have a class Borrower which consists of a name and then it also stores an arraylist full of items that the person has borrowed.</p>
<p>I want to be able to create multiple instances of this class from my main and then be able to access them to view the items they have borrowed.</p>
<p>I am having trouble underst... | 1 | 1,603 |
Removing space between axis and plot in R. ggplot, scale_x_continuous(expand = c(0, 0)) not working | <p>I'm making a chart in R using ggplot2. There is space below the plot and above the x-axis that I want to remove. </p>
<p>Based on this question <a href="https://stackoverflow.com/questions/22945651/how-to-remove-space-between-axis-area-plot-in-ggplot2">How to remove space between axis & area-plot in ggplot2?</a... | 1 | 1,242 |
Unable to build project after adding Spring actuator dependency | <p>I have added the Spring actuator dependency to my Spring Boot project and now I am unable to perform a <code>mvn clean install -Dspring.profiles.active=dev</code> to build the project, instead, I get this error as the output:</p>
<pre><code>2020-07-03 12:44:23.454 WARN 34088 --- [ main] o.s.w.c.s.GenericW... | 1 | 6,632 |
Add default build configuration to Visual Studio | <p>My team and I are using VS2012 for a number of projects, and have developed a workflow with our QA and UAT group that involves 5 environments: Local, Development Staging, Testing, Preproduction, and Production. We've found ourselves having to create Local/Dev/Test/Preprod/Prod build configuration for every project a... | 1 | 1,476 |
sqlalchemy.orm.exc.UnmappedInstanceError on Flask WTForm | <p>I have the following errors while displaying related forms for entry.</p>
<blockquote>
<p>sqlalchemy.orm.exc.UnmappedInstanceError UnmappedInstanceError: Class
'sqlalchemy.util._collections.result' is not mapped</p>
</blockquote>
<p>here is the <code>models.py</code></p>
<pre><code>class Project(db.Model):
__... | 1 | 1,670 |
Velocity email template in /WEB-INF subfolder | <p>I coded service to send email. Now I have to integrate velocity freamwork and so I edit my mail-context.xml</p>
<pre><code>....
<bean id="mailService" class="xxx.xxxx.xxxx.service.MailServiceImpl">
<property name="mailSender" ref="mailSender" />
<property name="simpleMailMessage" ref=... | 1 | 2,215 |
How to sort data coming from the API by date in Angular 4 | <p>This is the JSON data i am fetching from POSTMAN. I want it to be ordered in a nearest to todays date. I tried many angular pipes but unfortunately nothings working. Any help would be great. I want to sort the date by the "broadcastOn" field. Thanks in advance. </p>
<pre><code>[ {
"messageId": "09ca0609-bde... | 1 | 1,456 |
How to set a toolbar in a List Activity? | <p>I want to change the app I have created so far, in order to implement a <code>ListView</code>. I followed <a href="http://androidexample.com/Create_A_Simple_Listview_-_Android_Example/index.php?view=article_discription&aid=65&aaid=90" rel="nofollow">this example</a> and <a href="http://www.mkyong.com/android... | 1 | 1,344 |
How to pass userid from one table to another table in spring mvc using hibernate | <p>I'm using Spring security for the login. I have the <code>User.java</code> which contains user-details.</p>
<pre><code> @Entity(name = "user_table")
//@Table(name = "user_table")
public class User {
@Id
@Column(name = "id")
private String userId;
@Column(name = "email" ,unique = true)
privat... | 1 | 1,589 |
Vue click event on multiple td elements exception on first and last | <p>I want to use a <strong>click event</strong> in my table to go to the <strong>detailpage</strong> of the clicked row with the <strong>exception</strong> on the <strong>first and last td element</strong>.</p>
<p><strong>Example:</strong></p>
<pre><code><tr v-for="(row, key) in $rows" :key="row.id">
<td&g... | 1 | 1,107 |
How to stop pipeline filtering (Where-Object) on first match | <p>I searched but didn't find how to do it yet.<br>
I am working on filtering data from large files (~2GB).<br>
I used <code>Where-Object</code> and when it find match it continues to search for other matches which it makes sense. </p>
<p>Is it possible to stop it on the first match ? </p>
<p>For example <strong>(#... | 1 | 1,796 |
Php doesn't break in a recursive foreach loop | <p>I have a recursive function like below.</p>
<pre><code>public function findnodeintree($cats,$cat_id)
{
foreach($cats as $node)
{
if((int)$node['id'] == $cat_id)
{
echo "finded";
$finded = $node;
break;
}
els... | 1 | 2,708 |
django sitemap http://example.com | <p>Sorry for my bad english but i'm not english!</p>
<p>I try to generate a sitemap.xml with my django project.</p>
<p>In my project i don't have models (my database is empty), i have just static url (like 'home' or 'About' ).</p>
<p>I succeded to generate a sitemap.xml but i have "<a href="http://example.com" rel="... | 1 | 1,266 |
Google maps API v3 - Calculating map container height and width | <p>I cut and paste some sample code from the Google maps API documentation that uses an OverlayView so one can access the built-in MapCanvasProjection methods ( fromLatLngToContainerPixel() and fromLatLngToDivPixel() ) in order to convert from Lat/Lon to container pixel and back again ... great ...</p>
<p>The code is ... | 1 | 1,665 |
Receiving "Highcharts is not defined" error when using maps (Highmaps / Highcharts) | <p>I've used Highcharts quite a bit and the charts work great, but I've been stuck trying to make Highmaps work for quite a while now.</p>
<p>I believe I have everything setup correctly with my test map that I'm trying to make work because it works correctly in <a href="http://jsfiddle.net/h7oh56nk/" rel="nofollow nor... | 1 | 1,367 |
Spring Boot Security PreAuthenticated Scenario with Anonymous access | <p>I have a Spring Boot (1.5.6) application that is using the "<a href="https://docs.spring.io/spring-security/site/docs/current/reference/html/preauth.html" rel="nofollow noreferrer">pre-authenticated</a>" authentication scenario (SiteMinder) from Spring Security.</p>
<p>I have a need to expose the actuator "health" ... | 1 | 1,676 |
How to handle special characters to get result as "%{%s}t" using Ansible/yml? | <p>Currently working on Ansible to port config of older system to multiple <code>IBM</code> <code>ISAM</code> 9 systems using <code>ISAM-Ansible-Roles</code> (<a href="https://github.com/IBM-Security/isam-ansible-roles" rel="nofollow noreferrer">https://github.com/IBM-Security/isam-ansible-roles</a>) and having issue w... | 1 | 1,479 |
Error after activating SEO Settings in Joomla 2.5 | <p>I am using Shape5 Corporate Response template for Joomla 2.5</p>
<p>In order for me to activate the SEO freidnly website I had to:
1- Change htaccess.txt to .htaccess
2- In global configuration change Search Engine Friendly URLs from No to Yes
3- Change Use URL rewriting From No to Yes</p>
<p>after that the templa... | 1 | 1,539 |
Running xunit.net tests in VSTS | <p>I have an issue running <code>xunit.net</code> tests in <code>VSTS</code>. When running the Build plan, the <code>Test assemblies</code> step produces the following log:</p>
<blockquote>
<p>2017-03-21T12:11:39.3302859Z ##[section]Starting: Test Assemblies<br>
2017-03-21T12:11:39.3382932Z =======================... | 1 | 1,962 |
ParserError: Error tokenizing data. C error: Expected | <p>When I run this command: </p>
<pre><code>k1=pd.read_table("https://raw.githubusercontent.com/justmarkham/pandas-videos/master/data/chipotle.tsv")
</code></pre>
<p>I receive this error:</p>
<p>Command on Pandas: attached.</p>
<blockquote>
<p>---------------------------------------------------------------------... | 1 | 1,401 |
Angular: prevent auto recompile when there is a change in assets folder | <p>I'm trying to download a file generated from spring boot in the assets of the angular project. When I call the spring API from angular services, angular CLI recompiles the project after the creation of the file in assets angular folder, and then it reloads the page before getting the response from spring boot API.</... | 1 | 1,741 |
Spring Batch 'RunIdIncrementer' not generating next value | <p>I have several Spring Batch (2.1.9.RELEASE) jobs running in production that use <code>org.springframework.batch.core.launch.support.RunIdIncrementer</code>.</p>
<p>Sporadically, I get the following error:</p>
<pre><code>org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException: A job instance a... | 1 | 1,798 |
Execute a Java Application from Php | <p>Hi friends I have to execute a java application from php script , for that I have moved the jre folder files to xammp folder and set the path to the folder . </p>
<p>I have tested using a sample java program like </p>
<p>PHP Script: </p>
<pre><code><?php
$JAVA_HOME = "\jre1.8.0_60";
$PATH = "$JAVA_HOME/bin:"... | 1 | 1,501 |
Receiving CameraAccessException: CAMERA_ERROR (3) on CaptureSession.setRepeatingRequest() | <p>I have the Following code running from the onCreate() method. outside of this code is just a lot of object declarations and instantiations for the callbacks.</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_mai... | 1 | 1,857 |
Cannot unmarshal soap body to java object | <p>This is related to my earlier post here <a href="https://stackoverflow.com/questions/26709562/getsoapbody-returns-null-whereas-soapresponse-writeto-prints-the-whole-message">getSOAPBody returns NULL whereas SOAPResponse.writeTo prints the whole message, Strange?</a></p>
<p>I am posting my code that i am using to un... | 1 | 2,580 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.