title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Web-scrapeing a table to a list | <p>I'm trying to extract a table from a webpage. I have managed to get all the data in the table into a list. However all the table data is being put into one list element. I need assistance getting the 'clean' data (i.e. the strings, without all the HTML packaging) from the rows of the table into their own list elemen... | 3 | 2,229 |
Audio file cant be found | <p>So for ActionListener practice Im trying to make a program that keeps track of how many times i die to this enemy in a video game. Each time the button on the GUI is pressed it increases the counter by 1 and it also is supposed to play a sound.</p>
<pre><code>import javax.swing.*;
import java.awt.event.ActionEvent;
... | 3 | 1,061 |
How to prevent an object from being illuminated by camlight in Matlab? | <p><em>[Hereafter are 4 snippets, one should only be interested in reading the two first ones. However by copy-pasting all of these, one should be able to launch what I see, although <strong>screenshots are provided at the end</strong>.]</em></p>
<p>Hi, by launching this <strong>main.m</strong> :</p>
<pre><code>%To s... | 3 | 6,051 |
SQL limit in many join | <p>I have a big query with a lot of inner join inside in a page on my website.
I want to apply for some left outer join limit 1 but if I put it into the sql give me errors.</p>
<p>This is a small part of my query isn't total, this query is only a part and ISN'T FINISH:</p>
<pre><code>SELECT * FROM products
... | 3 | 1,078 |
How to code php function or set parameters to return NO height values for images? | <p>This question comes from this <a href="https://stackoverflow.com/questions/5057516/how-to-proportionally-size-images-to-fit-dimensions-of-200px-x-150px-thumbnail-in">How to proportionally size images to fit dimensions of 200px x 150px thumbnail in css?</a>, but since I feel it`s not a CSS related question anymore I ... | 3 | 4,484 |
Trying to create an array and process it later at determined intarvals | <p>I am new to GoLang. My app (being ported from nodejs) is consuming messages from Kafka. Once i get a message, I inspect the config object in the message and place it in an array specific to that config. The rest of the data of the message in placed in an array within that array. Below are my structs</p>
<pre><co... | 3 | 1,054 |
Python Pandas - how to add columns of filtered sum and calculate percentage weight | <p>I would like to add two columns to a pandas df to show daily totals and weights. Existing df:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Date</th>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>2022-2-1</td>
<td>Apple</td>
<td>5</td>
</tr>
<tr>
<td>2022-2-1</td>
<td>Pe... | 3 | 1,445 |
How to use PySpark to get certain durations? | <p>Suppose we have already defined the DataFrame below in PySpark. And, how to use PySpark to get the duration (in mins) between the first biking event and the driving event (till the next driving event)? (Save the results into dataframe, including start_time, start_event, end_time, end_event, and durations, etc)</p>
... | 3 | 1,057 |
I can't scroll down on my website.No idea how to fix it? | <p>so I can't scroll down on my website, but I want to add more content, I tried everything. Tried to increase the height in CSS but not helped.I'm a beginner in web development please help me!
Thanks!
Maybe the problem is somewhere in the CSS code as I think. Maybe in the body tag, but I'm not sure in this
The webpage... | 3 | 2,916 |
having difficulty with responsive web design | <p>I would like the image to be a larger size on the computer, but to fit smaller devices. But when I try to have a larger image size for the computer, it also increase the size on the phone, and it shrinks and pushes my navigation (which is supposed to be in the middle) to the left. (my navigation is meant to be on th... | 3 | 1,485 |
Django Rest Framework list missing records | <p>I have set up a Django Rest Framework (v.1.11.7) Viewset called CustomerViewset. It's as simple as follows:</p>
<pre><code>class CustomerViewSet(viewsets.ModelViewSet):
queryset = Customer.objects.all()
serializer_class = CustomerSerializer
</code></pre>
<p>The serializer looks like:</p>
<pre><code>class Cust... | 3 | 1,144 |
How to write a generic, recursive extension method in F#? | <p>I'm struggling somewhat to translate a piece of C# code that defines a static, generic extension, recursive extension method to F#. The particular piece of code is Daniel Smith's Stackoverflow Community Wiki piece at <a href="https://stackoverflow.com/questions/18978523/write-an-rx-retryafter-extension-method">Write... | 3 | 2,295 |
Problems where element is not added when adding elements in the recyclerview | <p>There was a problem with the recyclerview list being added only initially and not being added after the second.</p>
<p>MainActivity.kt</p>
<pre><code>package com.malkinfo.editingrecyclerview
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.... | 3 | 2,385 |
Getting Data from Azure SQL database in Azure Function | <p>I'm having problems getting data from my AZURE SQL database. My code does get data, but not all of it. The intention is that the function needs to take all users in wicht the age is X (f.ex.:20)and return an array with those users. Right now the code just return the first user it finds on the database. I am using Az... | 3 | 1,059 |
@Ajax.ActionLink generates URL with route parameter instead of POST body, throws jQuery exception on click | <p>I'm trying to render a series of buttons in a ASP.NET MVC 5 View.</p>
<p>Each button should invoke an HTTP POST action in the controller, passing a <code>reportId</code> parameter as part of the POST body. The reportId is a GUID in the typical <code>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</code> format.</p>
<p>Here... | 3 | 1,514 |
nightwatch: distribute test with specific firefox profile | <p>Here is my problem: I want be abble to set firefox in specific language to run our e2e tests, and be abble to distribute them.</p>
<p>all verions:</p>
<p>Mozilla Firefox 53.0.3</p>
<p>Selenium 3.4.0 (from npm)</p>
<p>geckodriver 0.17.0 (from npm)</p>
<p>nightwatch.conf.js:</p>
<pre><code>const seleniumServer =... | 3 | 1,259 |
Can't access existing MonetDB with dplyr | <p>I created a MonetDBLite database yesterday, populated it, and was accessing it with <code>dplyr</code>, however this morning I don't seem able to use <code>dplyr</code>.</p>
<p>Here's my connection:</p>
<pre><code>statcast_db <- MonetDBLite::src_monetdblite("/Users/williampetti/statcast_database/statcast_db_Mon... | 3 | 1,552 |
Transparent background on a activity that uses actionbar | <p>Does anyone know how can I make the activity background transparent and show the actionbar(not transparent) at the same time?</p>
<p>I've tried this</p>
<pre><code> <style name="Theme.PureTransparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
... | 3 | 1,146 |
elasticsearch filter don't work with aggregation | <p>I am working with elasticsearch and create the following mapping, creating geo index, long field to compare it (gte) ,and boolean filed to identify gender.</p>
<pre><code>curl -XDELETE 'http://localhost:9165/locations' && echo
curl -XPUT 'http://localhost:9165/locations' && echo
curl -XPUT 'http://l... | 3 | 1,528 |
WordPress how to enqueue script block within .php file? | <p>Let me preface this question with I'm not very experienced with WordPress, so no level of detail is too much.</p>
<p>I'm developing a plugin for a WordPress site - for the purposes of this question I'll call it MyPlugin (*I've changed the names of the files/functions as well). I have various php files that I treat a... | 3 | 1,576 |
Visual Studio 2019 - Docker 4.1.1 - Web App Stops Working After Adding Container Orchestration | <p>This is sort of strange. As soon as I add docker orchestration in Visual Studio 2019 my Web Application stops working. These are the exact steps that I am taking:</p>
<ol>
<li>Launch Visual Studio 2019 (16.11.3)</li>
<li>Create new Project</li>
<li>Select "ASP.NET Core Web App", and click on Next</li>
<li>... | 3 | 2,360 |
How to register custormize serializer for flink kafka format type | <p>I create table as below, and the data is from kafka.
I want to deserialize the json message to Pojo object.
But the message format is not avro or simple json.
So I need to know how to register custormized serializer and use it for the 'format.type' property.
By the way, my flink version is 1.10.0.</p>
<pre><code>CRE... | 3 | 1,698 |
C++: Is there an efficient way to use indices like pointers, syntactically? | <p>Here is my journey trying to get some zero-overhead syntactic convenience for a problem that I suspect pops up relatively often. I'm new to C++, so I hope that someone can offer me a better solution. All code given should compile and run under C++11. Note also that, although my solutions involve using exactly the sy... | 3 | 1,709 |
Passing Scrapy response URL to Selenium and then Selenium response back to Scrapy | <p>How to pass a Scrapy response url to Selenium and then selenium response back to Scrapy</p>
<p>I have this Scrapy spider <strong>first.py</strong> : </p>
<pre><code># -*- coding: utf-8 -*-
import scrapy
import re
import json
class FirstSpider(scrapy.Spider):
name = "first"
allowed_domains = ["someautosit... | 3 | 4,190 |
Check user password and create new | <p>I trying to make a script so i have a little problem with this.
I have Old Password <- Want to check this in mysqli it is same or not and after this create new one. </p>
<p>This working but i have problem with check password when i put same password i have again showed this password is not correct .. any help ? ... | 3 | 1,241 |
First TreeViewColumn is not rendering | <p>I have an window defined in a gtk-builder file made with Glade. It contains a <code>gtk.Window</code>, with a child <code>gtk.TreeView</code> with 2 <code>gtk.TreeViewColumn</code>s:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.20"/>
<... | 3 | 2,575 |
MEAN Stack: Count and show the Sum of Values via AngularJS | <p>Hi I'm a beginner with the MEAN Stack and currently stuck with a logical challenge.</p>
<p>I know how to get the count of elements of my table with {{element.length}} in HTML but I need to get the total sum of a given value. </p>
<p>Thanks for your help in advance!</p>
<p>HTML:</p>
<pre><code><div class="jumb... | 3 | 2,300 |
What is query execution doing to this query in SQL Server 2005? | <p>Today I found this query in our code that pulls up a list of errors from our database:</p>
<pre><code>SELECT *
FROM (
SELECT Substring(title, 9, Patindex('%)%', title) - 9) AS SERVICE, *
FROM core.LOG
WHERE logtypeid = 1
AND title LIKE 'Error: (%'
AND lastm... | 3 | 13,771 |
Pass selected option <b-form-select> to axis post from child to parent | <p>I created a form using Vue.js. All my input fields are getting passed but I can't get the value in the <b-form-select> to pass. How do I pass the value of the selected option in <b-form-select> to parent?</p>
<p>child:</p>
<pre><code><label>
for="source"
class... | 3 | 1,877 |
Including a standalone component in vue ant design steps | <p>I want to use any design steps component and i wonder how i can include a standalone component from <a href="https://www.antdv.com/components/steps/" rel="nofollow noreferrer">https://www.antdv.com/components/steps/</a></p>
<pre><code><template>
<div>
<a-steps :current="current">
... | 3 | 1,219 |
Clearing ListView items create duplicate items when using events | <p>I have a list view that I want to be able to clear from items and then fill it up again.<br />
I need to use it with events to my <code>Engine</code> class.</p>
<p>The problem starts when I clear the items and run it again, it duplicate my items:<br />
<a href="https://i.stack.imgur.com/PHgHC.png" rel="nofollow nore... | 3 | 1,876 |
send data from db with and api build with express-generator code 200 no data | <p>my database in mongoDb is connected to my nodeJS i can read it there my nodeJs api is connected to my client-side (in reactJS) and i can send data from my nodeJs api using express-generator to my client-side and is working but when i tried to send my mongoDb database to the client-side is not working( but i'm still... | 3 | 1,199 |
gradlew assembleRelease doesn't work with react-native-camera | <p>I can't build release version of application. When I write <code>.\gradlew assembleRelease</code>, I get this error <code>Execution failed for task ':react-native-camera:compileGeneralReleaseJavaWithJavac'</code>. My <code>app/build.gradle</code> file:</p>
<pre class="lang-js prettyprint-override"><code>apply plugin... | 3 | 2,003 |
"Unknown Type" runtime error when calling std::function | <p>I am using a library (<a href="http://microsoft.github.io/cpprestsdk/namespaces.html" rel="nofollow noreferrer">C++ REST SDK</a>) in which I can set a handler for a specific event. Precisely I set a close handler which gets called when a websocket connection gets closed by the client(me) or the server. The handler i... | 3 | 1,032 |
How come I am getting a AWT Eventqueue Null pointer exception? | <pre><code> Employee emp = null;
int searchVal1 = (StringUtils.isNotBlank(tab2textField.getText())) ? Integer.parseInt(tab2textField.getText()) : 0;
String searchVal2 = tab2textField2.getText();
String searchVal3 = tab2textField3.getText();
ArrayList<E... | 3 | 2,341 |
Why has the touched SKSpriteNode stopped moving after being quickly dragged off and on game view? | <p>I have implemented multi-touch dragging of SKSpriteNodes on my game.</p>
<p>It is working, but of course, there is a bug.</p>
<p>In the iOS simulator,
Case 1: if I drag a node around the viewable screen, then continue to drag the node off the viewable screen, it will disappear and then continue to drag the node b... | 3 | 1,478 |
has_child not working as expected inside has_parent, | <p>I have a parent child relationship in my elasticsearch 7.9 where I am having the <strong>car</strong> as a parent type and it has multiple child types like <strong>honda, suzuki, volvo</strong> now I want to have a child of type volvo and parent type is car.</p>
<pre class="lang-json prettyprint-override"><code>{
... | 3 | 1,024 |
java.lang.ClassNotFoundException How it's possible? | <p>I added library with this dependency</p>
<pre><code> <dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
... | 3 | 4,372 |
EKS: Use cluster config yaml file with eksctl to create a new cluster but node can't join cluster | <p>I am new to eks. I use this cluster config yaml file to create a new cluster,</p>
<pre><code>apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: h2-dev-cluster
region: us-west-2
nodeGroups:
- name: h2-dev-ng-1
instanceType: t2.small
desiredCapacity: 2
ssh: # use existing EC2 key
... | 3 | 1,281 |
Quickbase delete_record | <p>I am unable to get delete_record function to work. Here is the delete_record code that I am currently using:</p>
<pre><code>$qb->db_id = $myQbTables["table1"]; //using table 1 now
$queries = array( //this is the where clause now for the delete query
array(
'fid' => '12',
'ev' => 'EX',
'cr... | 3 | 1,078 |
Multiple repositories in maven settings.xml. Maven trying to download from the wrong repository | <p>I have multiple repositories in my maven settings.xml(which is in the managedfiles section of my Jenkins).</p>
<pre><code><repositories>
<repository>
<id>nexus-abc</id>
<name>Nexus Everything Repository</name>
<url>https://nexus.us.abc.... | 3 | 1,363 |
Putting the <tr> data into the table with only one header | <p>I made the changes and now they are in the same table but not under the correct column and the address is not completely rendering. It appears to only be taking the first word which is numbers and leaving off the rest. </p>
<p><a href="https://i.stack.imgur.com/PQ6I4.png" rel="nofollow noreferrer">enter image desc... | 3 | 1,434 |
Error Called a function from a directive inside a function in a Controller | <p>I Have two controllers where i do almost the same thing, only change a little things in them, I have this:</p>
<pre><code>app.controller('CreateSignerCtrl', ['$scope','SweetAlert','SignerResource','$http', '$location', '$routeParams','$timeout','ngDialog', function ($scope, SweetAlert, SignerResource, $http, $locat... | 3 | 1,958 |
Facebook deep linking/App link not working on iOS | <p>I am trying to open my app from facebook when I tap on the post I made from my app.</p>
<p>I registered my app in developers.facebook.</p>
<p>I enabled the deep linking in my facebook app settings.</p>
<p>I have created the URL scheme for the app.</p>
<p><strong>Note:My app is not published into app store. (Appp... | 3 | 1,067 |
Django Run Python script and Pass output to javascript file | <h3>I am new to Django</h3>
<h1>What I need:</h1>
<p>1 - Run a python Script
2 - pass data to javascript file</p>
<p>I don't know whether the sentence I am framing is technically correct in terms of Django.</p>
<p>The following is the javascript code and python code resp.</p>
<pre><code>var trace2 = {
x: [-0.100387... | 3 | 3,281 |
How to access to this xml field? | <p>When i var_dump this:</p>
<pre><code>while($row = $updDate->fetch()){//GET FEEDS WHICH UPDATED DATE IS NOT IN DB
var_dump($this->soccer->GetAllOddsByFixtureMatchId(
array("fixtureMatch_Id"=>$row['FixtureMatch_Id'])));
echo $row['FixtureMatch_Id'];}
</code></pre>
<p>It returns me... | 3 | 1,297 |
Trying get Open MPI to play nicely with Fortran on OS X | <p>I'm trying to run a case for the software <a href="https://github.com/alphaparrot/ExoPlaSim" rel="nofollow noreferrer">ExoPlaSim</a> on my MacBook. While the software is built primarily for Linux, it can run on Mac according to the developer instructions. I'm running a simple default "case" script and I'm ... | 3 | 1,518 |
Angular Cognito issue: Cannot read property 'user' of null at authorization.service.ts:29 | <p>I am trying to implement this POC of AWS Cognito and API Gateway for understanding purposes. According to the video, I have added my own UserPoolId and ClientId in <strong>authorization.service.ts</strong> and I managed to serve the app successfully on localhost:4200. However, I am unable to register an account on m... | 3 | 2,058 |
Android Studio & Gradle: "Build failed with an exception." | <p>My private code base for Android Studio 4.0.1 (Windows 10 Home, 64-Bit Edition) simply refuses to compile React Native code. It leaves me only this vague error.</p>
<blockquote>
<p>exception during working with external system"</p>
</blockquote>
<p>This was after modifying settings.gradle on this project to als... | 3 | 6,262 |
Align items in 3's in PHP using HTML | <p>Good Day All, </p>
<p>I am trying to align items in a row of 3. At the top of each row there is a div called "". The purpose of this div is to open a new and after every 3 items the div must be close and another one opened. I have tried the below code to my suprise it is not working. This is very weird as the MOD ... | 3 | 2,913 |
Laravel soft delete: model::onlyTrashed() returns all | <p>When I try to view only soft deleted records in Laravel the onlyTrashed returns all records.</p>
<p>As you will see I also have a searchform which complifies things a bit. And I think the searchform is the reason this doesn't work but I don't understand why excactly.</p>
<p>Controller:</p>
<pre><code> public f... | 3 | 2,087 |
R - How to add the sum of a specific occurrence in one column to another column | <p>Using R.</p>
<p>This is a small subset of my dataset, simplified to only show relevant columns. The data is taken from Capital Bikeshare. The Start.Date column below has exact rental times for a bike.</p>
<pre><code>Start.date Member.type
2018-11-01 00:00:45 Member
2018-11-01 00:00:52 Casual
2... | 3 | 1,104 |
How to Bind Json Data into Mpandroid Bar Chart in Android? | <p>Json Data:</p>
<pre><code>[
{
"NAME":"601 GRIETA EN CUERPO",
"PERCENTAGE":"46"
},
{
"NAME":"77 ENFRIAMIENTO O DUNTING",
"PERCENTAGE":"18"
},
{
"NAME":"78 PRECALENTAMIENTO",
"PERCENTAGE":"18"
},
{
"NAME":"209 MAL MANEJO",
"PERCENTAGE":"9"
},
{
"NAME":"92 FUGA DE MANOMETRO",
"PERCENTAGE":"9"
}
]
<... | 3 | 2,174 |
WPF application starts console after click button and crashes xaml | <p>I created a Selenium Console Bot which now I want to be started with WPF. So I created a simple window and added a button, which is supposed to start my bot, which I've rewritten into WPF. It starts and it works, but it crashes the xaml window and opens a Console (which shouldn't happen or should?). Then it leaves t... | 3 | 2,055 |
Airflow dags keep running | <p>One of my DAGs is set to run every 5 mins. The task is to simply sync some files, nothing too complicated. But since yesterday some of the runs seem to be in the status "running" continuously. It is all random, not sure why some of the runs are successful, whereas the other ones just get stuck at running.<... | 3 | 3,517 |
send multiple datatype parameters in retrofit post api android | <p>i want to send multiple parameter with different datatype in retrofit.retrofit post service not working neither giving error my code:</p>
<p>Api</p>
<pre><code> public class Api {
private static Retrofit retrofit = null;
public static ApiInterface getClient() {
// change your base URL
if (retrofi... | 3 | 2,598 |
Half of normal mapped object is inverted | <p>I have tried to implement normal mapping for 3 days now in vulkan. I pre-calculate the tangents and bitangents in the simple obj loader i made and create the TBN matrix in the shader. For now I'm just trying to get it to work, optimizations is saved for later. I'm very confused for why this problem occurs, I have go... | 3 | 1,653 |
Print with multithreads in one line | <p>I want to print in one line with multithreads. I created a class which creates a new thread to print it:</p>
<pre><code>class Printer(threading.Thread):
def __init__(self, count1, count2):
threading.Thread.__init__(self)
self.count1 = count1
self.count1 = count1
def run(self):
... | 3 | 1,411 |
Plot generalized linear mixed models (GLMMs): mixture of categorical and numeric variables | <p>I'd like to plot the relationship between the number of <code>ladenant</code> response variable in function of <code>Bioma</code> (categorical) and <code>temp</code> (numeric) using binomial negative
generalized linear mixed models (GLMMs) without success. I try to do:</p>
<pre><code>#Packages
library(lme4)
library(... | 3 | 1,144 |
i want to view only last data i have entered in my database but it showing all data from database in laravel-8 | <p>i am doing a project where in my index.blade.php I want to show only the last data I have entered but the route I write it shows all data from database. how can I show only the last data I have entered. Thanks in advance.
Could you see on my code and help me.
Here Is the code from my index.blde.php</p>
<pre><code>@e... | 3 | 4,240 |
D3.js v3 foreignObject Html button doesn't work after 2 years no update of my code | <p>In 2017, my code worked well as you see the buttons appeared on the page.</p>
<p>2017 screenshot :</p>
<p><a href="https://i.stack.imgur.com/wjiwp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wjiwp.jpg" alt="screenshot"></a></p>
<p>But by now, I had no idea why they disappeared as the follow... | 3 | 1,494 |
How to check Facebook User's ID already exists before lauching app? | <p><strong>Short description.</strong> I'm developing flash game for <em>Facebook</em>. I need to show registration form first time when user launching application. It should check If user already registered (existing in database).</p>
<hr>
<p><strong>Purpose.</strong> To achieve this I need to get <em>Facebook User'... | 3 | 1,122 |
How to display an enlarged version of an image using a bootstrap popover? | <p>I currently have a program which takes user inputs and displays them into a dynamically created table. One of the inputs are an image passed through an input of type file. I want to be able to enlarge this image using a popover while hovering over it (mouseover) in the table itself. </p>
<p>Bellow is the jQuery cod... | 3 | 1,216 |
Ansible AWX - write a local file | <p>I'm running ansible AWX in minikube and I could use some assistance in understanding how to write a file to AWXcontaner. My goal is to use a survey to create a template. This template would be written to the file system and pushed to a git repo for retention. Writing a file to AWX was a first test.</p>
<p>I'm very n... | 3 | 1,274 |
Finding the cause of a Chromium stack trace triggered via a headless run of jasmine in linux | <p>I have code that is performing javascript unit tests on known working code. The unit tests pass on Mac and older versions of Chromium on Linux. However on linux platforms as soon as we upgrade to the latest version of chromium we end up with a stack trace from Chromium.</p>
<ul>
<li>Chromium version <= 71.0.35... | 3 | 1,191 |
MySQL - What's wrong with the query? | <p>I am trying to query a database to find the following.</p>
<p>If a customer searches for a hotel in a city between dates A and B, find and return the hotels in which rooms are free between the two dates. </p>
<p>There will be more than one room in each room type (i.e. 5 Rooms in type A, 10 rooms in Type B, etc.) a... | 3 | 1,564 |
pandas pivot table: custom aggfunc with margins | <p>I am using pandas to create pivot tables. My data looks usually contains a lot of numeric values which can easily be aggregated with np.mean (e.g. <em>question1</em>), but there is one exception - Net Promoter Score (notice <strong>Total 0.00</strong> both for EU and NA)</p>
<pre><code> responseId country region... | 3 | 1,420 |
Apply similar looking styles to AlertDialog box for different Android versions | <p>I want to make the AlertDialog box for my app look like the ones on Android > 6.0.0 ( as depicted in the following screenshots) for all lower android version till 4.4.4. I have applied a custom style for the dialog box. </p>
<p>Following is the style in styles.xml for AlertDialog:</p>
<pre><code><style
nam... | 3 | 1,424 |
Why terraform is unable to compute a local variable correctly in the following trivial scenario? | <p>Given is the following configuration (main.tf):</p>
<pre><code>locals {
locations = toset(["a", "b"])
}
resource "local_file" "instance" {
for_each = local.locations
content = each.value
filename = "${path.module}/${each.value}.txt"
}
output "primary_filename" {
value = local_file.instance["... | 3 | 1,208 |
How to get console window input to make newlines act like newlines? | <p>How can I make std::getline treat newlines like newline characters in a hard-coded string would be treated?</p>
<p>I have this code:</p>
<pre><code>std::string sServerRequest;
std::getline(std::cin, sServerRequest);
std::cout << sServerRequest;
</code></pre>
<p>If I type this input in the console:</p>
<pre... | 3 | 3,371 |
Haskell fast text processing | <p>I am working on function to convert javascript encoded unicode string from server api to utf8. </p>
<p>I have 2 approaches. The first is not general enough, and second is too slow.
How can I do it both fast and for all unicode symbols?</p>
<p>First is just replacing some substring using Map</p>
<pre><code>ununico... | 3 | 3,317 |
Cannot start new Activity, says it's not declared on Manifest | <p>I've seen a lot of posts vey similar to this one, but I can't figure out what's wrong yet.</p>
<p>Here's part of the logcat:</p>
<pre><code>10-30 20:37:52.510 11225-11225/com.timetodev.prototipoulsa E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.timetodev.prototipoulsa, PID: 11225
android.content.ActivityNo... | 3 | 2,452 |
Removing duplicates from a bag returned by xsl:key based on attribute value | <p>I have the following xml file.</p>
<pre class="lang-xml prettyprint-override"><code><Bank>
<Person personId="1" type="1071" deleted="0">
</Person>
<Person personId="2" type="1071" deleted="0">
</Person>
<Person personId="3" type="1071" deleted="0">
</Person>
... | 3 | 1,172 |
MySQL calculating row differences with unstructured data | <p>I have a table messages with columns: phonenumber, type, timestamp.<br>
Type indicates if the message is a question or an answer.</p>
<p>Now I need a query that can calculate the response time between a question and an answer but the problem is that there exists no relationship between question & answer except ... | 3 | 1,061 |
Again mysql "count distinct" | <p>I have a strange problem with mysql count. When I execute </p>
<pre><code> SELECT a.inc AS inc,
a.cls AS cls,
a.ord AS ord,
a.fam AS fam,
a.subfam AS subfam,
a.gen AS gen,
aspec AS spec,
asubspec AS subspec
FROM a
WHERE (ainc = 11)
</code></pre>
<p>I obtai... | 3 | 1,226 |
std::push_heap and std::pop_heap with MoveConstructible objects | <p>I want to maintain a heap where the payloads are <code>MoveConstructible</code> (because they hold a <code>std::unique_ptr</code> inside.) Although the <a href="http://en.cppreference.com/w/cpp/algorithm/push_heap" rel="nofollow">documentation</a> suggests that the object must be <a href="http://en.cppreference.com/... | 3 | 6,469 |
How send and recived mqtt message in same script | <p>Hi can someone help me?
I´m trying to send every 2 minutes a mqtt message but I also need to receive messages at any time.</p>
<p>The message every 2 minutes is the state message to know that the server is running and i need to receive messages to execute the shutdown commands.</p>
<p>I try this but this only send ... | 3 | 1,106 |
How to round time to the nearest quarter hour in word | <p>I need to round time to the nearest quarter hour in a word document. I am not very good at coding.</p>
<p>After a fair bit of searching I have found some vba code but it doesn't quite work. The code is:</p>
<pre><code>Sub Time()
Dim num() As String
Dim tod() As String
Dim temp As String
num = Split(Time, ":&... | 3 | 1,958 |
ScalaMock: Can't log call to mock object, have expectations been verified already | <p>Im running into an issue with scala mock. Where the error message indicates that it cannot log a call to a mock object.</p>
<p>I've set up the following spec. I've a few mocks setup but nothing to extraordinary:</p>
<pre><code> "get accounts" in {
import CodatAccount._
val mockCompanyId = UU... | 3 | 2,317 |
Why the output of the two writing methods are inconsistent? | <p>The first way to write:</p>
<pre><code> const LazyMan = function (name) {
const array = []
const fn = () => { console.log("Hi! This is " + name + '!'); next() }
const next = () => {
const fn = array.shift()
fn && fn()
// array.shift() && ar... | 3 | 1,323 |
Login system using Identity and role provider for existing database | <p>For the past few days, I was working in creating a login system for a webApp(asp.Net MVC 5) where I have a database already with username, credentials and Roles. I have found information from many blogs and stack overflow questions for my work and used it accordingly. Now before going online, I want to make sure tha... | 3 | 1,621 |
TensorFlow GPU CUDA CUDDN errors | <p>I am attempting to install TensorFlow GPU on an Nvidia GeForce GTX 960M. I have installed CUDA and added the PATH variables:</p>
<pre><code>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libn... | 3 | 1,862 |
create c# object from json array | <p>I am receiving an error when trying to convert my json array into an object.</p>
<p>I have a Json array with multiple layers like this : </p>
<pre><code> {
"error":"0",
"result":{
"activities":{
"1":{
"activity_id":"15803",
"activity_id_name":"Ashtanga vinyas... | 3 | 1,453 |
How should I use mock for certain case? | <p>Suppose that there are classes like:</p>
<p><strong>CivilAddSystem class :</strong></p>
<pre><code>class CivilAddSystem{
List<People> people = new ArrayList<>();
List<Town> towns = new ArrayList<>();
public People addPeople(People people) {
people.add(people);
re... | 3 | 1,913 |
use .lt(number).groupby().transform('all') without NaN | <p>Hel lo, I have a comman that allow mee to only keep groups were values in one column is lesse than 20.
But sometime the values can be NaN and even if all the values are less than 20 this group is droped.</p>
<p>I use this command: </p>
<pre><code>tab=tab[tab['Event'].lt(20).groupby(tab['Clustername']).transform('a... | 3 | 1,302 |
Pass HTML body via javascript to div | <p>I am trying to create a webpage (or really just a simple document for the sole purpose of writing a help file for another project). I have an HTML document which splits to document in 2 panes, i.e.</p>
<pre><code><body onload="addEvents();">
<div class="split left">
</div>
<div cl... | 3 | 1,367 |
No backports error while retraining Tensorflow's Inception v3 model | <p>I have been trying to retrain Inception by following the tutorial here:
<a href="https://www.tensorflow.org/tutorials/image_retraining" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/image_retraining</a>.
I get this error "No module named backports"
when I run this</p>
<pre><code>bazel-bin/tensorflo... | 3 | 1,060 |
My contact form is not sending the dropdown values to email | <p>My contact form is not sending the dropdown values to the email message.. Everything else goes through except the dropdown. </p>
<p>This is my Form HTML:</p>
<pre><code><form id="contactForm" action="#" method="post">
<p> For any enquiries enter your contact details and enqu... | 3 | 4,819 |
xml transformation with xsl-beginner | <p>I want to transform a simple xml using xsl. I know there are many examples on this site, but if anyone can help me go to the next step. </p>
<p>This is the source xml:</p>
<pre><code><?xml version="1.0" encoding="ISO-8859-1"?>
<output>
<cars>
<car>
<id>1</id>
&... | 3 | 1,236 |
When i add Firebase Realtime database in my app it start crashing | <p>I am trying to add a Firebase realtime database into my Android App. It works fine until I add </p>
<pre><code>implementation 'com.google.firebase:firebase-database:19.2.1'
</code></pre>
<p>in my Gradle (module:App) to add a Firebase Real-time database. After adding this my App crashes on start. Firstly It shows a... | 3 | 1,695 |
Could not generate DSL.xtext in maven | <p>I have xtext project. I usualy generate src-gen by double clicking on my DSL.xtext and click generate artifacts but I don't know how to do that in pom xml.</p>
<p>I instead used inappropraite way which is copy all the src-gen and xtend-gen to target which not good. I need maven to take care of my the generation.</p>... | 3 | 6,969 |
Return the search tokens along with the search result | <p>Is it possible to return the search tokens along with the search results? Not highlighted search results, but the tokens in a separate array field.
Docs do not mention this option.
I know I can make a separate analyze request, but that's not what I need.</p>
<p>Example of a search query:</p>
<pre><code>{
"ex... | 3 | 6,561 |
how to update database using room persistance library and livedata | <p>I am trying to update my database using <strong>Room persistence Library</strong> and <strong>Livedata</strong>. I am very new to java, so, with the manual and various tutorial, I have setup the DAO, entity etc. But I am still struggling with how to actually add the data.</p>
<p>This is my database defination:</p>
... | 3 | 3,514 |
Strange PHP Scandir or Split error with array | <p>First, please forgive me, I'm still very new to this and I'm a little tired right now.</p>
<p>I'm at my wits end over this. I've written a little PHP code so that a site I'm working on can update it's newsletters quickly and easily. The goal is to show the first newsletter as an embedded pdf and then show all the r... | 3 | 1,675 |
Zend search form, navigate to external site via controller | <p>I have question to You. I am working and fixing little bugs on website built on Zend framework. We have search form indented for searching through services, products and companies. Search form has three radio buttons to select: <strong>services</strong>, <strong>product</strong>, <strong>companies</strong>.</p>
<p>... | 3 | 1,226 |
How to make one AJAX request after a number of Backbone saves | <p>I have a situation where I need to save a Backbone model and then on its success iterate through a collection and save those and then on each of those successes iterate through another collection and save those and then after all those are complete perform one AJAX request. This is what I have:</p>
<pre><code>back... | 3 | 1,067 |
How to add authentication to a Uber clone app using Flutter and Dart? | <p>I just started using Flutter/dart and encountered this while working on firebase auth for phone number
Error while adding google-services.json file to my project for auth.
What I get while trying to build the apk:
The code is working perfectly. yesterday the whole process was working got OPT Code and registered my p... | 3 | 2,502 |
QJSEngine, global and script, what is causing the syntax error | <p>I am using the <a href="https://doc.qt.io/qt-5/qjsengine.html" rel="nofollow noreferrer">QJSEngine</a>, I added a global to the object:</p>
<pre><code>QJSValue objGlobal = pobjScriptEng->globalObject();
</code></pre>
<p><code>pobjScriptEng</code> is a pointer to an instance of <code>QJSEngine</code>.</p>
<p>I ... | 3 | 1,902 |
How can I keep a menu open when navigating to another page? | <p>I'm using a js code for additional menu options on click, but how can I keep the "click menu" permanently open, say after one of its option has been clicked, so the user won't have to start over again once taken to the new page. </p>
<p>HTML:</p>
<pre><code> <div class="c3" id="topLeftNav">
&... | 3 | 1,046 |
Four columns based on four keys | <p>I made a table first based on information that consists of 5 numbers and a year (+B sometimes):</p>
<pre><code>SELECT number5,
YEAR(MyDate) AS [year],
concat(a.[number5],'-',YEAR(MyDate)) AS [A1],
concat(a.[number5],'-',YEAR(MyDate)-1) AS [A1-1],
concat(a.[number5], '-',Y... | 3 | 1,104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.