title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Firebase functions: failed to deploy Error 403 failed to read tags for host us.gcr.io | <p>My project consists of two NodeJS based firebase functions which have been there for months now, I wanted to change some smtp info in one, so modified it but can't deploy anymore.</p>
<p>Things I want to clear before heading further:</p>
<ol>
<li>Yes, I'm properly logged in in the firebase cli.</li>
<li>The function... | 3 | 1,621 |
Meteor.js, multiple insertions in different collections by submitting a form | <p>I am trying to insert elements in 2 different collections with a submit. Here is the problem : When I try the first submit, it only works for the first insert. If I change the order of inserts, it only works for the first insert too. The problem is only present during the first submit after launching the server.</p>... | 3 | 1,100 |
How to write the date in DatePicker without the day name? | <p>I'm using a DatePicker in WPF app and I'm trying to get the date with month name in arabic and without the name of day.</p>
<p>I'm following the documentation of DatePicker <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.datepicker?view=netcore-3.1" rel="nofollow noreferrer">link</a></p>... | 3 | 1,126 |
REACT: Can´t pass parameter to a lifting up event handler | <p>I can´t pass the parameters from a child component to a parent component using the same event handler. </p>
<p>My components' tree follows this structure:</p>
<ul>
<li>ProductList
<ul>
<li>ProductsGrid</li>
<li>PaginationBar</li>
</ul></li>
</ul>
<p>In the ProducList component I have this event handler</p>
<pre... | 3 | 1,789 |
What is a better way to get the Median of a Probability Map? | <h1>Background</h1>
<p>I've written a program designed to calculate the odds of each outcome associated with a Die Roll, or combinations of Die Rolls. Specifically, when handling rolls like "add together two six-sided dice" (aka the Catan Roll) the way that probabilities are calculated is by saving Mappings between in... | 3 | 1,129 |
Custom ListView Inside ListFragment | <p>I am trying to use the ListFragment and assign an adapter to it.
I tried many different methods, but still the app crashes and won't start.</p>
<p>Here is what I have done:</p>
<p>fragment_five.xml:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http:... | 3 | 1,351 |
How to set the timezone on sonata_type_datetime_picker | <p>First question after using stackoverflow for years. Thanks for all the answers all over the years.</p>
<p>I have an issue with the sonata_type_datetime_picker.</p>
<p>My php.ini timezone is set to Europe/Paris.</p>
<p>In my sonata admin, i have a form to set date-start and date-end for a voucher.</p>
<pre><code>... | 3 | 1,163 |
How to retrieve value from firebase in android? | <p>I am new in using Firebase. I am trying to get data from Firebase, but when ever I am getting data from Firebase my application is getting crash. I am trying to get value from <code>msg</code>, my data structure is like this:-</p>
<pre><code>users
-KUWbdwMC7Nw9EIqKfHH
msg: "none"
</code></pre>
<p>Notification Se... | 3 | 1,347 |
PHPmailer using Gmail does not work | <p>I'd like to create an email form using gmail but can't get it working.
I downloaded PHPmailer and uploaded them.
The form works, it also checks the if the email adsress is correct but does not show a message after hitting the submit button and does not send an email.</p>
<p>I also turned on the access for less secu... | 3 | 1,468 |
EJBException cannot cast one entity to another | <p>Has anyone encoutered this kind of problem while working with EJB and Tomee:</p>
<blockquote>
<p>SEVERE: Servlet.service() for servlet [rs.ac.uns.ftn.informatika.mbs2.vezbe09.primer01.server.servlet.LoginController] in context with path [/Vezbe09] threw exception
javax.ejb.EJBException: The bean encountered a n... | 3 | 8,815 |
Using new and delete on object arrays C++ | <p><a href="https://stackoverflow.com/questions/677653/does-delete-call-the-destructor">Does delete call the destructor?</a>
I have modified the code on the first answer a little bit, but i can't catch my wrong. It is being compiled with 0 errors but program crashes when i run it, also devC++ debug mode gives me SIGTRA... | 3 | 1,643 |
WPF (Bug) FocusVisualStyle doesn't work for Window with Template | <p>I have got the problem with <strong>FocusVisualStyle</strong>, I need to override <strong>TAB keyboard</strong> focus style, when i'm override <strong>Window.Template</strong> all controls styles <strong>FocusVisualStyle</strong> on the window stops working.</p>
<p>The problem XAML (Tab style doesn't work):</p>
<pre... | 3 | 2,373 |
eventhandler not attaching to div elements created in a forloop | <p>I am trying to create a simple user interface consisting of an input text box that only accepts values from a 3X10 number pad grid 0-9 with the top row showing the number selected on the number pad. something like this to be exact<a href="https://i.stack.imgur.com/C7YYJ.png" rel="nofollow noreferrer">UI-interface</a... | 3 | 1,313 |
PHP Mysql Statement - multiple statements | <p>I have a PHP page that displays the results of a mysql query. each returned record is assigned a check box with the a value equal to the Row ID column.</p>
<p>the mysql statement in place inserts the selected rows into a new table.</p>
<p>I would like to add a second mysql query that updates the status of another ... | 3 | 3,052 |
How can I set a default value on a projection field? | <p>I have a projection DAC defined as below. I am using this DAC in a view on <code>InventoryItemMaint</code>. I need the <code>InventoryID</code> field of my projection DAC to default to the current item's ID, but nothing I try works.</p>
<p>Is there a special way to do this?</p>
<p>I've tried:</p>
<ul>
<li><code>PXDB... | 3 | 2,160 |
After ajax success show child table in if condition in ajax success | <pre><code>This is an HTML table with all buttons
</code></pre>
<p>On click of a button in table row button, status has to be updated in backend PHP and in ajax success I have to display child table</p>
<pre><code><table id="example" class="stripe row-border order-column" width="100%"&... | 3 | 1,543 |
MySQL and asp select highest row in area | <p>I have an MySQL table with 3 fields per entry. x and y are primary keys and one value. I want to select the highest row in a given area.</p>
<p>As an example:
The table looks like this:<br>
<a href="https://i.stack.imgur.com/ph6Oz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ph6Oz.jpg" alt="">... | 3 | 1,055 |
How to replicate the dialog functionality of jQuery UI in Jetpack? | <p>I'm trying to get a very basic and simple dialog in my Javascript, actually I'm trying to replicate something very similar to this example from jqueryui website:</p>
<pre><code><script type="text/javascript">
$(function() {
$("#dialog").dialog({
bgiframe: true,
... | 3 | 1,149 |
Having a hard time installing pip on my Windows 7 | <p>I'm using Python 3.8.0 on my WIN 7 32-bit, but the problem is that I can't install pip on my computer. At first, that was not the case, I'd actually got installed on my pc, but it couldn't install any package with "pip install [package name]".
In both cases it did return the same error, I've already tried installing... | 3 | 1,904 |
There is an error for email sending using Webmail function | <p>I got this error</p>
<blockquote>
<p>The parameter 'addresses' cannot be an empty string. Parameter name:
addresses Description: An unhandled exception occurred during the
execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
... | 3 | 1,208 |
WordPress bring session data from product page to cart page in custom plugin? | <p>I have product page listed all product have add button when some one click it should pick up the product related data in session array bring into cart page and show in cart page like woocommmerce does.</p>
<p>This is custom independent mini plugin. </p>
<p>my code and output is bellow.</p>
<p><strong>2 custom tab... | 3 | 1,683 |
Lemon Parser REPL | <p>I'm trying to build a Smalltalk REPL based on <a href="https://github.com/etoile/Languages" rel="nofollow noreferrer">LanguageKit</a>, which uses a lemon gramma. Currently the parser only supports parsing complete class definitions, but not statements outside of the method syntax. </p>
<p>For example this gets pars... | 3 | 1,056 |
How to remove the login window when a toplevel is opened? | <p>So this is my code below for a login menu. Once the user has logged on I want the login menu to be either hidden or deleted. I've tried <code>.withdraw()</code> and <code>.destroy()</code>. I'm certain that I'm placing the code in the wrong places, any assistance would be much appreciated!</p>
<pre><code>from tkint... | 3 | 1,431 |
Shimming deps and exports from RequireJS in Webpack | <p>I am migrating my project from RequireJS to Webpack 4.6 and I have some difficulties with setup. I am quite new to Webpack so it's little bit complicated for me so maybe I just don't understand something.</p>
<p>I am trying to migrate shimming setting froms requireJS config to webpack config.</p>
<p>This is the ol... | 3 | 3,322 |
ruby 2.0 bz2 gem installation in MacPorts MacOS | <p>Would anyone provide guidance on how to install the bzip2-ruby for ruby-2.0 in MacPorts environment? </p>
<p>when I installed it, it complained about version.h not found. I did a symlink of the version.h to ruby-2.0.0/version.h and then I got these:</p>
<pre><code>~ >$ sudo gem install bz2
Password:
Building n... | 3 | 2,406 |
Jquery on hover and focus apply classes plus data-delay iteration | <p>I'm trying to figure out how I can make my list items in a list fadeInUp with a delay on 100ms per list item.</p>
<p>I have made this so far and it does apply the classes to animate it and the attribute with a value of 100ms increase per list item. But when I hover, all items fadeInUp at the same time, even though ... | 3 | 1,172 |
Unexpected null value | <p>This is my homepage.dart. The error here said that there is an unexpected null value. I've been trying to debug this for the day but i still could not manage to find it, how to solve this problem? When i try to run the code. It won't shows the data from the 'Parking' which is inside the firestore database. The data ... | 3 | 2,765 |
yii2 use dblib driver SQLSTATE[HY000]: General error: 20018 Invalid object name t_user | <p>I have use dblib driver in my project ,
but execute query exception</p>
<pre><code>Database Exception – yii\db\Exception
SQLSTATE[HY000]: General error: 20018 Invalid object name 't_user'. [20018] (severity 16) [select top 10 * from t_user]
The SQL being executed was: select top 10 * from t_user
Error Info: Array
(... | 3 | 1,290 |
Why is MLLinearRegressor returning the same prediction every time? | <p>I am working on a project involving CreateML and an MLLinearRegressor. For some reason, any time I attempt to predict a value that's not present in the training data, I get the same prediction every time. This happens both in Swift Playgrounds and when using the model in an Xcode project. Why might this be happening... | 3 | 1,624 |
Xcode issue Type 'XYZController' does not conform to protocol | <p>I have an iOS project and after implementing a 3rd party library to my project via Pods, I'm getting an error:</p>
<blockquote>
<p>Type 'XYZController' does not conform to protocol</p>
</blockquote>
<p>When I click on the error and I add the protocol subs, Xcode adds the already implemented function (<code>cardF... | 3 | 1,056 |
On child component state change, update siblings | <p>Partially working example: <a href="https://codesandbox.io/s/jolly-smoke-ryb2d" rel="nofollow noreferrer">https://codesandbox.io/s/jolly-smoke-ryb2d</a></p>
<p><strong>Problem:</strong>
When a user expands/opens a component row, all other rows inside the rows parent component need to be collapsed. Unfortunately, I... | 3 | 1,354 |
Wrap_Content with costume radio button? | <p>I have made a quiz app but I am facing problems with the radio buttons. I created a rounded background and set it as my radio button background. However, the background doesn't enlarge with the amount of text inside the radio button.</p>
<h3>Here is an image</h3>
<p>I cannot post an image with less than 10 reputatio... | 3 | 3,789 |
add and remove a subview using a button | <p>Hey guys so I've drawn a circle and added it as a subview using a button. When I try to remove it using the <code>removefromsuperview</code> it didn't go away. Please check the code below.</p>
<p>I added a button named <code>Removecircle</code> so I can add or remove the circle but that didn't go as planned. </p>
... | 3 | 1,152 |
Having issues with how the order function places data in a data frame | <p>Here is my code I used to generate the data and the order:</p>
<pre><code>cd1 = data_grouped1
cd2 = data_grouped2
smth_ln = lowess(cd1,cd2)
data_frame = data.frame(cd1,cd2)
ordered_data_frame = data_frame[order(data_frame$cd1),]
</code></pre>
<p>The problem is with the output of ordered_data_frame:</p>
<pre><code... | 3 | 1,072 |
Powershell - Mulitple Servers CPU/Mem/C Drive stats - Total Average | <p>Newbie here, :-)</p>
<p>Hope you all well and to reach out for some assistance;</p>
<p>I have a code also which can generate CPU/Mem/C Drive stats for multiple servers, and was hoping to ask for help if this could have a total average of all the servers? with the script below, is there a way to include getting the... | 3 | 1,150 |
How to get copy of structured array selection | <p>I have a structured array with mixed types:</p>
<pre><code>dt = np.dtype([('x', np.float64), ('y', np.float64), ('n', np.uint32)])
arr = np.empty(10, dtype=dt)
</code></pre>
<p>As of numpy 1.16 or so, if I view <code>x</code> and <code>y</code>, I get a view:</p>
<pre><code>>>> sub = arr[['x', 'y']]
>... | 3 | 1,126 |
Angular Dynamically generated select field where one is dependent on the other | <p>I have dynamically generated select fields.</p>
<ol>
<li>There are 2 select fields. first: "category" and the second is: "object"</li>
<li>Select field "object" is dependent on the value of "category".</li>
<li>If category selected is "animal", object will display on... | 3 | 1,265 |
Patterning COUT by inches/feet of pallets (C++ help) | <p>doin a little project to try and better my C++ knowledge, I might be doing it wrong and any guidance in the right direction would be more than appreciated. Just a heads up I am an amateur when it comes to C++..</p>
<p>What im trying to do:
Make a program that calculates pallets in a commercial truck, our standard ... | 3 | 3,911 |
asp:repeater w/ asp:image and generic-handler - SQLConnection crash | <p>I have an asp repeater which sets a generichandler (.ashx) parameter differently for each entry. This is used to create comments that are posted by users and display the avatar of the user posting by fetching it from a database. If there is only one post, it works fine, but as soon as there are two or more posts I g... | 3 | 2,389 |
combine two lists to PCollection | <p>I'm using Apache Beam. When writing to tfRecord I need to include the ID of the item along with its text and embedding.
The tutorial works with just one list of text but I also have a list of the IDs to match the list of text so I was wondering how I could pass the ID to the following function:</p>
<pre><code> def ... | 3 | 1,072 |
Swift Firebase doesn't store Bool | <p>I am having two ViewControllers, one called <code>ComposingOverviewViewController</code> and another one called <code>CheapestViewController</code>.
If the User presses a Button, he/ she ;) will be shown the <code>CheapestViewController</code>. If the user presses "Choose", <code>cheapestBool</code>becomes... | 3 | 7,777 |
Blade and Javascript not rendering in HTML (Laravel 5+) | <p>I am new to Laravel and have been struggling on this project for a while now and as a summary I am simply creating a page that lists a list of 'tasks' (with their corresponding first names, last names, start/end dates and department). I am able to successfully edit them, and create new tasks. But for some reason whe... | 3 | 6,540 |
Convert regex from Python format to GNU Sed format | <p>I'm parsing a roughly 10GB log file, and need to feed it through sed to capture some output. The necessary capture segment based on what I would use in JavaScript is:</p>
<pre><code>s/method=""([^"]*)"".*path=""([^"]*)"".*accept=""([^"]*)""/"\1","\2","\3"/
</code></pre>
<p>Unfortunately sed (GNU sed 4.2.1, GnuWin3... | 3 | 1,363 |
Admin panel script not functioning properly | <p>The script is as follows...</p>
<pre><code><?php
// ########## GAME UPDATE FORM ##########
if (isset($_GET['tab']) && $_GET['tab'] === 'gameupdates') {
$delete = 'update';
if (isset($_SESSION['success'])) {
echo $_SESSION['success'];
unset($_SESSION['success']);
}
echo '<p>To make a n... | 3 | 3,212 |
Query plan difference inner join/right join "greatest-n-per-group", self joined, aggregated query | <p>For a small Postgres 10 data warehouse I was checking for improvements in our analytics queries and discovered a rather slow query where the possible improvement basically boiled down to this subquery (classic greatest-n-per-group problem):</p>
<pre><code>SELECT s_postings.*
FROM dwh.s_postings
JOIN (SELECT s_posti... | 3 | 2,147 |
Cant find the mistake in code | <p>Hi people i have a small problem i cganged the sql database code and my activity code... Now the app crashes when i try to start the activity(1). I am giving you the sql database code too(2). And the text from logcat(3).</p>
<p><strong>(1):</strong></p>
<pre><code>package com.peky.smartornot;
import android.os.Bu... | 3 | 5,388 |
Duplicate identifier 'LibraryManagedAttributes' - Nothing seems to fix the issue | <p>I desperately need some help with a react dependencies problem. Whenever I try to run lint using npx eslint --format codeframe --ext .tsx --ext .jsx --ext .ts --ext .js app/client, I see linting errors coming from the node_modules directories, specifically, node_modules/@types/react/index.d.ts. Errors like Duplicate... | 3 | 4,982 |
Docker build error: target/pw04-backend-0.0.1-SNAPSHOT.jar: file does not exist | <p>i have problem with docker build, when i building says that .jar file does not exist. Docker have latest version and working fine. Also when i using <em>mvn clean install</em> i'm getting only one .jar file in target folder. Might be problem in pom.xml i don't know, because all set good in my opinion</p>
<p><code>Er... | 3 | 2,343 |
JavaScript create two dimensional array | <p>I'm new to JavaScript, I'm trying to solve <strong>leetcode question 37</strong>. I need to a create a blank two dimensional array, I initially used the method in the comments; however, it doesn't work correctly, it will change all the value. Then, I used the for loop method to create array and currently it worked c... | 3 | 1,736 |
Git Objects appears to be quite sparse | <p>I just cloned a repository used to teach a Git course.</p>
<p>There are a lot of files.</p>
<pre><code>C:\udacity-git-project\course-git-blog-project>git ls-files -s
100644 779f99a12b5c71692ad6d6908d6d2fc3bdba485d 0 .editorconfig
100644 60bbd99bef24135db73624cd32bbbcb73f5676a5 0 .eslintrc.json
100644 ... | 3 | 1,453 |
Unable to get provider com.google.firebase.provider.FirebaseInitProvider on Android Studio | <p>It crash my app were it says "Unfortunately, MyApp has stopped" and I don't have any idea how to fix this thing I really need help.</p>
<p><strong>This is what i saw in logcat:</strong></p>
<pre><code>04-30 06:52:50.214 21423-21423/com.parse.starter E/AndroidRuntime: FATAL EXCEPTION: main
... | 3 | 4,389 |
SQL join without multiple rows | <p>I've three tables like DATA, SATURATION, VALUE, where:</p>
<pre><code>CREATE TABLE DATA(
data_id INT AUTO_INCREMENT,
PRIMARY KEY(data_id)
);
CREATE TABLE VALUE(
value_id INT AUTO_INCREMENT,
data_id INT,
sample INT,
channel_1 DOUBLE,
channel_2 DOUBLE,
channel_3 DOUBLE,
PRIMARY KEY (value_id),
FO... | 3 | 1,059 |
Autofilter Returns no rows but so the visible range is nothing but the Filtered Visible Range is not nothing | <p>So this is the relevant part of the code:</p>
<pre><code>i = Feuil1.Cells.Rows.count
i = Feuil1.Cells(i, 1).End(xlUp).Row
j = Feuil1.Cells(1, 1).End(xlToRight).Column
HelpAddress = Feuil1.Cells(i, j).Address
Set Table = Feuil1.ListObjects("FiltersTable")
HelpArr = Application.WorksheetFunction.Transpose... | 3 | 2,762 |
Bind Data not shown in grid | <p>In the below code, I am successfully getting 369 records in the options list:</p>
<pre><code> public ArrayList GetOptionsChain(string ticker)
{
ticker = CorrectSymbol(ticker);
string url;
if (ticker.StartsWith("^"))
url = string.Format(@"http://www.nseindia.com/live_market/dynaCon... | 3 | 6,170 |
deployed and running windows service does not log4net nor appears to pickup connection string to access database | <p>I have the typical "it works on my machine" debacle. I have code that works in visual studio and when published as executable like so:</p>
<pre><code>dotnet publish C:\xyz\BlaSolutions\Project1\Project1.csproj -o C:\Project1Publication -r win-x64 -c Release /p:PublishSingleFile=true
</code></pre>
<p>The c... | 3 | 1,166 |
How to make my text scrollable with along with listview.builder in flutter | <p>So , I have 2 functions. One is for displaying some text at the top and the other is the listview.builder. My listview.builder is scrollable, but I want to make my text also scrollable which is located above the listview.builder. Because when I scroll , I can only scroll the listview.builder. So when I scroll the li... | 3 | 1,333 |
best practice for passing data from one Vue.js component to another in Laravel | <p>I have two components of Vue.js. I created two separate components for a single form in order to avoid a messy and complex code structure. I want to combine the data of these two forms in order to send it to the server. Here is my blade file which contains two components. One is StudentComponent.vue and second is Te... | 3 | 2,504 |
Yii2 file upload returns UPLOAD_ERR_PARTIAL | <p>Images fail to upload when I create a new item but on updating the newly created item the file is successfully uploaded. Any reasons?<br>
<strong>Trending News Model</strong> </p>
<pre><code>class TrendingNews extends \yii\db\ActiveRecord
{
const EVENT_ADD_TRENDING_NEWS = 'add-trending-news';
public $fea... | 3 | 3,098 |
Null Context.User | <p>When I try to access Context.User in my Hub I keep getting Context.User is null errors. I have tried moving app.MapSignalR() under the ConfigureAuth() but that causes SignalR not to map at all. I'm not sure where I need to pass my cookie to SignalR at. </p>
<p>SignalR is working in my app for sending messages to al... | 3 | 2,289 |
Failing in creating thumbs for all mysql post img attachments | <p>I am trying to save a copy of all attached images in my site.</p>
<p>Load time si too big so I thought generating thumbnails to show in listing pages was not a bad idea,</p>
<p>This is how I'm trying:</p>
<pre><code> <?php
include('basedatos.php');
class ImgResizer {
var $originalFile = '$newNa... | 3 | 1,553 |
How can i filter Adapter Arraylist using Coroutines? | <p>In my Fragment I'm using a Recycler View with multiple item types where i want to filter my parent array list based on some conditions and transfer its child list to child recycler view. I am able to filter parent recycler view on main thread but i am worried if the parent array list has thousands of data and perfor... | 3 | 1,081 |
MySQL Command Line Client: Selecting records from a table which links two other tables | <p>I have three tables. Two of them are separate irrelevant tables (students and subjects), the third (entries) is one which links them both with foreign keys (student_id and subject_id). </p>
<p>Here are all the tables with the records:</p>
<p>students:</p>
<pre><code>+------------+------------+-----------+--------... | 3 | 1,345 |
Guzzle - cURL error 18: transfer closed with outstanding read data remaining | <p>I'm trying to solve a problem with my call to external API. With Postman everything is working fine. When I'm trying to use Guzzle, this error appears.</p>
<p>I already tried using HTTP version 1.0, but it just cuts my response and I'm not receiving proper JSON. There is also no Content-Length header in response.</p... | 3 | 5,596 |
Vuetify don't apply default color, components are white | <p>i am using Vuetify for my project.
The issue is that the default theme is white, or black with the props "black".</p>
<p>I checked this post: <a href="https://stackoverflow.com/questions/50003226/vuetify-colors-are-not-showing-up">Vuetify: colors are not showing up</a>
Even when i put my components code in the v-ap... | 3 | 1,578 |
How can I increment the numerical value in my WHERE clause using a loop? | <p>I am currently using the <strong>UNION ALL</strong> workaround below to calculate <strong>old_eps_tfq</strong> regression slopes of each <strong>ticker</strong> based off its corresponding <strong>rownum</strong> value (see <code>WHERE rownum < x</code>). I am interested to know what the <strong>old_eps_tfq</stro... | 3 | 1,057 |
Project :app declares a dependency from configuration 'implementation' to configuration 'debug' which is not declared in the descriptor for project | <p>I am trying to add a Kotlin Multiplatform Module as part of an Android project I am building. In the library, my top level <code>build.gradle.kts</code> looks like this:</p>
<pre><code>buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies {
... | 3 | 1,325 |
Problem using both include and attributes in findAll() query in Sequelize | <p>I searched on the internet a common issue but I did not find anything so I post the question here.</p>
<p>I am using Sequelize for Node and I am trying to query my PostgreSQL database to find all the objects in a specific table. However, I would like to be able to replace de foreign keys by data from their linked t... | 3 | 1,831 |
CoreData Fetch (Sort by Date) - Doesn't update for new data? | <p>I have a program which has CoreData entities including a NSDate field that indicates date each object was saved.</p>
<p>I want to make sure that the user hasn't executed the "saving" code within X minutes (in testing set to 1). If it is within X minutes, don't add additional object to context, just execute the rest... | 3 | 1,031 |
Trying to install R systematically across 200 machines, sometimes RTools is required separately, other times it is not. Why? | <p>I am trying to onboard a team of 200 people onto a tool that uses R to move data from Excel to a database. I walk the team through the following steps:</p>
<ol>
<li>Download R from the closest cran mirror and install in program files</li>
<li>Download R studio and install RStudio (wherever it defaults to)</li>
<li>O... | 3 | 1,412 |
Displays an error as "XML Parsing Error: not well-formed | <p>I tried a xml document in localhost, but it shows error as "<strong>XML Parsing Error: not well-formed</strong>
Location: <a href="http://localhost/xml/user.php" rel="nofollow">http://localhost/xml/user.php</a>
, Line Number 4, Column 906:</p>
<p>I searched for any errors in the structure of the xml file, such as ... | 3 | 1,358 |
Training loss decrease but accuracy is always 0? | <p>I try to train a model, input is (3000,1) vector that is consist of negative numbers mostly, inormalize input. Output is binary image which is represented as vector (2500,1).</p>
<p>My model is like this:</p>
<pre><code>model = Sequential()
model.add(Dense(3000, input_shape=(x_train.shape[1:]), activation='linear'))... | 3 | 1,816 |
Basic concepts with std::string references, std::regex and boost::filesystem | <p>Below, I produce both broken code and a fixed version of the same. The problem is that I am not able to fully explain to myself why the former doesn't work but the latter does. I obviously need to review some very basic concept of the C++ language: could you provide pointers as to what I should review, and possibly ... | 3 | 2,272 |
there is no exception in the log cat but my code going to exception portion | <pre><code>lvchartid.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<> parent, View view, int position,long id) {
final String item = ((TextView)view).getText().toString();
new Thread(new Runnable() {
@Override
publi... | 3 | 2,447 |
Redux Saga and Toolkit with Firebase - How to get the data back? | <p>I am trying to implement Redux Toolkit and Redux Saga with Firebase. Currently I am stuck with the problem of fetching the data from the <code>Firestore</code>. I have configured the store and everything that is needed for the <code>Redux Saga</code> and <code>Toolkit</code>, now the only problem I have is when I tr... | 3 | 1,101 |
Socket.io list for active users is working well but old tab does not update when a user disconnects and that user connects back again. Why? | <p>I will try to be as detailed as possible. I am trying to make an app where friends can message each other personally. This code is for the list of users who are online.</p>
<p>The code is working fine but old tab(with user logged in) stops updating a user that had left but has rejoined back in. It works fine for the... | 3 | 2,308 |
Can't upload data from DataTable to Database in WPF .NET 5.0? | <p>I am writing an app WPF C# .NET 5.0 that converts numbers from metric to imperial (and vice-versa). I am having a weird issue with data not uploading to the database. I successfully downloaded data from the database, but I cannot display it in my data grid.</p>
<p>The database is connected via DataSetProj.xsd file.
... | 3 | 1,752 |
Getting newest not handled, updated rows using txid | <p>I have a table in my PostgreSQL (actually its mulitple tables, but for the sake of simplicity lets assume its just one) and multiple clients that periodically need to query the table to find changed items. These are updated or inserted items (deleted items are handled by first marking them for deletion and then actu... | 3 | 1,030 |
LoadError: cannot load such file to try run the rake doc:guides command in rails 4.0.0 | <p>Can you help me with the installation of the ruby on rails guides in my local machine? . I am using </p>
<p>ruby 2.0.0p481 (2014-05-08 revision 45883) [i686-linux]
Rails 4.0.0
rvm
Linux 12.04</p>
<p>I need the documentation de rails 4.0, but I have a problem when I write the command</p>
<pre><code> rake doc/guide... | 3 | 1,321 |
How to Center Menu on Responsive Checkbox Hamburger Menu | <p>I've successfully made an hamburger menu that only appears after a certain width, but the problem is that I would like the nav links to be centered, to occupy the whole page (here it stops once the links in the menu are done) and to have a different background color.
Here's an example how the layout I'd like: <a hre... | 3 | 2,191 |
How add timestamp between two specific timestamp of an industrial equipment - Python Pandas | <p>I'm working on the availability of a specific equipment. After several data processing I finally have the time in hours of the unavailability of the equipment.</p>
<p>By analyzing my results, I find that I have an unavailability of 41 hours in a day ... impossible.</p>
<p>I finally found the problem, here are two ... | 3 | 2,647 |
How to improve this Sudoku Solver? | <p>I had an idea a while ago of making a program that would solve a Sudoku board, so I made the code below. The code receives as input a 9x9 integer list, where an incomplete cell is represented by the number 0.</p>
<pre><code>def checkSolutions(grid, i, j):
"""
Given a Sudoku board and the position of an
... | 3 | 2,236 |
Deploy Vue + Go as single binary to Heroku | <p>I have merged my seperate frontend and backend repo to a single one. My gitlab-ci pipeline worked perfectly for the seperate projects but I can not get it to work as a single project.</p>
<p>The pipeline for the single backend project:</p>
<pre><code>...
staging:
image: ruby
stage: deployment
script:
- ap... | 3 | 1,608 |
How do i change my HTML page with a form? | <p>I will explain my problem, I have an HTML page "index" with many buttons (all Href linked to other sites), I would like to create a form which writes alone the basic code.</p>
<p>I think an example would explain better, this form is for non-developer, 3 input (name, href, picture) and when you use the form... | 3 | 1,685 |
Transaction over two Tables with Postgres in Sails.js | <p>I am trying to implement a transaction in Node.js (Sails.js) with Postgresql and Sails Waterline.js ORM. </p>
<p>I tried to adapt this <a href="https://stackoverflow.com/a/25100188/3037960">answer</a>. In that answer we have only one table. In my problem I have 2 tables which have to be locked till the transaction ... | 3 | 1,199 |
Getting the multiple count() in a sinle select statement without script repitiion | <p>Below is a script to get the count in a single select with lot of code redundancy. How really I can clean up the code?</p>
<pre><code>SELECT
(SELECT COUNT(CHH.TRANSACTION_TYPE) FROM HW_PROD.ILCCHH CHH INNER JOIN HW_PROD.ILCOHD OHD ON CHH.CONTROL_NUMBER = OHD.CONTROL_NUMBER AND CHH.PICK_TICKET = OHD.TICKET_NUMBER... | 3 | 2,714 |
Mysql - Finding missing dates with multiple join tables | <p>I need some help writing a mysql query. I need to find all missed reports for a given date range for a specific business id / project id. </p>
<p>Basically, for a given business id, I need to know the name of the project and all dates that a report is either missing or not marked as completed.</p>
<p>I am using th... | 3 | 1,940 |
UIButton reused in UITableViewCell when scrolling | <p>In my UITableView, there are header cells and standard cells. Each standard cell has a check box (a <code>UIButton</code>) added to it, using the following two methods. </p>
<p><strong>Method below is called to create each <code>UITableViewCell</code>:</strong></p>
<pre><code>- (UITableViewCell *)tableView:(UITab... | 3 | 3,589 |
Stack level too deep on user.save | <p>I want to assign a confirmation code to my users while creating one. And I also titleize some columns before saving-updating them. So my user.rb looks like this (it may be a bit messy):</p>
<pre><code>// user.rb
*** some code ***
before_save { titleize_column(:name)
titleize_column(:surname)
... | 3 | 1,561 |
Logging in flask with multiple clients | <p>I have built a flask application which serves multiple request simultaneously.<br />
Each request generates request specific logs which needs to be present one after the other in order to be understandable.<br />
However, due to multi threading the order is not maintained in the log file resulting into log file that... | 3 | 1,481 |
bootstrap template , how to stick sidebar to the bottom of page | <p>I'm newbie to bootstrap and I'm using bootstrap 5 to design a template for my project , and here is the thing: I want my dark sidebar to stick to the bottom of the page. The only solution I found is to add a height property but. But what I want <strong>is to make the sidebar stick to the bottom</strong> and here is... | 3 | 3,596 |
Read an object from the file | <p>I am making a record of cars using a matrix of pointers from a class of Transport and store it with a file, I enter a special number for a particular car and store it in a file called "type" and store the object in a file called "TransportFilePath" but when I read it reads only the special number without the object<... | 3 | 1,115 |
Updating html table data | <p>I have been tasked with making a shift web app which helps my current employees track workers shifts. They gave me a website StaffHub which I should model my web app according to it, currently working on the calendar part.</p>
<p>The calendar has three views:
1. Monthly
2. Weekly
3. Daily</p>
<p>As per my current ... | 3 | 7,157 |
How to optimize the query using join with a subquery? | <p>I want to be able to list the sum of the st.balancechange, but for different s.type. It is taking the query about 7 minutes to run. I'm sure there is a better way to optimize it, but I'm not sure how. I can't use it as a sub query, because I need to return more than one result.</p>
<pre><code>SELECT DISTINCT a.ACCO... | 3 | 1,219 |
Always "This transaction is invalid..." on live PayPal for ASP.NET | <p>I am developing web application on ASP.NET. In application users can purchase article for money.
For work with PayPal I using PayPal Merchant SDK for .NET package. Application work good with sandbox but with live display error: <code>"This transaction is invalid"</code>. Please return to the recipient's website to ... | 3 | 1,376 |
Symfony/Doctrine event listener only triggered if first of any UniTest | <p>I'm encoutering a "Im going to turn mad" problem with doctrine listeners.</p>
<p>Quickly summed up behavior:
I need to refresh a summary of all aquired right when:</p>
<ul>
<li>1 A user is created</li>
<li>2 A right is added to the user</li>
<li>3 A riht is added to a profile linked to the user</li>
<li>4 ... | 3 | 2,498 |
React Redux handling response after axios resubmit original request | <p>I have a small booking program to practice ReactJS + Redux + ReduxSaga + Axios + Axios Interceptor + JWT authentication</p>
<p>Here is the code in the component BookingDialog after the submit button click</p>
<p>bookingDialog.js</p>
<pre><code> const handleSubmit = (event) => {
event.preventDefault();
... | 3 | 2,356 |
po in Xcode console not working when sharing Carthage dependencies | <ul>
<li>Are your carthage dependencies checked in?: YES</li>
<li>carthage install method: [ ] .pkg, [x] homebrew, [ ] source</li>
<li><code>which carthage</code>: /usr/local/bin/carthage</li>
<li><code>carthage version</code>: 0.38.0</li>
<li><code>xcodebuild -version</code>: Xcode 12.5, Build version 12E262</li>
<li>... | 3 | 1,843 |
Create relationship among the functions of buttons in Python | <p>I want to import 3 csv files using 3 buttons separately and merge them into one csv file and save it using a button click.
This is my code:</p>
<pre><code> from Tkinter import *
from Tkinter import Tk
from tkFileDialog import askopenfilename
import pandas as pd
from tkFileDialog import asksaveasfilename
import ... | 3 | 1,597 |
JavaFX task not reruning once canceled or finishing once | <p>I am working on a basic Java FX task exercise. It counts from 1 to 150 on a thread. The current value is presented on a label and updates a progress bar.</p>
<p>There is a button to start the task, to cancel it and to view canceled status of the task.</p>
<p>The thing that puzzles me is as to why I cannot re run t... | 3 | 1,165 |
Java Multiple Drag and Drop Panels does not work | <p>I have multiple DnD panels layered on a Jpanel with boarder layout..Each DnD panel has a Text field set as a drop target. Only last DnD panel gets the focus. Others do not act as drop targets. Here is the code for DnD panel</p>
<pre><code>public class DnDPanel extends javax.swing.JPanel {
/** Creates new form DnDPa... | 3 | 1,644 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.