title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Handling the same click event in a nested control inside ListBoxItem DataTemplate - WPF | <p>When we have a custom listbox with a defined event-handling for the left-click of the mouse, and also an additional shape inside the ListBoxItem data template which needs to do some action when it is clicked how can we handle these </p>
<p>I have a Custom ListBox witch tries to handle the Click event :</p>
<p><str... | 3 | 1,489 |
for loop in SwiftyJSON Response | <p>I have a JSON response from Alamofire. I want populate my tableviews rolls with the JSON but only one roll is displayed. other JSONs are not loaded into to custom tableView cells</p>
<pre><code> If segmentedControl.selectedSegmentIndex == 0 {
cell.textLabel?.text = tableViewData[indexPath.section].... | 3 | 1,171 |
JPQL ManyToMany Query issue (join Class) | <p>I have table on mysql generated by ManyToMany association.
but when i run this query</p>
<pre><code>select e from Employe e join e.listeRole c inner join c.Role r where r.IdRole = 1
</code></pre>
<p>i get this error</p>
<blockquote>
<p>13:11:51,959 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] (http-localhost-1... | 3 | 1,263 |
How to handle symbol not found compile error in java? | <p>Is gives the error ship1 not found.
I only declare ship1 only if condiontion is met.
Other wise i have placed else condition which re runs the function.
It is compilation problem, so as i was told earlier ... try catch will not work.</p>
<pre><code> public static int plantNavy(BattleBoard myBattle, int counter) ... | 3 | 1,922 |
Route in Dash without creating inefficient, hidden items | <p>I am inheriting a plotly Dash app which currently has an <code>app.layout</code> as follows:</p>
<pre class="lang-py prettyprint-override"><code>def serve_layout():
return html.Div(
className="app",
children=[
dcc.Location(id="url", refresh=False),
buil... | 3 | 1,935 |
Flutter: Stream not retrieving data from sub collection | <p>I am creating my own comment system.
I am using firebase to store the comments and then the replies into a subcollection.
My code is retrieving the main comments, but for some reason I can't get the sub comments.
Have double checked the path and everything.</p>
<p>My stream looks like this</p>
<pre><code> var ret... | 3 | 1,059 |
Best way to chain @Exceptionhandler from PUT method Handler? | <p>I'm implementing Exception handling.</p>
<p>The PUT controller method is,</p>
<pre class="lang-java prettyprint-override"><code>// ReservationApiController.java
@RestController
@RequestMapping(UriInfo.API_RESERVATION)
@Validated
public class ReservationApiController {
@PutMapping(UriInfo.API_RESERVATION_CANCEL... | 3 | 3,148 |
Sort multi-bucket aggregation by source fields inside inner multi-bucket aggregation | <p><em><strong>TL;DR:</strong> Using an inner multi-bucket aggregation (<code>top_hits</code> with <code>size: 1</code>) inside an outer multi-bucket aggregation, is it possible to sort the buckets of the outer aggregation by the data in the inner buckets?</em></p>
<hr>
<p>I have the following index mappings</p>
<pr... | 3 | 1,710 |
Getting back to a CSS position sticky element with JavaScript? | <p>I have a page where all sections fill the entire screen and are positioned with CSS <code>position: sticky;</code> in order to achieve a <em>layered</em> effect. See here:</p>
<p><a href="https://codesandbox.io/s/ecstatic-khayyam-cgql1?fontsize=14&hidenavigation=1&theme=dark" rel="nofollow noreferrer">https... | 3 | 1,277 |
Exception in thread "main" java.lang.IllegalStateException: Failed to transform class with name | <p>I am using JAVA 1.8 with the Javaassist version as 3.24.0 and power mock 1.7.4. I am facing this issue when I am including a class in @PrepareForTest.Here the MainClass class depends on serverCommunicator.class instance.</p>
<pre><code> public class MainClass
{
public void sendInitRequest()
{
... | 3 | 5,566 |
LibGDX Loading Screen Not Working | <p>I have this piece of code for a loading screen on my LibGDX game in java:</p>
<pre><code>public class LoadingScreen extends AbstractScreen {
private Stage stage;
private Image logo;
private Image loadingFrame;
private Image loadingBarHidden;
private Image screenBg;
private Image loadingBg;... | 3 | 2,127 |
speeding up md5 program | <p>This is a example of md5 in C, but the program is very slow it takes a little over a second to encode a simple string, What is slowing the program down? </p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
// Constants are the integer part of the si... | 3 | 2,735 |
Save multiple same named fields to database PHP | <p>The PHP CODE to save it.</p>
<pre><code>$cols = $_POST['col'];
$EvenementID = mysql_real_escape_string($_POST['evenementid']);
foreach($cols as $col) {
$Ticketnaam = mysql_real_escape_string($col['ticket']);
$Aantal = mysql_real_escape_string($col['aantal']);
$Prijs = mysql_real_escape_string($col['prijs']);
$s... | 3 | 1,556 |
Bootstrap contact form module issue | <p>I am having trouble with getting this code to not show a thank you modul for incomplete submissions. I also would like the page redirect to originating page(with a pop up modul for either confirmation or error on the page in a modul would be optimal) or just redirect to the originating page without having to create ... | 3 | 1,465 |
How to add a dynamically generated file to my ear archive? | <p>Basically, we have an ear archive that has multiple dependencies. In those dependencies, we plan on filling the manifest or some properties file with multiple properties:</p>
<ul>
<li>build timestamp</li>
<li>buildnumber (from CI server)</li>
<li>groupId</li>
<li>artifactId</li>
<li>version</li>
</ul>
<p>This shou... | 3 | 1,235 |
How do I get a menu grandchild to show on click? | <p>I believe this issue is with the JavaScript/Jquery 3.3.1, not assessing the grandchild of the menu, but I am lost on how to get this accomplished. Any help would be appreciated. </p>
<p>The HTML is a menu block create in Drupal 7. The leaf class is not used in my CSS.</p>
<pre><code><div id="block-menu-menu-dem... | 3 | 2,507 |
Output of Java code is not getting in WSO2 logs | <p>I am unable to see the output of the below java code in WSO2 logs.</p>
<pre><code> package com.esb.integration.mediators;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java... | 3 | 3,657 |
kafka: Can't bind: topic error | <p>I am getting below error, when i am increasing number of kafka producer.
Any one has idea what can be the problem here?</p>
<p>Please find my producer settings:
<a href="https://gist.github.com/Vibhuti/dbf1c24962b91f2bc217" rel="nofollow">https://gist.github.com/Vibhuti/dbf1c24962b91f2bc217</a></p>
<p>Error logs:<... | 3 | 1,409 |
Unexpected prints | <p>I am trying to make a little program which can register a word in Spanish (I am from Spain), the meaning in English and other thing which I have called "Complicado". "Complicado" is not relevant at this point of the program. I am really confused with the behavior of the code. I don't know why \n ... | 3 | 1,852 |
Why does my avro schema not work for this dataset? | <p>I am using streamsets to get data from an API. The data is in XML format. I need to convert it to parquet in the end but there is a middle stage which requires xml to avro conversion first.</p>
<p>Below is the data that I get in streamsets -</p>
<pre><code>XMLData : MAP
Metadata : LIST [ 20 ]
LevelCounts : ... | 3 | 1,566 |
data set ‘ebicat37’ not found | <p><a href="https://i.stack.imgur.com/wZqP3.jpg" rel="nofollow noreferrer">Snapshot of the Warning message upon reinstalling the package</a></p>
<p><a href="https://i.stack.imgur.com/N9tEr.jpg" rel="nofollow noreferrer">Snapshot of my error in loading ebicat37 data from "gwascat" package</a></p>
<p>I am new ... | 3 | 1,033 |
Fetch value from multiple drop down with same name row wise | <p>I have a table like below-</p>
<p><a href="https://i.stack.imgur.com/30U4l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/30U4l.jpg" alt="enter image description here"></a></p>
<p>the code of this table in my view is as following-</p>
<pre><code> <table class="table table-bordered">
&... | 3 | 1,493 |
failed to lazily initialize exception | <p>While i try to pull entity from the database i get the next exception:</p>
<pre><code>2018-12-17 10:32:32,483 INFO [org.Roper.WebService.Resource.BusinessResource] (default task-3) Adding the business: aa.
2018-12-17 10:32:32,502 INFO [org.hibernate.jpa.internal.util.LogHelper] (default task-3) HHH000204: Process... | 3 | 9,779 |
Python - Returning query result from server to client in Flask | <ul>
<li><p><strong>What I have</strong></p>
<p>I have a Client/Server in Flask. The client sends a query in JSON format to the server and the server creates a JSON file. There is another tool which takes this query, executes it on a db and writes the result to a results.txt file. The server periodically checks the 're... | 3 | 1,195 |
Can I use an if statement to display the changes in my array (JavaScript)? | <p>I'm trying to make my function <code>displayValues()</code> display each value stored in the array <code>arrValues</code> each time it is called. The array undergoes a change before the second time it is called.</p>
<p>I am having trouble making the output <code>text</code> display the starting values in one
HTML... | 3 | 1,103 |
Trying to have a messagebox run code from a separate procedure | <p>I have about 2500 lines of code. I realize I need to break my code up into procedures but am not sure how to do so. Is there a way to have a message box from the first procedure run from a second procedure? Error im getting is "Procedure too long"</p>
<pre><code>Sub Matt_Liam()
Dim ws1 As Worksheet
Set ws... | 3 | 8,454 |
bundle exec rake db:schema:load - fails on codeship | <p>I am attempting to utilize Codeship for a Rails application but when I push to Github and Codeship creates the build I am getting this error which I haven't been able to resolve: </p>
<pre><code>bundle exec rake db:schema:load
rake aborted!
PG::ConnectionBad: FATAL: no pg_hba.conf entry for host "xxx", user "xxx"... | 3 | 2,333 |
Bootstrap switch doesn't work on localhost and Chrome | <p>I've got weird problem with Chrome browser that I use for development purposes. I've created dashboard with <a href="https://github.com/nostalgiaz/bootstrap-switch" rel="nofollow noreferrer">Bootstrap Switch plugin</a> and everything was fine till another system reboot. For some reason, that one plugin stopped styli... | 3 | 1,232 |
How to merge multiple data sets and append comments to a new variable | <p>I have multiple data sets (hundreds) with time series data like this:</p>
<pre><code>"File name";"18%MC001.TXT";"V 1.24"
"Title comment";"231020124070"
"Trigger Time";"'13-04-05 13:53:51"
"Ch";"A 1- 1";"A 1- 2";"A 1- 3";"A 1- 4";"A 1- 5";"A 1- 6";"A 1- 7";"A 1- 8";"A 1- 9";"A 1-10";"A 1-11";"A 1-12";"A 1-13";"A 1-1... | 3 | 1,898 |
Android Fragment Interface Unresponsive | <p>I am having a strange issue with my program that I cannot explain and I have thus far not been able to find a solution. I have a simple activity that will switch between fragments and run the user through an initial setup of the app. The first fragment is just a text view at the top, with a button on the bottom with... | 3 | 1,774 |
django-grpc-framework: correct way to serialize/deserialize JSONFields? | <p>what is the proper way to handle <em>Django</em> <strong>JSONFields</strong> in the <strong>django-grpc-framework</strong> ?
How can I check, what kind of data is actually sent (<a href="https://github.com/ktr0731/evans" rel="nofollow noreferrer">Evans</a> throw the same error) =</p>
<p>When I try to receive a seria... | 3 | 1,530 |
How to show the dropdown when hovering over the dropdown list | <p>I am making a dropdown menu where everthing is working as expected. But when I hover over the dropwdown menu list than it is not showing the dropdown menu, it is dissapering. Here is the code.. Pls help me.. I am stuck with this error since 1 month.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-c... | 3 | 1,087 |
Appearance customized segmentcontrol odd behavior | <p>I have a <code>UISegmentedControl</code> with a customized appearance, and I believe I have all of the necessary assets to have the correct appearance, and in most cases the appearance is as desired, however when I tap on one of the segments, before releasing, the edges of the segment, right about where the divider ... | 3 | 1,119 |
Question about maven | <p>I read some useful posts here on SO about previous maven questions, I'm currently very interested in learning maven(cause I like it and because my boss requires me to). I'm currently reading [this][1] book and I'm working my way trough examples. Its a straightforward book but its has some errors inside(trivial ones)... | 3 | 2,841 |
How to update partial data without loading the html in MVC | <p>I want to upload partial view data without reloading the html. i have used <code>Json</code> to get the data but I think there is some issues in Script. The <code>Success</code> part is not executing.</p>
<pre><code> [HttpPost]
public JsonResult HorseTracker(ClsHorseTracker model)
{
try... | 3 | 1,949 |
Deleting image problem with unlink function | <p>I created this method to unlink when I update the image but it doesn't work with if not empty if I say empty it deletes. it is so strange I tried but didn't work. I tried this without oop it works in another application. I changed it for it and I checked google but no solution till now. someone used is_uploaded_file... | 3 | 1,883 |
Having an issue with modularization, can't get my program to run correctly | <p>I am creating a histogram which shows me the word and the frequency of each word within a text file.</p>
<p>I went through my previous code which worked and attempted to make it modular. This was practice for class, as we will be creating a Tweet Generator in the future.
Somewhere I am doing something wrong, but I... | 3 | 2,583 |
Split density plot in 4 groups and add the groups to data table | <p>I'm creating a density plot with <code>ggplot()</code> in <code>R</code>, where I specify the <code>median</code>, <code>5%</code> and <code>95%</code> quantiles with a vertical line (<code>geom_vline()</code>). Here is my plot construction:</p>
<pre><code>probs <- c(0.05, 0.95)
quantiles <- quantile(dt.all201... | 3 | 1,406 |
TransactionException on mariadb get | <p>Apologies for bit-misleading title.</p>
<p>I have a <code>device-id</code> application, which basically saves any new <code>deviceId</code> sent to system or return details of any <code>deviceId</code> as per request.</p>
<p>This issue is not very frequent but it does pop up <em>now-and-then</em> and google is not... | 3 | 2,237 |
Interstitial ad with load delay | <p>I'm trying to implement an interstitial ad, and I'd like it to load before, in the application it's happening to load along with the action which causes delay and makes the ad appear well after. I want to make the ad appear right after pressing "adicionar" as shown in the image below:
<a href="https://i.stack.imgur.... | 3 | 1,036 |
currentCenter returning nil iOS while using Json | <p>The JSON Data</p>
<p>Please HELP I beg </p>
<pre><code> 2015-10-30 12:15:58.866 GooglePlaces[17141:989254] Google Data: (
{
geometry = {
location = {
lat = "55.599881";
lng = "-2.64616";
};
};
icon = "https://m... | 3 | 6,372 |
Why does my url spits out the two // at the end? | <p>I am very new to React so bear with me here. I have this button here:</p>
<pre><code>let showButton
if (schema.type === 'belongs_to') {
showButton = (
<Link to={['collections', 'locks', this.props.collectionName]}>
<button>Visa</button>
</Link>
)
}
</code></pre>
<p>This butt... | 3 | 1,195 |
Reselect checkboxes after Post in included file | <p>I have page Search.asp (code below). And Filtered.asp which include Search.asp.</p>
<pre><code> <%
Dim CheckForCheckboxes
CheckForCheckboxes = Request.form("chkBoxes")
response.write "CheckForCheckboxes" & CheckForCheckboxes
... | 3 | 3,063 |
Issue setting up a django database migration for an app with a model that has a relationship to another app in the same project | <p>I'm trying to setup two related apps in a django project, where one app's model references the other in a foreign key relationship. This is normally a simple thing, but I'm running into some collisions with app names (one of my apps is called 'account' and that's not unique in my installation) and my subsequent fix ... | 3 | 1,327 |
Parsing javascript dumped array using Qt into list of points | <p>I need to convert a dumped array of points to a list of points in qt using c++ so that I can further debug my application. I use chrome to copy the array object to a file and it will end up like this:</p>
<pre><code>[
{
"x": 0,
"y": 266.48351648351644
},
{
"x": 2.30952... | 3 | 1,134 |
CSV to XML using XSLT-1.0 group by first 0 value | <p>I would like to use the XSLT 1.0 engine to transform a CSV file to an XML document. The CSV file contains documents for each customer with a flexible amount of document lines. Each new document starts with 0.</p>
<p><strong>CSV example:</strong></p>
<pre><code><root>
0;15-01-2022;Customer1
1;Dual monitors;50
2... | 3 | 4,069 |
A dataset with Int64, Float64 and datetime64[ns] gets converted to object after applying Pandas fillna method | <p>I am using Kaggle's dataset (<a href="https://www.kaggle.com/datasets/claytonmiller/lbnl-automated-fault-detection-for-buildings-data" rel="nofollow noreferrer">https://www.kaggle.com/datasets/claytonmiller/lbnl-automated-fault-detection-for-buildings-data</a>)</p>
<p>I have A dataset with Int64, Float64, and dateti... | 3 | 1,754 |
int treated as `self' in python3 | <p>I want to build a simple server that dispatches requests depending on their path. So I wrote the following code:</p>
<pre><code>from http.server import HTTPServer, BaseHTTPRequestHandler
import json
import socket
class Handler:
"""处理对应资源的请求"""
def __init__(self, dispatcher):
self.dispatcher = dispa... | 3 | 1,761 |
Microsoft Access Report - Sub Report carries over 2 pages, but access thinks it is one? | <p>I've reworded the title and this description because the last one didn't make much sense.</p>
<p>Basically, I have a report that displays business details. Some of these details include:</p>
<ul>
<li><strong>Business Name</strong></li>
<li><strong>Address</strong></li>
<li><strong>Documents</strong></li>
<li><stro... | 3 | 1,411 |
Pomodoro Clock giving negative values | <p>Created a Pomodoro Clock using JavaScript.
It works fine, but once it gets to the break timer, and for everything after that, it gives me a negative time between seconds.</p>
<p><a href="https://jsfiddle.net/3fehu668/" rel="nofollow">https://jsfiddle.net/3fehu668/</a></p>
<p>JavaScript:</p>
<pre><code> $(docu... | 3 | 1,704 |
Printing values from dictionary in specific form | <p>I have a dictionary with keys relating to various reactions and their data ie. exponentn, comment etc. I want to search and print a list of reactions concerning the atom 'BR'. My code currently prints all reactions for 'BR' and the data in random order. I am not sure which data corresponds to which reaction.</p>
<p... | 3 | 2,735 |
How can I pass character strings as independent parameters after a `+`? | <p>Before you mark as dup, I know about <a href="https://stackoverflow.com/questions/7836972/use-character-string-as-function-argument?noredirect=1&lq=1">Use character string as function argument</a>, but my use case is slightly different. I don't need to pass a parameter INSIDE the function, I would like to pass a... | 3 | 1,662 |
gulp plugin - to merge broken js files into one js file? | <p>I have read all the answers on the internet that I could find on this subject in last two days. Now I am just searching for gulp plugin that can merge broken js files into one big js file and not to throw error in terminal caused by unclosed function in one js file.</p>
<p>Explanation:</p>
<p>I have created js app... | 3 | 1,581 |
Update custom adapter with query results | <p>i want to query results from custom adapter by comparing query text with list in RecycleView, it successfully gets results from query then i make list of results and update the existing adapter but it does not effect anything, i use below code fot that</p>
<pre><code>combinationMessagesList = createCombinationMessa... | 3 | 4,417 |
Heroku double '/' problem - node js backend, 404 error | <p>I have deployed my backend on heroku and I have a test get request's response on <code>/</code></p>
<pre><code>app.get('/', (req, res) => {
res.send("Hello, World. The app is running!");
});
</code></pre>
<p>On hitting the <code>/</code> end point that is <a href="https://ayush-portfolio-backend.her... | 3 | 1,169 |
Parse Facebook dialog:andParams causes login screen | <p>I have been using the Parse Facebook implementation for a while and now I am getting some weird behaviors after updating.</p>
<p>I am logging in a user successfully using</p>
<pre><code>NSArray *permissions = [NSArray arrayWithObjects:@"user_about_me",
@"user_relationships",@"user_birthday",@"us... | 3 | 1,458 |
android connect to php and my sql | <p>i am using eclipse for android application development.
i want to connect my android application to mysql database.</p>
<p>i search code from <a href="http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/" rel="nofollow">http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql... | 3 | 2,411 |
Mapping a spring form with a session object | <p>I have a basic form and I got my values from sessionBean.person.xxxxx (so everything is OK):</p>
<pre><code><form:form action="account" method="post" class="form-horizontal" modelAttribute="sessionBean.person">
<!-- some form input elements like -->
<label class="col-sm-3 control-label">E-mail<... | 3 | 1,113 |
SAS EG (SQL) deleting rows where max value in one column | <p>I need to delete all the rows with a max value of <code>duty_perd_id</code> where the <code>rotn_prng_nbr</code> and <code>empl_nbr</code> are the same (not the same to each other, but the max where of all of the rows where those two remain constant). From the table below it should delete rows 3,7 and 9.</p>
<div cl... | 3 | 1,128 |
How to create an email template in Gmail that sends a summary of the upcoming week to multiple email addresses | <p>I have a Google Calendar set up for industry events for my co-workers, and I'd like to send a weekly email (through Gmail) that summarizes the following week's events in this Google Calendar. I'm comfortable creating the visual template and setting it up to auto-send weekly, but I need help pulling in the Google Cal... | 3 | 3,032 |
SQL to JSON - Create a Json Array | <p>I have the below data:</p>
<pre><code>CREATE TABLE mytable
(
ID int,
Product nvarchar(50),
Usage nvarchar(255),
);
INSERT INTO mytable VALUES (99346,'Universal light','Art and Culture');
INSERT INTO mytable VALUES (99346,'Universal light','Health and Care');
INSERT INTO mytable VALUES (99346,'Universal lig... | 3 | 1,128 |
UIManager in Button Action | <p>I have one <code>LoginScreen</code> and one <code>MainWindow</code>. When connection attempt succeed to DB, LoginScreen <code>disposed</code> and MainWindow appear.</p>
<p>I have one button has <code>ActionListener</code> for create a <code>JOptionPane</code>. Code succesfully working actually. I have three problem... | 3 | 1,093 |
How to make Xcode display comments below user-defined methods? | <p>If we type a method from Apple API, Xcode will display method functions below the auto-complete pop-up list. But typing a user-defined method, it shows nothing.</p>
<p>Is there a way to tell Xcode to display some descriptions that I defined by myself to show how to use the user-defined methods?</p>
<p>Thank you!!!</... | 3 | 1,181 |
JSON.NET Serialize as Parent Type | <p>I am working on a project where I would like to save the state of an object using human-readable JSON. However, I am running into issues when the originating object of serialization is not the base class. As an example, here is a class and base class:</p>
<pre><code>public class TeaPot
{
public TeaPot()
... | 3 | 1,326 |
Run Python script over multiple folders | <p>Today im working with a Python script, this script takes multiple CSV files that are inside a folder and generate a CSV output file with averages by colums, in addition i also have multiple similar folders.
But what i do, is change manually the name of the folder and the name of the output file, as you can imagine, ... | 3 | 1,345 |
Error: Can't resolve 'os' in 'C:\Users\user\Downloads\Programming\Node.js\simple-ip\node_modules\multicast-dns' (webpack) | <p>I've got some super simple code taken from the <a href="https://github.com/mafintosh/multicast-dns#multicast-dns" rel="nofollow noreferrer"><code>multicast-dns</code></a> README and I want to test it, but in the browser. (I've already tested it locally and it works like a charm!) However, when I go to Webpack it, I ... | 3 | 1,325 |
Is there a replacement for the methods: Drive.getDriveClient(), Drive.getDriveResourceClient, ... from deprecated api? | <p>Deprecated methods in the code (below) made it possible to integrate the Google Drive Picker into the Android application.</p>
<pre><code>import com.google.android.gms.drive.Drive; // deprecated
import com.google.android.gms.drive.Drive; // deprecated
import com.google.android.gms.drive.DriveClient; // deprecated
i... | 3 | 3,063 |
Problems with form validation using PHP | <p>I have a simple form on my website that I need to do server side validation on. If user enters incorrect data or leaves a field blank, the user should be re-shown the form with their submitted data pre-filled into the fields.</p>
<p>My form code looks like this</p>
<pre><code><!--Contact form-->
<... | 3 | 1,405 |
Open different activities listview item click | <p>I have a search activity where I have a ListView and i show the title, icon, etc on every single item, and y can search every one.
Actually when i click to one item y open a "blank activity" with a text view, and image view, and it changes with the corresponding title and image.
But now i want to change it and i wan... | 3 | 7,595 |
Why ContentPart is not in ContentItem? | <p>Why an fieldless ContentPart is not included in a ContentItem?</p>
<p>Here are code from Migrations.cs:</p>
<pre><code>SchemaBuilder.CreateTable("ImageDescribedPartRecord",
table => table.ContentPartRecord());
ContentDefinitionManager.AlterPartDefinition(
"ImageDescribedPart",
... | 3 | 1,533 |
C# to Java UTF8 string over TCP | <p>I'm unable to send a UTF-8 string from a C# server to a Java client due to an EOF error in the client. How do I properly configure the C# server? I assume the error lies there because this client works with the Java server shown below.</p>
<p>Java client's receive function does this (this also works if I receive fro... | 3 | 1,546 |
D3 join() only renders 'update' while doesn't show 'enter' elements | <p>I tried to update an array of circles from the static positions
to dynamic force layout positions.</p>
<p>I tried to apply different colors for the circles within 'update' range
and apply another color to the new circles added from the new data.</p>
<p>however, newly added data nodes are not rendered for some reason... | 3 | 1,439 |
fastlane.swift cannot find 'ENV' in scope | <p>I am new to fastlane, trying to read environment variable in <code>fastfile.swift</code> which has following</p>
<pre><code>import Foundation
class Fastfile: LaneFile {
.
.
.
func createRCBuildLane() {
beforeAll()
ensureGitBranch(branch: "qa")
let commitMessage = &... | 3 | 1,045 |
Powershell- Convert Complex XML to CSV | <p>I want to convert the below XML to CSV. Though it has header line information in the XML file. </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<myfile>
<updatetime>2019-07-30 08:30:30</updatetime>
<process code="PRS1234" name="PROCESS1234" />
<equipment code="EQP1234" n... | 3 | 1,262 |
Android button position in table row | <p>I have a table layout with a button in its lowest row:</p>
<p>
</p>
<pre><code><TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/name" >
</TextView>
<EditText
android:id="@+id/name"... | 3 | 1,308 |
How to re render sub component on prop change with redux? | <p>I have a react native app using redux and immutable js. When i dispatch an action from my main screen, it goes through my actions, to my reducer and then back to my container, however, the view doesn't update and componentWillReceieveProps is never called. Furthermore, the main screen is a list whose items are sub c... | 3 | 1,527 |
only one database create while using a multi-database setup | <p>I am trying to setup celery in one of my django projects. I want celery to use a separate database. Currently, as the project is in development phase we are using sqlite3. In order to setup multiple databases i did the following.</p>
<h3>Defined databases in the settings.py file.</h3>
<pre><code>DATABASES = {'defa... | 3 | 1,262 |
Error when parsing Html using Jsoup | <p>I want parsing html site and get a string value. But i receive error when parsing div class.</p>
<pre><code><div class="content clear">
</code></pre>
<p>I wrote above code but i received error.</p>
<pre><code>try {
doc = Jsoup.connect("http://tvrehberi.hurriyet.com.tr/program-detay/308271/deli-deli-... | 3 | 1,998 |
insert new tag create by user into my table(database) by php | <p>I'm currently building a blog system and here is my question.</p>
<p>I provide several basic tags(using checkbox) for users to select.</p>
<p>In the same time user can also insert a new tag by clicking the button of NEW TAG!.</p>
<p>here is my code.</p>
<pre><code>$newestTags = 0;
$title = $_POST['blog_title'] ?? '... | 3 | 1,496 |
3D model not casting shadows in ThreeJS | <p>I am importing a <em>glTF</em> model into <a href="https://threejs.org" rel="nofollow noreferrer">ThreeJS</a> and have a <a href="https://threejs.org/docs/#api/en/geometries/PlaneGeometry" rel="nofollow noreferrer">PlaneGeometry</a> acting as a ground. I need the model to cast shadows onto the plane/ground.</p>
<p><... | 3 | 2,206 |
Importing JSON data file into graph | <p>I'm fairly new to React. </p>
<p>I am trying to import this following test json data file into my React graph. </p>
<pre><code>{
"data": [
{"datetime": "", "data": [1,2,3,4]},
{"datetime": "", "data": [1,2,3,4]}
]
}
</code></pre>
<p>The x-axis is the time so it should not matter very much.... | 3 | 1,279 |
phonegap and android 2.x: Application Error: Is a directory(file:///#/ ... ) | <p>we're just about to launch our first app and are making pretty good progress as phonegap beginners so far. (At least imho)</p>
<p>We were testing it on Android 4.2+ so far and it's running fine. I was setting up an android emulator this morning to see how it works on 2.2 and 2.3.3 devices and was a bit shocked.
It's... | 3 | 1,370 |
AttributeError Django rest framework | <p>.save process is ok and data is reflected on DB but i am getting this error.
"AttributeError: Got AttributeError when attempting to get a value for field <code>asset_list</code> on serializer <code>TransactionSerializer</code>."</p>
<p>Traceback</p>
<pre><code>Traceback (most recent call last):
File "C:\Users\a.... | 3 | 2,889 |
setError() doesnt work on EditText from merged layout using <include layout="@layout/address_from_merge" /> | <h2>I m creating signup activity, & in its layout i m "merging address_from_merge"-layout, but at run time setError() doesnt get work on any EditText from merged layout,i.e. doesn't get validated rather it works on other EditText from current layout.</h2>
<blockquote>
<pre><code> <?xml version="1.0" encoding... | 3 | 6,168 |
Loading page info into array, and cycling page info as URLs | <p>I;ve built a CMS that allows users to build static pages of images and text content solely for displaying on television screens throughout our building. I've completed this to the point of viewing the display with it's pages but only if I call it explicitly in the url. The problem is, I want to load by display which... | 3 | 1,140 |
OpenCar tError on OCMOD | <p>iam trying make some modification in OpenCart Admin so i created ocmod file but it doesn`t working !
when using position "After" it replaced code !! and "After" not working !</p>
<p>this code</p>
<pre><code> <modification>
<code>31111</code>
<name><![CDATA[<font color="#0000">... | 3 | 1,579 |
Problem with accessing values in Request Session that I put into | <p>I am fairly new to Laravel. This may have an obvious solution but I can't seem to find it so far. Therefore I am asking for help.</p>
<p><strong>Question In Short:</strong>
I use Illuminate\Http\Request session ($request->session()) to store some data I get from BigCommerce API. But I can't get them when I need t... | 3 | 4,197 |
Filtering computed list by value in child-list using filter() | <p>I have a computed list which needs to be sorted based on a searchstring (if it exists).. </p>
<p>I'm trying to use filter() to sort out this feature, but i'm failing miserably.. Can anyone take a look please ? </p>
<p><strong>Example Scenario :</strong>
<em>User searches for "fryseren". this.searchtext = "fryseren... | 3 | 1,419 |
Accessing string from an html template class | <p>I'm trying to access a certain variable from another class, however I'm not able to do so. I have two buttons - the first button sets token to an html template file. The second should generate the file. The first button calls the class. The second button should call the string from the class for generation.</p>
<p>... | 3 | 1,170 |
ASHX To Serialize SQL Data To GeoJSON Format | <p>I am trying to build a web application that pulls data from SQL Server through an ASHX Handler, convert to a valid GeoJSON format, and display the markers on a leaflet map. I have the query to pull three fields from the SQLServer (Description, LAT, LONG). I have the ability to display GeoJSON data in Leaflet (from w... | 3 | 1,168 |
yeoman install error mac | <p>i get this errors in yeoman installation. anyone knows what might be the issue?</p>
<pre><code>npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/yo/node_modules/shelljs/scripts/generate-docs.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>... | 3 | 2,224 |
Parse retrieve objectId from class causes app to stop (not crash) | <p>I have already submitted a question on how to retrieve an objectId (<a href="https://stackoverflow.com/questions/28621309/swift-retrieve-objectid-field-causes-fatal-error">swift - retrieve objectId field causes fatal error</a>) but that seems to only apply to objects during a save because I have spent a long time (d... | 3 | 4,262 |
Boost.Spirit: combining preparsing with keyword parser and with Nabialek trick | <p>I have the input in the json-like form </p>
<pre><code>{
type: "name",
value: <json_value>,
}
</code></pre>
<p>Type name can be one of "int1", "int2a", "int2b" (of course, I simplify the real situation to provide the minimal relevant code). </p>
<p>The value always confirms to JSON syntax but also depen... | 3 | 5,345 |
AJAX call not triggered on show.bs.modal | <p>I have a button which is supposed to trigger a modal with a contact form. Part of the <code>show.bs.modal</code> function is an AJAX call to my DB to get some file details which are then meant to be shown in the modal-body.</p>
<p>The problem is that the modal does indeed open, but with no <code>modal-body</code> co... | 3 | 1,675 |
Theme Files getting include in .ics downloaded file | <p>Im working on a simple script to include a "Add to calendar" button.
Im using the idea and ICS.php file from <a href="https://gist.github.com/jakebellacera/635416" rel="nofollow noreferrer">https://gist.github.com/jakebellacera/635416</a> that is a old post.</p>
<p>Im getting the file to download through a... | 3 | 1,548 |
How to pass Token of the first request response to the second request header, using Axios in an Ionic React app (2 Post Requests) | <p>I want to register a user and save his partner's data at the same time. The first axios request creates the user and returns a token. I need the token as a header of the second request.
I have implemented as following 'doCreateAccount' but it is not working. It performs only the first request .post("xx/register... | 3 | 2,119 |
Python 3: How to generate a table from a nested list as input | <p>So, I've got the following nested list (which I've parsed from an Nmap XML output file). It's basically a list of IP addresses, and all their open ports:</p>
<pre><code>[['192.168.23.78', ['53', '88', '135', '139', '389', '445', '3389']],
['192.168.27.243', ['135', '139', '445', '3389', '5800', '5900']],
['192.16... | 3 | 1,424 |
VHDL testbench getting U in simulation waveform | <p>I'm trying to implement a testbench using a Golden Model and a DUT, in this case I'm testing a full adder 4 bits. I'm always getting undefined at the signal s_dut while s_gm works just fine. I'm stuck on this for a while and I really don't know what the problem would be.</p>
<p>Here is the top module:</p>
<pre><co... | 3 | 2,053 |
Indexing strategy for different combinations of WHERE clauses incl. text patterns | <p>Continuation of other question here:</p>
<p><a href="https://stackoverflow.com/questions/55423493/how-to-get-date-part-query-to-hit-index">How to get date_part query to hit index?</a></p>
<p>When executing the following query, it hits a compound index I created on the datelocal, views, impressions, gender, agegrou... | 3 | 1,341 |
Order of groups in R dplyr group_by function | <p>I'm using the <code>dplyr::group_by()</code> function in order to summarise some data. Let's assume the following dataframe:</p>
<pre><code>set.seed(1)
df <- data.frame(ans = sample(c("Yes", "No"), size = 10, replace = TRUE),
sex = factor(sample(c("Male", "Female"), size = 10, replace = TRUE... | 3 | 1,117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.