title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
In iphone ios 7.0.4 app crashes when Launch the app
<p>i made a game using cocos 2d. it's work fine in iOS 5 and 6 but it crashes when launching the app to the splash screen in ios 7.0.4 on device. i developed the game in xocde 4.6.1. I have a crash log report.</p> <hr> <pre><code>Incident Identifier: CE1591CE-8C42-4A28-B9BC-475D2DA3D003 CrashReporter Key: 2052fa255...
3
4,670
R: Convert vectors of arbitrary concatenated variable names and values to single data frame
<p>I have a data frame with two columns and many rows. </p> <p>The first column is a character vector where each element P is a string concatenating a number (K) of strings with a comma. K is unknown in advance and can vary across rows, such that K = 5 for the first row and K = 3 for the second. The values that are c...
3
1,298
HTML5 Indexeddb commands to read the data is not supporting in the Ipad Safari (version 8.1)
<p>Query Description:-</p> <p>This question is particularly with the issues that I am facing in reading the indexeddb data in the Ipad Safari 8.1. I am able to create Indexeddb and insert the data into it. But unable to read the same in Ipad safari.</p> <p>Below is the code format that I tried - 1. Using Cursors</p...
3
1,138
Docker network, accessing a service in a docker-compose file when executing the docker run command
<p>I have a docker-compose file like so</p> <pre class="lang-sh prettyprint-override"><code>version: '3' networks: default: external: true name: selenoid services: selenoid: image: aerokube/selenoid:latest-release volumes: - &quot;$PWD/config:/etc/selenoid&quot; - &quot;/var/run/docker.s...
3
1,103
JMenu pressed throws exception
<p>In my app when i press Edit in my JMenuBar i receive </p> <pre> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:241) at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth(MenuItemLayoutHelper.java:162) at sun.swing....
3
2,357
kafka_2.12-2.3.0 broker shutdown in windows 10
<p>below is the error i am getting in the console while trying to start the kafka server with kafka-server-start command in command prompt .</p> <pre><code>ERROR Error while creating log for kafka_example-0 in dir C:\Users\user11\Softwareskafka_2.12-2.3.0kafka_logs (kafka.server.LogDirFailureChannel) java.io.IOExcept...
3
1,465
com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency LOCAL_ONE
<p>All, below is my schema:</p> <pre><code>CREATE TABLE test.lookup_provider_id ( provider_id text, provider_source text, gufi text, PRIMARY KEY (provider_id, provider_source) ) WITH CLUSTERING ORDER BY (provider_source ASC) AND bloom_filter_fp_chance = 0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'} ...
3
1,540
Is there an easier way to make these axios post reqest?
<p>I'm trying to upload multiple images to cloudinary via api in my react app using axios. I'm new to promises, so I'm not sure if I'm using the right approach here.</p> <p>I am able to upload all the images to cloudinary; however, the response I get is the confusing part, as with the response I need to pass the image...
3
1,447
Having trouble using JWT with a custom User model in Django
<p>I've started a new Django project and like the documentation recommends I've created a custom user model just in case it's needed and made sure to set <code>AUTH_USER_MODEL</code> in settings.</p> <pre><code>from django.contrib.auth.models import AbstractUser class User(AbstractUser): pass </code></pre> <p>I ...
3
1,595
Showing Images in knockoutjs is not working inside foreach and if condition
<p>Recently i have started working on knockoutjs...I have fetched the data from database to show on an html table...I have applied foreach loop since my DataTable returned more than one row.. One of my field named "MaritalStatus" is a BIT type so on my view it is showing True/False...Instead of that i want to show an i...
3
2,953
Is there a way to simplify this code?
<p>I am doing some bioinformatics research, and I'm new to python. I wrote this code to interpret a file containing protein sequences. The file "bulk_sequences.txt" contains 71,423 lines of information within itself. Three lines refer to one protein sequence, this first line giving information, including the year the p...
3
1,026
How i return the array in Firebase, swift
<p>I'm a super beginner at swift. these days I have learned how to use firebase in my project. Basically, I prefer to make simple and short functions always in order to use it in the main code. so I made a function that will return the array value from firebase JSON data. But it always shows the empty, not any data.</p...
3
1,260
Re-Open a Form after done Counting time over and over
<p>I have a problem with some codes here , its something like you have a form that maximize and control the screen, when you login you have time to use the computer, right after the time stop or end the time counting the form will maximize again .</p> <p>The problem is I don't know how to catch if the timer is stop or...
3
1,908
Why symfony assert doesnt work with novalidation attribute on Edit Page?
<p>On my form, I am using <code>novalidate</code> attribute like this :</p> <pre><code>{{ form_start(form, {'attr': {novalidate: 'novalidate'}}) }} </code></pre> <p>To disable HTML5 browser validation. So Symfony assert errors appears. On the new.html.twig page it works perfectly fine! The novalidate at...
3
2,099
Make $ionicPopup behave like a modal (catch click events of backdrop)
<p>I'm using <code>$ionicPopup.confirm()</code> in a list to ask whether to delete the row or not.</p> <p>Unfortunately a second popup opens if the user ignores the popup and taps on another Delete-icon. Then only a reload of the app helps, since the first popup stays open and isn't closable.</p> <p>Is there a way to...
3
1,164
Navigating from Platform Specific (UWP) PageRenderer and back to PCL Page
<ul> <li>I have a MainPage in PCL which then navigates to a Platform Specific Login Page on LoginButton Click Event</li> <li>The LoginPage is inherited from platform specific PageRenderer as it needs platform specific Authentication to Social Providers (Facebook, Google, Twitter, Microsoft, etc.)</li> <li>I am using Xa...
3
1,321
Combine Navigation UL jQuery Function
<p>I am trying to write a function that will combine two children <code>ul#level_2</code>and append them to their parent <code>li#level_1</code> within a dropdown <code>#navigation</code>.</p> <p>I currently have the following which does the job, but it means I have to manually target each category. I'm sure there is ...
3
2,089
Pin a saved notes in UIWebView
<p>I have UIWebView for displays HTML articles. When user touch some area in UIWebView, UIMenuController will display. Then user select note button it displays UITextView, then user can able to write some text, after that user can store the text to that touched area like Documents by Readdle app. I created upto write t...
3
1,670
Freetype2 failing under WoW64
<p>I built a tff to D3D texture function using freetype2(2.3.9) to generate grayscale maps from the fonts. it works great under native win32, however, on WoW64 it just explodes (well, <code>FT_Done</code> and <code>FT_Load_Glyph</code> do). from some debugging, it seems to be a problem with <code>HeapFree</code> as cal...
3
1,324
nginx reverse proxy working only if port 80 available
<p>I hope somebody can help me to solve/understand this issue as I am totally stuck.</p> <p>I am a ec2 instance running nginx. This ec2 instance is behind a load balancer.</p> <p>My nginx configuration, is to reverse the traffic to an external service hosted on azure.</p> <p>But for demonstration purpose lets assume th...
3
2,022
Flutter, Edit object in List
<p>I have created a simple Flutter app that downloads a list of a person's contacts via an API call. It looks like: <a href="https://i.stack.imgur.com/7cJ65.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7cJ65.png" alt="enter image description here" /></a></p> <p>If you click on the pen icon it open...
3
2,989
Getting 'TypeError: interpolate is not a function' in React-Native 0.68
<p>I create latest react native 0.68 project and using react navigation 5, I am using react-native-reanimated 2.2.4 project build successfully but when I use drawer navigation getting error</p> <p>Here is the package json</p> <pre><code>{ &quot;name&quot;: &quot;NassauTennisApp&quot;, &quot;version&quot;: &quot;0.0...
3
1,150
How can I update a many to many field in Django
<p><strong>I am trying to update a many to many field button when a user clicks a button</strong></p> <p>The Payment model is to allow users to submit their receipts to be reimbursed. Each Payment has a &quot;many to many&quot; field named status. Currently, there are only two statuses a payment can have &quot;complete...
3
1,089
Rearrangement of pages when creating paginated pdf using html2canvas (async)
<p>I have a dynamic page which depending on some information will create more or less sections. I want to loop through those, make a canvas out of them and bring those sections to a pdf. I had the page previously running with this code, but i had to change the sections.</p> <pre><code>var pagina = 0; var paginas_total...
3
2,389
Printing instances of class through inherited method
<p>I am trying to do some simple stuff with OOP and Python, building some simple books service. I am trying to create class for Books, where each object will be a Book with attributes, that works, it is not the best, but good enough for now.</p> <pre class="lang-py prettyprint-override"><code># Definition of class clas...
3
1,835
Adding a legend to ggplot linegraph of multiple dataframes in R
<p>I want to add a legend to a ggplot linegraph of multiple dataframes in R. I read in several .csv files (see below) to dataframes, then plot them in R using the following code:</p> <pre><code>ggplot(data=ridge_u_s_summary,aes(x = times,y=means))+ geom_errorbar(data=ridge_u_s_summary,aes(ymin=means-sd,ymax=means+sd...
3
2,565
Make controls be inside of my slideshow and stuck always at same position
<p>I´ve been getting problems with the controls of my slideshow, i cant make the slideshow controls/navigation stuck at the bottom of the slideshow but inside the slideshow, the controls should always be at same position no matter the window size.</p> <p>How you will see at the moment the controls outside the images a...
3
7,765
uninitialized constant User::follow Extracted source (around line #28):
<p>i have an error in my user.rb model (around line #28):</p> <pre><code>27def following?(user) 28 following.include?(user) 29end </code></pre> <p>Any idea what I could be doing wrong here? Showing C:/instagramm/instagram-clone/app/views/accounts/profile.html.erb where line #11 raised: my profile.html.erb :</p> <pre>...
3
1,150
Is it possible to assign and verify a constexpr structure in C++14?
<p>I implemented a <a href="https://github.com/m2osw/advgetopt" rel="nofollow noreferrer"><code>getop()</code> in C++</a>. This is a class with all sorts of bells and whistles.</p> <p>One of those bells would be a way to verify that the user enters valid options at compile time. Already I have part of that for the fla...
3
1,973
SQL Join Doubling Some Output
<p>I have the following query:</p> <pre><code>SELECT r.reservation_number, r.rate_type, r.room_type_code, r.room_code, t.client_code, SUM(room_revenue + package_revenue + other_charge_revenue + spa_revenue) AS revenue_total FROM nw_src.dbo.fdresrev r JOIN nw_src.dbo.fdres_ta_c t ON r.reservation_number = t.reservation...
3
1,372
How to Use ngRepeat with Open Layers
<p>I'm doing a project using AngularJS 1.5.8 and OpenLayers3. </p> <p>I'm able to display the map and set the various map components. However when I set a control on the map that has either ng-repeat or ng-if directives, nothing is displayed. When I test the code outside of the map (not as a control) it works fine. </...
3
1,141
How to convert daily frequency dataframe into weekly time series in r?
<p>I have a <strong>daily frequency dataframe</strong> which I am trying to convert into <strong>weekly timeseries</strong> to <code>decompose()</code>. I have been able to convert it into <strong>monthly</strong> but same process <strong>doesn't work</strong> as expected for <strong>weekly</strong>.</p> <p>Code that I...
3
1,525
How does the caller know when there's a Decimal inside a VARIANT?
<p>The COM <code>VARIANT</code> type is defined using the <code>tagVARIANT</code> structure like this:</p> <pre><code>typedef struct tagVARIANT { union { struct { VARTYPE vt; WORD wReserved1; WORD wReserved2; WORD wReserved3; union { LONGLONG llVal; LONG...
3
1,476
Why ViewModel is not providing data when I return to activity?
<p><strong>MainActivity</strong> uses <strong>ViewModel</strong> to display a list of books. When I return back from <strong>DetailActivity</strong> to <strong>MainActivity</strong>. <strong>MainActivity</strong> does not have the list anymore.</p> <p><strong>Why ViewModel is not providing the list when I return to M...
3
1,988
Change specific object values in an array
<p>I need to change the <code>fuelType</code> and <code>mode</code> independently in each of the separate stations but I cant figure out how, I can print the array but can't figure out changing its contents</p> <pre><code>station = new Pumps [10]; station[0] = new Pumps(&quot; P101&quot;, &quot;Idle&quot;, &quot;D...
3
1,326
In inline editing in jqgird how to check whether any row is selected or not?
<p>In inline editing in jqgird how to check whether any row is selected or not?</p> <p>I want to display error message "Please select a row!" when user click on edit without selecting any row.</p> <p>@Oleg here is the code:</p> <pre><code>gridobject.jqGrid({ url: getUrl, datatype: 'json', mtype: 'Get', ...
3
2,527
Django STATIC FILES location CONFUSION
<p>I've been learning Django for a while now, but the static files topic makes me doubt about WHERE and HOW they should be placed and it's configuration in settings.py.</p> <p>Lets say I start a Django project called &quot;WEBSITE&quot; and create an app called &quot;BLOG&quot;.</p> <p>From what I've seen and read, peo...
3
2,170
How to display an array of objects derived from a base class, each with it's own different operator overload function?
<p>So i have a base class, and 3 derived classes, and another class template which as a parameter is given the base class, class template has an array of the 3 different type of objects. I have overloaded the &lt;&lt; operator for all 3 derived classes and the base class, but when i try to display all the array in the...
3
1,413
Pass prop value from parent component to child component and map child according to parent prop value
<p>I have a parent component named product card, where i show the product details according to the product id. I have another child component named Rating where i retrieved the rating value for a particular product id.</p> <p>The component DisplayRating has been passed to the parent component , where the product ID is...
3
1,134
How to test Angular controller having a service
<p>I am having a controller and service like below</p> <pre><code>(function () { var mockController = function ($scope, MockService) { $scope.message = "This is a text message"; $scope.getCities = function () { $scope.places = []; MockService.getCities().then(function (res...
3
1,541
EF Core | Need to use Navigation property for update on one property, but not another (Modules)
<p>I have a file table where I am adding a FK to a module table to add in which module it is coming from.</p> <p>When we create the record into FileSystemItems, we need to also update FileSystemItemsDatas as well.</p> <p>We do this with the below code:</p> <pre><code> public async Task&lt;int&gt; CreateFileSyste...
3
5,607
How to fix "MetaMask no longer injects web3" & "Cannot read properties of undefined (reading 'toWei')" errors when using Drizzle for building a Dapp?
<p>I'm trying to build a decentralized app for a lottery smart contract, deployed on a local ganache ethereum network, but in this case I'm using Drizzle tool from Truffle Suite.</p> <p>This is the smart contract, it's pretty simple, it has pickWinner, enter and getPlayers functions.</p> <pre><code>contract Lottery { ...
3
4,088
For loop not loading all images in pygame and can't blit them onto screen
<p>I'm trying to make a blackjack game and I'm having trouble loading the images for the cards in the for loop. The way that I have named the images is like D4.png is the image for the card 4 of Diamonds and QD.png is the image for the Queen of Diamonds etc. My issue is that only the last card types and numbers are bei...
3
1,161
Android BLE Advertisement gives error codes 1, 10 and 14 and status as 18
<p>I am making an app for BLE advertisement but as soon as I press the start transmitting button I get the toast message <code>status</code> as 18 and when I check the logcat I see error codes <code>1, 10 and 14</code>.</p> <p>I have included all permissions in the <code>manifest.xml</code> file also.</p> <p>Here is th...
3
2,728
Stream audio bytes to MediaPlayer
<p>Is there a way to stream bytes directly to <code>Android.Media.MediaPlayer</code>? So when I receive a bunch of bytes I can throw them to this class and play them and repeat? I couldn't find any examples of feeding <code>MediaPlayer</code> with bytes and it seems like the most reasonable approach.</p> <p>Currently...
3
1,117
cannot acquire data source trying to Unit test java persistence Entity Manager
<p>I am fairly new to JPA and I wanted to test my EntityManagers persistance/deletion etc. I keep recieving an error that i cannot accquire data source . I am at a complete lose, I have searched online for hours and cannot find(or at least understand) any answers on the web. Any help would be appreciated. Thank you!</...
3
1,121
Reload Div on button click
<p>I have a MVC view that has bootstrap navtabs in it. On each tab a different view loads. They are called delayed spiff, and instantspiff. I have added a datepicker and a button that should display data in the 2 views. The only problem is that when I click my button the views don't refresh. They keep their original d...
3
5,998
Fetching parents efficiently in rails
<p>I'm writing an image gallery.<br> An image in the gallery belongs to a project. Each project can have a parent project.<br> An example would be <code>project1 &gt; project2 &gt; project3 &gt; image1</code></p> <p>To allow the admins to use FTP i wanted to have 'pretty' paths to the files.<br> Thumbnails and preview...
3
1,540
Timer Not working in Android Eclipse
<p>Timer is not working. after few second it should goto another activity</p> <pre><code>public class intro extends Activity { int count=0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowMana...
3
1,545
PyQt5 Problem involving QMainWindow class, QAction and probably the setCentralWidget() function, what to do?
<p>Good afternoon. This is an MRE of the problem that you can easily run in your machine</p> <pre><code>import sys from PyQt5.QtWidgets import ( QWidget, QMenuBar, QMenu, QApplication, QAction, QMainWindow, QVBoxLayout, QLabel ) class mainwindow(QMainWindow): def __init__(self, screen2, screen3): ...
3
1,196
d3 x.invert returning Invalid Date from d3.pointer. d3 v6
<p>I probably should be sticking with d3 v4 or lower it seems. Anyway, I'm trying to create a typical Area Chart to display stock data. But I'm running into a problem with a mouseover function where I try to get the nearest data point based off mouse location. Similar to what happens when you hover on a graph like on g...
3
1,477
How do you get the dimensions of a worksheet in Microsoft.Office.Interop.Excel?
<p>I've been trying to use <code>Microsoft.Office.Interop.Excel</code> to modify some worksheets, but I can't figure out how to get it to do some simple things. So far I've managed to load a worksheet and PrettyPrint out a range that I choose. That's fine. But how do I get the size of the sheet? </p> <p>Some of the co...
3
1,361
no known conversion for argument 1 from 'int' to 'gnu_cxx::normal_iterator<int*, std::vector<int>>&&'. I'm unable to find a way to get my code working
<p>I am trying to carry out a binary search to find the index of a specific element within the vector. I tried getting the first and last element and passing them to the variable high and low. I am getting some sort of conversion error. The error is below inside the BinarySearchVector funtion.</p> <pre><code> #include ...
3
1,025
Why the change in state of store is not broadcasted to my component
<p>When onMetaSignalChanged() is called in the component, it causes an effect which in turn calls the reducer case rangeSchemasLoadCompletedSuccess. I have debugged the App and its working fine till that point. As you can see rangeSchemasLoadCompletedSuccess updating the rangeSchemas of store state, so I think my rang...
3
1,551
javascript add new form
<p>I have created a html css javascript, a tree when you select an option, another options will be visible (according the first option selected) in this example there is only 2 options.</p> <p>the problem is that at the end, there is a button that should add a new form (row) with same options, to start all over, when ...
3
2,049
npm install error : Not found "logger-nodejs@1.0.11"
<p>I am trying to run "npm install" in my project but npm keeps on showing me </p> <blockquote> <p>npm ERR! 404 Not Found: logger-nodejs@^1.0.11</p> </blockquote> <p>same as for these items :</p> <blockquote> <p>restify-nodejs, metrics-nodejs</p> </blockquote> <p>I'm confused cause it seems to happen only with ...
3
1,141
PHP Upload move_uploaded_file not working
<p>I am trying to upload a file, and have it so that duplicate file names will be appended with _0, _1, _2 etc. When a duplicate file is entered I get this error:</p> <pre><code>Warning: move_uploaded_file(../data/uploads/../data/uploads/Penguins_0.jpg): failed to open stream: No such file or directory in D:\xampp\htd...
3
1,062
How to properly clear GridViewExtension data on page revisit or reload?
<p><strong>Background</strong></p> <p>I have an incomplete project built on MVC 5, EF 6 DB First &amp; DevExpress extensions with following code spec (all original non-English variable names changed &amp; entire code simplified to comply MCVE):</p> <p>Model (Namespace: <code>ProjectName.Models</code>)</p> <pre><code...
3
2,904
How to display the elements of a 5*5 matrix in the following way?
<p>I want to display the output of 5*5 matrix in the following way:</p> <p>Input:</p> <pre><code>1 2 3 4 5 6 7 8 9 0 1 3 5 7 9 2 4 6 8 0 1 4 3 7 0 </code></pre> <p>Output:</p> <pre><code>1 2 3 4 5 0 9 0 0 7 3 4 1 2 1 6 7 8 9 7 8 6 4 3 5 </code></pre> <p>I have written the below program, but I can't get output lik...
3
1,251
mysql.connector.errors.ProgrammingError: 1210 - whenever I do a 2-digit query - works fine with 1 digits
<p>My code:</p> <pre><code>import threading import tkinter as tk import pip import time import mysql.connector from time import sleep global score global countdown en = 1 score = 0 countdown = 1 print(&quot;Hiya!&quot;) mydb = mysql.connector.connect( host=&quot;&quot;, user=&quot;&quot;, password=&quot;&...
3
1,949
Dialog of material UI has afterimage when being closed
<h1>Introduction</h1> <p>Bascially <code>&lt;Dialog /&gt;</code> receives <code>open</code> and <code>onClose</code> as props. <code>open</code> is boolean from state and <code>onClose</code> is a function that changes the state.</p> <p>I made <code>&lt;CustomModal /&gt;</code> that wraps <code>&lt;Dialog /&gt;</code>,...
3
1,397
Laravel Restful Api: Session Does Not Gets Submitted
<p>I'm working with Laravel 5.8 and I wanted to build my own API.</p> <p>Basically, I have made this API Controller method for registering new users with mobile number:</p> <pre><code>public function register(Request $request) { // Validation Data $validData = $this-&gt;validate($request, [ ...
3
2,788
Centering logo in header / navigation bar
<p>I'm trying to create a site and started with the navbar. I'm trying to center the logo and give the subs/links (? don't know what they're called, the a-tags) a little more space.</p> <p>I tried following some video tutorials and Stackoverflow answers but they caused the left 3 links to be more downwards and the 3 ri...
3
1,094
Update relational DB data based on MVC actionresult (Entity Framework)
<p>I'm trying to update a table within my DB to change a particular relationship based on a user selecting a card, and then click a button to send that card to that deck, see below: </p> <p>My Models: </p> <pre><code>public class Card { public int Id { get; set; } public string Name { get; set; } public i...
3
1,898
Ubuntu cannot sudo apt-get update
<p>When I did sudo apt-get update , I got below error (I tried <a href="https://stackoverflow.com/questions/30316812/ubuntu-apt-get-unable-to-fetch-packages">Ubuntu apt-get unable to fetch packages</a> but not resolved) It seems like having two errors:</p> <p>error:1 <a href="http://us.archives.ubuntu.com/ubuntu" rel="...
3
1,952
Taking user input as name of new class instance
<p>I am trying to create a class in C# called customer, with 3 variables: name, initial deposit, and monthly deposit amount.</p> <p>This is for a console program that takes user input for those three variables and keeps asking for more users until the user types nothing and presses enter.</p> <p>However, the line <c...
3
1,224
How to stop graph by making stacked-barchart using MpChart android
<blockquote> <p>I am working on a project where I have to display data in graphical representation.For achieve this, I am using Mpchart library. According to my project requirement, I have to display every bar of barset on the same index according to that barset number but it is becoming stacked barchart that I dont ...
3
1,879
python django prefetch_related on form set and inlineformset_factory
<p>inlineformset_factory` with 50 extra rows. It is taking forever to load and getting 204 queries are running to get that data with almost 200 duplicate queries</p> <p>Here are my models</p> <pre><code>class Item_type(models.Model): title = models.CharField(max_length=100, null=True) alias = models.CharField(m...
3
1,411
Ubuntu 20.04 failed to install mysql2 gem
<p>I am on ubuntu 20.04 and trying to install ruby gem mysql2, i have run:</p> <pre><code>gem install mysql2 </code></pre> <p>But got this error</p> <pre><code>ient.c: In function ‘rb_mysql_query’: client.c:787:14: warning: passing argument 1 of ‘rb_rescue2’ from incompatible pointer type [-Wincompatible-pointer-types]...
3
1,265
I can't register the user
<p>the login method is working but the registration method does not work already I tried in many ways,</p> <p>please would like a little knowledge of your excellence, thank you very much</p> <p>repository to save to the database:</p> <pre><code>Future&lt;User&gt; register(User user) async { final String url = '${Glob...
3
1,387
No identifier/primary key specified for User entity, without connection to database
<p>Im getting error about identifier/primary key for my User entity after im trying to log in.</p> <p>I searched for the answer, but nothing helped in my case.</p> <p>This is my user entity, im not using any database, all data is comming with json responses from request's to external application.</p> <pre class="lan...
3
2,288
Converting CarouselPage to CarouselView
<p>Is it possible to add direct content to a CarouselView in Xaml?</p> <p>I need to convert an old CarouselPage to the newer CarouselView, but it looks like it must be data bound. But my content for each slide is entirely different and does not easily lend itself to an item template.</p> <pre><code>&lt;?xml version=&qu...
3
1,240
Kubernets deployment doesn't finalize although our job is finished: 'the containers with unready status: [main]'
<p>My team and I, we are trying to deploy a BERT NLP model to production using Kubernets and Kubeflow.</p> <p>We almost got it. Everything was processed correctly and we've got our desired output as we can see in our log:</p> <p><a href="https://i.stack.imgur.com/7GWgb.jpg" rel="nofollow noreferrer"><img src="https://i...
3
2,236
celery worker thread hangs indefinitely
<p>I am running my spiders into celery worker. Spider scrape a website and then bunch of follow-up links. after some time spider stop processing any further.</p> <p>lsof output shows that for thread , connection are in CLOSE_WAIT state</p> <pre><code># lsof -i -n COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAM...
3
2,571
Issue displaying a map with java
<p>I currently am trying to make a risk-like game and as I try to display a map (vectorial image) I have a NullPointerException that I do not understand at all how it can be solved. =/ Here's the code :</p> <pre><code>public class Test1 extends Stage { private BorderPane root = new BorderPane(); private WebV...
3
1,141
Why is scaling/zooming-in an SKNode forcing the view into the left of the screen?
<p>I'm following Ray Wenderlich's 'iOS Games by Tutorials' &amp; I got everything in my world setup &amp; working: The entire game is in Landscape mode &amp; there's one SKNode called _worldNode &amp; everything, except _uiNode (in-game UI), is added to it. Player character walks to a touched location &amp; _worldNode ...
3
2,209
Need to stop the user click the exe for the second time, while it is already running
<p>I have developed a exe of my Java application, and run it from a thumb drive. It will take some time to execute. But my end user thinks it is not running and clicks for the second time. I need to stop this. I need to stop continuous click on the exe, while it is running. I used the shell script to check whether the ...
3
1,176
Object array - Null Pointer Exception
<p>I want to create 2D array of objects, but i get null pointer exception no matter how I create it. How should I make array of objects to get them work? Here is my code: </p> <p>Game.java package com.jakob.game1;</p> <pre><code>import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics; impor...
3
1,586
JavaScript Removing Elements Dynamically! removeChild
<p>Technology I am using is materialize and vanilla js. I've created a materialize button that opens a model. within the model is a form that takes user input, then places the input text onto the main page, when the Submit button is triggered. then I have a button that should remove/delete the input posted. So the issu...
3
1,875
How to split the data among the multiple groups in hdf5 file?
<p>I have one some data which looks something like this:</p> <pre><code>Generated by trjconv : P/L=1/400 t= 0.00000 11214 1P1 aP1 1 80.48 35.36 4.25 2P1 aP1 2 37.45 3.92 3.96 11210LI aLI11210 61.61 19.15 3.25 11211LI aLI11211 69.99 64.64 3.17 11212LI aLI11212 70.73 ...
3
2,191
Alexa (ASK) : How to play multiple audio from different URL?
<p>I'm a beginner at ASK development and currently stuck on playing audio from multiple different URLs using .addAudioPlayerPlayDirective from handlerInput.responseBuilder. So if I add multiple addAudioPlayerPlayDirective to the responseBuilder it returns error instead. For example :</p> <pre><code>handlerInput.respon...
3
1,104
When centering dialog, first appears on topleft corner for some milliseconds
<p>I'm generating a dialog with a lot of content. I want to pack the dialog to the childrens height, and I want to center it on screen, so I'm doing this after adding all the childrens:</p> <pre><code> shell.open(); shell.layout(); shell.pack(); //for wrap the dialog size to it's content width a...
3
4,636
Keeping WPF GroupItems together in ItemsControl
<p>I'm trying to group a collection view by "region" (there will always be 5), and what I'd like to achieve is to keep all 5 GroupItems stacked vertically while only showing 7 <strong>Groups</strong> in my ItemsControl per row.</p> <p>Example of groups, where each item has a date and 3 values, grouped by 5 regions: AS...
3
3,340
Webpack not works and not throws errors
<p>I am use webpack to encapsulate my cart vuejs component. This component has other three components:</p> <pre><code>Cart.vue CartLine.vue CartResume.vue </code></pre> <p>After execute <code>npm run build</code> this build a unique js file with my vue components -> <code>cart.js</code></p> <p>The problem is that no...
3
1,529
Issue with recv socket type argument
<p>Hello I need to receive messages from the socket as string, I am having issues with the recv() it requires a void* but i need it in string i am fairly new to c++ any help would be greatly appreciated. the code I am using is listed below.</p> <pre><code>#include "server.h" using namespace std; //Actually allocate ...
3
2,031
How can I use previously built jars in a multi-module maven project?
<p>I have <a href="https://github.com/ICIJ/datashare" rel="nofollow noreferrer">this maven multi-module project</a> : </p> <pre><code>ModuleA src pom.xml target ModuleA-with-dependencies-shaded.jar (version 4.1 of lucene relocated) ModuleB src pom.xml target ModuleB-with-dependencies.jar (version 7...
3
2,435
JOLT remove all but first two fields
<p>Trying to use JOLT within Nifi to remove some fields from an API call, but having trouble getting it to work. Below is what is returned from the GitHub API:</p> <pre class="lang-json prettyprint-override"><code>[ { &quot;login&quot;: &quot;sample name&quot;, &quot;id&quot;: &quot;000001&quot;, &quot;no...
3
1,231
Boolean.TRUE == someMethod(), where return type is Boolean for someMethod() and it returns a literal true
<p>Please have a look at the below program :-</p> <pre><code>class Main { public static void main(String[] args) { System.out.println(Boolean.TRUE == new Main().getBoolean()); } public Boolean getBoolean() { return true; } } </code></pre> <p>If I check the Java Mnemonics for this, I get :-</p> <pre...
3
1,057
How to get an average for each hours for the given time period using Pivot Table?
<p>Something I'm trying on Pivot Table but haven't been able to. Not sure if it can be done or not, so thought I would ask the experts. </p> <p>I have relatively small dataset in excel for Oct, Nov, and Dec with patient and the procedure canceled. I would like to know what is the average number of cancellation by hour...
3
1,282
How can I pause thread?
<p>Relevant code:</p> <pre><code>private static Thread m_thread = null; private static Boolean m_stop = false; public static Boolean Start(SearcherParams pars) { Boolean success = false; if (m_thread == null) { // Perform a reset of all variables, // to ensure that the state of the search...
3
2,610
Javascript onClick function only works once in rails magnific popup
<p>I'm using the google maps api in a rails app in order to be able to mark an object by clicking on the map. Clicking on the map should bring up a rails form for the object using the magnific popup gem and the form can be submitted to create a new object. This process will work for the first time you click on the map ...
3
1,252
Initiate twilio flex chat using node.js
<p>I am having difficulty getting twilio flex to show messages created using the API using node.js.</p> <p>I am creating a channel, adding a member, creating a message on the channel using the member.</p> <p>The flex dashboard shows the incoming chat request in the task list, I can answer the chat request but none of...
3
1,041
ColSpan does not apply to TDs when using react
<p><strong>Working with React and Bootstrap, I have the following code:</strong></p> <p>Person class:</p> <pre><code>if (this.state.edit == true){ return( &lt;tr&gt; &lt;td className=&quot;col-sm-4&quot;&gt;&lt;input type=&quot;text&quot; value={this.state.firstName} onChange={this.handleChangeFirstName...
3
1,168
android + custom list view
<p>i am trying to make a custom list view and was following this post <a href="http://saigeethamn.blogspot.in/2010/04/custom-listview-android-developer.html" rel="nofollow">http://saigeethamn.blogspot.in/2010/04/custom-listview-android-developer.html</a></p> <p>the list view accepted the custom row.. but only displays...
3
1,069
Compilation Error with C++ core libraries
<p>During compilation of a software I am consistently receiving the following error messages.</p> <p>PasteBin Link: <a href="http://pastebin.com/TmHKqey2" rel="nofollow">http://pastebin.com/TmHKqey2</a></p> <p>I have tried the solutions on forums that discussed similar issues: changing all makefiles from makefile.* t...
3
1,159
Adapt hover animation for iPad with touch events
<p>This is my first attempt at developing something with touch events. I have a slider that animates on hover, and the first two slides have links that reveal hidden content on click. Trying to figure out a way to adapt it so that the content animates on swipe instead of on hover, and still maintain the "on click" fo...
3
2,605
Unable to run app in emulator with API 29 android studio
<p>I have an app run normally in the emulator with API 28. But when I run the app in the emulator with API 29 it shows</p> <p><a href="https://i.stack.imgur.com/AeWp0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AeWp0.png" alt="enter image description here"></a></p> <p>It does not only show keep...
3
6,319
saveToPhotoAlbum completely ignored on both Android and iOS
<p>In my ionic 4 app, camera is working fine taking pictures and uploading to a remote server. I use the plugin also to get images already in the gallery on another page, and it works too. The only thing I can't manage to solve is that pictures that are taken while using the app with the camera plugin aren't saved in t...
3
1,548
Cannot transfer value to another class ( c# )
<p>I have the first class named:</p> <pre><code> Appartments[] appartments; </code></pre> <p>I want to copy the value of "Number" and paste it to "AppartmentInfo.cs" class( I guess they are called Parameters).</p> <pre><code> public static void FindFloor(Appartments[] appartments, int amount,out in...
3
1,764
cannot convert int to String, / cannot convert String to int [][]
<p>Once again I am racking my brain as the error messages<br> keep coming. I am learning how to work with arrays - both regular and multi-dimensioned. I am having problems a) filling the array with the sales data and also with a section where I get the "cannot convert String to an int". When I modify this array to ha...
3
1,220